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

Pandoc Conversion and \hypertarget

I converted a long text from Markdown to LaTeX and am trying to clean it up. I found this code and don't know what it does: Specifically: \hypertarget \texorpdfstring \label I have no idea what the ...
user avatar
  • 1,657
0 votes
1 answer
23 views

Pandoc Code block is not aligned using Eisvogel and Markdown

Hey it's me again and I am back with something that doesn't let me sleep anymore. I am using the popular Eisvogel Pandoc template for rendering my markdown files to PDFs. So far everything is working ...
user avatar
  • 25
2 votes
2 answers
43 views

Add a custom latex command to be used with pandoc/markdown

so I am using the popular Eisvogel template for my personal work. I basically type everything in markdown and use pandoc to convert it to a pretty pdf. Using blockquotes ( > text ) results in a ...
user avatar
  • 25
0 votes
0 answers
31 views

Pandoc TOC Roman Page Numbers

This is my first question here. Really enjoyed following the exchanges here while writing my thesis, it helped a lot ! I have one problem I could not find a solution anywhere. My setup is Markdown + ...
user avatar
0 votes
1 answer
23 views

HTML to PDF with Pandoc: How to change background color of the PDF?

I want to change the background color of the default white to #353535 and for that I'm trying to use the 'backgroundcolor' variable like so, pandoc FINAL.html \ > -f html \ > -V backgroundcolor:#...
user avatar
1 vote
1 answer
33 views

pandoc: how to generate a different \begin{figure} \end{figure} environment

I have a question similar to this one. I have a markdown document and want to convert it to pdf. I found the figures are placed in a position where latex things they fit best, but I want them to ...
user avatar
-2 votes
1 answer
50 views

How to use pandoc [closed]

I opened pan doc but I do not know how to change the file to word? Actually I used the code but I do not know where it is saved or exactly works? Is it complicated?
user avatar
1 vote
1 answer
82 views

How to add background color to the typing environment? [duplicate]

How can I add background to verbatim code blocks without adding extra vertical space? I am writing in Pandocs markdown, then converting to .tex with pandoc.exe -t context, then to PDF with context.exe....
user avatar
  • 11
0 votes
1 answer
47 views

Pandoc convert specific parts of document

I have a markdown file of which I want to convert sometimes only specific parts, sometimes the whole document. I know about lua-filters and fenced div which I think is a possible approach, but how can ...
user avatar
  • 21
0 votes
0 answers
25 views

Pandoc problem reading custom latex environment inside of a custom list

I want to compile a Latex document with the following structure in Pandoc: \documentclass{article} \newenvironment{myenumerate}{\begin{enumerate}}{\end{enumerate}} \newenvironment{myenvironment}{}{} ...
user avatar
  • 1,081
0 votes
1 answer
18 views

How to return to the initial definition of quote on markdown, after having redefined it? That definition is unknown or can vary depending on flavors

After having redefined quote in markdown to create nice blockquote with background color and borders, how can I return to the previous quote definition, that is unknown, because it's markdown who ...
user avatar
0 votes
0 answers
24 views

How do you insert figures and number them in these pandoc template?

Yo there, Im not used to markdown language so using the ieee-pandoc-template but the template does not have info about adding figures and make reference to. So I'm unsure if it has to do with markdown,...
user avatar
  • 383
0 votes
0 answers
72 views

pandoc conflict

Im trying to use some pandocs templates, but it throws an error and I can't correct it. Template:IEEE Paper Template for Pandoc. The requirementa are installled, but either running make or by hand ...
user avatar
  • 383
1 vote
0 answers
68 views

Highlighted words in LaTeX disappear in Pandoc

I wrote my thesis in LaTeX, but my supervisor wants a word document. So I used pandoc to convert it. Now I got my thesis back and had to mark the changes. I found this code (see below) to achieve this,...
user avatar
  • 121
0 votes
0 answers
46 views

How to evaluate latex code in markdown (pandoc) code chunk?

I wan't to evaluate latex command \input{file} in code section in pandoc markdown. I tried this: ```matlab syms s; G = \input{"raw.txt"}; step(G); ``` file raw.txt contains this: (100*s + ...
user avatar
  • 3
0 votes
0 answers
19 views

Equivalent to Source Maps or Providing Source Location Hints to Compiler

I'm using Pandoc and LuaLaTeX and have organized my project into several dozen LaTeX embedded Markdown documents into a final output document. Effectively, each chapter is a document and combined with ...
user avatar
  • 1
1 vote
0 answers
63 views

Overlay specification in beamer with a pause

This is similar to this question; however I am using pause, and not only. I would like to continue using pause. I read through this, which is helpful. I think the issue is related to this and this. My ...
user avatar
  • 458
0 votes
1 answer
354 views

