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
0 votes
0 answers
5 views

Troubleshooting Pandoc's LaTeX output: longtable alignment and line break issues

I am using Pandoc to convert a markdown document to tex. The document includes a table, for which the source code is: | Video | Pose Estimation | Notation | Gloss | English Translation ...
  • 133
2 votes
2 answers
57 views

pandoc-crossref subfigure references are off by one when using ruled style

I am using pandoc (version 2.19.2) to write a document. I want to use the ruled float style, similar to the style which is automatically applied for pandoc-crossref code blocks (which are converted to ...
0 votes
1 answer
40 views

Pandoc - Citations don't link to the reference [closed]

I am using Markdown to write the text and Pandoc to convert that text to a PDF. My problem is that the citations are correctly being generated in the PDF (eg. [@somekey] is converted to [1]) but they ...
  • 31
0 votes
0 answers
50 views

Convert Latex Document to Word Document with Pandoc

I have a latex file saved as mylatex.tex in a folder named latextoword saved on my Desktop on Windows operating system. I want to convert the latex document mylatex.tex (see below) to a word document ...
1 vote
1 answer
33 views

Redefining itemize environment for deeper nesting causes compilation to freeze

I'm trying to add some nesting levels to the standard itemize environment using enumitem. The idea is to add this to the -H argument so as to allow pandoc to handle deeper itemized list nesting. Here'...
  • 1,512
1 vote
1 answer
58 views

Using enumitem & setlist, itemsep doesn't work with pandoc

I'm using the enumitem package with a setlist header-include to customize definition lists, and it's working great, except that no matter what value I give to itemsep the vertical space between items ...
  • 11
1 vote
1 answer
87 views

How to convert a publication written in Latex to markdown?

I'm trying to convert a Latex file to a markdown format with pandoc 3.1 but the resulting markdown file doesn't generate the title nor the references properly. I'm kind of at my wits end here as ...
1 vote
0 answers
22 views

Numbered equation converting from Latex with Pandoc

I noticed that pandoc does not properly number the equations when converting latex sources into (e.g.) HTML or docx. For example: \documentclass{article} \begin{document} \begin{equation} ...
0 votes
0 answers
60 views

Markdown + Pandoc + Template - PDF

I am currently doing a thesis, so I have to add various things from university (logo, ..). The following code, I try to add a logo on my titlepage, I use the template eisvogel (https://github.com/...
4 votes
1 answer
38 views

ConTeXt urls in main font

I have a URL like this: \useURL[url1][https://example.com]\from[url1] (This is output from Pandoc.) I would like it to be in the main font for the document, not a mono font. With LaTeX and hyperref....
  • 2,688
0 votes
0 answers
23 views

How do I control Pandoc ClassicThesis template paragraph indentation?

The Pandoc ClassicThesis template available here works well, but paragraphs are separated by vertical whitespace, and lack indentation (which is unlike the original ClassicThesis). I can't figure out ...
0 votes
0 answers
81 views

Using the VSCode Markdown Renderer with Pandoc

I am typing up some homework assignments in markdown using both markdown formatting and LaTex for math typesetting in VSCode. I now want to convert the markdown to PDF for review. VSCode renders ...
  • 101
0 votes
1 answer
81 views

How to put footnotes (endtotes?) at the end of the chapter

This comes as a sequel to my previous question. I'm writing an essay in Markdown. The idea is to use footnotes and list them at the end of the chapter. Right now they show up on the bottom on the page ...
  • 113
1 vote
1 answer
128 views

Pandoc, from Markdown to PDF - How to restart footnote numbering on each chapter

I'm writing an essay but I'm stuck with a problem. In my little example I've got two Markdown files test1.md: one chapter with two footnotes, [^1] and [^2] test2.md: one chapter with two footnotes, [^...
  • 113
1 vote
1 answer
52 views

Why \frenchsetup is no more defined when using \babelprovide

I try to compile this very small LaTeX code which used to work but is no more: \documentclass{article} \usepackage{babel} \babelprovide[main,import]{french} \frenchsetup{ItemLabels=\textendash,og=«,fg=...
0 votes
0 answers
32 views

Trouble with \titlespacing: automatically generated \hypertarget and \label when converting from markdown may interfere with title [duplicate]

See below for my MWE. I'm trying to change the spacing around titles, so I put in the \titlespacing package and that works sometimes. However, when converting from markdown to .tex with pandoc the ...
0 votes
0 answers
47 views

Convert quote environment to markdown blockquote using pandoc

I am making a ebook and some quotes have more than one paragraph \begin{quote} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis malesuada quis massa a fringilla. Vivamus risus mi, tempus ...
0 votes
0 answers
38 views

Pandoc - source code with internal references

I use Pandoc to create pdf and docx documents that have to include grammar for certain language. Since grammar frequently changes I created short shell script that preprocesses grammar file and ...
0 votes
1 answer
393 views

pdflatex not found after fresh TeX Live installation (Ubuntu)

I'm trying to install TeX Live on Ubuntu in order to use it with Pandoc. However, executing the Pandoc command gives me the error: pdflatex not found. Please select a different --pdf-engine or install ...
0 votes
0 answers
25 views

Add default option to every command invocation?

I'm using KOMAscript and pandoc to write a document. The KOMAscript has a nifty nonumber=true option I can use with \chapter (doc, p.103). But since I'm using a pandoc template, the \chapter ...
  • 1
0 votes
1 answer
44 views

Pandoc LatTeX to word, `scriptsize` commands cause errors

Consider the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} we have $\sigma_V$, $\sigma_\text{V}$, but $\sigma_\text{\scriptsize v}$ \end{document} This produces a ...
  • 269
1 vote
1 answer
114 views

pandoc template $if$ statement for fenced code snippets in markdown [closed]

I am wondering if it is possible to do in a latex.template for Pandoc: \begin{document} $if(fencedcode)$ \begin{lstlisting} $content within fenced code$ \end{lstlisting} $endif$ \end{document} ...
  • 153
1 vote
1 answer
243 views

pandoc-template markdown to pdf with latex no working

I’m trying to create a minimal working pandoc template that would just take the latex.cls from the YAML metadata block in the source.md file. So here is my template: $if(documentclass)$ \documentclass{...
  • 153
0 votes
0 answers
110 views

pandoc converting markdown to pdf is failing with pdflatex on Ubuntu 20.04LTS with texworks 0.6.3 installed. Is this a LaTeX config issue?

I am trying to convert a markdown document to pdf using pandoc on Ubuntu 20.04LTS The command is pandoc myfile.md -s -o test1.pdf The command fails with: test1.pdf Error producing PDF. ! LaTeX Error: ...
  • 1,441
0 votes
0 answers
22 views

How to include bibliographical citations when converting from latex to epub with pandoc?

I am writing a book in latex and outputting it in two ways: Straight to pdf (with pdflatex) Converting to epub (with pandoc) I am struggling with (2) to have my citations included in the output ....
  • 101
0 votes
0 answers
206 views

How to make vertically centered title in markdown

I have this yaml header in markdown file: --- documentclass: scrartcl title: Title author: Author geometry: "left=2cm,right=2cm,top=2cm,bottom=2cm" output: pdf_document lang: cs fontfamily: ...
  • 113
0 votes
1 answer
859 views

Missing character:There is no │ (U+2502) in font (xelatex)

Packages I am loading: \usepackage{unicode-math} \usepackage{ucharclasses} \usepackage{textcomp} \usepackage{longtable} \usepackage{booktabs} \usepackage{tikz} \usepackage{xpatch} \usepackage{imakeidx}...
  • 157
0 votes
0 answers
30 views

Set maximum width of table by renewing commands

I am currently using a template that looks like this: % ------------------------------------------------------- % Things for styling tables % ------------------------------------------------------- \...
  • 101
1 vote
0 answers
103 views

The output of alternative LaTeX compilers (detex, pandoc) appears to be much worse than pdflatex, what could be the causes?

I'm compiling a LaTex document that uses the following US Patent style: https://www.overleaf.com/latex/templates/template-for-uspto-patent-and-response-letters/qtzkqddwxjbj Which relies heavily on ...
  • 113
0 votes
0 answers
113 views

Latexmk and pandoc are using different working directory, how to resolve their conflict?

I have setup latexmk and pandoc for 2 compilation pipeline for the same tex file, intended to generate pdf file and docx file respectively, the latexmk was automatically configured by VSCode + Latex ...
  • 113
0 votes
0 answers
105 views

Using custom Typora themes with pandoc

Is it possible to import custom Typora themes into pandoc? We are using several custom themes which change the look and feel of the rendered Markdown code, but I am more familiar with pandoc. Rather ...
0 votes
0 answers
102 views

How would I use pandoc to convert this Overleaf tex project into a word document?

How would I use pandoc to convert this Overleaf project to .docx? I've tried pandoc -o output.docx -t docx resume.tex but all I get is a blank document. I believe the problem has something to do with ...
1 vote
1 answer
251 views

Running author, title etc. for beamer slide using pandoc

In the beamer class, front matter commands such as author and title have optional parameters for short versions to be shown in slide headers or footers. Is there an easy way to obtain this when using ...
  • 590
0 votes
1 answer
166 views

Pandoc kaobook sidenote issue

I'm using Obsidian to write markdown text in order to export to PDF using pandoc PDFLateX. I'm using using tufte-book class and it's working perfect. The problem is that I'm trying to use kaobook ...
  • 103
1 vote
1 answer
70 views

Lyx - Pandoc: export master document to Word with child documents included

I'm working on my thesis on Lyx using the built-in thesis template (Resources\examples\thesis). I've tried exporting it with Pandoc but it's only exporting the text contained within the master ...
0 votes
1 answer
146 views

Convert LaTeX to Word with Pandoc, including citations and bibliography

I'm trying to convert a LaTeX document ("latex-to-word.tex") to Word using pandoc. Unfortunately, I cannot print neither the reference list nor parenthetical citations in the Word file. I'm ...
0 votes
1 answer
438 views

pandoc doesnt generate latex equations during .md to .html conversion

I'm using pandoc to convert a .md file with latex equations into .html pandoc sample_equations.md -o test_today.html This is one such equation in sample_equations.md \begin{equation} \frac{\partial ...
-1 votes
1 answer
95 views

Pandoc changes color from template after cursive

I am using pandoc to convert different documents into pdf. I have a template to include with the flag --include-in-header ~/path/to/template/pandoc_format_darkmode.tex -V geometry:a4paper -V geometry:...
  • 29
1 vote
1 answer
217 views

Missing characters to convert the output of `tree` command using pandoc

I have a markdown document that contains the output of Unix tree command: output/ ├── cutadapt │   ├── 0001.PbANKA_820_S1_R1.log │   ├── 0002.PbANKA_820_S2_R1.log │   └── 0003.PbANKA_R1.log ├── fastqc ...
  • 255
0 votes
1 answer
108 views

Error while merging and converting two markdown files to pdf using pandoc

I'm using to pandoc to create pdf via following command: pandoc -s -o analysis.pdf latex_header.md Analysis.md The following error is shown : Error producing PDF. ! Undefined control sequence. l....
2 votes
1 answer
211 views

How to add vertical spacing in pandoc table containing chemical figures?

I want to produce a table in pandoc-markdown which contains some chemical figures I created using chemfig. This is my MWE: --- header-includes: - | ```{=latex} \usepackage{chemfig} ``` --- \...
1 vote
1 answer
281 views

Enrich document preamble using pandoc

I use pandoc for generating a PDF file via lualatex from a markdown file. The document class scrartcl defines the command \publishers{}, which is employed in \maketitle. I would like to write a lua ...
  • 1,856
0 votes
1 answer
259 views

Pandoc Conversion and \hypertarget

I converted a long text from Markdown to LaTeX and am trying to clean it up. I found this code and don't know what it does: Specifically: \hypertarget \texorpdfstring \label I have no idea what the ...
  • 1,663
0 votes
1 answer
385 views

Pandoc Code block is not aligned using Eisvogel and Markdown

Hey it's me again and I am back with something that doesn't let me sleep anymore. I am using the popular Eisvogel Pandoc template for rendering my markdown files to PDFs. So far everything is working ...
  • 45
4 votes
3 answers
2k views

Add a custom latex command to be used with pandoc/markdown

so I am using the popular Eisvogel template for my personal work. I basically type everything in markdown and use pandoc to convert it to a pretty pdf. Using blockquotes ( > text ) results in a ...
  • 45
0 votes
0 answers
186 views

Pandoc TOC Roman Page Numbers

This is my first question here. Really enjoyed following the exchanges here while writing my thesis, it helped a lot ! I have one problem I could not find a solution anywhere. My setup is Markdown + ...
0 votes
1 answer
653 views

HTML to PDF with Pandoc: How to change background color of the PDF?

I want to change the background color of the default white to #353535 and for that I'm trying to use the 'backgroundcolor' variable like so, pandoc FINAL.html \ > -f html \ > -V backgroundcolor:#...
1 vote
1 answer
409 views

pandoc: how to generate a different \begin{figure} \end{figure} environment

I have a question similar to this one. I have a markdown document and want to convert it to pdf. I found the figures are placed in a position where latex things they fit best, but I want them to ...
-2 votes
1 answer
82 views

How to use pandoc [closed]

I opened pan doc but I do not know how to change the file to word? Actually I used the code but I do not know where it is saved or exactly works? Is it complicated?
1 vote
1 answer
138 views

How to add background color to the typing environment? [duplicate]

How can I add background to verbatim code blocks without adding extra vertical space? I am writing in Pandocs markdown, then converting to .tex with pandoc.exe -t context, then to PDF with context.exe....
  • 11

1
2 3 4 5
13