Converting markdown to PDF

Dr Eberhard Lisse nospam at lisse.NA
Wed Jun 16 20:12:06 UTC 2021

Pandoc does Markdown to LaTeX (to PDF) just fine.

I use something like

	pandoc --wrap=none -f markdown-auto_identifiers \
		-t latex --template=/Users/el/pantemplates/mytemplate.tex \
		filename.markdown > filename.tex

where I took one of the LaTeX templates and modified it to my liking.

	-t pdf

should also work, but I haven't tried this, so I don't know what
converter it takes.

Using R is a little overkill in my view, but if it works it works :-)-O

greetings, el

On 2021-06-16 19:56 , Paul Smith wrote:
> On Wed, Jun 16, 2021 at 5:27 PM Rich Shepard <rshepard at> wrote:
>> I've an .md file that I want to convert to .pdf.  Using pandoc I get
>> a .pdf that's all in html.  Can lyx help me convert the .md to a
>> clean text (with code) .pdf?
> You can use R for that, Rich.  Just open your .md file in R and
> preview it in PDF. I have just tested this approach and it works.
> Paul

More information about the lyx-users mailing list