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

0
votes
0answers
19 views

Error using pandoc when converting from markdown topdf

I am trying to convert a document from markdown to pdf. I use this as a yaml metadata block at the top: --- author: Vamsi Deepak Ampolu title: resume papersize: letter documentclass: article ...
3
votes
0answers
30 views

Margin references in tufte-handout with pandoc

I'm trying to convert a Markdown file to PDF using pandoc and a tufte-handout template. I would like to have references in the margin, instead of in the end of the document, is this even possible in a ...
3
votes
1answer
29 views

Chaining citations in pandoc [closed]

I use pandoc to convert a mardown file into latex. for that I am using the [@author_journal_year] format to grab citations automatically. But as far as I see there doesn't seem to be a way to tell ...
1
vote
1answer
25 views

nbconvert-generated labels fail with babel, work without it or with large margins

I'm using ipython nbconvert (which uses pandoc) to transform an IPython notebook and the document code contains the following lines \subsection{Vytvářeni polí ...
4
votes
1answer
442 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 made ...
1
vote
1answer
335 views

PDF form as background image - filling the form fields

I'd like to elaborate my proof of concept so that I can be confident with selected tools/packages for this task before I start implementing it. Scenario. I have several documents (each document has ...
1
vote
1answer
36 views

pandoc citations inside table

How can I force pandoc to process the citations that are used inside a table/tabular environment? A minimal example is: \begin{table}[t] \begin{tabular}{|l|l|} \hline [@referencekey] & ...
0
votes
0answers
21 views

Use custom font family in markdown with pandoc and Ubuntu/Linux Mint? [duplicate]

I have some custom fonts that I've installed on my system, and I'd like to utilize them when writing in Markdown. Currently I'm using pandoc and texlive extensions to convert Markdown to nice looking ...
0
votes
0answers
20 views

I am using pandoc to convert my docx documents to TeX, tables are not converted correctly, any hints?

I have discovered pandoc which I use to convert docx files to tex files. There is some manual work necessary afterwards, mainly adjusting the captions to have them in the chapter, section, subsection, ...
0
votes
1answer
20 views

Replacing figure with figure* globally in Pandoc-created documents

I use Pandoc to create TeX files as chapter templates that are then fed back into Pandoc to create the final PDF. This sets some limitations, since some of the ways Pandoc writes TeX is hard-coded. ...
2
votes
0answers
46 views

Pandoc: LaTeX to HTML - no images shown

I use pandoc to convert my LaTeX file to a plain HTML file. Everything works fine so far. However, images and references are not parsed. I use pandoc guide.tex -o guide.html to generate the HTML ...
1
vote
0answers
29 views

How do I include custom command declarations in Pandocs YAML header? [closed]

I would like to declare a custom command in Pandocs YAML header like so: --- title: Materials and methods author: Marius Hintsche ...
0
votes
2answers
370 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$$ (@) ...
70
votes
9answers
56k 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 ...
4
votes
1answer
520 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 ...
1
vote
0answers
28 views

How to change bibliography locale in pandoc? [closed]

I'm trying to render a document from MarkDown to PDF using pandoc: pandoc my-document.md \ --csl=citation-style.xml \ --standalone \ --smart \ -V documentclass=report \ -f ...
0
votes
1answer
52 views

can pandoc convert txt to latex input files?

i've just installed Pandoc on Kubuntu 14.04 and envision using it on a sort of homebrew markdown.txt files that will be used as chapters in a book (using koma script scrbook). The book already has a ...
2
votes
1answer
224 views

Lualatex not found

When I run pandoc markdown.md --template=my-template.tex --latex-engine=lualatex -o test.pdf I get the following error message: pandoc: lualatex not found. lualatex is needed for pdf output. I ...
0
votes
0answers
77 views

align, aligned and R Markdown

I have been working in R Markdown, which supports LaTeX, including in display mode. I had the following snippet for displaying aligned equations $$ \begin{align} a_1 &= \beta_0 \\ b_1 &= ...
2
votes
0answers
72 views

pandoc managed markdown to latex to PDF workflow fails to port simple pipe tables

I'd like to setup a simple workflow allowing me to type document segments in their own files using markdown, then convert them to latex using a common library such as pandoc, before finally collating ...
4
votes
2answers
1k 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} ...
1
vote
1answer
49 views

How to change Pandoc's / hyperref's reference format?

