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
0answers
19 views

change pandoc font for paragraph

I am trying to change the fontfamily for a paragraph using markdown and pandoc with xetex. I couldn't find references to this online. I am currently setting my main font using this answer: --- ...
0
votes
0answers
14 views

Pandoc cannot find sty files which are installed using TexLive Vanilla

I am trying to use pandoc to create a markdown file from a tex file. The conversion fails. One of the error messages is that it cannot find my .sty files that are located /usr/local/texlive/2020/texmf-...
0
votes
0answers
38 views

Pandoc - How to modify CSL <citation /> to show citation-label in text?

I'm currently using this Project from Github to write my Bachelor Thesis using Markdown and Pandoc. Since my university has some guidelines to follow regarding Styling, I need to modify the .cls to ...
1
vote
1answer
30 views

How to align beamer slide content with markdown pandoc?

I use markdown to generate beamer slides with pandoc. This markdown... # Test foobar ...is compiled to this Latex: \begin{frame}{Test} \protect\hypertarget{test}{} foobar \end{frame} What do I ...
0
votes
1answer
36 views

Specify Font on Pandoc with BasicTeX

I am trying to convert docx to pdf with pandoc on mac (BasicTeX). The output font is a serif font and I want to change it to a sans-serif font. I tried using -V mainfont=Helvetica and -V mainfont=...
0
votes
0answers
33 views

MacOS + MacTex + Pandoc: LaTeX to HTML

So I have a file from Overleaf that I've downloaded with no compiler issues. I am trying to convert it to HTML. On Overleaf there is no issues (however, I could not get it to compile to HTML there ...
0
votes
1answer
38 views

Pandoc xelatex font-family with relative path

I use Pandoc to generate PDF file from MD file with XeLaTeX engine. # in documentation directory pandoc file.md --pdf-engine=xelatex -o file.pdf I've a problem with font-family relative in YML part ...
0
votes
0answers
33 views

Pandoc: Latex to Word with Equation References

Please consider the very simple latex file below \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{equation} \label{eq:somelabel} e=mc^2 \end{equation} The equation \...
1
vote
1answer
84 views

How to rotate a Markdown table to landscape? Solutions I've tried print the markup instead of the rendered table

I'm using Markdown to create a PDF via xelatex and pandoc. Here's my command line: pandoc -s combined.markdown --from markdown+table_captions+auto_identifiers --filter mermaid-filter.cmd --pdf-engine=...
0
votes
0answers
53 views

What is the trick of Pandoc for includegraphics from url?

I am reading the latex file, it is the output of pandoc from markdown file. $ pandoc --self-contained test2.md -o test2.late And the markdown file has: ![El pinguino de linux](pinguino.svg) Lorem ...
1
vote
0answers
172 views

miktex slow compile

I have written a build system in sublime text 3 to build markdown files and convert them to pdf. my system is: OS: Windows 10 MiKTeX version: MiKTeX 20.12 pdflatex version: MiKTeX-pdfTeX 4.1 To ...
0
votes
1answer
26 views

How can I pass a path name with underscore in a yaml-file to latex via pandoc?

