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
21 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
29 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
36 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
45 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
81 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
71 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
245 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
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
68 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
56 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
vote
2answers
71 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
34 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
66 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 ...
1
vote
1answer
63 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
433 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 ...
0
votes
0answers
75 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 ...
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
144 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
105 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
98 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 ...
0
votes
1answer
29 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 ...
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
12k 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
199 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
65 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
98 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
32 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
160 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
601 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
5k 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
529 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
44 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
76 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
91 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. (/...
9
votes
2answers
8k 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
64 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
100 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
79 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
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 ...
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
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 (`\`). ...
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/...
2
votes
2answers
270 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, ...
5
votes
1answer
679 views

Pandoc LaTeX to .docx, change font size

I am using Pandoc to convert a LaTeX document to .docx, but i have not been able to figure out how to change the font size. An MWE looks like this \documentclass[10pt]{article} \begin{document} Hello ...
1
vote
1answer
24 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....
3
votes
1answer
917 views

Pandoc managed Markdown to LaTeX to PDF workflow fails to port simple pipe_tables

I'd like to setup a simple workflow allowing me to type document segments in their own files using Markdown, then convert them to LaTeX using a common library such as pandoc, before finally collating ...
2
votes
3answers
76 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 ...