diff --git a/trees/an_article.tex b/tex/an_article.tex similarity index 100% rename from trees/an_article.tex rename to tex/an_article.tex diff --git a/trees/latex-preamble.tree b/trees/latex-preamble.tree index aa4916c..90dc2b1 100644 --- a/trees/latex-preamble.tree +++ b/trees/latex-preamble.tree @@ -3,9 +3,7 @@ \p{These LaTeX preambles are used by [[macros]].} -\p{We place LaTeX preambles in the directory \code{trees} along with the other \code{.trees} files, but we need to refer to them \code{../tex/name.tex}, because LaTeX is running in \code{build} directory.} - -\p{We mark every preamble line with a comment \code{texstrip}, so that we can strip it out when we convert the whole page to an actual LaTeX document, or render individual snippets via MathJax etc.} +\p{We place LaTeX preambles in the directory \code{tex} which is at the same level of the directory \code{trees}, but we need to refer to them \code{../tex/name.tex}, because LaTeX is running in \code{build} directory.} \p{Here we define:} @@ -13,7 +11,7 @@ \def\latex-preamble/common{ \startverb -\input{../tex/preamble} % texstrip +\input{../tex/preamble} \stopverb } @@ -21,7 +19,7 @@ \def\latex-preamble/minipage{ \startverb -\input{../tex/a_minipage} % texstrip +\input{../tex/a_minipage} \stopverb } diff --git a/trees/macros.tree b/trees/macros.tree index 603fb3e..9dca47b 100644 --- a/trees/macros.tree +++ b/trees/macros.tree @@ -170,12 +170,11 @@ so the text size almost matches the size output by native forester code. This do \latex-preamble/minipage } \tex{\get\base/tex-preamble}{ - % \begin{minipage}{5.8in}\texstrip - \begin{minipage}{0.97\linewidth}\texstrip - \vspace{4ex}\texstrip - \setlength{\parskip}{3ex plus 0.5ex minus 0.2ex}\texstrip + \begin{minipage}{0.97\linewidth} + \vspace{4ex} + \setlength{\parskip}{3ex plus 0.5ex minus 0.2ex} \body - \end{minipage}\texstrip + \end{minipage} } } }