\frontmatter As described in a related question, pandoc turns Markdown links such as [TeX.SE](https://tex.stackexchange.com/) into \href{https://tex.stackexchange.com/}{TeX.SE} However, in ...
1
vote
0answers
124 views

Error 43 while knitting a markdown to pdf in a R project created on mac and run on Windows

I created a R project which outputs some plots to pdf using rmarkdown::render with an .Rmd file. I shared the folder when the R project and all the relative files are kept to a colleague using Google ...
2
votes
1answer
69 views

Macro to emulate \SI macro of siunitx package

I am using pandoc to convert a .tex document into a .docx. The tex document uses the siunitx package. As pandoc can not interpret the macros in the package, I have to write dummies for the macros I ...
3
votes
1answer
96 views

Using Pandoc and Xetex with Tufte-Handout class gives fontspec error

I'm using Pandoc with xetex to attempt to create a pdf from a markdown document. In the metadata of my document I have the following: --- documentclass: tufte-handout classoption: nohyper --- The ...
23
votes
3answers
2k 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 ...
1
vote
0answers
41 views

pandoc: “template” error, unexpected x

When I run make on my Pandoc file, I get the following error. pandoc: "template" (line 113, column 7): unexpected "x" expecting "$endfor$" make: *** [output.pdf] Error 1 As far as I can tell, ...
2
votes
1answer
300 views

Adding a logo to a title in Pandoc's PDF output

I'm using Pandoc to convert Markdown to PDF via LaTeX. I'm very happy with the result, particularly now I've discovered Pandoc's support for YAML document metadata with which you can make substantial ...
7
votes
3answers
288 views

The longtable environment pushes content below it into the bottom margin of a page

When I have two floating environments on a page (one figure and one table), the longtable can push the content below it into the bottom margin of the page. Here is a minimal example: ...
5
votes
0answers
1k 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
1answer
60 views

Error with the pandoc beamer template when using bibliography

If this minimal working example saved in test.md file: # Part one ## Section One ### Frame one - Items... [@Publication2001] is compiled with this literature.bib file: ...
2
votes
1answer
111 views

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 ...
4
votes
4answers
4k 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 ...
1
vote
1answer
52 views

Expand command in a spreadtab formula

Long story short: I'm trying to come up with a system to generate a LaTeX table dynamically from a YAML file through Pandoc and do some calculations using the spreadtab package. So far so good, the ...
0
votes
0answers
72 views

Pandoc: Convert tex to word document with in-document bibliography

In a tex document I used bibliography as follows in the end of document. Now, when I convert the tex to docx using Pandoc, the output file doesn't contain the citations (However it lists the ...
5
votes
3answers
4k 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 ...
0
votes
1answer
111 views

Pandoc APA Latex [closed]

This may not be the right forum to ask, if not, apologies. I am using Pandoc to convert markdown to a PDF via Latex. I am using the citeproc-pandoc filter to manage my bibliography. I am using APA 6 ...
1
vote
1answer
88 views

How to create an environment to dump a longtable sideways after currentpage, which works under pandoc

Sorry for the long title (and even longer question), but this is a rather complex subject and requires a bit of elaboration. Goal: I want to define a pair of latex macros which I can write in the ...
1
vote
1answer
22 views

Use Note field in Bibtex with CMS via Pandoc

I'm super confused with BibTeX by now. I am using pandoc-citeproc to generate my PDFs from Markdown and everything works fine, except that the note field doesn't show up. I want to keep using ...
2
votes
0answers
45 views

Limit the title in \listoffigures to the first sentence of the caption

I would like to do the same thing as described here : Automatic way to use the first sentence of the figure caption as the short caption. Which mean that I need to limit the title of the figures in ...
4
votes
1answer
89 views

RefugeePhrasebook - help needed to produce PDF [closed]

Hello everyone (and sorry for x-posting), I want to call your attention to a volunteer project that has been very active in the last couple of weeks, aiming to collectively produce and distribute ...
2
votes
1answer
100 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 ...
8
votes
2answers
1k views

How to change emphasis commands in pandoc's LaTeX template?

I want to change the default strong emphasis command in the conversion from pandoc's markdown to LaTeX, say, from \textbf to \textsc. Since running pandoc in the source file prints into the .tex file ...
0
votes
1answer
75 views

pdfpages does not correctly scale inserted pdf pages

I use the following code : \usepackage{pdfpages} ... \includepdf[pages=-]{article.pdf} I also tried many pdfpages options such as fitpaper, templatesize, noautoscale, scale and so forth. I also ...
2
votes
0answers
86 views

Pandoc breaks hyperlinks in LaTeX file conversion

I want to convert a (quite complex) LaTeX file to epub using pandoc with: pandoc -S file.tex -o file.epub I have not used markdown in the creation of the tex file, however. When I, now, check the ...
3
votes
0answers
91 views

How do I move table caption placement in pandoc-converted docx file?

I have the following table: % latex table generated in R 3.2.2 by xtable 1.7-4 package % Tue Aug 25 12:42:23 2015 \begin{table}[ht] \centering \begin{tabular}{rr} \hline & \# of Applicants \\ ...
2
votes
0answers
91 views

SOLVED - Knitr/pandoc bibliography problem

I would try to convert the way I write my scientific articles from Sweave/LaTeX to knitr/pandoc. I've been able to reproduce almost everithing with the exceptions of the references. I googled a lot ...
0
votes
0answers
27 views

Ensuring Pandoc will capitalise 'ibid' nested at the beginning of a footnote

Like a lot of people, I write documents in Markdown and then use Pandoc to convert to LaTeX. Pandoc renders Markdown citations in the format [@citekey] as \autocite{citekey}. I use a footnoting style ...
7
votes
0answers
5k 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 ...
1
vote
0answers
100 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 ...