gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] Testing placeholders including free_text and tex_esca


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Testing placeholders including free_text and tex_escape
Date: Mon, 2 Feb 2015 21:48:40 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Feb 02, 2015 at 08:25:59PM +0000, Jim Busser wrote:

> >> however the news that for me to utilize "tex\\" was obsolete leaves me 
> >> uncertain what I need to do to achieve my intention.
> > 
> > The "tex\\" is obsolete because GNUmed now already knows the
> > target language (courtesy of the template)
> 
> (courtesy of the template) means ??
> 
>       the option selected for Processing in the "Editing form template" dialog
> 
> and does that selection take precedence over (ignore) whatever may have been 
> the file extension of the imported template? 

It depends on the "Engine" selection. The file extension is
not taken into account.

> >> … do I still require to check the checkbox, at bottom left of the free 
> >> text dialog, if I wish "Don not reformat text"?
> > 
> > That depends on what you enter. If you enter valid LaTeX code
> > (such as the above) you need to check
> > 
> >     [x] Do not reformat text
> > 
> > If you enter plain text (potentially invalid LaTeX code) you
> > need to keep this box unchecked.
> > 
> > I have now enhanced GNUmed to replace EOLs being passed into
> > a LaTeX form template to get turned into the proper LaTeX
> > representation "\\" + "\n".
> > 
> >> … is the placeholder 'tex_escape' of any use here?
> >> 
> >> If no, can an example be provided of where and how one would format (and 
> >> use) a placeholder for
> >> 
> >>    u'tex_escape': u"args: string to escape"
> >> 
> >> as $<tex_escape::?????::>$
> > 
> > Like that: $<tex_escape::some non-LaTeX-formatted text::max length>$
> 
> Does tex_escape work identically to
> 
>       free_text with "[x] Do not reformat text" forced-on

Pretty much, as far as turning text into LaTeX code goes.

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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