fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
523 stars 55 forks source link

escape metadata #91

Closed janrito closed 12 years ago

janrito commented 12 years ago

I'm trying to pass a directory to latex as metadata:

Path to Graphics:    ./figs/

But it gets translated into:

\def\pathtographics{.\slash sample2\slash }

I understand this is necessary because / is a reserved character in latex. But, is there any way to escape the meta-datum ( :) ) encoding?

fletcher commented 12 years ago

There isn't.

But this is the sort of thing you would manage by creating a separate file with latex definitions, and then use the latex input metadata key to reference, in the same manner that the sample MMD files pull in latex "snippets" to set up the article, beamer, and memoir formats.

latex input:   somefile

and somefile.tex could contain

\def\pathtographics{./figs/}