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
0answers
17 views

floatrow is not rendering captions correctly

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
65 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
73 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
28 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 ...
4
votes
1answer
47 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
55 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
79 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
140 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 ...
0
votes
1answer
61 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 ...
3
votes
1answer
129 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 ...
7
votes
0answers
101 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
125 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 ...
3
votes
1answer
88 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 ...
5
votes
1answer
223 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
77 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 ...
21
votes
2answers
897 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, ...
1
vote
0answers
276 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
52 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.
2
votes
2answers
378 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
81 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
107 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
1answer
163 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
74 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, ...
5
votes
2answers
430 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
102 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
219 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
116 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
373 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 ...
1
vote
0answers
259 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
0answers
92 views

Unable to convert HTML + embedded Latex to PDF

This is my code in file foo.html: <!DOCTYPE html> <html> <head><title>Foo</title></head> <body> <h1>Example equation</h1> <div> $$ 1 + 2 = ...
0
votes
2answers
153 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 ...
3
votes
0answers
235 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 ...
8
votes
1answer
2k 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
234 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
290 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
223 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 ...
6
votes
2answers
1k 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 ...
4
votes
2answers
421 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, ...
3
votes
1answer
315 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
93 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
111 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
128 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
258 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 ...
1
vote
1answer
252 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
29 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
180 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
521 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
426 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 ...
1
vote
1answer
980 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 ...
8
votes
1answer
380 views

Change the “language” of Pandoc

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 ...