Change variable first with pandoc

I am converting a .rst document to .tex using pandoc and I would like to modify variables such as $date in a .rst document. I use:

 ============ My doc title ============ :Date: October My first title ============== Lipsum… 

The variable is indeed overridden, but the use of such field lists creates a definition section in the resulting LaTeX document:

 \title{My doc title} \date{Octobre} \begin{document} \maketitle \begin{description} \end{description} 

This empty description makes compiling LaTeX unsuccessful. When I do not use field lists, it disappears.

How can I avoid this description section when using field lists in my RST document?

+4
source share
1 answer

This is the error in pandoc that I just fixed. (The fix will be in the next version, but if you need it now, you can compile the development version: see here for instructions.)

Note that pandoc currently only recognizes the author, title, and date attributes as metadata fields. If you expect other fields to specify template variables, you will be disappointed.

+3
source

Source: https://habr.com/ru/post/1438187/


All Articles