[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-bugs] Problem with % in latex placeholders?
From: |
Jim Busser |
Subject: |
Re: [Gnumed-bugs] Problem with % in latex placeholders? |
Date: |
Tue, 16 Aug 2011 18:02:45 -0700 |
On 2011-08-16, at 1:39 AM, Karsten Hilbert wrote:
> One would need to see the template before replacement, the
> instance after replacement, and the LaTeX log.
>
> Karsten
The first was from Rogerio's referral template, using the list type
"description" which seems best suited to where there are two components
returned.
The second was from the template medslist.tex (Current medication list (GNUmed
default)).
Did you want me to generate both a PDF and a pdflatex log of the second, and
post them?
-- Jim
> 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}
>> % ----------------------------------------------------------------------
>>
>>
>> ??
- [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, 2011/08/16
- Re: [Gnumed-bugs] Problem with % in latex placeholders?,
Jim Busser <=
- 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