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.

0
votes
0answers
8 views

how to customize table of content for Beamer output in markdown?

I tried putting the following lines under header-inludes: in the YAML header of the markdown. - \setbeamertemplate{section in toc}[round] - \setbeamerfont{section number projected}{size=\large} - \...
2
votes
1answer
33 views

Converting from Markdown-with-biblatex-commands to LaTeX

How can I use biblatex commands in a Markdown file (instead of Markdown's native cite commands) and have pandoc output a .tex file that preserves those biblatex commands unchanged? question ...
1
vote
2answers
66 views

Pandoc font family not changing

I tried to set the font family to Source Sans Pro, but pandoc gives me the following error: pdfTeX error (font expansion): auto expansion is only possible with scalable fonts. \AtBegShi@Output ......
0
votes
1answer
39 views

I use markdown and pandoc and need to renewcommand iffalse/% with a couple tilde

I use Pandoc and Latex for my adacemic writing with Typora as my markdown editor. If I need to strikethrough text Typora uses ~~ double tildes. But Latex didn't recognize it as text which should be ...
2
votes
2answers
61 views

What is the minimal “API” a pandoc template must provide

I was trying to define my own pandoc template for job reports and I stumbled across many "undefined control sequence" problems. I have taken a look at the default template but it's too generic to ...
0
votes
2answers
55 views

Pandoc: No vertical space before/after environments

When I render a pandoc-markdown document to PDF that contains LaTeX environments, e.g. this one We come now to the main theorem of our article. \begin{thm} There exists something that doesn't ...
-1
votes
0answers
15 views

Markdown Pipe Tables support in Beamer output mode of pandoc? [duplicate]

Here is an mwe for a markdown pipe tables that works fine with pdf output from pandoc but confused `beamer: --- title: Tensorflow fonttheme: structurebold author: Me fontsize: 12pt output: ...
1
vote
2answers
62 views

Blank slide generated between the title and the first content slides when using beamer with pandoc

I am new to beamer. Given the following mwe: --- title: Tensorflow subtitle: Cloud Computing Capstone Presentation fonttheme: structurebold author: Stephen Boesch fontsize: 12pt output: rmarkdown:...
0
votes
1answer
32 views

Changing the bullet list symbol in beamer when used from pandoc

I am new to beamer . I am looking for a traditional circular bullet instead of the sideways triangle: is this possible given I am using pandoc preamble? It seems like none of the document level ...
0
votes
1answer
44 views

“LaTeX Error: Can be used only in preamble” for a directive not used except in the preamble

For a markdown doc that has the following preamble: --- title: Cloud Capstone Task1 subtitle: Airline Dataset Queries documentclass: scrartcl author: Stephen Boesch geometry: "fontsize=9pt left=1....
1
vote
1answer
59 views

Hanging indents with a Pandoc bibliography

I'm using Pandoc / Markdown / LaTeX to write lab reports. I've opted to not deal with multiple intermediate files for my bibliography. So I have to use this to generate my documents: pandoc --csl=...
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
1answer
93 views

Add Markdown Citations using Pandoc

I am going through a process of converting all our code documentation from LaTeX to Markdown. I figured that my best bet was to use Pandoc. We have developed our own flavor of Markdown so I will need ...
2
votes
1answer
93 views

What is the mtxrun error about 'context.lua' and how to fix it?

Trying my first steps in the Tex world. I'm trying to achieve the result for : Pandoc Resume, which creates an intermediary tex file before a convertion to pdf using mtxrun. Unfortunately, I cannot ...
2
votes
1answer
184 views

Math mode in document title with R Markdown

I was trying to put $\LaTeX$ in the document title but can't find a way to do so. I suppose that this is because I can't use latex packages with the document title. Does anyone know how to solve this? ...
2
votes
2answers
64 views

book title smaller than section headers

I recently began using Pandoc to generate PDF files, using the LaTeX engine, from MarkDown source. Presently, using the book class, I find a distracting attribute of the output is that the major ...
3
votes
1answer
93 views

Pandoc + ConTeXt: Inline images [closed]

Background A Markdown document has a div to inline an image: ::: image-inline ![](../climate/co2_graph) ::: The Markdown is passed through Pandoc to produce a ConTeXt document. The output resembles:...
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 /> ...
2
votes
1answer
61 views

CSL file close to standard bibtex styles, in particular amsplain

Did someone already waste spend time to research the fllowing: Which of the hundreds of the available csl files is closest to the bibtex style amsplain (or maybe just plain)? I.e., ideally exactly ...
2
votes
1answer
148 views

pandoc --listings breaks styling of code block

Considering this input file: ~~~{.html caption="test caption"} <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Store</title> </head>...
7
votes
2answers
562 views

Andika fractions

I have hand made the exercise with svg. See attachment. It was very cumbersome. If I could write the étude in markdown and then do pandoc magic I could perhaps learn how to create a library of basic ...
0
votes
0answers
42 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
1answer
25 views

hyperref Form spanning multiple markdown sections?

begin{Form} and end{Form} currently works in markdown if there is no markdown syntax in-between: \begin{Form} \TextField[name=Title, width=0.87\textwidth, bordercolor=black, value = {Some default ...
0
votes
1answer
87 views

Error when using rmarkdown/pandoc

I am using Rmarkdown (and ultimately Pandoc) to create a PDF on Ubuntu 18.04. However, I get following error LaTeX Font Info: Try loading font information for T1+lmtt on input line 139. (/...
1
vote
1answer
95 views

put last modified date on the PDF form generated by markdown + hyperref + javascript + fancyhdr?

This is my pandoc version: pandoc --version pandoc 2.3.1 Compiled with pandoc-types 1.17.5.1, texmath 0.11.1.1, skylighting 0.7.3 Default user data directory: /Users/vle/.pandoc Copyright (C) 2006-...
2
votes
1answer
63 views

Is it possible to use \regex_replace_all instead of \tl_replace_all

I have the following macro definition: \let\hlORIG\hl \ExplSyntaxOn \tl_new:N \l_jdhao_hlx_tl \RenewDocumentCommand\hl{m}{% \tl_set:Nn\l_jdhao_hlx_tl{#1}% \tl_replace_all:Nnn\l_jdhao_hlx_tl{\ }{~}...
4
votes
2answers
73 views

How to renew verbatim to Verbatim from fancyvrb?

I am using pandoc to convert Markdown to Tex, pandoc will render code blocks to \begin{verbatim}CODE\end{verbatim}, and fvextra only works with \begin{Verbatim}[breaklines]. How can I make {verbatim} ...
2
votes
2answers
78 views

Word wrapping text only when the hbox is overfull

I am using pandoc to process an markdown file that is causing me some issues with regard to in-line code blocks. In some cases I need to be able to have a long string without any punctuation or ...
0
votes
1answer
70 views

How to prevent word wrapping with 2 hyphens?

I have the following markdown file that demonstrates the issue (at least in my environment): --- title: TEST subtitle: Minimum Working Example version: 1.0 rev0 document: TEST-MWE date: 27 December ...
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
1answer
38 views

Word wrapping for short strings in parentheses

I have a markdown file that I process with pandoc. I have the following text in the .md file: **Note:** The entire text above would be entered on a single command line without the backslash (`\`). ...
2
votes
2answers
247 views

pandoc to PDF not putting a shaded block around language specific code sections

I have the following text in my .md file: ### Table of Contents, List of Tables, List of Figures The example below shows how to place a table of contents, a list of tables, and a list of figures, ...
1
vote
1answer
22 views

Multi-level ordered list with prefix in different parts of the text

I'm writing a document with a list of items that must be ordered. The result should be something like this: Title 1 R1. Requirement 1 R1.1 Requirement 1.1 R2. Item 2 R2.1 Requirement 2.1 R2....
2
votes
3answers
75 views

Retain inter-word spacing in math mode

Is there a shorthand/ instruction for math mode to simply retain words and not collapse the whitespace? I.e. rather than manually inserting spacing after each word with \, and friends. Here is the ...
2
votes
2answers
479 views

“LaTeX Error: Can be used only in preamble” even though all directives before begin directive

In the following simplified version of a markdown doc intended for pandoc/latex generation to `pdf: \documentclass{article} \usepackage{unicode-math} \setmainfont{TeX Gyre Schola} \setmathfont{TeX ...
2
votes
1answer
150 views

How to increase pandoc equation resolution

I have provided a minimal working example below. \documentclass{article} \usepackage{amsmath} \begin{document} $x^2$ \end{document} I processed the above LaTeX file using pandoc --webtex -t html | ...
0
votes
0answers
103 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 (...
1
vote
1answer
80 views

How can I get a less-curly \mathcal{T} with xelatex?

I'm compiling the following document with pandoc: $\mathcal{T}$ using this command line: pandoc -s --from markdown --to latex -o foo.pdf <(echo 'foo: $\mathcal{T}$') If I use xelatex (--pdf-...
0
votes
1answer
180 views

Pandoc fontawesome in Markdown -> Xelatex -> pdf

I want to use fontawesome symbols in an md yaml-block that then get converted into latex and from there to pdf. I used the fontawesome package in xelatex and I tried to convert a string in an md ...
2
votes
1answer
79 views

ConTeXt: Split xtables across multiple pages

Background Use extreme tables to split tabular data across pages. Problem The \setupxtable command does not appear to be sufficient to force a table to split across pages. Also, a reference to ...
0
votes
1answer
38 views

Html to LaTex : Trademark sign not converted properly

Whenever I try to convert html text which contains the trademark sign into LaTex, the trademark sign gets converted into "â„¢". I convert a xml file to html and afterwards to latex.That's how the xml ...
1
vote
1answer
2k views

Algorithm pseudocode in markdown

I am writing a project report in markdown. Use LaTeX inside the markdown to write formulas. Then I convert the markdown file to PDF with pandoc. All works like a charm. But, I would like to include ...
1
vote
1answer
142 views

Using Open Sans in XeLaTeX with fontspec error

I am trying to use Open Sans with pandoc but always get the Following error when I try to generate the PDF using XeLaTeX: xdvipdfmx:fatal: This font using the "seac" command for accented characters......
3
votes
0answers
110 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 ...
0
votes
1answer
49 views

Write Form Field From MikTex (via Pandoc) which iTextSharp Can Parse

I'm doing some tests with iTextSharp to see it would work to automate a workflow I have. So, I am using Pandoc to generate some pdfs from markdown. But when I generate the files iTextSharp doesn't ...
1
vote
1answer
247 views

Which schemes include pdfLatex

I want to install pdfLatex to use with Pandoc. I know this is included with Tex Live and MikeTex. I am trying to install Tex Live and I would like to select a scheme which is smaller than the full ...
2
votes
1answer
328 views

Option clash with RMarkdown and beamer

I work across two separate Mac computers, a Macbook Pro at work, and a Macbook Air at home. Both macs are running identical operating systems. I am writing in RMarkdown, using knitr to compile beamer ...
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 ...
2
votes
1answer
303 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 ...
1
vote
2answers
429 views

What would a minimum latex template must contain in order to successfully convert markdown to pdf?

pandoc -D latex contains a lot of things, most of what I don't need. I am trying to clean it up to a minimum to make it easier to edit. I thought this would be the most minimum to get started with: \...