gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] placeholders in latex


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] placeholders in latex
Date: Tue, 16 Aug 2011 16:28:34 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Aug 12, 2011 at 11:31:30PM -0700, Jim Busser wrote:

> 2) where it says
> 
>       There are currently three types of placeholders:
> 
> I can see that the first and third are implemented:
> 
>       simple static placeholders
>               - those are listed in known_placeholders
>               - they are used as-is
> 
>       variant placeholders
>               - those are listed in known_variant_placeholders
>               - they are parsed into placeholder, data, and maximum length
>               - the length is optional
>               - data is passed to the handler
> 
> but saw no evidence of the third, is it not yet implemented
> 
>       extended static placeholders
>               - those are like the static ones but have "::::<NUMBER>" 
> appended
>                 where <NUMBER> is the maximum length

I removed the reference to them since they are nothing but
variant placeholders w/o any arguments given.

> *********************************************************************
> 
> 3) The latex that results from placeholder
> 
>       $<lab_table::latex>$
> 
> returns data which it wraps in a table cell in the format
> 
>       time     value
>       units    min-max range
> 
> however the second row is very hard to read for example
> 
>       mg/l:0.07-8
> 
> … better IMO would be
> 
>       mg/l [0.07–8]
> 
> so… is it agreeable that we can visually improve this by
> removing separator ':' (suggest we instead use a space) and
> reformat the min-max range strings (of which there are two,
> one normal and one clinical in
> ~/git/gnumed/gnumed/gnumed/client/wxpython/gmMeasurementWidgets.py
> lines 591 and 599 from
> 
>       u'%s - %s'
> 
> to instead use square brackets and the en dash '--'  like
> 
>       u'[%s--%s]'
> 
> ??
>
>
>
> provided the above characters would be allowable unescaped? LaTex recommends 
> there be no spaces between the -- and the quantities that are to be 'ranged'.
> 
>       reference: 
> http://en.wikibooks.org/wiki/LaTeX/Formatting#Dashes_and_Hyphens

Done.

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]