─➤ time ~/tmp/p/pandoc -f markdown+mmd_title_block+yaml_metadata_block+smart+implicit_header_references+superscript+subscript+tex_math_dollars+autolink_bare_uris -w html -s -tab-stop 4 -email-obfuscation=references -c -o /Users/reagle/joseph/2016/04/min-eg/test.html -mathjax -csl=chicago-fullnote-bibliography.csl -bibliography=/Users/reagle/joseph/readings.yaml -citeproc /Users/reagle/joseph/2016/04/min-eg/test.mdĥ0.40s user 5.46s system 96% cpu 57.893 totalĪlso, something is different with respect to locating the CSL ~/joseph/2003/cv ─➤ time /usr/local/bin/pandoc -f markdown+mmd_title_block+yaml_metadata_block+smart+implicit_header_references+superscript+subscript+tex_math_dollars+autolink_bare_uris -w html -s -tab-stop 4 -email-obfuscation=references -c -o /Users/reagle/joseph/2016/04/min-eg/test.html -mathjax -csl=chicago-fullnote-bibliography.csl -bibliography=/Users/reagle/joseph/readings.yaml -filter pandoc-citeproc /Users/reagle/joseph/2016/04/min-eg/test.mdģ5.14s user 4.59s system 97% cpu 40.592 total In terms of speed, it's about 40% slower when run with my big YAML bibliography and typical parameters. > processing, both in accuracy and speed. > I think you'll notice quite a few improvements in citation More sizes are supported using the extsize package (8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt) which can be used by adding -V documentclass=extarticle plus the desired fontsize.On 10/4/20 11:42 AM, John MacFarlane wrote: Pandoc -V fontfamily="electrum" -V geometry=margin=1.25in -o test3.pdf test.mdįont size can be controlled using -V fontsize=12pt, however, the default template only supports sizes 10, 11, or 12. This will use the LaTeX package geometry to set all the margins to 1.25 inch. Pandoc -V geometry=margin=1.25in test.md -o test2.pdf However, you can also use a few very simple options to spruce up the defaults.įor example, the default margin is very large, so you might want to use: If you know LaTeX, you can get fancy right away and use existing templates. To start tweaking your PDF layout, you can pass LaTeX variables to Pandoc using the -V variable flag (see docs for all LaTeX variable options). Try adding a table of contents with the -toc option: The result should be a decent looking PDF (optimized for print). In terminal, type: pandoc test.md -o test.pdf The first time you create a PDF, your LaTeX distribution’s package manager will probably pop up asking you to install new packages multiple times–your first PDF might take awhile! Pandoc converts the document into LaTeX, then uses LaTeX typesetting engine to output the PDF. PDFsĬreating PDF with Pandoc requires LaTeX installed. However, the formats can be specified if necessary, using from -f and to -t options.įor example, pandoc test.md -f markdown -t html -o test.html. Pandoc will use the extensions of the input and output file names to guess the markup format. Pandoc + input file name + some option flags + -o for output + output file name. These examples demonstrate the basic anatomy of Pandoc commands:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |