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
1answer
28 views

Pandoc Full Chicago Citation

Colleagues, I'm struggling to convert my book manuscript from LaTeX into a Word document for my publisher using Chicago citation style. In particular, they request the full/short Chicago citation ...
8
votes
3answers
1k views

pandoc, markdown: create self-contained .bib file from cited references

In Latex there are a variety of tools that can be used to create a self-contained .bib file for the cited references that are extracted from several larger .bib files; see this popular tex....
0
votes
0answers
11 views

RMarkdown: Two column text overlaps with title

I'm writing an article on RMarkdown with the svmiller template and I want it to be two column, so this is now my YAML: --- output: stevetemplates::article: fig_caption: true pandoc_args: [ ...
0
votes
0answers
14 views

Pandoc: Markdown to PDF, fit pages [closed]

I am looking for a way to export a .md book to a .pdf where each page is constrained (/newpage to separate them) but can have different lengths. Hence I would need an "adapted" page filling ...
0
votes
0answers
16 views

Adjusting fontsize of specific table in external .tex file

\begin{longtable}[]{@{}llllllll@{}} \caption{Descriptive statistics of the European Parliamentarian data subset. \label{tbl:desc}}\tabularnewline \toprule \textbf{Statistic} & \textbf{N} & \...
0
votes
1answer
23 views

Globally (preable) set the width of all tables in a document

Is there a way to globally (such as in the preamble) define the width of all tables in a document? My goal is to have all tables set to the \textwidth. My content source is markdown, and I'm using ...
1
vote
2answers
25 views

Pandoc citeproc not recognizting pnfmt{}

Situation: I'm converting from .tex to .docx (for collaboration purposes...) using pandoc. Because I use a lot of citations with "emphasis added" (using authordate) I am using pnfmt{}to ...
1
vote
1answer
54 views

How can I reformat a table? Using Markdown > Pandoc > PDF

I am using Markdown to write a document. It's in lots of MD files which are then combined into 1, then sent to Pandoc as follows: pandoc -s combined.markdown --from markdown+table_captions+...
1
vote
1answer
594 views

Pandoc Output PDF with Code Block using listing other than verbatim

I using RStudio and Pandoc to output my document created in markdown to PDF. Pandoc always convert the code blocks in markdown using verbatim environment. Does anyone know how to switch the default ...
1
vote
1answer
38 views

All capitals for Latex headings

I want the titles of some of the headers in my Latex document (specifically part and chapter) to be uppercase like they are in classicthesis. I also want to avoid changes to the Table of Contents. I ...
0
votes
0answers
33 views

Pandoc loses Section numbers as well as Figure /table references. Doesn't show superscripts

I have a supervisor who is uncomfortable with LaTeX and wants a Word document. It is a sizeable document with many cross referencing between sections and chapters. I used pandoc to make the conversion....
0
votes
2answers
53 views

Using Verdana as math font with pandoc+beamer

I'm trying to use Verdana as the math font in beamer slides written in Markdown and rendered with pandoc using XeLaTeX as the PDF engine. As specifying Verdana with pandoc's mathfont option directly ...
1
vote
1answer
18 views

Styling lstinline separately from listings in preamble?

I use pandoc, so I'm a bit limited in the tex hacks I can apply. However, here is an example: I have this document, test.md, in pandoc Markdown: --- listings: true # see also https://stackoverflow....
1
vote
3answers
878 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 ...
1
vote
1answer
2k views

pandoc: converting between .tex and .rst

I'm using pandoc to convert from .tex to .rst. If I start with the following .tex file, mwe.tex mwe.tex \section{Introduction} Here is some text. Here is some more text. \begin{minipage}{.4\...
0
votes
0answers
21 views

Doubts with the conversion that pandoc does

I have migrated a large document from InDesing to .html and then passed that document to .tex using pandoc. The conversion is almost perfect, I just have to correct a few things manually. In the ...
0
votes
1answer
51 views

Crop PDF Graphics [closed]

I have a number of HTML snippets which I want to programmatically insert a rendering of into different cells of a tabular environment. I've tried a number of tools to convert these into latex such as ...
0
votes
1answer
41 views

How can I nest a list of items in a table where I use \multicolumn?

