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: Fri, 19 Aug 2011 13:50:48 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Aug 19, 2011 at 01:44:22PM +0200, Karsten Hilbert wrote:

> > > 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 %.
> 
> Once I looked at the instance file I spotted the problem:
> 
> >>> $<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 > $ 
> 
> There's a stray space between ">" and "$" hence the intended
> placeholder does not conform to the required layout.

The crucial hint, btw, was given by LaTeX within the log thereof:

        ! Missing $ inserted.
        <inserted text> 
                        $
        l.71 \nopagebreak <-- Current_
                                      meds --> \\
        I've inserted a begin-math/end-math symbol since I think
        you left one out. Proceed, with fingers crossed.

LaTeX did not even worry about the %'s it would not have
liked - it detected a $ which should not have been there --
because GNUmed did not replace -- because the intended
placeholder did not conform to the required layout.

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]