gnumed-bugs
[Top][All Lists]
Advanced

[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: Thu, 18 Aug 2011 11:14:14 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]