I am trying to replicate the table below in LaTeX: At the moment, I have managed to do the following (using \longtable because the table is supposed to be long enough to span multiple pages): \begin{...
1
vote
1answer
327 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....
3
votes
1answer
2k views

pandoc support for LaTeX ctable?

I use ctable to make my LaTeX tables. My ultimate goal is to produce a presentation of HTML5 slides. The tables that I need to present are all created in LaTeX with ctable. For example, I have my ...
1
vote
1answer
42 views

How to convert a latex document with Tikz/Pgf images and Latexmk into HTML?

I am hoping this is not a duplicate, but I was googling around so much that I can't remember where I started. But I have a latex document that has some tikz and pgf images in it. I usually use latexmk ...
3
votes
2answers
59 views

Problem creating a copy of \includegraphics

I've edited this to more clearly state my question. I've had some wonderful suggestions, but they are all pointing at something that's working just fine. I am trying to define a macro \embedimage ...
2
votes
0answers
36 views

Parsing to package-independent Tex

Is the ability to create package-independent TeX readily available? I would like, for example, to have a system with access to a package (e.g. mhchem) create TeX that could then render on a system ...
0
votes
0answers
43 views

Converting docx file to Latex class file

I have a MS-Word document in the docx format and would like to be able to create equal/similar looking documents using Latex. Is there some (semi)automated way to convert a docx document into a class (...
0
votes
0answers
17 views

Latex to pdf pandoc conversion where a table is fetched from file

I am trying to run a simple pandoc tex-to-pdf conversion. The command is: pandoc -s -o tmp.pdf tmp.tex For some reason it generates an empty pdf with just a page number but no table in there. It ...
1
vote
1answer
31 views

Pandoc Markdown: How to create overprint environments for beamer

I am creating slides in markdown that I want to process using pandoc and beamer. I wonder if there is a markdown way of creating an overprint environment? I tried to do it with the fenced div ...
1
vote
1answer
70 views

How to generate a bibliography with pandoc?

How can I generate a bibliography with pandoc? If I have this test.md file: # Test This is a test [@doe1905]. # Bibliography How can I generate the bibliography with this bibtex reference: @article{...
1
vote
1answer
584 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
0answers
35 views

\noindent & indent:true in pandoc

I'm using pandoc to convert markdown to pdf and have enabled the indent:true option. While pipe tables are not indented, tables defined with latex are. I have tried adding \noindent, but it has no ...
1
vote
0answers
26 views

pandoc-crossref does not resolve proper equation referencing from LaTeX to Word

When i send a LaTeX document through Pandoc to create a MSWord file, the equation referencing is lost. I am using pandoc-crossref for referencing. Does anyone has an idea how resolve this issue? The ...
0
votes
0answers
55 views

How to change body text for pandoc template?

I'm looking for a way to change the color of the text and text headings (p, H1, H2, H3) within a pandoc document that is using the Eisvogel theme. I'm aware following method can be applied functional, ...
0
votes
1answer
27 views

How do I change the margin of Pandoc's markdown lists?

So, I have the following snipped: **Elektronenkonfigurationen:** - F: $1s^2 2s^2 2p^5$ - Cl: $1s^2 2s^2 2p^6 3s^2 3p^5$ - Br: $1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^{10} 4p^5$ - I: $1s^2 2s^2 2p^6 3s^2 ...
1
vote
1answer
87 views

ConTeXt: Markdown Annotations to Environments

Background A tool chain currently uses Pandoc and a Lua filter to generate generic ConTeXt environments. My text editor produces XHTML documents that honour Pandoc's extended fenced div syntax. ...
3
votes
2answers
500 views

Someone provide a tutorial link for Pandoc txt to tex [closed]

can someone provide a link to either documentation or a tutorial on how to convert txt files to tex files. You will probably have to extrapolate this question since I don't know enough to compose a ...
0
votes
0answers
21 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: --- ...
1
vote
1answer
325 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
27 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-...
1
vote
2answers
748 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 ...
8
votes
2answers
1k views

Row coloring too wide (Pandoc MD -> PDF)

I'd like to have zebra striped table rows in the PDF output converted from Markdown using Pandoc. To create Latex tables Pandoc relies on the packages booktabs and longtable. Therefore I tried to ...
0
votes
0answers
57 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
44 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
70 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=...
3
votes
2answers
1k views

pandoc lists in environments

I want to put a list in the lemma environment. I am using pandoc to convert from markdown to LaTeX, so I thought it would be neat to use markdown lists. I tried: \begin{lemma} The following are ...
0
votes
0answers
48 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 ...
1
vote
1answer
72 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
96 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 \...
25
votes
6answers
19k 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 ...
0
votes
0answers
65 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
376 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
36 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
2 3 4 5
11