Pandoc is a markup converter which can output LaTeX and can parse a subset of LaTeX. Questions about pandoc itself are not on-topic for this site; questions about using it to produce LaTeX are on-topic.

learn more… | top users | synonyms

28
votes
2answers
1k views

Is LaTeX intended for unattended typesetting?

With markup converters like Pandoc, it has now become possible to generate LaTeX documents without ever touching any LaTeX code. However, obtaining aesthetic page breaks for slightly complex ...
2
votes
0answers
701 views

LaTeX tables in pandoc, captions

If I feed a simple LaTeX table to Pandoc, e.g. \begin{table}[h!] \begin{tabular}{ll} x&y\\ \end{tabular} \caption{A caption} \end{table} and convert it to HTML using pandoc -s table.tex -o ...
1
vote
0answers
110 views

Can Pandoc Ignore YAML Metadata Headers? [closed]

Is there a way to get Pandoc to ignore YAML metadata headers? I have a batch of files that includes the headers, which are ordinarily lovely, but not needed for this particular output.
4
votes
2answers
2k views

Pandoc-generated PDF contains large images, how can I make them fit into the page?

I am using pandoc to generate pdf output out of my markdown code. So far, it works fine without any warning or error, except the fact that figures are large, so that some figures get cut and don't fit ...
2
votes
0answers
145 views

Windows Pandoc TexLive

I installed the latest texlive and pandoc on windows 8. I am able to compile tex to pdfs by manually invoking pdflatex. When I try to go from markdown to pdf via pandoc I get an error about not ...
6
votes
1answer
173 views

unwanted en-dash ligature with lualatex but not with xelatex

I am trying to generate PDF documentation out of Pandoc Markdown README document. Here is MWE: \documentclass[english,]{article} \usepackage[T1]{fontenc} \usepackage{ifxetex,ifluatex} \ifnum ...
2
votes
2answers
633 views

Number equations in pandoc by default

How to get equations written in $$...$$ numbered when markdown document is compiled to PDF file. I do not need to make references for equations.
1
vote
0answers
168 views

How do you override formatting of PDF with Pandoc and an external template [closed]

I'm using an external template with Pandoc to customise the title page, headers, footers, etc. when generating PDF's from Markdown. However, I have not been able to adjust the way quotations look, ...
9
votes
2answers
2k views

TeX to epub conversion

I want to create epub document, but I only have a tex file (unfortunately, mathematical formulas, and drawing diagrams). I tried pandoc: tex to html, tex to xhtml, to xml, but nothing works properly. ...
2
votes
0answers
209 views

How to change the background color and border of a Pandoc-generated blockquote?

This question has a possible solution, but it's for the ConTeXt writer, which I can't use. ConTeXt: How to change the background color and border of a Pandoc-generated blockquote? What would be a ...
3
votes
0answers
433 views

How can I style tables in LaTeX beamer?

I use pandoc to generate LaTeX beamer presentations. To get the look I want I have created a theme myself. I have managed to get the look and feel I want in my presentations but I cant figure out how ...
1
vote
0answers
254 views

Why are my hyper references pink?

I have this in the heading of my document: \usepackage[unicode=true, colorlinks=true, linkcolor=blue]{hyperref} Yet the links look like this: Why the pink color ...
2
votes
1answer
892 views

pandoc support for LaTeX ctable?

I use ctable to make my LaTeX tables. My ultimate goal is to produce a presentation of HTML5 slides. The tables that I need to present are all created in LaTeX with ctable. For example, I have my ...
2
votes
0answers
633 views

How can I handle the “Undefined control sequence” error in pandoc?

My first lines in convert.md format document are: \thispagestyle{empty} %line1 \changepage{}{}{}{-1.5cm}{}{2cm}{}{}{} %line2 ![The Little MongoDB Book, By Karl Seguin](title.png)\ %line3 \clearpage ...
0
votes
2answers
234 views

ConTeXt: How to place a short caption under a wrapped figure?

This is a follow-up question to a previous ConTeXt solution. That solution dealt with wrapped figures in a ConTeXt document generated from Pandoc Markdown. Now, I would like to extend that solution ...
4
votes
0answers
341 views

Pandoc not exporting bibliography, images and nested sections

I'm a new Pandoc user, primarily for converting .tex files in .odt format. The following command: pandoc -f latex -t odt -o prova.odt roottoptesi.tex Works well apart for the fact that it can't ...
20
votes
1answer
6k views

Adding headers and footers using Pandoc

