Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

8
votes
0answers
1k views

Framemaker to LaTeX

I'm a software person who has been tasked with moving a few thousand pages of documentation for a piece of legacy software online. The documentation is all in Adobe Framemaker and yes, there are lots ...
4
votes
0answers
147 views

Making index in Pandoc generated ebook

I would like to make the example I have written in this question to work in Pandoc. When run using pandoc input-tex-file -o output-epub-file, pandoc produces a nice ebook using this tex file. However, ...
4
votes
0answers
917 views

Pandoc template variables within markdown file, not using yaml frontmatter

I know I can use yaml front matter within a markdown file in order to define variables to be used in pandoc templates to generate latex. However is it possible to define those variables in the body of ...
4
votes
0answers
861 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 ...
4
votes
0answers
696 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 ...
3
votes
0answers
111 views

Including an Rmd file in a Rnw file using pandoc

I was trying to follow this example that shows how to write a separate chapter in RMarkdown and then include it in your main RNW file using \include{}. However, I have not been able to get pandoc to ...
3
votes
0answers
54 views

Exporting tables made with dcolumn and multicolumns to docx using Pandox

I am trying to convert a tex-document into a docx-file to share it with some colleagues who do not use TeX and will not do so in the (near) future. At the moment, the best possibility seems to be ...
3
votes
0answers
878 views

Pandoc Markdown Table header background Color

I am using pandoc markdown to convert my documents to pdf. I have tables in the document that required formatting. I was able to create alternative colors for rows. However, I am unable to change the ...
3
votes
0answers
407 views

short version subsection titles for TOC using Pandoc markdown

I have a Thai document in markdown with rather long subsection titles and would like a shorter version for the Table of Contents. In Pandoc I am exporting to pdf, epub and html. Is my best solution ...
3
votes
0answers
592 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 ...
3
votes
0answers
3k 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 %...
2
votes
0answers
118 views

Pandoc Latex: Overflow in Longtable

I use pandoc with some custom LaTeX template to generate a PDF Table. Hence, I cannot easily influence how Pandoc generates the table code, but instead I can change the configuration in the Latex ...
2
votes
0answers
462 views

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 ...
2
votes
0answers
385 views

“Please (re)run BibTeX on the file(s)” with Pandoc

I'm trying to use Pandoc to generate an MLA-styled paper from a Markdown document, with LaTeX as an intermediary. Everything is working perfectly so far (well, for PDF output, anyway)—except the ...
2
votes
0answers
140 views

Preserve EPUB page breaks in pdf generated from pandoc

I'm trying to generate pdfs from EPUB files using pandoc and a custom XeLaTeX template. These EPUB files are all made up of several chapters stored as separate xhtml pages, and any ereader would ...
2
votes
0answers
527 views

Pandoc not handling in-text citation with certain csl file

Here's an example input markdown file: @brandt2009two, observing programmers building an online chat room in the lab, found that online resources are leveraged primarily to engage in *just-in-time ...
2
votes
0answers
470 views

newcommand in beamer template for beamer environment

