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

How can I save indexes while converting a LaTeX file to ODT?

Recently, I have completed a LaTeX document where I had created two indexes using the \splitidx package, the index entries marked with \sindex terms. For example, \documentclass[b5paper,polish]{book} ...
2
votes
1answer
26 views

Pandoc: Convert only parts of the markdown to LaTeX

I have a markdown file which looks like this: # Sors inmotusque emicat de ope onus in ## Virgo cupidusque timet stant Lorem *markdownum*, premeret, atque expresso contraria ossibus, et virgo et ...
0
votes
0answers
22 views

Markdown with bibtex [closed]

I have encountered difficulties with a markdown document conversion program called pandoc citeproc. pandoc --filter=pandoc-citeproc --csl=ieee.csl --bibliography=mybib.bib mybib.md -o mybib.pdf The ...
1
vote
0answers
31 views

Is there any way to tell Pandoc to leave begin equation as is?

I am using Pandoc to convert from Latex to Html with Mathjax, i.e., pandoc --mathjax -s -f latex input.tex -t html -o output.html. The only issue is that \begin{equation} ... \end{equation} is ...
0
votes
0answers
17 views

Pandoc longtable headers not formatted correctly

I am using Pandoc to convert markdown to latex. When i try to add a table the header is sometimes not formatted correctly. Here as an example that displays correctly: | Themenschwerpunkt | ...
1
vote
1answer
26 views

pandoc: Undefined control sequence … unless I include some ```code```

this markdown document: --- author: Benoît toc: true papersize: a4 pagenumbering: true --- # test Hello. \textcolor{green}{green} makes pandoc --from=markdown foo.md -o foo.pdf fail and output: ...
2
votes
1answer
72 views

Space on one side of a certain character is larger

I'm using pandoc with the XeLaTeX engine. I have a problem with the space around certain characters being larger on one side than on the other. Given a markdown like this: `X ≼ Y` // 3 spaces on ...
0
votes
1answer
57 views

Total newbie confusion with pandoc and changing fonts on pdf export

I have pandoc and would like to change the awful default font when I convert a .MD to a .PDF. I understand I can pass -V on the command line and that pandoc uses --pdf-engine=pdflatex by default. I ...
2
votes
1answer
60 views

With Pandoc, how to apply a style to a “fenced div” block?

I use Pandoc to generate an output from a Markdown file to many outputs: html, word (.docx), latex, pdf, etc. I tried using the "fenced div" feature to style differently some parts of the text. For ...
0
votes
1answer
24 views

How to create a new command in a template to replace often used URLs

I'm looking to create a new command in my LaTeX template where I can define a long url, so that if that URL changes, I can change it in one place rather than every place it appears. It would also make ...
0
votes
1answer
22 views

Tex figures only work in Pandoc with a Markdown image first

I use Pandoc's markdown to generate a PDF file. To have more control over figures and images I use inline latex like the following: ## Chapter 12 \begin{figure}[htbp]\includegraphics[width=0.25\...
1
vote
1answer
74 views

Settings for pandoc

I wish to edit the settings for pandoc that control the conversion of markdown files to LaTeX to avoid unnecessary code in the final .tex file in Ubuntu. Kindly guide me on this matter. This is my ...
1
vote
1answer
55 views

Pandoc - changing the layout when compiling markdown

I use pandoc to simply compile pdf files from markdown files: pandoc markdown.md -o output.pdf however this renders the PDF with lots of white space. Is there a way to change the layout of the ...
0
votes
0answers
80 views

Convert .tex to .docx using pandoc when using the mchem package

I use pandoc to convert .tex file to .docx. However, the document is not converted properly when it uses the package mhchem. Indeed, I then get this error: unexpected "{" expecting "%", "\\label"...
0
votes
1answer
47 views

Beamer presentation - Left to right direction and links in ToC doesn't work properly for Persian text

I'm using beamer presentation with markdown and pandoc. I have a markdown file like this: --- lang: fa dir: rtl title: "عنوان ارائه" author: "نام دانشجو" date: "تاریخ" institute: "نام دانشگاه" theme: ...
2
votes
0answers
44 views

tlgmr error: First directive needs to be 'name'…

I asked this question on stackoverflow first (see here), buy asking her too. I am getting the following error on various tlmgr related commands, such as: | => tlmgr list First directive needs to ...
3
votes
1answer
146 views

Beamer presentation with Pandoc and Markdown - Using xelatex as the pdf engine doesn't show most Persian fonts properly

