Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inserting Vertical Space in Pandoc Markdown

Tags:

pandoc

Is it possible to insert a extra vertical space using Pandoc flavored Markdown? Something that would show up as a blank line in a Word document or a <br> in HTML or \vspace in LaTeX. Or anything equivalent?

My problem is that I don't want a title for my reference list, but this puts my references too close to the preceding paragraph in both Word and in LaTeX.

like image 394
tlnagy Avatar asked Jan 11 '14 01:01

tlnagy


People also ask

How do you add a vertical space in R Markdown?

To create vertical space (Markdown to PDF), I use &nbsp; This command works like \vspace{12pt} for latex. Fantastic!

Can pandoc convert HTML to Markdown?

Pandoc can convert between numerous markup and word processing formats, including, but not limited to, various flavors of Markdown, HTML, LaTeX and Word docx.

Can pandoc convert PDF to Markdown?

You can use the program pandoc on the SCF Linux and Mac machines (via the terminal window) to convert from formats such as HTML, LaTeX and Markdown to formats such as HTML, LaTeX, Word, OpenOffice, and PDF, among others.


2 Answers

One way to do it is to insert a paragraph containing just a nonbreaking space.

You can use either of these forms in pandoc:

\_ (where "_" signifies a space)  &nbsp; 
like image 144
John MacFarlane Avatar answered Sep 18 '22 00:09

John MacFarlane


For pdf, do the following (replace the s with space): \s\s

like image 20
Dalip S Avatar answered Sep 18 '22 00:09

Dalip S