I write beamer presentations in Pandoc and want to change from Pandoc commands for creating frames (n-th level of headers like ### or something like ***) to using latex new commands for beginning and ...
2
votes
0answers
683 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 ...
2
votes
0answers
270 views

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 ...
2
votes
0answers
959 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
0answers
30 views

long listings with pandoc-crossref doesn't fit on page

Let's consider input file: ```{#lst:code .html caption="Listing caption"} <!DOCTYPE html> <html> <br /> <br /> <br /> <br /> <br /> <br /> ...
1
vote
0answers
135 views

Making TeX PDFs compatible with Word 2016 importing

I'm changing the focus of this question after experimenting a little further, I've left the original question in the quote at the bottom. As the original question points out, newer versions of Word (...
1
vote
0answers
38 views

Subdivided bibliography with pandoc

I use pandoc-citeproc for formatting my text (written in markdown), because I need to use a specific CSL style for the references of my thesis. Everything works well. I precise that I've set Pandoc to ...
1
vote
0answers
508 views

Converting .tex to .docx file with a certain document class using pandoc

Extreme TeX and **LaTeX* newcomer, I am trying to convert a .tex to a .docx (Word) document. I am using the pandoc command line utility and got so far as converting the document, i.e., by doing ...
1
vote
0answers
159 views

How to avoid strange page breaks in bibliography?

Problem In the PDF for my PhD I get a lot of very strange page breaks in the middle of the page in the bibliography section (see below) Setup I write my PhD in pandoc markdown. I then convert the ...
1
vote
0answers
576 views

keep colored text from .docx to .tex using pandoc

I use pandoc on a Mac to translate a .docx document to a .tex document. The problem is that some words in the .docx document are colored (not highlighted but colored letters) and pandoc doesn't ...
1
vote
0answers
224 views

Pandoc Output PDF with Code Block using listing other than verbatim

I using RStudio and Pandoc to output my document created in markdown to PDF. Pandoc always convert the code blocks in markdown using verbatim environment. Does anyone know how to switch the default ...
1
vote
0answers
226 views

`paper` document class: no date, no author(s) affiliation

Hello :) I am new to tex in general, and in fact I am using it through pandoc to generate pdf documents... I posted a question in StackOverflow (link here) but didn't get any help, my problem is the ...
1
vote
0answers
2k views

pdflatex not found. pdflatex is needed for pdf output

I have installed my shiny server on Ubuntu. In addition I installed Texlive- full 2017 on the server as well. The problem is that downloading report from the shiny app on the server does not work (on ...
1
vote
0answers
432 views

pandoc- tables missing when using environment `tabularx` from package tabularx

A MWE: \documentclass[12pt]{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{\textwidth}{XXXX} \hline V & A & R & I \\ \hline 1 & 2 & 3 &4 \\ \...
1
vote
0answers
354 views

image frame borders in pdf from latex template with pandoc, markdown

I'm using a tex template similar to https://github.com/davecap/markdown-latex-boilerplate/blob/master/template.tex How can I get a frame around images which are passed from standard markdown code to ...
1
vote
0answers
129 views

latex2rtf: Image Sizes Wrong

I'm trying to use latex2rtf to convert a very simple TeX file. Everything looks great, except for scaling images. For example, in this example, "test.png" is a large (8000x6000 pixels) png file: \...
1
vote
0answers
415 views

Weird “Something's wrong--perhaps a missing \item.” when using itemize inside quote

For the following document \documentclass{article} \begin{document} \section{Lesson Design} \begin{quote} \subsection{Overview} \textbf{Questions} \begin{itemize} \item How do we design lessons?...
1
vote
0answers
592 views

How do I convert html to pdf via xelatex keep inline style

I want convert html to pdf by pandoc, and use xelatex engien. But <span style='font-size'>Text</span> inline style not convert to pdf. here is my currently in use latex-template: \...
1
vote
0answers
823 views

Pandoc LaTeX to epub with glossaries, pagenotes, indexs with links, and other features

I have a LaTeX document that has to be compiled several times to include all the toc, references, glossaries, pagenotes, general index, and author index with links to the locations in the book. I can ...
1
vote
0answers
454 views

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

I would like to declare a custom command in Pandocs YAML header like so: --- title: Materials and methods author: Marius Hintsche ...
1
vote
0answers
3k 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 ...
1
vote
0answers
454 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, ...
1
vote
0answers
691 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 ...
1
vote
0answers
135 views

Conversion (markdown --> pdf) of \"{e} fails with pandoc

I need to put some french e's with a double point above into my text. The LaTeX markup I employ is \"{e} and I use that code in my markdown source, but Pandoc converts this to "{e} in the pdf and "\{e\...
1
vote
0answers
64 views

How to create a portable document containing .bib references from .(R)md files?

I have a .Rmd file that contains references like [@smoreda2013spatiotemporal]. Works great. The problem is that it's referencing a giant .bib file, making the document less portable. How to make it ...
1
vote
0answers
428 views

Add custom logo before chapters with Pandoc

I want to add a custom image near my chapter headings (using the report documentclass). I want to get something like this: https://tex.stackexchange.com/a/124083/78981 but with the logo above the ...
1
vote
0answers
1k 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 ...
0
votes
0answers
69 views

LaTeX error message

I have a hard-to-understand LaTeX error on the R Win-builder test website. My R package stationery has examples of LaTeX (Sweave or knit) and R markdown documents. The documents all build fine on my ...
0
votes
0answers
43 views

Forcing markdown in a comment environment creates a runaway argument

I would like to create documents that include markdown within environments that can be hidden. Currently, I am using pandoc with a custom template and following the instructions for hiding ...
0
votes
0answers
38 views

Listings not breaking long lines with breaklines=true and breakatwhitespace=false

I have the following code in my Markdown: ```{latex-fontsize=scriptsize} $ ./my-new-application create app_example creating app_example Generating <path-to-app-src>/new-application/...
0
votes
0answers
104 views

Top Vertical alignment for all images in either Tex or Pandoc

I am using the following pandoc header: output: rmarkdown::html_document: theme: lumen fig_caption: yes All images are being marked as figures and moved to the end of the document (...
0
votes
0answers
36 views

pandoc doesn't accept `<` pre-text conventions from apacite

I'd like to use pandoc to convert a long .tex to .docx. For reasons of and vs. & usage in in-text citations, I chose to use apacite over natbib. By convention, apacite has users place 'pre-text' ...
0
votes
0answers
230 views

Convert latex to Word via pandoc with numbered and unnumbered sections

I have a document (FromLaTeX.tex) something like this: \documentclass{article} \begin{document} \section*{Introduction} \section{First} \section{Second} \subsection{Numbered subsection} \subsection*{...
0
votes
0answers
49 views

Bibliography skips some fields

I'm trying to use Rmarkdown to write term paper but I'm experiencing a problem while trying to reference websites. In my paper.rmd file I use point to show my bibliography file: bibliography: /...