Pandoc uses Tex as an intermediary step when generating PDF, so I thought asking this question on the Tex part of StackExchange may be the right place. If not, please let me know, and I will delete ...
2
votes
1answer
683 views

Referencing tables in pandoc

Pandoc allows referencing images via inline Latex commands. However, it seems it does not work for tables. I'm aware of several workarounds, including manipulating a resulting TeX file manually, but ...
4
votes
1answer
375 views

ConTeXt: Wrapped text misbehaves at page breaks

On this site, a solution for text wrapping based on descriptions in Pandoc-generated ConTeXt documents was previously formulated. Although satisfactory for a one-page minimum working example, the then ...
3
votes
1answer
310 views

ConTeXt: How to increase line-spacing in title?

Pandoc generates ConTeXT document titles using a standard simple scheme that sets the title in \tfd. I already changed the default font and size of \tfd. However, when a title is so long that it ...
7
votes
2answers
2k views

Adding page breaks to pandoc latex template when converting markdown

Perhaps I'm missing something, but is there a way to either (a) ensure that pandoc places pagebreaks before level 1 and level 2 headers in markdown (#,##), or (b) hide \newpage from other markdown ...
5
votes
2answers
526 views

ConTeXt: Figure scaling to width and text wrapping for Pandoc-generated documents

Consider the following Pandoc-generated ConTeXt document: \setuppapersize [A4][A4] \setuplayout [width=middle, backspace=1.5in, cutspace=1.5in, height=middle, topspace=0.75in, ...
4
votes
1answer
594 views

ConTeXt: How to change the background color and border of a Pandoc-generated blockquote?

Consider the following minimum working example containing a blockquote as defined in a Pandoc-generated document: \setuppapersize [A4][A4] \setuplayout [width=middle, backspace=1.5in, ...
3
votes
1answer
113 views

How to measure the vertical space that was typeset without placing it into an environment?

I would like to achieve automatic clearing of a {floatingfigure} at the beginning of a new \section for texts automatically created by Pandoc. For this to work, I am in need of a way to measure the ...
3
votes
1answer
133 views

How can I redefine a list item to normal text in order to enable proper wrapping?

Consider the following LaTeX code, the bottom half of which was generated from MarkDown by Pandoc. \documentclass{article} \usepackage{mwe} \makeatletter ...
2
votes
0answers
242 views

How to maintain HTML internal links when converting with Pandoc

I am trying to convert from html to pdf with Pandoc. The output is pretty nice, still with the command pandoc index.html -o output.pdfI lose all my internal links (from table of contents to chapters, ...
7
votes
3answers
337 views

How can I prevent the next paragraph from overwriting the image of a description label?

LaTeX code generated from MarkDown by Pandoc: \documentclass{article} \usepackage{mwe} \makeatletter \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth \else\Gin@nat@width\fi} \makeatother ...
4
votes
1answer
543 views

Pandoc caption for code blocks [closed]

Consider the following code block: ~~~~{.Python .numberLines caption="test"} def myfunction(var): """ Oh how awesome this is. """ pass ~~~~ The code gets formatted correctly in the Pdf, but the ...
2
votes
0answers
30 views

Bottom margin overflow while using a figure and a table [duplicate]

I'm using Markdown and Pandoc to create LaTeX PDF Documents. In the progress I encountered a margin overflow. I could reduce the problem to a small example file. The problem seems to occur when the ...
4
votes
1answer
220 views

Are there any programs that will attempt to preprocess simple LaTeX?

I find myself in the awkward, although apparently not uncommon, position of being ordered to write, or at least end up with, documentation in the Word format. I don't have anything that fancy in my ...
4
votes
1answer
865 views

Pandoc: minimal headers for LaTeX output

I'm taking mediawiki text and trying to convert it to latex in Pandoc. All seems to be reasonably well. However, I had to make sure to use: \documentclass{book} \usepackage{hyperref} ...
3
votes
0answers
587 views

Document Bibliographies with CJK and Pandoc

Very new to LaTeX and only limited exposure via pandoc, I'm converting markdown English article that contains Japanese and Korean bibliography sources to PDF via LaTeX using pandoc, which allows the ...
2
votes
1answer
2k views

pandoc converting tex to docx with references - not enclosed in parentheses / brackets

I am trying to convert a pretty basic latex file to docx format using pandoc and am having a slight issue with the in-text citation not being enclosed in parentheses () tex doc minimal example ...
11
votes
2answers
842 views

Changing “language” settings used by Pandoc for generated output [Pandoc template variables]

This is not directly a LaTeX question since I use Markdown to format my text but this subpart of "stack" seems the most correct place to ask my question. I generate my PDF with Pandoc from markdown ...
8
votes
1answer
179 views

Declare additional Unicode characters in verbatim environments in a Pandoc-generated file

I generate a PDF document via LaTeX with Pandoc. I want to use some additional characters in verbatim environments that are not available by default. Here's a sample input: Math: $\downarrow$ ...
3
votes
1answer
458 views

Force table's width (pandoc / default.latex)

Pandoc is working great at the moment, but I've got a problem for large tables. Most of the time the tables get rendered outside of the page. I know it has something to do with p|cm=8 or something, ...
1
vote
0answers
528 views

Any way for pandoc to print numbered sections in plain text output? [closed]

Here is my LaTeX input: \documentclass{article} \begin{document} \section{foo} \section{bar} \end{document} I run the following command using pandoc 1.11.1: pandoc -o test.txt -t plain -N test.tex ...
2
votes
0answers
1k views

Latex to HTML using Pandoc [closed]

I have a bunch of tutorials I have written and they are written in Latex. Now I want to convert them to HTML and to Blogger also. I heard about Pandoc and decided to try it. Below are my results : ...
5
votes
0answers
539 views

Converting RMarkdown to LaTeX without additional packages [closed]

I'm wanting to convert a markdown document into LaTeX for inclusion in my thesis. Unfortunately, the output of my command, pandoc -f markdown -t latex --standalone msim-eg.md > msimeg.tex ...
0
votes
1answer
573 views

How to set a different directory in Pandoc

Someone suggested me to convert .tex files into Word documents via Pandoc. However, I don't understand how to set a different directory for Pandoc to search the .tex file… And I cannot find the Pandoc ...
13
votes
2answers
2k views

Pandoc: How can I get numbered LaTeX equations to show up in both PDF and HTML output

To make a numbered equation in Pandoc, I defer to using pure LaTeX: \begin{equation} a^2 + b^2 = c^2 \end{equation} In PDF form, it gives a nice numbered equation, however, this equation doesn't ...
53
votes
6answers
34k views

How to convert a scientific manuscript from LateX to Word using Pandoc?

I have a typical scientific manuscript in a LaTeX .tex file, and I need to convert it to MS Word .doc file. The reason for having to convert to MS Word is I'm submitting the manuscript to an academic ...
5
votes
2answers
2k views

Convert Markdown + Embedded Latex to PDf and Doc

I would like to convert math.stackexchange style plain text markdown with embedded latex equations to PDF and Doc formats. I've tried using pandoc, but keep getting bad PDF's. For example, if I type ...
5
votes
0answers
3k views

How do I set variables in latex template used for pandoc markdown to pdf conversion [closed]

I'm sorry if this is a bit of a pandoc question, but I'm hoping you tex users have some familiarity with latex templates within pandoc. I'm very new at this, but am excited to get a good work flow ...
2
votes
3answers
3k views

Latex Figures appear before text in pandoc markdown

I am using pandoc to convert markdown to pdf, but I need to place some figures with more formating than the ![Alt text](image.png) so I use something like this: # Document with figures ...
13
votes
3answers
336 views

Gobbling an argument if it starts with #

My problem comes from pandoc and markdown, but it is not directly related with these tools, but instead with "customizing" the resulting pdf via some tex macro programming, so I think it is on topic. ...
1
vote
0answers
946 views

Pandoc and docx (Word for Mac 2011) [closed]

I'm trying to use Pandoc to convert Markdown with LaTeX math in it ($\alpha$, etc) into Word docx, but every equation I enter comes out broken in the resulting docx file. I even tried using the ...
0
votes
1answer
538 views

Macron in pandoc markdown. (Mh\={a}v\={\i}ra) [closed]

I'm using pandoc markdown to generate PDF, and I cannot get it to accept my special characters. For example, I want to include Mah\={a}v\={\i}ra in my document to place macrons over the appropriate ...
6
votes
2answers
7k views

How to interpret message “Invalid UTF-8 stream” when trying to convert a tex-file to a rtf-file using pandoc?

I want to convert a .tex file into something that is possible to open in MS Word (.doc, .docx, .rtf, ...) by means of the pandoc command line software. A minimum .tex file is attached below. I use ...
41
votes
5answers
8k views

Recommended workflow? LaTeX -> ePub with math viewable on iPad

This started as a comment in an older thread, but I thought I repost it here as a question to the forum... I'm looking for a workflow that will take me efficiently and reliably from existing LaTeX ...