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
15 views

how to convert xv6 book to html with pictures saved

the book is here: https://github.com/mit-pdos/xv6-riscv-book/ after make, it will generate book.tex, book.pdf and some other tex files. book.pdf have all pictures. I have tried to pandoc book.tex -o ...
1
vote
0answers
31 views

can't find pdflatex

I just upgraded to a new laptop with OS X 11.4 (Big Sur), and now I can't convert LaTeX/Markdown files to PDF anymore. Trying to convert using pandoc produces the following error: pandoc: pdflatex not ...
0
votes
1answer
31 views

How to use pandoc to convert markdown to readable/editable LaTex with Beamer?

I have asked this question on SO, but it didn't get any response, so I am tryin here as well, I hope it's not out of scope. If I use this minimal example of a Markdown slide ### Slide - A - bulleted ...
0
votes
0answers
30 views

Commenting/ Excluding commands for Latex 2 HTML with Pandoc

The Following Latex Item ends with the Runaway Argument, as apparently the begin/end soln need to be on separate lines. What I am trying to test is if there is a way to steer out certain commands for ...
0
votes
0answers
12 views

Internal document references Latex \label \ref via pandoc to HTML screw up for Epub generation

Basically Pandoc to HTML works really well pandoc -s ABC.tex -o ABC.html --citeproc --standalone --number-sections The generated (and with Jutoh post processed) Epub works fine on Kindle or Adobe ...
0
votes
1answer
14 views

Add citations at _end_ of file in pandoc markdown

I'm trying to write a scientific paper in mardown and would like to add a citation. Here's my markdown: --- title: Test test author: Jake Sarjeant documentclass: report header-includes: | \...
1
vote
1answer
63 views

LaTex serif fonts not working on Pandoc

I have some documents in markdown that I'm trying to convert to PDF using the default latex-engine, pdflatex. This is on a CentOS 7.9. In the markdown minimal example file, I have a yaml header which ...
1
vote
1answer
41 views

Verbatim “breakanywhere” doesn't have any effect with a markdown using fvextra package converted to a pdf with Pandoc

I'm generating a pdf from a markdown file that begins this way : --- header-includes: - \usepackage{fvextra} - \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines, breakanywhere, ...
0
votes
0answers
59 views

Is there a Latex based documentation generator?

The documentation generators that I know of either use HTML, Markdown(Pandoc), Restructured text (Sphinx), etc. I have not come across a pure latex-based one yet. The closest ones I know of is tex4ht.
0
votes
1answer
32 views

How do I globally add a border to all inline code that uses /lstinline?

I am using R Markdown and Latex with memoir to compile a book to pdf. I am using lstsetfor the normal code blocks while the inline code is converter and uses \lstinline. I would like to globally add a ...
0
votes
0answers
19 views

Keeping typesetting details in Markdown file

I have written my text in Markdown, and now it's time to start typesetting it with LaTeX. I'd like to keep the Markdown sources as the ultimate source, because I want to be able to keep changes to the ...
0
votes
0answers
45 views

Pandoc: Exporting Tikz Figures from Latex to html

I am trying to convert a tikz picture to html using the Python filter in this question running the command: pandoc "file.tex" --from latex+raw_tex -t html -o file.html --filter=filter.py ...
2
votes
1answer
71 views

Issues with itemizing using a latex pandoc template

I have tried looking around everywhere and could not find a solution to this issue. I have created a Latex template that is compatible with pandoc. For some reason whenever I enter another for loop ...
1
vote
1answer
34 views

Markdown Pandoc: How to set headings to sans font and paragraphs to serif font

How to set pandoc to generate pdf from markdown file to use sans font for heading and serif font for paragraphs? Do I need to put something to yaml header? I want this: I'm just using pandoc file.md -...
1
vote
0answers
42 views

Why is pandoc not able to convert images from this theme? [closed]

When converting a webpage generated by mkdocs material theme, Pandoc output does not export images. https://squidfunk.github.io/mkdocs-material/reference/images/ Please see below the conversion ...
0
votes
1answer
28 views

How do I globally change the style of the horizontal rule when using RMarkdown to pdf?

I am using R Markdown and Latex with memoir to compile a book to pdf. The author has used the *** syntax for horizontal dividers. Checking the compiled .tex file I can see that the conversion from ...
0
votes
0answers
108 views

Pandoc unable to find images converting LaTeX do MS Doc

I am experimenting with pandoc to convert a LaTeX document to the MS Doc format. The LaTeX document compiles without errors using pdflatex. However, when trying to convert into Doc format pandoc ...
1
vote
1answer
37 views

Avoiding kpathsea: Running mktexpk

I'm running pandoc in a docker container based on the FROM pandoc/ubuntu-latex image, and it's working fine. However, each time it runs, I get the kpathsea: Running mktexpk ... step which seems to ...
2
votes
1answer
76 views

Passing Xcolor package in YAML markdown for Pandoc

I have the following YAML in a .md file and everything is working smooth. But I want to use xcolor to change color for TOC. Pandoc Manual (see here) says: linkcolor, filecolor, citecolor, urlcolor, ...
1
vote
2answers
68 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 ...
0
votes
0answers
19 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
44 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
29 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
336 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
55 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
55 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
101 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
33 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....
0
votes
0answers
22 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
56 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
60 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 ...
2
votes
0answers
40 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 ...
3
votes
2answers
61 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 ...
0
votes
0answers
65 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
23 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
203 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
60 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 ...
0
votes
0answers
67 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
47 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
108 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
61 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
93 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. ...
0
votes
0answers
25 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
0answers
41 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
83 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
72 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
98 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
69 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
135 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 ...

1
2 3 4 5
11