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
20 views

pandox coverting tex to docx - cannot convert tables correctly

Trying to convert my tex document to word (docx) format using pandoc for a challenged colleague. I notice most of it converts nicely, but tables get rendered as plain text eg. \begin{table}[H] \...
1
vote
0answers
43 views

Pandoc (LaTeX → HTML) does not use specified .cls file

I'm attempting to use Pandoc to convert some math-heavy LaTeX into HTML. To make the TeX code easier to read and write, I've factored some macros into a .cls file in the same directory, and used it as ...
1
vote
0answers
44 views

Bibtex & formatting CSL title

I found a way to use pandoc-citeproc to create a PDF from a markdown file with references in Bibtex and citation with footnote-like references using an edited ieee.csl file. I used miscand put the (...
1
vote
1answer
36 views

\displaystyle and \limit commands don't seem to work when rendering to mathml

I am trying to render a latex file to mathml for viewing in firefox. However, when trying to render the following example: \documentclass{article} \begin{document} \(\displaystyle\sum\limits_i\) \end{...
0
votes
0answers
18 views

Multiple spacing in RMarkdown Beamer

How can I set different spacings in my RMarkdown Beamer. I use the package setspace but when I put \singlespace in some place and \doublespace in other place, I got an Error. It seems that RMarkdown ...
1
vote
1answer
47 views

Can't remove italic format from my text with either \normalfont or \textnormal

$$\textit{Some italic and {\normalfont non italic} text}$$ $$\textit{Some italic and \textnormal{non italic} text}$$ My LaTeX block above is supposed to generate text like this (the first line): But ...
0
votes
0answers
59 views

Markdown and bibtex to PDF with numbered references

I have a markdown file with resources in a bibtex file that I compile to a PDF. Is it possible to make the citelinks as numbers (footnote style) instead of e.g. (Jia et al. 2013)? I have seen ...
0
votes
0answers
43 views

full width longtable in tufte-book, like table* environment

I am using pandoc to create a tufte-book latex. pandoc's tables are rendered using the longtable environment. Within tufte-book this only uses the \textwidth. Wrapping it in a fullwidth environment ...
0
votes
1answer
158 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
57 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
200 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
48 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
116 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
72 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 ...
2
votes
2answers
193 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
81 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
68 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....
0
votes
1answer
120 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
1answer
198 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
125 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
399 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
74 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
147 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:...
0
votes
0answers
46 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
104 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
271 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>...
6
votes
2answers
1k 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
52 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 ...
1
vote
1answer
59 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
154 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
154 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
77 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
112 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
92 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
71 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
1answer
58 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
40 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
381 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
26 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
87 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
783 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
196 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
153 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
87 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
229 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
83 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
48 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 ...
2
votes
1answer
3k 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
224 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
138 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 ...