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

1
vote
1answer
36 views

Unexplained “NULL” in pandoc.table in ioslides [on hold]

I'm attempting to use pander::pandoc.table() in a ioslides slide and I can't figure out how to get rid of the NULL caption at the bottom of the table. With this example code: ```{r, results='asis', ...
1
vote
2answers
31 views

Pandoc, Section Spacing

By default the vertical spacing on sections is quite large with the pandoc default.latex template. Is there a way to pass an argument to reduce the size of the spacing? I see that there is a titlesec ...
3
votes
1answer
50 views

Undefined control sequence error with mhchem and hyperref, \ce within \section{}

I get an "undefined control sequence" error when trying to use the mhchem and hyperref packages together, when \ce is within a \section{} label. A minimum example that demonstrates the problem: ...
0
votes
0answers
53 views

Pandoc equation numbering style

I use pandoc to render .pdf files from markdown. Example input: #Fudamental matrix ##Epipolar constraint in pixels (@) $$(K_{0}^{-1}x)^{T}E(K_{1}^{-1}x')=0$$ (@) ...
0
votes
1answer
50 views

Transform markdown to pdf with APA style and bibtex support

According to pandoc's documentation, raw LaTeX can be used to insert citations inside a markdown file with \cite{foo}. This is what I've tried to accomplish that: pandoc -s --template=template.latex ...
3
votes
2answers
123 views

Latex default citation and bibliography style with Pandoc

I write a paper in Markdown and convert it to PDF via Pandoc and Latex with the following commands to get Latex's (well, BibLatex's) default citation and bibliography style: pandoc -s ...
2
votes
0answers
78 views

Convert Latex with lots of math to web-friendly format

My math notes have a bunch of align environments (proofs) and I hope to post them on the Web. Currently I'm thinking about using pandoc to convert tex to markdown, then use jekyll to build my site. ...
0
votes
0answers
24 views

bibbliography and siunitx in pandoc

I'm using pandoc to convert my tex file in a .docx file. The formatting, equation and image works very well, but I have some issue: 1)references of images don't showed properly. It show only the name ...
4
votes
2answers
60 views

Strange output when writing \texttt{“avg”} in spanish

I'm using pandoc, which parses markdown into LaTeX. In this case I configured pandoc to use babel in spanish and wrote `"avg"` which is translated by pandoc as \texttt{"avg"}. When I do this I obtain ...
1
vote
1answer
67 views

\author{} with Pandoc

I can't seem to get Pandoc to render the \author{} LaTeX command to a pdf properly. Here is my input: \documentclass{article} \usepackage{geometry} \usepackage{fancyhdr} \usepackage{amsmath ,amsthm ...
5
votes
1answer
76 views

\setuppagenumbering[location=] causes problem in Context

I am new to tex world. I am converting a markdown to pdf, first using the pandoc to create the text and then ConText to generate the pdf. I hope to release the template to wider pandoc audience if I ...
0
votes
0answers
38 views

Copying the style of amsthm using \newcommand \renewcommand

I'm trying to exactly duplicate the layout of amsthm without using this package. I want this, because pandoc doesn't support amsthm (yet), and pandoc is used in the online LaTeX editor ...
0
votes
0answers
144 views

Insert raw LaTeX between beamer slides, using pandoc markdown

I'd like to insert some raw latex (in my case \appendix) between two frames in a beamer presentation. Normally, any latex code in the markdown document is passed through into the final .tex document, ...
1
vote
0answers
139 views

Converting tex to docx using pandoc - why are images not converted?

I'm converting a tex document into docx with pandoc. It works nicely, but my figures are not included in the docx. The command I am using is: pandoc -o output.docx paper.tex. The figures are ...
1
vote
1answer
253 views

tex to docx via pandoc with ACM template

For unfortunate reasons, I need to convert a latex document to word. The document was created using an ACM template (available here); I've read bread thing about pandoc and I was hoping to use it to ...
0
votes
0answers
60 views

Vertical alignment of frame content within a custom theme

I'm making a presentation with rmarkdown (in RStudio) and then compiling it to pdf. I'd like to have my frames vertically top-aligned. With beamer only, I'd do that with \documentclass[t]{beamer} but ...
2
votes
0answers
759 views

Making MiKteX pdflatex on Windows available to cygwin

I currently have a project with a workflow that uses pandoc in its Makefile to convert text from Markdown to LaTeX to PDF. This requires that a LaTeX engine be present in my path, or specified with ...
1
vote
0answers
72 views

How can $if$ and $else$ both be true?

I am looping through authors from YAML, but allowing for a standard block in my template. My author block looks like this: \author{ $for(author)$ $if(author.name)$ ...
0
votes
0answers
132 views

Pandoc: Markdown to PDF: select code without select number into code block

i want to generate the code block and i try example and it work. but when i try to select the code from the pdf, the number also get selected. how to generate code block that when select the code w/o ...
1
vote
0answers
133 views

Convert pandoc-style citations to the LaTeX cite format

I have a Markdown document with pandoc-style citations such as [@johndoe2014]. This documents needs to be converted to LaTeX for submission to a scientific journal. The LaTeX template of the journal ...
1
vote
1answer
52 views

floatrow is not rendering captions correctly [closed]

I'm having a couple issues in a latex document being converted to a pdf. I'll put each in separate posts. The first: I can't get my captions to appear over the table. I've Goolged this, and the ...
1
vote
1answer
107 views

Processing a tex file automatically

I'm currently writing in markdown and converting using Pandoc, but there are additional replacements that I want to do, as well as fixing some of what pandoc does that I don't like. Does anyone know ...
1
vote
0answers
196 views

How do I get LaTeX / BibLaTeX custom citations to render when converting to docx with Pandoc?

I'm writing a manuscript in markdown, and have a goal of getting output in both pdf and docx formats from it. I'm able to create pdf output without issue (using pandoc to go from markdown to TeX, and ...
2
votes
1answer
109 views

Partial compile latex and bibtex for pandoc

I am working to convert a LaTeX document to word (because that's what the journal requires) and to avoid rewritting all of the equations and citations I want to use pandoc, but pandoc doesn't seem to ...
5
votes
1answer
119 views

Redefine verbatim environment

I have a text with source code, which I would like to display. I am using pandoc, so I have to use either verbatim or listings enviroment. Unfortunately, I can't use listings package (due to ...
1
vote
1answer
200 views

What is the BibTeX source of the CSL example in the Zotero style repository?

I am using pandoc to add BibTeX bibliographies in a chosen CSL style to documents in various output formats. pandoc --bibliography=previews.bib --csl=american-medical-association.csl -o output.pdf ...
5
votes
1answer
156 views

“TeX capacity exceeded” error when converting markdown to PDF using XeLaTeX with russian language

I've installed pandoc and texlive-full packages on recent Ubuntu 14.04 LTS 64bit to convert markdown files with russian language to PDF. Everything works fine when I run the following command: ...
1
vote
2answers
277 views

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 ...
1
vote
1answer
125 views

Add a black border to block quotations?

I have a Markdown file that I'm converting to PDF with Pandoc. And I'd like that the block quotation of the Markdown file get a 1px black border around them in the PDF. I already managed to edit the ...
5
votes
1answer
1k views

Pandoc: Markdown to PDF, without cutting off code block lines that are too long

I'm trying to convert a Markdown file into a PDF file using Pandoc. I have a lot of code blocks in my Markdown. And if I have a line of code that is too long, it will just be cut off in the PDF. How ...
10
votes
0answers
426 views

Why doesn't Pandoc convert citations correctly from Markdown to LaTeX?

Consider the following markdown fragment: Connecting these native implementations to the Python world is enabled by the [Cython](http://cython.org/) toolchain  [@behnel2011cython]. I use pandoc to ...
2
votes
1answer
464 views

difficulty creating PDF of Wikipedia page via LaTeX using Pandoc [closed]

I have a problem converting a Wikipedia page to a PDF using Pandoc. Pandoc attempts to convert web pages to PDF format via LaTeX and the problem I am having appears to be with LaTeX, which is why I ...
4
votes
1answer
319 views

LaTeX + Biblatex bibliography to other formats via Pandoc

I am trying to convert a simple LaTeX file that uses biblatex-chicago for citation formatting to, say, .docx via Pandoc. Unfortunately, I don't seem to be able to find the right invocation of Pandoc ...
6
votes
1answer
1k views

Bibtex to html/Markdown/etc., using Pandoc

It seems that Pandoc is capable of dealing with references given in a .bib file. Yet, I haven't been able to simply ask Pandoc to convert a .bib file into html, markdown or other formats. Is there a ...
2
votes
0answers
146 views

What LaTeX math markup can pandoc translate into MathML?

I'm working with a gitit wiki because we can use LaTeX markup for mathematical formulas. However, I am learning that I can't use such sequences as $\mathbb R$ or $\mathcal A$ or even $\mathbf X$, as ...
25
votes
2answers
1k views

Is LaTeX intended for unattended typesetting?

With markup converters like Pandoc, it is now possible to generate LaTeX documents without ever touching any LaTeX code. However, obtaining aesthetic page breaks for slightly complex documents, ...
2
votes
0answers
447 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
86 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
1k 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
109 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
142 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
425 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
119 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, ...
7
votes
2answers
1k 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
145 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
334 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
153 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
634 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
466 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
188 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 ...