[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: |
Thu, 18 Aug 2011 00:49:27 -0700 |
On 2011-08-17, at 4:01 AM, Karsten Hilbert wrote:
>>> One would need to see the template before replacement, the
>>> instance after replacement, and the LaTeX log.
>>
>> 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?
>
> One would need the replaced .tex file and the pdflatex log plus
> information on which template was used (and in case of modifications
> the template itself).
>
> Ideally, the corresponding gnumed log may give some information about
> placeholder replacement as well.
>
> Karsten
ok…
By escaping the % which was in the .tex template and so-converting this…
$<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 > $
to this…
$<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 > $
I was able to make latex happy, but the \% impedes GNUmed from processing the
variables and as a result no substitution ensues. The instance contains
verbatim the line above
$<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 > $
and the result in the pdf is a nice-looking but useless table -- see
screenshot.
-- Jim
- [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, 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 <=
- 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