|
From: | Jim Busser |
Subject: | Re: [Gnumed-bugs] Problem with % in latex placeholders? |
Date: | Thu, 18 Aug 2011 22:45:43 -0700 |
On 2011-08-18, at 2:14 AM, Karsten Hilbert wrote: > On Thu, Aug 18, 2011 at 12:49:27AM -0700, Jim Busser wrote: > >> By escaping the % which was in the .tex template and so-converting this… > > ... > >> to this… > > ... > >> I was able to make latex happy, > > This is all backwards. The real question is why GNUmed > apparently does not replace the placeholder as intended. If > that happened as intended LaTeX would never see the %. > >> $<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. > > Of course - you told GNUmed (or Python, rather) to not > consider the % as a substitution prefix (by escaping) and > LaTeX to properly understand the % as % (by escaping). Hence > you end up with proper renderings of the placeholder format > in the LaTeX source file and thus in the PDF: GNUmed does > not touch what it sees as literal values and LaTeX > understands "\%" to be processed as "%". > > As I said. One would want template, instance, and log. > > Karsten -- Jim
gm-L-Template-sWan24-instance.pdf
Description: Adobe PDF document
cur_med_debug.tex
Description: Binary data
gm-L-Template-sWan24-instance.tex
Description: Binary data
gm-L-Template-sWan24-instance.log
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |