[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-bugs] Problem with % in latex placeholders?
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-bugs] Problem with % in latex placeholders? |
Date: |
Tue, 16 Aug 2011 10:39:52 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
One would need to see the template before replacement, the
instance after replacement, and the LaTeX log.
Karsten
On Mon, Aug 15, 2011 at 06:44:42PM -0700, Jim Busser wrote:
> Date: Mon, 15 Aug 2011 18:44:42 -0700
> From: Jim Busser <address@hidden>
> To: address@hidden
> Subject: [Gnumed-bugs] Problem with % in latex placeholders?
> X-Mailer: Apple Mail (2.1084)
>
> >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
>
>
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
- [Gnumed-bugs] Problem with % in latex placeholders?, Jim Busser, 2011/08/15
- Re: [Gnumed-bugs] Problem with % in latex placeholders?, Jim Busser, 2011/08/15
- Re: [Gnumed-bugs] Problem with % in latex placeholders?,
Karsten Hilbert <=
- 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