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
13 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] \...
0
votes
1answer
53 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/...
1
vote
0answers
37 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
41 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
56 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 ...
1
vote
1answer
34 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{...
8
votes
1answer
3k views

How to underline links with pandoc?

Is there any way to underline links with pandoc? [Geogebra](http://google.com) I get this but I prefer __Geogebra__ (__ means underline)
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
44 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
51 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 ...
1
vote
1answer
54 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 ...
0
votes
0answers
40 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
147 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
56 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 ...
0
votes
1answer
65 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....
4
votes
2answers
2k views

Pandoc: does not include input files

I have a LaTeX root file that refers to many other single files. Those files are included/referenced by \input{somefolder/somefile} But somehow Pandoc is generating the output just from the main ...
1
vote
2answers
191 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 ......
2
votes
1answer
77 views

pandoc can't process \MakeUppercase

I try convert latex book to OpenOffice ODT format. And my pandoc 1.17.2 (Debian 9x64) can't process \MakeUppercase macros. MWE: \documentclass{letter} \begin{document} test \MakeUppercase{Case ...
1
vote
1answer
280 views

LyX: Missing menu entry for export to docx

I have LyX 2.3 installed, and my understanding is that LyX > 2.2 should have an option to export to *.docx out-of-the-box (e.g. "File > Export > MS Word Office Open XML"). But for me, that menu item ...
0
votes
1answer
47 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
110 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
69 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
181 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
77 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 ...
7
votes
1answer
2k views

How to change the background color and border of a Pandoc-generated blockquote?

This question has a possible solution, but it's for the ConTeXt writer, which I can't use. ConTeXt: How to change the background color and border of a Pandoc-generated blockquote? What would be a ...
2
votes
2answers
73 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 ...
0
votes
1answer
118 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=...
1
vote
0answers
457 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
2answers
2k views

From latex to word with pandoc

I am willing to convert my latex file to MS word (docx extension) to share it with some of my co-authors that do not use latex (they should!!). I have two issues: 1) In the tex file I include some ...
6
votes
3answers
4k views

Hanging indents in bibliography

I can't imagine this isn't covered elsewhere, but for the life of my I can't find it. (Forgive me, I'm very new to LaTeX.) I'm running pandoc to generate PDFs based on a markdown document, but right ...
1
vote
1answer
173 views

pandoc: customize tabular conversion in rst

Consider the following mwe mwe.tex \documentclass{article} \begin{document} \begin{table} \centering \caption{my caption} \label{mylabel} \begin{tabular}{lc} 1 & 2\\ ...
0
votes
1answer
193 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
122 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 ...
5
votes
1answer
8k views

align, aligned and R Markdown

I have been working in R Markdown, which supports LaTeX, including in display mode. I had the following snippet for displaying aligned equations $$ \begin{align} a_1 &= \beta_0 \\ b_1 &= \...
17
votes
6answers
13k views

Pandoc: How can I get numbered LaTeX equations to show up in both PDF and HTML output

To make a numbered equation in Pandoc, I defer to using pure LaTeX: \begin{equation} a^2 + b^2 = c^2 \end{equation} In PDF form, it gives a nice numbered equation, however, this equation doesn't ...
2
votes
1answer
371 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
1answer
103 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 ...
3
votes
1answer
139 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
44 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
260 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 ...
17
votes
4answers
6k views

Changing “language” settings used by Pandoc for generated output [Pandoc template variables]

This is not directly a LaTeX question since I use Markdown to format my text but this subpart of "stack" seems the most correct place to ask my question. I generate my PDF with Pandoc from markdown ...
2
votes
2answers
544 views

Margin references in tufte-handout with pandoc

I'm trying to convert a Markdown file to PDF using pandoc and a tufte-handout template. I would like to have references in the margin, instead of in the end of the document, is this even possible in a ...
0
votes
0answers
50 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 ...
4
votes
2answers
109 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} ...
0
votes
1answer
148 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. (/...
10
votes
2answers
9k views

LaTeX and pandoc templates [closed]

I'm wondering where can I edit the default template of LaTeX in pandoc (ubuntu) I know this is not relevant on TeX forum, but any help would be welcome, because I'm kinda lost. Thanks!
2
votes
1answer
75 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{\ }{~}...
1
vote
1answer
150 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
2answers
90 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 ...