
我正在使用背面。它方便地使其易於包含markdown.sty
(這需要--shell-escape
)。我可以使用 來包含書籍章節\markdownInput{chaptername.md}
,這使得我對乳膠一無所知的合著者可以在背面與我合作,只需在章節中編寫 Markdown 即可。
markdown 可以傳遞明確的乳膠指令。這使得包含諸如 之類的命令變得容易\clearpage
。它也間接地為展覽工作。我有一個exhibits.tex
文件,在其中定義了我的所有展品:
\providecommand{\figuretwentytwo}{%
\begin{figure}
\myspecialcaption[mylabel]{My Figure 22}
There is all sorts of figure stuff here.
\end{figure}
}
然後我為 中的每個圖形插入乳膠巨集chaptername.md
。它有效,但它變得笨拙。我們有幾十個圖表。
有沒有辦法告訴 markdown.sty 我想為純乳膠隔離一個區域chaptername.md
,永遠不會被 markdown 翻譯,而只是作為純乳膠傳回進行排版?
chapter.md:
# Chapter 2
This is **nice** and simple markdown. We will do
1. one
2. two
3. and three.
Let me show you in a figure.
```latex passback
\providecommand[mylabel]{\figuretwentytwo}{%
\begin{figure}
\myspecialcaption{My Figure 22}
There is all sorts of figure stuff here.
\end{figure}
}
```
[Figure ](mylabel) does stuff.
這可能不可行,但會讓人很惱火。