gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-bugs] Problem with % in latex placeholders?


From: Jim Busser
Subject: [Gnumed-bugs] Problem with % in latex placeholders?
Date: Mon, 15 Aug 2011 18:44:42 -0700

From the various tex templates that came bootstrapped into GNUmed, I extracted 
the following two instances for placeholder

        current_meds


The first of these below, while unpretty, at least works:

% ----------------------------------------------------------------------
Medications & Products being used: 
        \begin{description}
$<current_meds::                \item[%(substance)s] {\footnotesize 
(%(brand)s)} %(preparation)s %(amount)s%(unit)s: %(schedule)s >$
        \end{description}
% ----------------------------------------------------------------------


whereas the second one (further below) fails at the location of the first % 
which is a special character in latex, resulting in a left (first) column table 
cell showing verbatim

        <current_meds::

and if I instead try to escape the % with \% it does not work.

Curiously, the % were accepted in the line template expression above. Maybe 
when the % follows immediately the :: there is a problem, which the expression 
above avoided with the

        :: \item?



% ----------------------------------------------------------------------

\noindent Medication list {\tiny (ordered by brand)}{\tiny \par}

\noindent \begin{tabular}{|l|l|l|l|}
\hline 
Drug & Strength & Regimen & Aim \tabularnewline
\hline
\hline 
$<current_meds::%(brand)s %(preparation)s & %(strength)s & %(schedule)s & 
{\footnotesize %(aim)s} \tabularnewline {\footnotesize (%(substance)s)} & 
\multicolumn{3}{l}{{\footnotesize %(notes)s}} \vline \tabularnewline \hline > $
\end{tabular}
% ----------------------------------------------------------------------


??

-- Jim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]