This is folk from Fletcher's peg-multimarkdown-latex-support.
mmd-article-header.tex
added an optional choice to usetwopage
instead- all
*-begin-doc.tex
are modified such that all links will appears blue - all
*-begin-doc.tex
added a ``*-begin-doc-bidi.texvariants. This added right to left language support in XeLaTeX (e.g. Hebrew, Arabic).
bidi` has to be used immediately before the `\begin{document}`, so this is the only way to make it work
Provide Automated unicode support in XeLaTeX, see comments in the file.
This load the package xltxtra
, which loads the fontspec
, which
provides an automatic and unified interface to feature-rich AAT and OpenType fonts through the NFSS in ... XeLaTeX [^ <http://ctan.org/pkg/fontspec>]
The rest of the file is to setup ucharclasses
such that font transitions between the followings are automated:
- Latin (include English)
- Greek (include
unicode-math
where some of us like to use unicode Greek letters rather than say\alpha
) - Hebrew (Right to left language, hence the
bidi
used above) - CJK (Chinese, Japanese, Korean)
One can change the font choice as needed in the file.
These are all languages I need to use. Following the example in the files, other languages (that ucharclasses
support) can be supported. See CTAN: Package ucharclasses and CTAN: Package fontspec for details. However, do not follow the example given in ucharclasses
's manual. See Remove \fontspec from the examples · Issue #7 · Pomax/ucharclasses. You can follow my example in the file.
These use CMU
and XeCJK
to support Greek and Chinese respectively.
The fonts CMU stands for Computer Modern Unicode and is intended to replicate the default font LaTeX used, Computer Modern, and adding unicode support. However it isn't a complete project. In my experience it misses some character like <>
. You can get the CMU font here.
The fonts I picked for CJK is for Chinese only. Feel free to substitute any other CJK fonts there.
It loads the amsthm
package with some predefines theorem style
The thmd
metadata variables (which should be defined before you use mmd-load-amsthm
) defines the section that the theorem count resets. e.g. thmd: chapter
You can find amsthm.css
in ickc/multimarkdown-amsthm-css: Provides the use of amsthm in MultiMarkdown with the output of LaTeX and HTML via CSS. It mimics the LaTeX behavior in HTML version of the document. See the README there.
Make ![](*.pdf)
possible in LaTeX too.
mmd-memoir-begin-doc.tex
already has TOC loaded, but some others doesn't (e.g. article). Use this to add TOC after the *-begin-doc
metadata in your md file.
mmd-load-toc-setcounter
should be used before mmd-memoir-begin-doc.tex
or mmd-load-toc
. You also need to define metadata variables tocd
& secd
before mmd-load-toc-setcounter
. It sets secnumdepth
and tocdepth
. I personally use 5 for both of them.
This loads Physics related packages, including those within mmd-load-ams.tex
.
This included many tables related packages. See the comments in the files.
Some are helpful when your table is too big. Some are helpful if you need to rotate the table direction (and you need to include raw LaTeX in your md file).
Use headings as pagestyle
Use another theme in beamer class. The default example is Berkeley
.
See Example Metadata Setup in MMD and examples in metadata-examples.