I'm trying to create a beamer presentation using pandoc and markdown, and since I'm writing it in Persian, I need to use --pdf-engine=xelatex. I have a pres.md file with this content: --- dir: rtl ...
0
votes
1answer
79 views

Converting Lyx to Word

I am using Lyx2.3.3. I have installed Pandoc. I reconfigured Lyx ( Tools> reconfigure). I should then be able to simply export lyx file to the MS Word Office open XML, however I get an error as shown ...
0
votes
0answers
31 views

pandoc *.md to *.pdf with code block that keeps spaces/tabs

I'm using the following command line to generate a *.pdf file from my *.md file: pandoc --pdf-engine=xelatex file.md -o file.pdf Everything works fine except when I copy-paste a code block from the ...
0
votes
1answer
49 views

Add LaTeX 'tags' to include/exclude sections of Markdown from command line

I would like to be able to "turn on/off" certain sections of my documents, depending on a command line declaration. I am converting a large group of policy documents that are for both internal and ...
1
vote
0answers
49 views

Converting a Pandoc LaTeX template to a Documentclass

This may be an inappropriate question to ask in a dedicated TeX/LaTeX forum, but I'm not sure where else to post it. Are there any guidelines (or tools) for converting a Pandoc LaTeX template into a ...
0
votes
1answer
139 views

Problems changing the font of section headers in LateX template

I am converting Markdown documents via Pandoc to PDF, using a LaTeX template called Eisvogel. Pandoc is using pdfTeX, I believe. (I am rather new to all of this so please forgive me in advance!) The ...
1
vote
2answers
33 views

How to place a framed full-width text box on the bottom of the last page in two column documents?

for a publication, I would like to place bibliographic and license information in a full-width framed text box on the bottom of the last page. While this can be achieved on one-column documents with \...
5
votes
1answer
208 views

Convert LaTeX to HTML with MathJax

I'm student for Computer science. I prefer to write my home work assignments in LaTeX. I'm utilizing tikZ pretty heavily in my specialized science courses. My goal now is to convert my TeX files to ...
1
vote
0answers
55 views

Pandoc LuaLatex error: cannot find image file

I've recently started having a weird error when converting a file from markdown to PDF using Pandoc with LuaLatex as the PDF engine when including PDF images. Running pandoc -i 1384e7d0c2.md -o test....
0
votes
1answer
126 views

Pandoc: not using LaTeX packages

