FAQ Database Discussion Community

## Pandoc(md, latex) should generate bibitem in Bibliography

markdown,pandoc,pdflatex,bibtex,citations
With pandoc I am trying to produce a .tex file by combining a .md and a .bib file. In the resulting latex file, Pandoc already formatted as plain text the inline reference as well as the full reference in the bibliography. However, I like to have the references in \cite...

## How to emphasize column names (header) when using pandoc in R

r,rmarkdown,pandoc,pander
I know of the emphasize.rownames argument but have not been able to find its equivalent for column names. Attempted to look into panderOptions --> header.style to no avail. Please find some test code below that emphasizes the first column but not its header. Ideally, I'd be able to specify which...

## Pandoc Error in Slidify: Customizing First Slide Goes Wrong

pandoc,rmarkdown,slidify
I am using "slidify", "slidifyLibraries" and R Version 3.1.2 + RStudio Version 0.98. To knit the slidify slides I use the knitHTML-button. I have my own styles that I would like to use, but when I add a class tag, id tag or both to the first slide (code directly...

## Incorrect conversion from R Markdown to LaTeX

latex,knitr,rmarkdown,pandoc
Why does the following R Markdown minimal (non)-working example not compile to PDF? --- header-includes: - \usepackage{fancyhdr} - \pagestyle{fancy} - \lhead{} - \chead{} - \rhead{The performance of new graduates} - \lfoot{From: K. Grant} - \cfoot{To: Dean A. Smith} output: pdf_document: keep_tex: yes latex_engine: xelatex --- # Test In particular, the...

## Vertical align text to a box next to it

latex,pandoc
In the output below, I'm trying to align Author with the top of the box next to it. I've tried a couple of different boxes and whatnot, but I can't get it to align properly. Here's the code: \mbox{ Author } \fbox{\begin{minipage}[c]{12cm} \medskip $for(author)$ $author.name$\\$if(author.title)$\emph{$author.title$}\\$endif$$if(author.company)$$author.company$$endif$ \par\medskip $endfor$ \medskip \end{minipage}} ...

## Can I set command line arguments using the YAML metadata

yaml,markdown,pandoc
Pandoc supports a YAML metadata block in markdown documents. This can set the title and author, etc. It can also manipulate the appearance of the PDF output by changing the font size, margin width and the frame sizes given to figures that are included. Lots of details are given here....

## Keep trailing zeros for percents only

r,rmarkdown,pandoc,pander
Given the following example: library(pander) tableAbs <- Titanic[1, 1, , ] tablePct <- round(prop.table(tableAbs) * 100, 2) table <- cbind(tableAbs, tablePct) pander(table) ---------------------------------- &nbsp; No Yes No Yes ----------- ---- ----- ----- ----- **Child** 0 5 0 2.78 **Adult** 118 57 65.56 31.67 ---------------------------------- I would like to keep all...

## Preserve line breaks in title using pandoc

latex,markdown,pandoc
Consider the following title block in pandoc-flavored Markdown: % Higgelty Pigglety Pop! or There Must Be More to Life % Maurice Sendak Here, line breaks are part of the title. It is possible to reformat the title in order to insert it into regular text flow, e.g. "Higgelty Pigglety Pop!...

## Pandoc - HTML to Markdown not processing nested unordered lists correctly

html,nested,html-lists,markdown,pandoc
I am trying to convert a nested unordered HTML list to Markdown using Pandoc. The nested list in the HTML document is in the format: <ul> <li>outer list item</li> <li>outer list item</li> <li>outer list item</li> <ul> <li>inner list item</li> <li>inner list item</li> <li>inner list item</li> </ul> <li>outer list item</li> <li>outer...

## How to use Pandoc filter within Hakyll?

I am sorry to ask such a question. But I am really new to Haskell. I searched the Internet for a whole day but didn't find any example. I have a pandoc filter written in python (tikzcd.py). I want to use that filter to process my blog posts. I guess...

## Pandoc disable figure stretching from Markdown to PDF conversion

pdf,markdown,pandoc
I create PDF documents from Markdown documents using the simplest pandoc command: pandoc my.md -o my.pdf The figures inside the PDF are all stretched, i.e: 100% width. Which configuration should I give to pandoc to leave the figures as is without changing figure size....

## Pandoc: what are the available syntax highlighters?

pandoc
Bullet point 18 of http://pandoc.org/demos.html#examples shows how to change the syntax highlighter used by giving an argument to --highlight-style. For example: pandoc code.text -s --highlight-style pygments -o example18a.html pandoc code.text -s --highlight-style kate -o example18b.html pandoc code.text -s --highlight-style monochrome -o example18c.html pandoc code.text -s --highlight-style espresso -o example18d.html pandoc...

## Is it possible to compile .tex files to PDF with 'pandoc'?

osx,pdf,pandoc,tex
Is it possible to compile a .tex file with pandoc? I'm currently taking my class notes in MultiMarkdown with MacVim. That way, when I get home, I can just mmd2tex and compile the .tex file to PDF using TexShop. It works great but the process is actually quite time consuming....

## Slim template: use Pandoc as markdown converter?

ruby-on-rails,markdown,pandoc,slim-lang
I use slim as template syntax in a Rails project. I always loved its markdown: feature. For the current project I have to export some markdown content to different formats, e.g. PDF. I use Pandoc for this, which has enhanced capabilities for markdown. Now I wonder whether I can tell...

## Pandoc 1.13.2 outputs html table as text

markdown,pandoc
Take this tst.md file (in Markdown) % Test document <table> <thead> <tr > <th>A</td> <th>B</td> </tr> </thead> <tbody> <tr > <td>1</td> <td>2</td> </tr> <tr > <td>3</td> <td>4</td> </tr> </tbody> </table> End of test file and run it with pandoc 1.13.2 to transform it into html pandoc -s "test.md" -o test.html...

## Is it possible to have custom numbers in ordered lists in markdown?

markdown,pandoc
Say, I need a list (for indentation purposes) of the following format: (1a) Bla (1b) Bla (2a) Bla (2b) Bla Is there a way to do this in markdown?...

## pandoc version 1.12.3 or higher is required and was not found (R shiny)

pandoc,rmarkdown,shiny-server
I have a problem generating a pdf report from my app shiny which is hosted on a server. the app works fine but when I press the button to download the report, I get this error : pandoc version 1.12.3 or higher is required and was not found. The proble...

## How do I convert markdown equations to pdf using pandoc

pdf,latex,markdown,pandoc
I have a markdown document with lots of equations (mathjax I think) which renders fine with the application Marked 2. When I try to convert it to pdf with pandoc to create the bibliography, I get an error. For example, with \\[ \mu_{s,h,d,y} = \left\{ \begin{array}{1 1} \omega_{s,h,d,y} + \delta_{s}(t_{s,h,d-1,y}...

## PanDoc: How to assign level-one Atx-style header (markdown) to the contents of html title tag

html,markdown,pandoc
I am using PanDoc to convert a large number of markdown (.md) files to html. I'm using the following Windows command-line: for %%i in (*.md) do pandoc -f markdown -s %%~ni.md > html/%%~ni.html On a test run, the html looks OK, except for the title tag - it's empty. Here...

## How does pandoc-citeproc sort citations?

markdown,pandoc,csl
I have a pandoc-style Markdown text where I cite two papers by the same author in the same place: Lorem ipsum [@Author2000;@Author2001] dolor sit amet. This is rendered as Lorem ipsum (Author 2001, 2000) dolor sit amet. Why are these citations sorted this way, contradicting the sequence in my text,...

## How to generate a GitHub flavoured markdown file using knitr?

r,knitr,pandoc,rmarkdown,github-flavored-markdown
I love using knitr to generate dynamic reports and share them with my co-workers using GitHub. What I usually do is to knit my Rmarkdown script --knit ('myfile.Rmd')-- and generate a markdown (myfile.md) version that can be directly seen on GitHub. The markdown file on GitHub works much better for...

## Asciidoc and math equation does not render on .docx

docx,doc,pandoc,asciidoc,asciidoctor
I'm trying to convert .adoc files to .docx Actually I'm using: asciidoctor file.adoc -o file.html pandoc -s -S file.html -o output.docx My math equations or symbols inside .adoc are equal to: latexmath:[$\phi$] and more text as Inline test latexmath:[$\sin(x)$] It returns after conversion to docx the strange lines inside .docx:...

## Generate a pandoc table without repeated values

r,dplyr,pandoc,pander
I use pander to generate pandoc style tables, often I need to suppress repeated values of variables like this example: ta <- data.frame(class=c(rep("C1" ,3), rep("C2", 6)), name=rep(c("L", "V", "C"), each=3), num=rpois(9, 10)) pandoc.table(ta) The output is -------------------- class name num ------- ------ ----- C1 L 15 C1 L 11 C1...

## pypandoc + pandoc-citeproc to convert bib to rst

python,pandoc,restructuredtext,bibtex
I have a .bib file with references and I would like to render that file as restructuredtext (in other words, my input is a file references.bib and my desired is file references.rst). That conversion should be done with a Python script, so I tried to use pypandoc (version 0.9.7, with...