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 20:08:52 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Jan 26, 2015 at 05:37:04AM +0000, Jim Busser wrote:


> I was interested to test various placeholders and so, with Kirk selected in 
> order that Correspondence > Write letter would be available, 
> 
> - imported the following snippet, pretending that it was adequately complete 
> for LaTex, and
> 
> - tried running it:
> 
>       % ================================================================
>       % Prompt for an inside address and salutation:
>       $<free_text::Inside address and salutation::9999>$ 
> 
> Which succeeded to prompt me with the text entry dialog box, however the 
> process may have entered an endless loop, causing me to kill the instance.

> 3. In the case where real free text (that I would intend to use) would 
> include line endings of \\ such as in a doctor's mailing address
> 
>       Dr.\ Louise Smith\\
>       1234 Anywhere St\\
>       Vancouver, BC X1X 1X1 2G5\\
> 
>       Dear Louise,
>
> my placeholder had been
> 
>       $<free_text::Inside address and salutation::9999>$
> 
> 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) and thusly knows
how to process data.

> … in the event that I would retain 'tex\\' would GNUmed simply ignore it?

In case you retained "tex\\" from earlier use GNumed would
include that as part of the text box prompt message, eg
"tex\\Inside address...".

> … 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>$

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]