Welcome to pandoc-latex-fontsize’s documentation!
Installation
pandoc-latex-fontsize is a pandoc filter for modifying font size to Code
, CodeBlock
, Span
, and Div
that have speficied classes or latex-fontsize
attribute.
Instructions
pandoc-latex-fontsize requires python, a programming language that comes pre-installed on linux and Mac OS X, and which is easily installed on Windows.
Install pandoc-latex-fontsize using the bash command
$ pipx install pandoc-latex-fontsize
To upgrade to the most recent release, use
$ pipx upgrade pandoc-latex-fontsize
pipx
is a script to install and run python applications in isolated environments from the Python Package Index, PyPI. It can be installed using instructions given here.
Getting Help
If you have any difficulties with pandoc-latex-fontsize, please feel welcome to file an issue on github so that we can help.
Notes
format icon by Picol
license icon by Icooon Mono
download icon by zest
status icon by Just Icon
code style icon by Google Material Design icons
size icon by Iconscout
Usage
To apply the filter, use the following option with pandoc:
$ pandoc --filter pandoc-latex-fontsize
Explanation
In the metadata block, specific set of classes can be defined to specify the font size for span
, code
, div
and codeblock
elements.
The metadata block add information using the pandoc-latex-fontsize
entry by a list of definitions:
pandoc-latex-fontsize:
- classes: [smallcontent]
size: tiny
- classes: [largecontent, important]
size: huge
The metadata block above is used to set the fontsize:
to
tiny
forspan
,code
,div
andcodeblock
elements that have thesmallcontent
class;to
huge
forspan
,code
,div
andcodeblock
elements that have thelargecontent
andimportant
classes;
The font size specified must be either:
Huge
huge
LARGE
Large
large
normalsize
small
footnotesize
scriptsize
tiny
which are the name of LaTeX font sizes.
It’s also possible to set a specific LaTeX font size using the latex-fontsize
attribute.
Example
Demonstration: Using pandoc-latex-fontsize-sample.txt as input gives output file in pandoc-beamer-block-sample.pdf.