Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Default support files for generating LaTeX documents with MMD 3 through MMD 5

Notifications You must be signed in to change notification settings

ickc/peg-multimarkdown-latex-support

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is folk from Fletcher's peg-multimarkdown-latex-support.

What's Modified

  • mmd-article-header.tex added an optional choice to use twopage 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

What's New

mmd-load-lang-unicode

Provide Automated unicode support in XeLaTeX, see comments in the file.

This load the package xltxtra, which loads the fontspec, which

pro­vides an au­to­matic and uni­fied in­ter­face to fea­ture-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.

mmd-load-lang-chinese & mmd-load-lang-greek

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.

mmd-load-amsthm & amsthm.css

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.

mmd-load-pdfpages

Make ![](*.pdf) possible in LaTeX too.

mmd-load-toc-setcounter & mmd-load-toc

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.

mmd-load-physics-related

This loads Physics related packages, including those within mmd-load-ams.tex.

mmd-load-tables-related

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).

mmd-load-headings

Use headings as pagestyle

mmd-load-theme

Use another theme in beamer class. The default example is Berkeley.

Examples

See Example Metadata Setup in MMD and examples in metadata-examples.

About

Default support files for generating LaTeX documents with MMD 3 through MMD 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 90.4%
  • HTML 9.6%