public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* TeX primitives ignored in pandoc ?
@ 2020-12-03 22:38 JE Taieb
       [not found] ` <9fa2225e-2083-4cb1-9303-7aac7a04b500n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: JE Taieb @ 2020-12-03 22:38 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 807 bytes --]

I am learning how to use pandoc to convert very simple tex files to docx or 
html. 

But are TeX primitives (like \year) ignored in pandoc ? 
For instance 
\newcommand{\Year}[1]{\textcolor{red}{\advance\year by #1 
\the\year\advance\year by -#1}}(to have updated documents with years 
relative to the current year) is left blank in the pandoc output. 

You might have a straight yes/no answer.  

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9fa2225e-2083-4cb1-9303-7aac7a04b500n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1191 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: TeX primitives ignored in pandoc ?
       [not found] ` <9fa2225e-2083-4cb1-9303-7aac7a04b500n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-12-03 22:45   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2020-12-03 22:45 UTC (permalink / raw)
  To: JE Taieb, pandoc-discuss


If you do 'pandoc -f latex', unknown primitives (including this)
will be ignored.

If you do 'pandoc -f latex+raw_tex', they will be included as
raw tex.  This is ignored in most output formats, but included
in formats that allow tex.  For other formats, you can intercept
these elemnets with Lua filters and change them to something
more useful (such as a Str element containing the current year).

JE Taieb <ofpd.mim.2019-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I am learning how to use pandoc to convert very simple tex files to docx or 
> html. 
>
> But are TeX primitives (like \year) ignored in pandoc ? 
> For instance 
> \newcommand{\Year}[1]{\textcolor{red}{\advance\year by #1 
> \the\year\advance\year by -#1}}(to have updated documents with years 
> relative to the current year) is left blank in the pandoc output. 
>
> You might have a straight yes/no answer.  
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9fa2225e-2083-4cb1-9303-7aac7a04b500n%40googlegroups.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-03 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 22:38 TeX primitives ignored in pandoc ? JE Taieb
     [not found] ` <9fa2225e-2083-4cb1-9303-7aac7a04b500n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-03 22:45   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).