[Top][All Lists]
[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
- [Gnumed-bugs] Problem with % in latex placeholders?,
Jim Busser <=
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Jim Busser, 2011/08/15
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Karsten Hilbert, 2011/08/16
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Jim Busser, 2011/08/16
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Karsten Hilbert, 2011/08/17
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Jim Busser, 2011/08/18
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Karsten Hilbert, 2011/08/18
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Jim Busser, 2011/08/19
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Karsten Hilbert, 2011/08/19
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Karsten Hilbert, 2011/08/19