Skip to main content

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.

Filter by
Sorted by
Tagged with
230 votes
15 answers
413k 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 ...
Fred's user avatar
  • 2,697
34 votes
3 answers
3k 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 ...
Serge Stroobandt's user avatar
29 votes
2 answers
27k 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 ...
Bruno's user avatar
  • 1,975
5 votes
1 answer
1k 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 ...
Serge Stroobandt's user avatar
17 votes
1 answer
2k views

How to fix kerning of comma/colon after quotes?

How to fix kerning of comma/colon after quotes? Hello, I’m a relative newbie in latex and am trying to reduce the space between closing quotes and colon/comma, but by a general way in the preamble, ...
ogoid's user avatar
  • 361
9 votes
2 answers
6k views

How to use PanDoc to derive output from LaTeX and TikZ to a DOCX file?

I have a LaTeX document with the following code which generates a picture using TiKZ. (Minimum working example here) \documentclass{article} \usepackage{amsmath,stanli} \begin{document} Analyse ...
Indian's user avatar
  • 627
61 votes
3 answers
64k views

How to set a font family with pandoc?

I have some reports written in MultiMarkDown and want to convert them to pdf (via xelatex) with pandoc. As I am in an professional environment, a certain font-family is mandatory. The fonts are ...
Oliver's user avatar
  • 713
44 votes
5 answers
36k 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 ...
pimpampoum's user avatar
16 votes
2 answers
3k views

Using \lstinline inside a \item

I know about the fragility of verbatim-like commands, and that they should not be used as an argument of another macro, but a need to write a description environment in which the terms to be defined ...
JLDiaz's user avatar
  • 55.9k
13 votes
3 answers
1k 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. ...
JLDiaz's user avatar
  • 55.9k
76 votes
2 answers
93k 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 it....
Jack's user avatar
  • 1,035
46 votes
5 answers
14k 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 ...
Grant Petty's user avatar
  • 1,081
13 votes
2 answers
17k views

LaTeX and pandoc templates [closed]

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!
Erik Campobadal's user avatar
7 votes
3 answers
1k 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 \...
5 votes
1 answer
3k 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, cutspace=1....
Serge Stroobandt's user avatar
38 votes
3 answers
17k 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 ...
clstaudt's user avatar
  • 1,202
28 votes
4 answers
26k 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 This ...
Leosar's user avatar
  • 457
20 votes
2 answers
17k 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 ...
Peter's user avatar
  • 323
16 votes
2 answers
18k 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 --bibliography=...
marhop's user avatar
  • 411
9 votes
1 answer
2k 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 environment. Unfortunately, I can't use listings package (due to Cyrillic ...
kvaleev's user avatar
  • 449
8 votes
1 answer
3k views

Best workflows or tools to generate an html web page from a complex latex document like thesis

I'm really interested to publish my thesis on a website HTML + CSS (when it's done) augmented with tools to annotate it, like the philoweb initative (see here, and here). I know the universal ...
reyman64's user avatar
  • 539
7 votes
1 answer
2k views

How to use pandoc to convert .tex file, containing a TikZ figure, to a .docx file?

What I want to do is to convert a .tex file, containing several TikZ figures to a .docx-file using pandoc. I have tried to follow the pandoc documentation and to use lua filters to achieve this. ...
Boreq's user avatar
  • 93
6 votes
2 answers
1k views

Getting Hebrew Support Working with Pandoc

Does anyone know why pandoc, with the xelatex engine might not generate hebrew characters while directly calling xelatex does? That is, I have a simple .tex file with some hebrew in it. \...
Alana Storm's user avatar
4 votes
2 answers
1k 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, ...
Serge Stroobandt's user avatar
4 votes
2 answers
3k views

Pandoc - Convert XeTeX to HTML

I posted the question here How to Convert XeTeX to HTML However I tried something different so decided to ask the issues with the results as a new question. So far my XeTeX file is nicely getting ...
Aku's user avatar
  • 11.1k
3 votes
1 answer
420 views

Obtaining babel-french automatic spaces before punctuation when using pandoc

I'm trying to get pandoc (which converts Markdown to PDF using LaTeX) to produce PDFs which respect French typesetting rules concerning non-breakable spaces. The suggestions here do not seem to work, ...
user3078439's user avatar
3 votes
1 answer
3k views

From tex to docx using pandoc. Bibliography issue

I am trying to convert a tex file to docx using pandoc. The tex file contains a bibliography, which is in an external file, named mybib.bib, but located in the same folder of the main document. The ...
Dario's user avatar
  • 1,340
3 votes
1 answer
459 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 ...
Serge Stroobandt's user avatar
2 votes
1 answer
1k views

Pandoc: Exporting Tikz Figures and Other Environments from Latex to other formats