I have a csv-file called test_csv.csv which has this content: 1_c,2,3,4 a2,b,c,d I would like to print it with LaTeX and csvautobooklongtable but wihin a pandoc-workflow. The pandoc-template (pandoc-...
1
vote
1answer
107 views

Missing character ⚠ (U+26A0) when using pandoc xelatex engine on a markdown document

I have a markdown document with the ⚠ (U+26A0) symbol in it. I'm using pandoc 2.11.3.1 on Ubuntu 18.04 as this: pandoc -f markdown -t pdf -H preamble.tex -c style.css --pdf-engine=xelatex -o file.pdf ...
0
votes
0answers
113 views

Eisvogel Template for LaTeX

I really like this template for the documents created with pandoc but I only want the style of this template. I have searched on google for eisvogel latex template but haven't got any. It basically ...
0
votes
0answers
19 views

Pandoc - Center Table Cells Horizontally and Vertically

I'm using pandoc to convert a markdown file including a table to pdf. Is there any option/code I can add perhaps around the table for it to center the cell texts both horizontally and vertically? | ...
1
vote
3answers
57 views

Putting wrapfigure right next to the following paragraph

I'd like to put a floating picture to the right of not just any text, but specifically the text that follows. The problem is that wrapfigure seems to choose a subsequent paragraph. In the following ...
0
votes
0answers
103 views

Pandoc Latex to word References

The conversion from Latex (tex file prepared using elsarticle class) to word (docx) using pandoc is working fine however I am not getting the references at all (not within the text neither at the end ...
1
vote
2answers
431 views

How do I adapt a standard LaTeX template for Pandoc (in a Docker container, not using RStudio/knitr )

I want to use Pandoc to convert markdown text files to beautifully formatted PDFs using LaTeX templates. I want to be able to do this reproducibly across unknown future machines, so I am using the ...
0
votes
2answers
38 views

No bullet with empty item in Pandoc and Beamer

I'm currently trying to switch from Powerpoint to using markdown and Pandoc to create my slides by means of Beamer. In Powerpoint I can add an empty line to a bullet-list and Powerpint then ...
0
votes
0answers
122 views

Latex to docx conversion issues using pandoc - missing information?

I am trying to convert elsarticle (Elsevier Latex template) tex file prepared in LaTex in to docx file using pandoc. I used the following command for conversion and it is working fine but with some ...
1
vote
0answers
91 views

Compilation of pure LaTeX (or beamer) with Pandoc lasts for over 30 min [closed]

I am using WSL 2 (Ubuntu 20.04) and Windows Terminal setting to compile markdown file into the beamer presentation. Unfortunately if I am trying to use pandoc 2.5 to compile it, the time of ...
1
vote
1answer
253 views

Use pandoc/latex on Docker with LuaLaTeX PDF engine and TeX Gyre Fonts

Motivation Original question from pandoc discuss. To build an Docker image allowing pandoc --pdf-engine=lualatex test.md -o test.pdf with the source file test.md as follow: --- mainfont: TeX Gyre ...
1
vote
1answer
216 views

I am using Pandoc to create PDF book. How do I change chapter title size and alignment?

I've already used extsizes to change my base font to 8pt and geometry to set my pdf output to 3.5 x 5 from markdown. I cannot find how to override chapter title alignment (which is set to justify) or ...
0
votes
1answer
111 views

Latex Template and YAML

I am currently working on a LATEX template to convert markdown/yaml documents into pdf resume through Latex and pandoc, via xetex. However the bold and emphasis commands are not translating through to ...
1
vote
1answer
88 views

From tex to docx using pandoc. Bibliography issue

I am trying to convert a tex file to docx using pandoc. The tex file contains a bibliography, which is in an external file, named mybib.bib, but located in the same folder of the main document. The ...
1
vote
1answer
47 views

Pandoc \Diamond Symbol Not Working With Subscript

I'm trying to convert a book to word format (or at least get a passable first attempt) using pandoc and the book frequently uses the symbol \Diamond in equations. However, pandoc's output gives ...
0
votes
0answers
21 views

Leftmark not showing section title content

i use pandoc to generate PDF from MD with a (minimally adapted) latex template on linuxmint. Pandoc-Version: 1.19.2.4~dfsg-1build4 This setup worked as expected until the last month (or so). Now, ...
1
vote
1answer
86 views

How to generate a centered and captioned TikZ figure in a .docx file that has been converted from .tex with pandoc?

Recently, I have been having some issues with TikZ in LaTeX. I want to convert my PhD dissertation, written in LaTeX, to .docx using pandoc. I am able to use lua filters to have pandoc convert TikZ ...
1
vote
1answer
198 views

pandoc codeblock containing Unicode characters

Motivation In Julia, many Unicode characters are allowed as identifier. This facilitates the reading of algorithms containing greek letters like α, λ, ετc. Question How to fix the following Markdown ...
7
votes
1answer
251 views

How to use pandoc to convert .tex file, containing a TikZ figure, to a .docx file?

What I want to do is to convert a .tex file, containing several TikZ figures to a .docx-file using pandoc. I have tried to follow the pandoc documentation and to use lua filters to achieve this. ...
0
votes
0answers
31 views

Need a CSL style that uses the month field in Bibtex

This isn't strictly speaking a LaTex question, but I moved this over on a suggestion from Academia SE since it seemed like a better fit here.... I do a lot of academic writing where I need to cite ...
0
votes
1answer
37 views

How to exclude package when converting md to tex with pandoc

I need to use \usepackage[T2A]{fontenc}. Pandoc default is \usepackage[T1]{fontenc} My YAML header in md file is --- title: My tytle author: Me header-includes: - \usepackage[T2A]{fontenc} --- When ...
1
vote
2answers
100 views

After converting *.md to *.tex with pandoc, no bold and italic in pdf file

I am using this command to convert md file to tex pandoc -s --bibliography teatar.bib --filter pandoc-citeproc 1.md -o cit2.tex When I compile, I receive pdf file, but no italic and bold. However, in ...
0
votes
1answer
122 views

Citations as footnotes in Markdown

I use markdown for writing a document and have a bibliography in a seperate .bib file. Citations are used with [@id] in the document and when I use pandoc to convert my markdown file to PDF I get the ...
1
vote
0answers
55 views

LaTeX to html pages with interactive features

My search has brought to several questions with a similar gist to mine, but I could not find a satisfying ansewr to my specific needs. In addition, these threads were quite old and maybe things have ...
1
vote
0answers
283 views

Can Pandoc be used with Overleaf? Are there any other programs that converts between all kinds of markup formats?

Can Pandoc be used with Overleaf? Are there any other programs that converts between all kinds of markup formats? I use Linux and Overleaf editor.
1
vote
0answers
86 views

Bulleted lists in tcolorbox within a Markdown document

Am using the following code in my Markdown preamble to use tcolorboxes within my markdown code: header-includes: - | ```{=latex} \usepackage{tcolorbox} \newtcolorbox{norm-box}{colback=gray!5!...
2
votes
1answer
165 views

How to get F# syntax highlighting?

I'm using MiKTeX via pandoc to make a book that contains C# and F# source code. The C# source code gets formatted just fine. How do I make sure the F# code gets formatted also?
3
votes
1answer
140 views

Pandoc can't process .tex document due tikz required semicolon

I've tried to convert an "article" (I'm still undergrad) from tex to docx extension. Pandoc is giving me the following error each time I attempt to convert the file. >pandoc meta.tex -o ...
0
votes
1answer
18 views

Stage class not converting when using pandoc

I am writing a play with \documentclass{stage}. When I use pandoc to convert it into docx, the "stage" part isn't converted. Is there any iption I have to enable in pandoc to make this ...
0
votes
0answers
31 views

How can I globally prevent lines from overflowing

I'm using pandoc with xelatex and a custom template to generate a PDF document from markdown. Some parts of my document are overflowing on the right side, for example especially long paths that don't ...
0
votes
1answer
216 views

Create a lightbox in Markdown

I am looking to create a box around some text in a Markdown document. Nothing fancy, just a box around a section of text. Am using Markdown for the plain text, but then am using Pandoc to convert it ...
0
votes
0answers
113 views

How can I get latexmk to work with pandoc?

Problem and context I have a shell script that downloads markdown files from a Gitlab wiki, does some pandoc filtering and then converts it to a PDF. The conversion to PDF happens with pandoc, which ...
2
votes
1answer
86 views

Changing lstdefinestyle Doesn't Seem to Work

I'm pretty new to using LaTeX, and I'm trying to revise a pre-existing .latex file so that code blocks looks something like below: I'm a code block and I'm pretty! Important info goes here. One ...
0
votes
0answers
78 views

Pandoc won't process text italics in an mbox in math mode

I'm using pandoc to convert LaTeX to Word. I represent certain concepts as multi-letter, italicized words. I need to embed the same representations in some math. xelatex has no problem with the ...
0
votes
0answers
92 views

How to change Pandoc's PDF conversion style?

In the past I could get Latex and Markdown files converted to PDF with Pandoc and I could get the output in different PDF styles. Now I forgot how I did it, and I can just get the default style. The ...
0
votes
0answers
150 views

How to prevent pandoc from converting align environment to aligned environment?

My LaTeX code in foo.tex: \documentclass{article} \usepackage{amsmath} \title{Demo} \begin{document} \begin{align} 1 + 0 & = 1, \label{eq1} \\ 1 + 1 & = 2. \label{eq2} \end{align} Equation \(...
0
votes
1answer
221 views

How do I make pandoc add a package to my header when transpiling Markdown to LATeX?

I have a Markdown file that I want to compile to LaTeX. I want to put \usepackage{tikz} in the header. Here's what I tried: $ cat test.md | pandoc -s -f markdown -t latex -H \usepackage{tikz} > ...
0
votes
0answers
85 views

pandoc loses references when converting equation environment into markdown

Simple example latex, with an equation and a reference to it: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{equation} \label{eq:somelabel} e=mc^2 \end{equation} The ...
1
vote
0answers
344 views

Tables converted from markdown to pdf via pandoc puts an unnecessary pagebreak before them

I have a project that converts Markdown files into PDF, using pandoc and a LaTeX PDF template. I'm having a strange issue with the tables. For very few cases (something like 2 in 200 documents), the ...

1
2 3 4 5
10