Skip to content
Snippets Groups Projects
Commit b8dc6ff3 authored by Paul Nitzke's avatar Paul Nitzke
Browse files

Add latexmkrc and document its use in REAME

parent ba1bd37f
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ I write the notes in [Pandoc Markdown](https://pandoc.org/MANUAL.html#pandocs-ma
This repository contains my [Pandoc Markdown YAML metadata block](https://pandoc.org/MANUAL.html#extension-yaml_metadata_block) to configure document metadata, fonts etc. as well as a [Makefile](https://www.gnu.org/software/make/) to render the document to PDF.
It also includes two VSCode build tasks to build the files from within the editor.
It also includes two [VSCode](https://code.visualstudio.com/) build tasks to build the files from within the editor.
## The Header
......@@ -19,6 +19,9 @@ The makefile uses [Pandoc](https://pandoc.org/index.html) to convert to LaTeX an
The intermediate files are stored in the `.build` directory.
The `latexmkrc` file in this repository contains configuration for latexmk.
Use of this file enables automatic conversion of SVG graphics included in Markdown files.
## The Build Tasks
The .vscode folder contains two build tasks to convert documents from Markdown to PDF. The `pandoc md -> pdf` task converts directly from Markdown to PDF without producing intermediate LaTeX files. The `GNU make (default recipe)` executes the default make recipe in the folder of the currently opened file.
\ No newline at end of file
The .vscode folder contains two build tasks to convert documents from Markdown to PDF in the VSCode editor. The `pandoc md -> pdf` task converts directly from Markdown to PDF without producing intermediate LaTeX files. The `GNU make (default recipe)` executes the default make recipe in the folder of the currently opened file.
\ No newline at end of file
$pdf_mode = 1;
# Clean up pdf files generated from svg files
$cleanup_includes_cusdep_generated = 1;
# Always regenerate .bbl files from .bib files and clean them
$bibtex_use = 2;
# Additional generated files for cleanup
push @generated_exts, 'glo', 'glsdefs', 'xdy';
# Convert svg to pdf on the fly using inkscape
add_cus_dep('svg', 'pdf', 0, 'svg2pdf');
sub svg2pdf {
system("inkscape -D $_[0].svg -o $_[0].pdf");
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment