Questions tagged [pandoc]

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.

Pandoc is a markup converter which can convert between a variety of markup formats. It is capable of outputting LaTeX and ConTeXt, and it is possible to use a limited amount of LaTeX syntax in its input.

As pandoc is not a TeX program, questions about pandoc itself are not on-topic for this site. As pandoc can be used to produce LaTeX, questions about how to handle that output are on-topic.

As an example of an on-topic question, since pandoc is producing the output it is often desirable not to edit the output itself. Thus one may wish to redefine certain macros so that the result of running TeX on the pandoc output changes without having to change the output from pandoc.

For more information on pandoc, see http://johnmacfarlane.net/pandoc/index.html.

658 questions
76
votes
2 answers

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 it. How do you specify that Pandoc should use a…
Jack
  • 1,025
28
votes
6 answers

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 show up at all in the HTML output because the…
21
votes
3 answers

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 the following command in a standard command window…
myotis
  • 936
16
votes
2 answers

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 LaTeX solution to achieve the same? EDIT: pandoc…
Jan
  • 261
13
votes
2 answers

LaTeX and pandoc templates

I'm wondering where can I edit the default template of LaTeX in pandoc (ubuntu) I know this is not relevant on TeX forum, but any help would be welcome, because I'm kinda lost. Thanks!
10
votes
1 answer

Pandoc LaTeX to .docx, change font size

I am using Pandoc to convert a LaTeX document to .docx, but i have not been able to figure out how to change the font size. An MWE looks like this \documentclass[10pt]{article} \begin{document} Hello world \scriptsize Hello…
emher
  • 344
8
votes
4 answers

Pandoc: does not include input files

I have a LaTeX root file that refers to many other single files. Those files are included/referenced by \input{somefolder/somefile} But somehow Pandoc is generating the output just from the main tex file (the entry point) and does not follow the…
Matthias
  • 381
7
votes
2 answers

Converting TEX to TXT using Pandoc

I am trying to convert a .tex file into a .txt file, so that it could be directly copy pasted into environments that supports only MathJax. For example blogs, Mathematics Stackexchange, stackedit.io etc. But I am having problem with user defined…
hrkrshnn
  • 205
7
votes
2 answers

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 pandoc mmn11 -o mmn11.pdf, I get an output file…
Robert S. Barnes
  • 385
  • 1
  • 5
  • 10
6
votes
1 answer

LaTeX to HTML via Pandoc : handle a custom command

I am using Pandoc to convert a .tex document to html/epub. In my text I make frequent use of a custom command, \subchpbreak with the following definition: \newcommand{\subchpbreak}{\fancybreak{\rotatebox[origin=c]{90}{\S}}} I am wondering if there…
6
votes
0 answers

bibliographies and siunitx in pandoc

I'm using pandoc to convert my TeX file in a .docx file. The formatting, equations and images work very well, but I have some issues: References to images don't show properly. They show only the name of the image file, not the number, neither in…
Daniele
  • 1,001
5
votes
1 answer

How to use pandoc-citeproc in raw latex block of a markdown document?

I'm at a loss. It's probably not possible out of the box, so I'm looking for a workaround. In my markdown document, that I use with pandoc to generate a PDF, I want to include a figure with subfigures like…
4
votes
2 answers

What would a minimum latex template must contain in order to successfully convert markdown to pdf?

pandoc -D latex contains a lot of things, most of what I don't need. I am trying to clean it up to a minimum to make it easier to edit. I thought this would be the most minimum to get started…
4
votes
0 answers

styling verbatim with background color

I am using pandoc to convert Markdown documents containing code blocks to PDF, and the intermediate TeX surrounds the code with \begin{verbatim}...\end{verbatim}. How can I stylize and format these sections to have a background color or a frame…
Chris
  • 71
  • 3
4
votes
0 answers

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, from text to footnotes, etc). Is there any way to…
Francesco
  • 4,624
  • 4
  • 35
  • 66
1
2 3 4