How to render html tables in markdown using Pandoc?

The following markdown code containing html table tags doesn't render properly when converted to latex format using Pandoc. file.md: <table> <tr> <th>Alfreds Futterkiste</th> &...
user avatar
1 vote
2 answers
28 views

Autocolor for italic and bold fonts in pandoc-template

I have started using pandoc to auto-generate PDFs from my .md-notes. This is working out so far, I succeeded to customize the font, background etc. For readability, I want all the italic parts as well ...
user avatar
  • 31
0 votes
0 answers
92 views

Pandoc / Eisvogel template : code blocks in MarkDown with very long lines get cut off when outputting to PDF

here is my problem : I have this code in a code block in my markdown file : $ ./test ...
user avatar
  • 1
0 votes
0 answers
36 views

Including citations in equations when converting LaTeX to Word with pandoc

I have the following example document: \documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{makeidx} \...
user avatar
  • 1,657
4 votes
2 answers
184 views

Add a beamer note to a section slide using pandoc and markdown

I am using pandoc to convert markdown to beamer slides. I am using the notes in beamer to make note slides. I have slide-level=3 so that the first two markdown headings are sections. I want the ...
user avatar
  • 458
0 votes
1 answer
130 views

Generating fullwidth longtable in the tufte-latex style, when using Pandoc with Rmarkdown

I am writing a book in Rmarkdown using the tufte package; which uses tufte-latex for pdf output. My current issue is that I have not found a way to have a table extend wider than the normal margin of ...
user avatar
0 votes
1 answer
63 views

Fancyhead Display Custom Shorten Version Of \leftmark

Good day, I would like to display a custom shorten version of the \leftmark with Fancyhdr. Ideally it would be some type of switch with a case for each chapter. Right now this is what the header's ...
user avatar
  • 3
1 vote
0 answers
79 views

Why is pandoc not recognising package command sequences when converting TeX to docx?

I am attempting to use pandoc to convert a .tex file to a .docx file. When I use the command line to do so via pandoc foo.tex -s -o foo.docx, the produced foo.docx compiles fairly nicely but due to ...
user avatar
  • 11
0 votes
0 answers
85 views

Pandoc longtable and full width formatting

I need an example how to set a newenvironment (if that is the way) for longtable with Pandoc for formatting columns and/or the whole table as fullwith depending on line length or paper settings. In ...
user avatar
0 votes
0 answers
28 views

Pandoc - from MD to PDF - Undefined control sequence error

As a beginner, I've just installed MikTex and Pandoc. I'm trying to convert my markdown file into a pdf file using pandoc, but pandoc returns an error which goes like this: Error producing PDF. ...
user avatar
0 votes
0 answers
90 views

LaTeX to .docx using Pandoc – issues with itemizing

