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
1
vote
1answer
27 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
13 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
53 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 ...
0
votes
1answer
54 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 ...
5
votes
1answer
144 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
18 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
29 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
43 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
33 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
39 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 ...
0
votes
0answers
60 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
34 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!...
1
vote
1answer
81 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
79 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
17 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
28 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
67 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
41 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
31 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
50 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
44 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
52 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
47 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
32 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
145 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 ...
2
votes
2answers
208 views

Format for targeting Word and LaTeX?

I'm writing a thesis, currently I have the introductory and concluding chapters in LaTeX, and all the chapters inserted in between with \includepdf (as exported from Microsoft Word). LaTeX is far ...
0
votes
0answers
77 views

How to make Pandoc convert latex to Word format keeping citation, caption in figures and code cells?

Using pandoc -o file.docx file.tex it returns a Word document without code, citation, and also the caption of the figures. P.S. Regarding the citation my bibliography is included in the latex document ...
0
votes
0answers
46 views

Can pandoc include an animated GIF in a PDF?

I'm using pandoc 2.10.1 pdflatex 3.14159265-2.6-1.40.21 (TeX Live 2020) on MacOS 10.14.6 I have documentation in Github Flavored Markdown that I would like to turn into a PDF. It includes lots of ...
1
vote
2answers
48 views

Undefined control sequence with \autocite and biblatex-chicago.sty

I get an 'Undefined control sequence \autocite{donnellanSpeakingNothing1974}' error with the following MWE: \documentclass{article} \usepackage[style=chicago-authordate]{biblatex} \addbibresource{...
0
votes
1answer
78 views

How can I automatically do \shorthandoff in all inline listings with pandoc?

To get proper French punctuation in pandoc with babel, I followed the advice in https://tex.stackexchange.com/a/505068/17868 which requires enabling shorthands in babel. However, as I found out, when ...
0
votes
1answer
481 views

How to not generate a title page in pandoc markdown

I don't want to generate a title page. My uni gave me a title page. I could merge it with the pandoc PDF afterwards. How do I make the default title page disappear? I tried the following: Get the ...
0
votes
0answers
41 views

pandoc listings not mono space font

I am using pandoc 1.19.2.4 on Ubuntu 18.04 to generate a PDF with markdown. I am wondering why my code listing are not rendered in a mono space font. I defined monofont: "Ubuntu Mono" in the ...
0
votes
0answers
70 views

is it possible to list the commands pandoc or latexmk are running? or is it already telling me enough to fix the problem?

I'm still pretty new to LaTeX and I've got a fairly ridiculous process, but it's been working. I just don't know how to debug some problems when they come up. The pandoc command I'm running is: pandoc ...
1
vote
0answers
67 views

Set table headings to bold with latex (eisvogel template)

I'm having trouble figuring out how to set the table headings to bold when using the eisvogel.tex template file. I suspect it's a longtable setting, but I've been unable to find out which parameter to ...
0
votes
1answer
43 views

Have Pandoc generate PDF with bookmarks open similar to how LaTeX can

I am trying to have pandoc generate a PDF where the bookmarks are opened like they can be in LaTeX using \usepackage[open=true]{bookmark}. I am currently using this command pandoc \ --from=markdown \...
3
votes
2answers
433 views

Pandoc cannot parse equation with a fraction

Pandoc is having a lot of trouble with this: > pandoc -f latex -t html -s -o test2.html $$ \frac{1}{2} $$ Outputs: [WARNING] Could not convert TeX math '\frac{1}{1}', rendering as TeX LaTeX ...
0
votes
1answer
11 views

How to add Windows file path to .bib entry? (pandoc)

Question How would one add Windows file path with possible backslashes, underscores and spaces, such as C:\My_fancy\document path\document.docx to a .bib entry? I am using pandoc with pandoc-citeproc ...
0
votes
2answers
46 views

Latex (with pandoc) \ldots not rendering

I am working on a document in pandoc, converting to LaTeX for pdf output. For some reason, it seems that \ldots is not rendering properly, always giving tighly spaced periods (...). During the ...
3
votes
1answer
150 views

symbol \eth already defined when using libertinus(-otf) and lualatex [pandoc]

Using libertinus as fontfamily within a yaml-header of a .md-file and trying to convert with pandoc (2.9.2) and the pdf-engine lualatex (TL 2020, LuaLaTeX 1.12.0) I get the following error-message: ! ...
1
vote
2answers
244 views

Generate PDF metadata from markdown.md file with pandoc,

I use the following pandoc command to compile a PDF from a mardown file: pandoc infile.md metadata.yaml -o outfile.pdf my yaml file has the following content: --- documentclass: extarticle fontsize: ...
0
votes
1answer
62 views

Pandoc and LaTeX - Greek Hyphenation Problem

I am trying to use Pandoc with LaTeX but I have a problem with the hyphenation for greek, or more specifically the lack thereof. Having activated polyglossia I don't see why it doesn't just work. As a ...
0
votes
0answers
73 views

Invalid character ^^Z

I have a manuscript that works fine on a different machine with MiKTeX. I now moved it to a new machine and am getting: ! Text line contains an invalid character. l.145 make it fun.^^Z This is ...
0
votes
0answers
21 views

issue with '-' when converting docx to tex using panddoc

I am trying to convert docx with maths formula, and every thing seems to work fine but for '-' sign. For example, this is how it looks on docx but after translating using pandoc, I find on ...
0
votes
0answers
52 views

Lualatex and fontspec - Compile to DOCX

I've written a thing in LaTeX that I need to submit as a docx or doc file. I have a font that I specified with \usepackage{fontspec} \setmainfont{ FONT } If I pandoc assignment.tex -o assignment....
1
vote
2answers
125 views

How to keep a table on the same page?

I have a report with many summary tables of regression output and converted them into tables using pander in the Rmarkdown document. Even though all tables are less than one page, they sometimes break ...
1
vote
0answers
43 views

pandoc-crossref missing top-level section number in reference to subsubsection

In the following Pandoc markdown document, pandoc-crossref incorrectly assigns the section number 1.1 instead of 2.1.1 to the reference to sec:first-background-subsubsection (level=3). The reference ...
0
votes
0answers
136 views

Latex error: sty file not found after pandoc upgrade

I'm using pandoc to render a markdown document to a pdf. Everything was working fine when I had pandoc 1.x (I think it was 1.16), which I had installed using apt-get. But then I upgraded to version 2....
0
votes
0answers
25 views

Only put chapter, not section, in the page header [duplicate]

I am using Pandoc with --top-level-division=chapter, i.e. # foo becomes a chapter and ## bar becomes a section. I would like only the chapter titles to show up in the page header, not the sections. ...
0
votes
0answers
53 views

How do I use pandoc --filter pandoc-citeproc with biblatex' filtering capacity?

I would like to use pandoc to produce a Word document filtering some bibliographic entries. The following LaTeX code produced in TeXShop filters properly. \documentclass{article} \usepackage{...
1
vote
0answers
512 views

Using Pandoc to convert Markdown to Beamer Slides with PDF Bookmarks

I recently learned how to use Pandoc and TexLive LaTeX to convert Markdown to Beamer slides. The command I'm using is this: pandoc src/00_local_git.md -t beamer -o slides/00_local_git.pdf However, ...

1
2 3 4 5
10