pandoc

using \thanks in pandoc

a 夏天 提交于 2019-12-11 04:44:16
问题 according to the pandoc manual, a variable "thanks" can used in the YAML of a markdown file to replicate Latex's \thanks command, like so: --- title: super awesome paper author: albert enstein thanks: university of alberta --- but instead it puts the asterisk on the title and not the author, where it is supposed to go. EDIT How do I put thanks on the author and not the title with pandoc? 回答1: As the comments already points out, you will probably need to create a custom template. The behaviour

How to export Pandoc markdown to Worpress.com compatible PHP Markdown Extra?

♀尐吖头ヾ 提交于 2019-12-11 02:54:32
问题 I have markdown documents in Pandoc's standard markdown format, which i would like to publish on a free wordpress.com blog ("free" implies that i cannot install plugins or modify Wordpress PHP files). Officially, wordpress.com supports the PHP Markdown Extra variant that it converts into HTML, so theoretically i could just use Pandoc to convert my files into this markdown_phpextra format (which Pandoc does flawlessly). However, as described in this SO question i noticed that my paragraphs

How do I continue list indentation in Pandoc Markdown when converting to PDF?

北城余情 提交于 2019-12-11 02:26:21
问题 I am facing an issue with using Pandoc Markdown. I want my pdf document to look something like below (please notice how the indentation of the list items continue after adding images) Point a Image for point a here. Continuation of point a. Point b Image for point b here. Continuation of point b However, no matter what I try, I can't get the indentation to look right. After inserting the image, either the indentation is lost (<4 spaces) or it starts showing as code block (>=4 spaces). How do

Pandoc: HTML-to-Markdown--can I replace elements using templates or scripts?

风格不统一 提交于 2019-12-11 01:46:50
问题 I'm successfully converting HTML to Markdown, but elements such as <span class="cmd"> are preserved and appear in the MD result. Is there a way, perhaps by using templates or Pandoc scripting, to replace the <span> element with <strong> or even with asterisks during the HTML-to-Markdown conversion? For example: I want to replace <span class="cmd">This content must be bold</span> with <strong>This content must be bold</strong> or *This content must be bold* Thanks very much. 回答1: You could

declaring arbitrary variables for pandoc conversion using YAML metadata block

久未见 提交于 2019-12-10 23:38:23
问题 I've only recently discovered Pandoc, so I'm still getting to used to it a lot of its features. It looks like an incredibly useful tool and I'm excited to find out some applications for it. I've been consulting the User's Guide, and while there is a section on what I'd like to know, I can't seem to get the desired output. I'm not sure if I'm reading the entry correctly. Put simply, I have a document in .markdown which acts as a template. From this template, I'd like to produce several other

asciidoc: is there a way to create an anchor that will be visible in libreoffice writer?

北战南征 提交于 2019-12-10 23:31:52
问题 Tl;dr; What is the correct way to create an anchor in docbook? and is there a way that will make the anchor visible in writer? Background I am trying to split up documentation that was previously in single open office documents into smaller asciidoc documents which are both included in the main open office document and also converted to either or both of html & pdf . I have this mostly working. I use asciidoctor to create html. asciidoctor-pdf to create pdf and a combination of asciidoctor

r-markdown: German quotation marks

橙三吉。 提交于 2019-12-10 21:47:26
问题 I coudln't find out how to use the "lang: de" option (link) properly. That is, while tables are correctly named "Tabelle", the following settings: --- title: "German quotation marks" author: "will" date: "24 Jänner 2018" output: pdf_document --- "Das ist sehr schön", sagte sie. Produce this output: whereas the following is needed: 回答1: Following Tobi we can define language and use latex package csquotes . --- title: "German quotation marks" author: "will" date: "24 Jänner 2018" output: pdf

knitr/rmarkdown/Latex: How to cross-reference figures and tables in 2 different pdf files?

别等时光非礼了梦想. 提交于 2019-12-10 19:49:13
问题 I'm trying to write a scientific article and the associated supplementary materials entirely in RStudio with rmarkdown. It seems clear that book down is the way to go to cross-reference between files (https://stackoverflow.com/a/38884378/576684), but I also would like to be able to reference figures produced in one pdf in the other pdf. Although my latex has got quite rusty with time, I imagine it could be achieved as follows: compile the article tex and SuppMat tex a first time using

Generate inline rather than list-style footnotes in Pandoc Markdown output?

自作多情 提交于 2019-12-10 19:43:01
问题 When converting from some format (say, HTML or Docx) to Markdown in Pandoc, is it possible to render all footnotes in the inline style ("this is the main text^[this is a footnote]") rather than as numbered references with a corresponding list at the end of the document? I want to work on my Markdown documents (converted from a Docx of my thesis) as master texts, but now if I add a new footnote it messes up the numbering. Alternatively, is there another convenient way (i.e. not Pandoc) that

How to position and format length of a table's title [R Markdown, pander package]

我的未来我决定 提交于 2019-12-10 19:15:38
问题 I am preparing R Markdown document in the pdf format. In the document I have a couple of tables. I used pander package to format tables. Suppose that I have data frame, DF, that I want to transform into table in the pdf output. To achieve that in a r code chunk I changed panderOptions for table caption prefix in order to print it in NON-English language and in the next line I call pander function with specified caption argument. Here is relevant part of R Markdown code: --- title: "Let's try!