I generated two kinds of output files from my .tex file. The .pdf output (which has correct formatting): The .docx output using Pandoc (which incorrectly itemizes "test c-2" as item "d....
user avatar
  • 143
0 votes
1 answer
120 views

how to reduce space between authors via header-includes?

I am using scholarly-metadata.lua and author-info-blocks.lua as per the example below in R Markdown: --- title: "My title" author: - Mario Modesto-Mata: email: paleomariomm@gmail.com ...
user avatar
  • 53
2 votes
1 answer
94 views

My setup is happy with UTF-8 or escaped LaTex typographic characters, should I use one or the other?

I’m using Pandoc for an initial conversion of Markdown files into LaTex. I have two questions: I use UTF-8 in all my documents without any issues, and can output PDFs from LaTeX with either/both UTF-...
user avatar
0 votes
1 answer
126 views

Error producing PDF - Latex pandoc template

I'm writting a pandoc template inspired on iv054-homework-template. I want something like this: The code I use is: \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{titlesec} \...
user avatar
  • 3
1 vote
2 answers
98 views

latexmk's (undocumented?) error message "name of destination file is not current one; I'll flag rule as out of date."

I am using latexmk as the pdf-engine for pandoc, that is, I use the command pandoc --pdf-engine=latexmk --pdf-engine-opt=-emulate-aux-dir --pdf-engine-opt=-aux-directory=aux \ test.md -o test.pdf to ...
user avatar
  • 4,580
0 votes
1 answer
98 views

Pandoc with --citeproc ignores \cite commands

In short: is there any way to use citeproc with "pure" LaTeX bibliographical commands? Longer version: in the following markdown file, the [@Test] "native" pandoc command is ...
user avatar
  • 4,580
2 votes
0 answers
32 views

Convert latex to word with pandoc but no citations [duplicate]

I am trying to convert a document from .tex to word using the command pandoc -s main.tex --bibliography=library.bib -o testdoc.docx However, there are no citations either in the text or at the end of ...
user avatar
  • 41
0 votes
1 answer
58 views

What is this pandoc error

as try to convert html files to PDF ones $ pandoc *.html -s -o Book.pdf it returned this: warning: kpathsea: configuration file texmf.cnf not found in these directories: the pdflatext is of Arch ...
user avatar
2 votes
1 answer
60 views

Use a command with variables that uses \IfSubStr on the lowercased value of the input variables

[Similar questions] I looked at \lowercase with \IfSubStr and \StrDel but the suggestions didn't work. I apparently may have expl3 since I can use \newcommand. [Issue] I want to pass a variable to a ...
user avatar
0 votes
2 answers
133 views

MathJax not rendering Tex in display style

I'm rendering a LaTeX file to HTML via Pandoc, and the output has one key difference that I can't figure out how to fix. In my LaTeX'd PDFs, I have some math in display mode that renders as: But in ...
user avatar
2 votes
1 answer
93 views

Which extent of Latex functionality/packages is available in Pandoc

The Pandoc tool is available online at https://pandoc.org/try I use it for my conversions. Although, I am not sure whether it reflects the same capabilities as offline tool which you have to download: ...
user avatar
2 votes
0 answers
188 views

How to enable the equations, figures and tables references from latex to odt/docx using pandoc?

Due requeriments of the work, I must send reports in docx format. This part is done without problem, but in the resulting document there is no reference to the equations and figures (i.e.: the ...
user avatar
  • 383
1 vote
1 answer
157 views

How do I add the bibliography file (.bib) in my .docx when converting from .tex to .docx?

I need to convert a .tex file to .docx and I am trying to use pandoc for the first time. I manage to convert but the bibliography is missing and the citations do not appear. The tex file contains an ...
user avatar
  • 11
0 votes
0 answers
148 views

Pandoc convention to follow to write frontmatter, body & backmatter of a book in markdown

I am writing a book in markdown & use pandoc to convert the book to pdf (pandoc internally uses pdflatex/xelatex/lualatex) & epub Is there a way to specify in the markdown document that a ...
user avatar
5 votes
4 answers
708 views

How can I convert a TeX file to Microsoft Word or LibreOffice format?

I’m trying to convert a report from LaTeX to OpenDocument (.odt) or Office Open XML (.docx) formats. But the programs give errors and stop, so in the end neither formats are written. Option 1: Pandoc ...
user avatar
  • 383
0 votes
0 answers
48 views

Can I have `backward reference` from `Pandoc`'s `link-citations=true` like `footnotebackref`?

link-citations: true can do this: Once you click on any citation it will navigate to the end to a particular reference in your manuscript but can't do navigate back and that's what I want. Please help....
user avatar
  • 143
0 votes
0 answers
189 views

Pandoc cover image for PDF output

For some reason, Pandoc only has a cover image option for EPUB. I want a cover image for a PDF. Basically I'm happy to just have a first page where the image is stretched to full size with zero ...
user avatar
1 vote
0 answers
147 views

Latex renders "Script file ./input.markdown.lua not found" error into pdf

I am using this command line (batch file): .\pandoc.exe --pdf-engine-opt=-shell-escape --from=markdown --output=test.pdf mini.md --template .\templates\test.template with this input file #Testbook ...
user avatar
1 vote
0 answers
111 views

Reference custom style in LaTeX document for docx conversion with Pandoc

I am converting LaTeX documents to MS Word documents using Pandoc. I am using a reference document and I would like to apply styles from that reference document to some elements of the generated Word ...
user avatar
  • 63
1 vote
0 answers
89 views

Pandoc-generated lstinline in index

I'm generating a large document using Pandoc, and I'd like to use inline code in my index keys. Pandoc generates \passthrough{\lstinline!foo!} for these inline code fragments, and they don't seem to ...
user avatar
  • 945
0 votes
0 answers
40 views

Listings: Math Symbol as Line Comment

I'm using pandoc to transform markdown to latex to PDF. Where there's no fitting (simple) solution in MD, I use inline latex. Since hash / pound (#) signs are title markers in MD, I'd like to escape ...
user avatar
  • 3
0 votes
0 answers
57 views

Table with large cell data and long table spanning over multiple page

I need to create a 2-column table with below requirements: Column 2 has large data which spans over 2-3 lines Entire table may span over 2-3 pages The table entries are stored in a dictionary and ...
user avatar
  • 23
1 vote
1 answer
195 views

Tex document compiles fine, but converting it to .odt or .docx failes for mk4ht and pandoc

I am able to compile my document fine using the pdflatex chain in Kile, but when I try to convert it to an .odt file using mk4ht oolatex 0.main.tex I get the following error. ! pdfTeX error (\...
user avatar

1
2 3 4 5
12