I am using pandoc to convert my .tex-file into a PDF, but my definitions are not being used. Example: \documentclass[12pt,letterpaper]{article} \usepackage[a4paper,margin=1in]{geometry} \usepackage[...
0
votes
0answers
45 views

Input/output encoding for symbols in Latex for conversion to Microsoft Word using Pandoc

I am using Texmaker to produce .tex files that I want to convert into .docx files using Pandoc. I have some math symbols in the paragraphs of the document. My workaround was to use, for example, $\...
0
votes
0answers
90 views

Using pandoc to convert from .tex to docx using XeLaTeX as engine

I have been trying to convert a .tex file into .docx. Although the command pandoc file.tex --from=latex --to=docx --output=file.docx executes without errors, many parts of the text are not shown in ...
2
votes
0answers
294 views

How to make pandoc use a custom class

I want to use the ModernCV template with pandoc. I have a custom .cls file, various .sty files and one .tex file that makes use of the custom class. I can convert the .tex file with pdflatex without ...
0
votes
0answers
79 views

converting from beamer to pptx - pandoc and other options

We have many slide decks in beamer that need to be converted to PPTX --- ideally retaining the math and graphics. We have used pandoc successfully to convert LaTeX to word (and vice-versa), but ...
0
votes
0answers
68 views

Undefined control sequence error using images through Pandoc

I am trying to insert an image in my pandoc document for the first time and have this code: ![Graph](3c.jpg) When I run this through pandoc I get the error Error producing PDF. ! Undefined control ...
0
votes
0answers
32 views

Pandoc - How can I get equal pdf, when building from docx to tex to pdf (docx>tex>pdf) and docx to pdf (doc>pdf)?

I have a file called TEST.docx created and exported with Google Docs. From TEST.docx, I use pandoc with many variables used by the template (-V lang=fr-FR), an include an header in preamble with my ...
0
votes
0answers
36 views

ToC followed by another TOC, how to keep just one?

I am using pandoc and in their default template.latex, I want to convert a .docx exported from google docs, to a tex PDF with pdflatex: This is .docx preview: You can download: sample.docx ...
0
votes
0answers
23 views

Pandoc LaTeX to DOCX conversion \cite[arg1]{arg2} using CSL misses arg1

MWE: \documentclass{article} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @book{Knu86, author = {Knuth, Donald E.}, year = {1986}, title = {The \TeX book}, } \end{...
2
votes
1answer
215 views

R Markdown/pandoc: Change how code blocks are converted to LaTeX

I use rmarkdown to generate a pdf file (which uses pandoc, which in turn uses pdflatex). By enabling keep_tex option, I noticed that code blocks without language type always become verbatim, e.g.: ```...
0
votes
1answer
55 views

Passing options to hyperref via Beamer from Pandoc

If I were writing LaTeX code directly, I could pass options to hyperref via beamer: \usepackage[dvipsnames,hyperref={colorlinks=true,linkcolor=black,urlcolor=blue}]{beamer} but I'm not using LaTeX ...
0
votes
0answers
55 views

LaTeX Error: LaTeX Error: \tocsection undefined

I am working on a .docx to .pdf script that use pandoc and latex, I got requested to use the following improvement: \usepackage{etoolbox} \makeatletter %suppression des \vbox underfull badness \def\...
0
votes
0answers
76 views

Pandoc, how to allow right tab-stop when converting a .docx exported from Google Doc to .latex

Google Docs and Drive, OpenOffice and Microsoft word all have the right tab-stop functionality This is how you configure it in Google Document: Type the text you want on the left Click the ruler &...
0
votes
1answer
55 views

Is pandoc's markdown to LaTeX conversion missing anything? [closed]

That is, are there any features that the users of pandoc + MD wish they had?
1
vote
1answer
31 views

hyperrefs/hypertargets and counters in \newcommand

I'm trying to create a custom "theorem" environment so pandoc will generate a <div> with an id corresponding to the theorem name in the html. Hypertarget/hyperref work well for this, but I can't ...
0
votes
0answers
50 views

No Japanese characters displayed in \texttt{}

I want to convert file.md into file.tex with pandoc and then into file.pdf with xelatex. My system is Ubuntu Ubuntu 18.04.3. file.md is just: in text: なになに and in code `code なになに`. I convert it ...
0
votes
1answer
133 views

How to adjust background colorbox size for inline code in pandoc markdown [duplicate]

This answer provides a nice way to add background colour to inline code snippets. Using that, my YAML header includes this: --- title: My title subtitle: \emph{Documentation last updated on \today} ...
3
votes
2answers
104 views

Add Defaults To Pdflatex?

I would like pdflatex to default to using -file-line-error. (Why is this not the default anyway??) Is this possible? I can add the flag into a bash alias on my own runs, but when I use pandoc, it ...
1
vote
0answers
70 views

pandoc md to pdf ,the ordered list to enumerate cause error Something's wrong--perhaps a missing \item

Here is a markdown file 1. A 2. B 3. C use pandoc -i test.md -o test.pdf to convert to pdf. But got an Error: Something's wrong--perhaps a missing \item use pandoc -i test.md -o test.tex to convert ...
1
vote
1answer
64 views

How to generate standard pages (Normseite) with Pandoc?

I want to convert my document to a standard page (German Normseite) that is 30 lines with 60 characters or 1500 character per page. I have a template like this \usepackage[linenumbers, chars=60, ...
1
vote
1answer
68 views

Pandoc command line to make bibliography

pandoc Article.tex --from=latex --to=docx --biblatex --bibliography="bibliography.bib" --output=Article.docx As per tex to docx via pandoc with ACM template Fails to actually produce the ...
2
votes
1answer
48 views

Plural page numbers in inline citations

My page number term gets randomly pluralized, i.e. sometimes when there is only one page reference, but not always. Using markdown and pandoc, I get: from the references [@Meyer1993, p.31] and [@...
1
vote
0answers
73 views

Pandoc not converting inside custom environment

I use custom enviroments to produce Theorems, Lemma, Propositions, etc in a LaTex file like this: \newtheorem{thm}{Theorem} When I use Markdown+pandoc I write: \thm{A theorem.} And I get the ...
1
vote
1answer
56 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, ...
2
votes
1answer
47 views

.tex generated by Pandoc is incomplete

I just started using Pandoc for converting my documents into several formats and it is simply awesome, especially when it comes to .tex to .doc conversion. However, I'm having a problem with .doc to ....

1 2 3 4 5 9