pandoc

Internal section link fails in beamer output of pandoc markdown

☆樱花仙子☆ 提交于 2019-12-11 13:39:42
问题 I have tried the answer to this question, but I can't get the internal section links in Pandoc to work with the Latex Beamer output. Following the Pandoc Documentation, I have created this minimal working example: # Part One {#part-one} ## Section One {#section-one} ### Frame one {#frame-one} - Items... ### Frame two {#frame-two} - Items... - Link to [Section One](#section-one) And built it using: pandoc \ --table-of-contents \ -s -t beamer test.md \ -o test.pdf The built LaTex Beamer pdf

Undefined control sequence error while converting from markdown to PDF with pandoc and xelatex

若如初见. 提交于 2019-12-11 12:15:18
问题 I'm making some documentation for our project, but I can't enable xelatex in pandoc to setup custom fonts. If I set --latex-engine xelatex pandoc will show that error: pandoc: Error producing PDF from TeX source. ! Undefined control sequence. l.17 \sys_if_engine_luatex:T Here is a command that I run: pandoc -s --latex-engine xelatex -f markdown build.md -o docs.pdf I use Ubuntu 14.04 LTS , pandoc 1.12.2.1 and XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/Debian) . 回答1: Oops... after

Inline code and inline LaTeX, R Markdown Pandoc error 43

情到浓时终转凉″ 提交于 2019-12-11 07:36:46
问题 I've run into this issue a couple times now, but whenever I try to include both inline LaTeX and inline R code in my Rmd file, I get Pandoc error 43. Never been able to find a workaround other than just manually adding in what the R code would have been. --- title: "HW4" date: "2/23/2018" header-includes: - \usepackage{amsmath} - \usepackage{amsthm} output: pdf_document --- ```{r} x_bar <- 4 ``` The blue line above is the true $\lambda = 4$, and the red line is our $\hat{\lambda}_{MLE} = \bar

Error adding images and plots in ioslides_presentation w/ Runtime: shiny on Windows

断了今生、忘了曾经 提交于 2019-12-11 07:28:45
问题 When I run the following ioslides_presentation w/ runtime: shiny at work (Windows 7 Enterprise) --- title: "Untitled" author: "Me" date: "Thursday, February 05, 2015" output: ioslides_presentation: logo: images/rstudio-ball.png runtime: shiny --- ## Slide with Plot ```{r, echo=FALSE} plot(cars) ``` I get an "invalid back reference" error when attempting to include a logo or plot into the presentation . However, if I remove runtime: shiny the presentation compiles as expected, with both the

Spaces in multi characters variable name in pandoc export to docx

混江龙づ霸主 提交于 2019-12-11 06:55:04
问题 I'm writing a Haskell program to export some mathematics formula to docx and I have noted that variable names with multiple character are written with a blank white space between each letter and I don't understand why ? My basic code is : import Text.Pandoc import Data.Map (fromList) import qualified Data.ByteString.Lazy as B main = do document <- writeDocx WriterOptions{ writerStandalone=False , writerReferenceDocx=Nothing , writerUserDataDir=Nothing , writerHighlight= False } pandoc B

“Error Producing PDF” when markdown contains a horizontal rule: — or ***

十年热恋 提交于 2019-12-11 06:19:08
问题 When my Markdown file contains a horizontal rule --- or *** I receive an error regarding \Linethickness -> \Protect I understand there have been issues with MiKTeX recently, however I am unsure whether they apply here. I have been experiencing this issue since yesterday morning, when I was playing around trying to get the Lato font package to work with a set of Markdown files I need to convert to PDF. It had been working fine (asides from the font issue). This could have happened when I

Use compact lists when converting from docx to markdown

大憨熊 提交于 2019-12-11 06:16:27
问题 I'm using pandoc on Windows to convert from a .docx file to a .md file. The flags I'm using are the following: pandoc --wrap none --to markdown_github --output fms.md "FMS.docx" When I view the output markdown file, it has newlines separating each list item. The documentation defines this as a loose list such as the one below. - one - two - three I want to use a compact list for the output such as the one below. - one - two - three Is there a flag to make pandoc output a compact list? If not,

Emacs and Pandoc: can't create a pdf

有些话、适合烂在心里 提交于 2019-12-11 06:12:52
问题 I use GNU Emacs in a Mac. After installing the last version of Pandoc I can't create pdf files. Pandoc works well when I use the Terminal. I think that the problem has to do with the fact that Emacs doesn't find the template default.latex. This template is in my ~/.pandoc/templates . This is the error message I receive when trying to create a pdf: pandoc: /usr/local/share/pandoc-1.10.1/data/templates/default.latex: openBinaryFile: does not exist (No such file or directory) I don't understand

A Kableextra table and a ggplot plot on same row in Rmarkdown (PDF - not Flexdashboard)

心已入冬 提交于 2019-12-11 05:57:13
问题 I have been experimenting with R Markdown to create some PDF reports. I am having difficulty in getting the layout right. Basically, I need to have a KableExtra created table (dataframe) and a ggplot plot on the same row. I have explored some grid packages, but couldn't get it to work. Here is my code: --- title: "Untitled" author: "" date: "14 June 2018" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) library(knitr) library(reshape2) library(dplyr)

Reading .docx files in Python to find strikethrough, bullets and other formats

别等时光非礼了梦想. 提交于 2019-12-11 05:44:50
问题 Can anyone help me identify, in Python using python-docx, if a paragraph in a .docx file contains text that is formatted with strikethrough (ie. it appears but is crossed out), or has a bullet point at the start? I am trying to write a script to identify the structure in a document and parse the content. So far I am able to read a .docx file and iterate over the paragraphs, identifying paragraphs that are bold. from docx import Document document = Document(r'C:\stuff\Document.docx') for p in