How can I alter the answer from this question (which uses a lua-filter), so that it outputs tikz figures in a docx document, but also extracts content from non-pandoc friendly environments (as it does ...
Chris Sewell's user avatar
2 votes
1 answer
725 views

Saving and restoring font settings

I'm using Pandoc to generate a PDF from a Markdown source file, and passing in a custom LaTeX template (effectively a tweaked version of the Pandoc default) to change the style of the final PDF. I ...
pwaring's user avatar
  • 123
2 votes
1 answer
1k views

Pandoc with --citeproc ignores \cite commands

In short: is there any way to use citeproc with "pure" LaTeX bibliographical commands? Longer version: in the following markdown file, the [@Test] "native" pandoc command is ...
Clément's user avatar
  • 5,651
1 vote
1 answer
458 views

Problems with # inside a verbatim that's inside a note

I'm trying to use a # character inside a verbatim that's inside a note : \begin{frame}[fragile] \note{\begin{verbatim} # \end{verbatim} } \end{frame} This produces the following errror : > ! ...
daamien's user avatar
  • 11
0 votes
0 answers
2k views

converting tex to xdoc using pandoc (math formulas are not converted)

I just started using pandoc and I followed every step in this page. First of all we create a text file named test1.md.txt # Test! This is a test of *pandoc*. - list one - list two Convert it to a ...
Sepideh Abadpour's user avatar
66 votes
3 answers
31k views

(error) \tightlist (converting .md file into .pdf using pandoc)

I was converting 'lecture1.md' file I made via Rstudio into 'lecture1.pdf' using Pandoc at Mac Terminal. and I got this error message : ! Undefined control sequence. <recently read> \tightlist ...
inmybrain's user avatar
  • 772
28 votes
4 answers
14k 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 ...
Matthijn's user avatar
  • 405
28 votes
6 answers
24k 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 ...
user1027169's user avatar
22 votes
1 answer
15k views

How to convert LaTex to word using PanDoc and keep citations as numeral

I use Pandoc to convert a tex file to docx. I used the following command pandoc -s foo.tex --bibliography=foo.bib -o foo.docx But in the output word document, citation are in format of (author date),...
Ahmad's user avatar
  • 1,013
21 votes
3 answers
29k views

Deeper levels of (sub)sections don't appear in the LaTeX output of pandoc. Why?

I use pandoc to create latex and PDF from Markdown. Markdown, being designed for HTML, allows 6 levels of headers H1...H6. But when converting to PDF, via tex, I get only three levels: 1 (\section), 1....
berkes's user avatar
  • 385
19 votes
1 answer
13k 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 ...
lucasoldaini's user avatar
17 votes
3 answers
15k 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 ...
Bob's user avatar
  • 213
16 votes
1 answer
10k views

How to underline links with pandoc?

Is there any way to underline links with pandoc? [Geogebra](http://google.com) I get this but I prefer __Geogebra__ (__ means underline)
somenxavier's user avatar
10 votes
1 answer
3k views

Automating extraction of Markdown-formatted tables from an (incomplete) LaTeX document

I am trying to automate the presentation of my note taking. I would like to be able to regex all Pandoc tables in my document, add LaTeX around them, compile them and show the result in a PDF. ...
Léo Léopold Hertz 준영's user avatar
10 votes
4 answers
4k views

Fun unicode characters with pandoc

Silly question: I want to use a heart (♥) character in my presentation. I'm already using xelatex as engine so it doesn't complain for the character itself but it doesn't render it. Just a blank ...
tutuca's user avatar
  • 211
10 votes
1 answer
3k views

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 ...
emher's user avatar
  • 344
9 votes
2 answers
3k 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, ...
askewchan's user avatar
  • 221
9 votes
4 answers
2k views

pandoc, markdown: create self-contained .bib file from cited references

In Latex there are a variety of tools that can be used to create a self-contained .bib file for the cited references that are extracted from several larger .bib files; see this popular tex....
user101089's user avatar
  • 1,237
9 votes
2 answers
13k views

How can I reformat a table? Using Markdown > Pandoc > PDF

I am using Markdown to write a document. It's in lots of MD files which are then combined into 1, then sent to Pandoc as follows: pandoc -s combined.markdown --from markdown+table_captions+...
muteboy's user avatar
  • 123
9 votes
1 answer
4k 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 ...
mre's user avatar
  • 443
7 votes
3 answers
12k views

Resize all images in Latex to a percentage width

I am auto-generating multiple tex files using pandoc (one tex file for each of my chapters). Pandoc generates this tex code for each image. \begin{figure}[htbp] \centering \includegraphics{images/...
user avatar
7 votes
2 answers
7k 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 ...
Robert S. Barnes's user avatar