Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
23 views

Forcing markdown in a comment environment creates a runaway argument

I would like to create documents that include markdown within environments that can be hidden. Currently, I am using pandoc with a custom template and following the instructions for hiding ...
0
votes
1answer
15 views

hyperref Form spanning multiple markdown sections?

begin{Form} and end{Form} currently works in markdown if there is no markdown syntax in-between: \begin{Form} \TextField[name=Title, width=0.87\textwidth, bordercolor=black, value = {Some default ...
0
votes
1answer
15 views

Error when using rmarkdown/pandoc

I am using Rmarkdown (and ultimately Pandoc) to create a PDF on Ubuntu 18.04. However, I get following error LaTeX Font Info: Try loading font information for T1+lmtt on input line 139. (/...
1
vote
1answer
31 views

put last modified date on the PDF form generated by markdown + hyperref + javascript + fancyhdr?

This is my pandoc version: pandoc --version pandoc 2.3.1 Compiled with pandoc-types 1.17.5.1, texmath 0.11.1.1, skylighting 0.7.3 Default user data directory: /Users/vle/.pandoc Copyright (C) 2006-...
2
votes
1answer
51 views

Is it possible to use \regex_replace_all instead of \tl_replace_all

I have the following macro definition: \let\hlORIG\hl \ExplSyntaxOn \tl_new:N \l_jdhao_hlx_tl \RenewDocumentCommand\hl{m}{% \tl_set:Nn\l_jdhao_hlx_tl{#1}% \tl_replace_all:Nnn\l_jdhao_hlx_tl{\ }{~}...
4
votes
2answers
52 views

How to renew verbatim to Verbatim from fancyvrb?

I am using pandoc to convert Markdown to Tex, pandoc will render code blocks to \begin{verbatim}CODE\end{verbatim}, and fvextra only works with \begin{Verbatim}[breaklines]. How can I make {verbatim} ...
2
votes
2answers
53 views

Word wrapping text only when the hbox is overfull

I am using pandoc to process an markdown file that is causing me some issues with regard to in-line code blocks. In some cases I need to be able to have a long string without any punctuation or ...
0
votes
1answer
60 views

How to prevent word wrapping with 2 hyphens?

I have the following markdown file that demonstrates the issue (at least in my environment): --- title: TEST subtitle: Minimum Working Example version: 1.0 rev0 document: TEST-MWE date: 27 December ...
0
votes
0answers
24 views

Listings not breaking long lines with breaklines=true and breakatwhitespace=false

I have the following code in my Markdown: ```{latex-fontsize=scriptsize} $ ./my-new-application create app_example creating app_example Generating <path-to-app-src>/new-application/...
0
votes
1answer
34 views

Word wrapping for short strings in parentheses

I have a markdown file that I process with pandoc. I have the following text in the .md file: **Note:** The entire text above would be entered on a single command line without the backslash (`\`). ...
2
votes
2answers
49 views

pandoc to PDF not putting a shaded block around language specific code sections

I have the following text in my .md file: ### Table of Contents, List of Tables, List of Figures The example below shows how to place a table of contents, a list of tables, and a list of figures, ...
1
vote
1answer
21 views

Multi-level ordered list with prefix in different parts of the text

I'm writing a document with a list of items that must be ordered. The result should be something like this: Title 1 R1. Requirement 1 R1.1 Requirement 1.1 R2. Item 2 R2.1 Requirement 2.1 R2....
2
votes
3answers
43 views

Retain inter-word spacing in math mode

Is there a shorthand/ instruction for math mode to simply retain words and not collapse the whitespace? I.e. rather than manually inserting spacing after each word with \, and friends. Here is the ...
2
votes
2answers
143 views

“LaTeX Error: Can be used only in preamble” even though all directives before begin directive

In the following simplified version of a markdown doc intended for pandoc/latex generation to `pdf: \documentclass{article} \usepackage{unicode-math} \setmainfont{TeX Gyre Schola} \setmathfont{TeX ...
2
votes
1answer
58 views

How to increase pandoc equation resolution

I have provided a minimal working example below. \documentclass{article} \usepackage{amsmath} \begin{document} $x^2$ \end{document} I processed the above LaTeX file using pandoc --webtex -t html | ...
0
votes
0answers
33 views

Top Vertical alignment for all images in either Tex or Pandoc

I am using the following pandoc header: output: rmarkdown::html_document: theme: lumen fig_caption: yes All images are being marked as figures and moved to the end of the document (...
1
vote
1answer
64 views

How can I get a less-curly \mathcal{T} with xelatex?

I'm compiling the following document with pandoc: $\mathcal{T}$ using this command line: pandoc -s --from markdown --to latex -o foo.pdf <(echo 'foo: $\mathcal{T}$') If I use xelatex (--pdf-...
0
votes
1answer
102 views

Pandoc fontawesome in Markdown -> Xelatex -> pdf

I want to use fontawesome symbols in an md yaml-block that then get converted into latex and from there to pdf. I used the fontawesome package in xelatex and I tried to convert a string in an md ...
2
votes
1answer
70 views

ConTeXt: Split xtables across multiple pages

Background Use extreme tables to split tabular data across pages. Problem The \setupxtable command does not appear to be sufficient to force a table to split across pages. Also, a reference to ...
0
votes
1answer
33 views

Html to LaTex : Trademark sign not converted properly

Whenever I try to convert html text which contains the trademark sign into LaTex, the trademark sign gets converted into "â„¢". I convert a xml file to html and afterwards to latex.That's how the xml ...
1
vote
1answer
976 views

Algorithm pseudocode in markdown

I am writing a project report in markdown. Use LaTeX inside the markdown to write formulas. Then I convert the markdown file to PDF with pandoc. All works like a charm. But, I would like to include ...
1
vote
1answer
78 views

Using Open Sans in XeLaTeX with fontspec error

I am trying to use Open Sans with pandoc but always get the Following error when I try to generate the PDF using XeLaTeX: xdvipdfmx:fatal: This font using the "seac" command for accented characters......
3
votes
0answers
85 views

Including an Rmd file in a Rnw file using pandoc

I was trying to follow this example that shows how to write a separate chapter in RMarkdown and then include it in your main RNW file using \include{}. However, I have not been able to get pandoc to ...
0
votes
1answer
39 views

Write Form Field From MikTex (via Pandoc) which iTextSharp Can Parse

I'm doing some tests with iTextSharp to see it would work to automate a workflow I have. So, I am using Pandoc to generate some pdfs from markdown. But when I generate the files iTextSharp doesn't ...
1
vote
1answer
112 views

Which schemes include pdfLatex

I want to install pdfLatex to use with Pandoc. I know this is included with Tex Live and MikeTex. I am trying to install Tex Live and I would like to select a scheme which is smaller than the full ...
2
votes
1answer
261 views

Option clash with RMarkdown and beamer

I work across two separate Mac computers, a Macbook Pro at work, and a Macbook Air at home. Both macs are running identical operating systems. I am writing in RMarkdown, using knitr to compile beamer ...
2
votes
0answers
46 views

Exporting tables made with dcolumn and multicolumns to docx using Pandox

I am trying to convert a tex-document into a docx-file to share it with some colleagues who do not use TeX and will not do so in the (near) future. At the moment, the best possibility seems to be ...
2
votes
1answer
201 views

Pandoc: Exporting Tikz Figures and Other Environments from Latex to other formats

How can I alter the answer from this question (which uses a lua-filter), so that it outputs tikz figures in a docx document, but also extracts content from non-pandoc friendly environments (as it does ...
1
vote
2answers
270 views

What would a minimum latex template must contain in order to successfully convert markdown to pdf?

pandoc -D latex contains a lot of things, most of what I don't need. I am trying to clean it up to a minimum to make it easier to edit. I thought this would be the most minimum to get started with: \...
2
votes
0answers
74 views

Pandoc Latex: Overflow in Longtable

I use pandoc with some custom LaTeX template to generate a PDF Table. Hence, I cannot easily influence how Pandoc generates the table code, but instead I can change the configuration in the Latex ...
0
votes
0answers
24 views

pandoc doesn't accept `<` pre-text conventions from apacite

I'd like to use pandoc to convert a long .tex to .docx. For reasons of and vs. & usage in in-text citations, I chose to use apacite over natbib. By convention, apacite has users place 'pre-text' ...
0
votes
0answers
181 views

Convert latex to Word via pandoc with numbered and unnumbered sections

I have a document (FromLaTeX.tex) something like this: \documentclass{article} \begin{document} \section*{Introduction} \section{First} \section{Second} \subsection{Numbered subsection} \subsection*{...
2
votes
1answer
133 views

Create labels for headings with pandoc

How can I create labels for headings with Pandoc? I thought I was able to use latex macros directly in pandoc, however, for creating labels it doesn't seem to work. This is the pandoc command: ...
0
votes
0answers
34 views

Bibliography skips some fields

I'm trying to use Rmarkdown to write term paper but I'm experiencing a problem while trying to reference websites. In my paper.rmd file I use point to show my bibliography file: bibliography: /...
2
votes
2answers
439 views

With pandoc, is it possible to export a bibliography in markdown?

I have a document with a bibliography in BibTeX and must to some post-treatment on the generated bibliography before producing the final document (I must emphasize some author names and sort the ...
0
votes
0answers
114 views

convert LaTex citations back to MMD citations

I wrote my dissertation in Scrivener in MMD. As I was putting in the final edits, I exported to LaTex and used biblatex-chicago for my citations. It worked great. However, I made lots of edits ...
0
votes
1answer
94 views

Converting latex to Html character problems

I am using Ubuntu 16.04 and the nano text editor to create my .tex files. When using quotations I use \textquoteblleft and \textquoteblright, otherwise if I use ", all of the quotes in the compiled ...
3
votes
2answers
602 views

How to use PanDoc to derive output from LaTeX and TikZ to a DOCX file?

I have a LaTeX document with the following code which generates a picture using TiKZ. (Minimum working example here) \documentclass{article} \usepackage{amsmath,stanli} \begin{document} Analyse ...
2
votes
2answers
684 views

Left Quotation Marks when using RMarkdown and knitR

Normally when you want left quotation marks in LaTeX, you type the following: `` However, in RMarkdown, you will trigger a block of R code to run when you type two pairs of backticks on the same ...
3
votes
3answers
330 views

Pandoc / Latex / Markdown

For a project, I would like to use .md files and convert them to a .docx file. I would also like to include some \latex\ commands within the .md files. I just do not want to mess up the system that I ...
1
vote
0answers
181 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 ...
2
votes
0answers
116 views

Making index in Pandoc generated ebook

I would like to make the example I have written in this question to work in Pandoc. When run using pandoc input-tex-file -o output-epub-file, pandoc produces a nice ebook using this tex file. However, ...
1
vote
1answer
985 views

Latex to HTML conversion (basic explanation)

I have been looking around for an easy way to save my .tex into a .html file, but all the questions/answers are very technical, and I have not found one that is accessible to me/beginners. I have seen ...
1
vote
0answers
56 views

pandoc can't process \MakeUppercase

I try convert latex book to OpenOffice ODT format. And my pandoc 1.17.2 (Debian 9x64) can't process \MakeUppercase macros. MWE: \documentclass{letter} \begin{document} test \MakeUppercase{Case ...
9
votes
2answers
398 views

Concat multiple md files in a tex file using XeLatex

during my thesis I have multiple md (markdown) files in a git repository. All these md files are chapters of a final book pdf that I want to generate. I would like to use XeLatex so I am thinking of ...
1
vote
1answer
108 views

Why isn't my document compiling correctly? [closed]

I'm trying to get started writing in LaTeX and have the following simple document skeleton: \documentclass{book} ...
0
votes
1answer
144 views

Setting h1 from title/metadata [closed]

I have a bunch of .md failes. No 1 of them have an h1. They have instead a title in the metadata looking like this: layout: layout.pug navigationTitle: This is the title title: This is the title ...
1
vote
0answers
113 views

Making TeX PDFs compatible with Word 2016 importing

I'm changing the focus of this question after experimenting a little further, I've left the original question in the quote at the bottom. As the original question points out, newer versions of Word (...
2
votes
1answer
194 views

How to set language locale for pandoc citeproc in the command line

Please let me know to add French to the following argument in the command line, so that strings in English such as in, available at are translated. The argument '-V lang=fr-FR' doesn't change the ...
2
votes
0answers
377 views

styling verbatim with background color

I am using pandoc to convert Markdown documents containing code blocks to PDF, and the intermediate TeX surrounds the code with \begin{verbatim}...\end{verbatim}. How can I stylize and format these ...