Markdown

Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font width unknown for character 0x20

风格不统一 提交于 2020-06-21 05:38:07
问题 I would like to use the free font Lato in ggplot2 graphs since the remainder of my R markdown document is set in this font. The font is installed on my system and available in the Font Book ( once only ). All available fonts are loaded with the extrafont package and registered in the extrafontdb . When I knit my markdown document as PDF, all text is correctly typeset in Lato . However, the plot labels of my ggPlots are not shown. I also receive the following warning message: Warning in grid

Internal links and URLs not working after embedding fonts in PDF kitted with R markdown

血红的双手。 提交于 2020-06-17 09:14:11
问题 I use extrafont::embed_fonts to embed fonts in a simple R markdown document which works fine. However, after embedding the fonts contained in the document, any references (internal links, URLs, citations) do not work anymore. Below an MWE with sample output (with & without embedding) is provided. Many thanks for help! MWE: --- title: "Embedding Fonts in PDF" output: pdf_document --- ```{r echo=FALSE, message=FALSE, warning=FALSE, out.width = '30%'} library(ggplot2) library(extrafont) # font

Beamer Rmarkdown, changing slide count for backup slides

痴心易碎 提交于 2020-06-13 13:32:58
问题 I am trying to implement this question but in an Rmarkdown beamer presentation: https://tex.stackexchange.com/questions/70448/dont-count-backup-slides Can anyone help me out? When I try to put the TeX into the markdown, I get all kinds of errors, often: ! Missing \endgroup inserted. <inserted text> \endgroup l.437 \end{frame} pandoc: Error producing PDF Error: pandoc document conversion failed with error 43 Execution halted To give example code, I run this in the latex preamble: \usepackage

How to specify the font used for word doc exported using pandoc?

ぃ、小莉子 提交于 2020-06-11 20:05:51
问题 Rendering a microsoft word document using pandoc. The font seems to default to Calibri for headings and Cambri for body text. Goal is to have the file use Arial or Times roman fonts. I don't want to touch/edit/have anything to do with the file in word. How can I set the font that will be used in Word™ from either the multi-markdown source or in the call to pandoc? Pandoc command: pandoc -s my_markdown.txt -o whycambriafont.docx This question: pandoc-generated docx misses italic variables in

pelican: How to embed html and javascript in markdown

可紊 提交于 2020-06-09 10:06:10
问题 I want to embed a few html elements and javascript in a blog post. This is my markdown file. Title: Foo Tags: Bar Some Content here <div id="foo"> </div> <script type="text/javascript" src="static/js/bar.js"> </script> But pelican is wrapping the html tags in a pre . So the code is not getting executed. I'm using the Markdown library installed from pip install Markdown , version 2.3.1 I checked the docs, but to no avail. How to avoid this from happening, either through markdown or in a

Filtering markdown content for rendering in Jade?

℡╲_俬逩灬. 提交于 2020-06-01 05:13:08
问题 As a companion to How to allow filtering of plain-text into HTML tags in NodeJS and PUG? I have a web application in NodeJS and PUG/Jade. I want to separate the logic of the application, controlled by a developer, from the textual content, controlled by a marketing person and translators, while keeping all the source code integrated. (I asked about ways for this separation here and got no answers as of this writing). I would like to Markdown formatting in the JSON object, such as **some bold

Change font family and size when converting from Markdown to Word?

ぃ、小莉子 提交于 2020-06-01 05:07:52
问题 I am trying to learn Basics of Markdown and Pandoc to speed up my academic writing. I would like to ask whether it possible to define font family and font size, when converting from Markdown (.md) file to Word-2016 (.docx) file? I tried two methods: I added --- mainfont: "Palatino" --- to the *.md file. I tried to add -- variable mainfont="Palatino" to the command line when converting files. Neither method produces desired font change. Could anyone advise on the proper method of setting the

Pandoc md to pdf: keep order when inserting image before pagebreak

倾然丶 夕夏残阳落幕 提交于 2020-05-31 06:11:54
问题 as the title states, my question is about pandocs md to pdf. When I convert a markdown like # Title ...... text that is about a 3/4 page ![image that is too large to fit page](image.png) Some more text then the text after the image "some more text" is displayed on the first page and the image gets pushed to the second page, which changes the order of my content. What i can do is something like # Title ...... text that is about a 3/4 page \newpage ![image that is too large to fit page](image

Pandoc md to pdf: keep order when inserting image before pagebreak

别来无恙 提交于 2020-05-31 06:11:22
问题 as the title states, my question is about pandocs md to pdf. When I convert a markdown like # Title ...... text that is about a 3/4 page ![image that is too large to fit page](image.png) Some more text then the text after the image "some more text" is displayed on the first page and the image gets pushed to the second page, which changes the order of my content. What i can do is something like # Title ...... text that is about a 3/4 page \newpage ![image that is too large to fit page](image

What is “fragment link navigation for Markdown” in Visual Studio Code?

匆匆过客 提交于 2020-05-31 04:16:05
问题 The February 2017 (version 1.10) release notes for Visual Studio Code describes something they call "Fragment link navigation for Markdown." Here is the description: "Links to Markdown files that include a fragment will now try to open the file at the corresponding header: * [Section](#_header) * [Another file](./other_file#_header) # Header ... This allows quickly navigating documentation directly within the VS Code editor." I've searched for any more information on this topic but haven't