Re: [NTG-context] Modern CV like cover letter example

2017-04-20 Thread Jonas Baggett

Hi Pablo,

Thanks ! I think you are right about that labeltext doesn't support an 
extra parameter. Then I will need to do it that way, I guess :


\def \gender {male}

\doifelse {\gender} {male} {
  \setuplabeltext [en] [longtitle=Mister]
  \setuplabeltext [fr] [longtitle=Monsieur]
}{ % female
  \setuplabeltext [en] [longtitle=Madam]
  \setuplabeltext [fr] [longtitle=Madame]
}

\starttext
  \mainlanguage[fr] \labeltext{longtitle}
  \mainlanguage[en] \labeltext{longtitle}
\stoptext

Regards,
Jonas


Le 20.04.17 à 07:56, Pablo Rodriguez a écrit :

On 04/20/2017 07:08 AM, Jonas Baggett wrote:

Hello Henri,

I tried to use labeltexts without success so far. Here is the simple
example I tried to do :

\setuplabeltext [East=east, West=west]
\setuplabeltext [en] [Name=name]
\setuplabeltext [fr] [Name=nom]

\starttext
  \labeltext{East} % Works
  \labeltext{West} % Works
  \labeltext[en]{Name} % Doesn't work
  \labeltext[fr]{Name} % Doesn't work
\stoptext

Hi Jonas,

it seems that labeltext works based on \mainlanguage, such as in:

\setuplabeltext [East=east, West=west]
\setuplabeltext [en] [Name=name]
\setuplabeltext [fr] [Name=nom]

\starttext
  \labeltext{East} % Works
  \labeltext{West} % Works
  \labeltext{Name} % Doesn't work
  \mainlanguage[fr] \labeltext{Name} % Doesn't work
\stoptext

BTW, all \labeltext commands work fine in this previous sample.


Can we also make labeltexts depend on 2 parameters and write something like
\setuplabeltext[fr][male][longtitle=Monsieur]
(...)
\labeltext[fr][male]{longtitle}
?

I don’t think this is supported by labeltext.

Just in case it helps,

Pablo


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Teletype in tabulate

2017-04-20 Thread Willi Egger
Ah, stupid me, should have known that. Thank you Hans!

Willi
> On 20 Apr 2017, at 17:17, Hans Hagen  wrote:
> 
> On 4/20/2017 4:53 PM, Willi Egger wrote:
>> Hi all,
>> 
>> I have the context version 2017.04.16 12:32.
>> 
>> Now I detect that here the tabulate environment throws an error when using 
>> the T key for teletype in the preamble.
>> 
>> I am stuck…
>> 
>> /Users/willi/Documents/TEXdata/lezingenMAPSNTG/Bachotex2017/test.tex: ! 
>> Missing number, treated as zero
>> 
>> 
>> \unskip
>> \tabl_tabulate_column_normal #1->\unskip
>> \aligntab \ifconditional 
>> \c_tabl_ta...
>> \tabl_tabulate_insert_body ...NC \paperheight \NC
>>  29.000cm \NC \NR
>> \tabl_tabulate_insert_content ...late_insert_body
>>  
>> \tabl_tabulate_insert_foot...
>> \tabl_tabulate_process ...tabulate_insert_content
>>  \crcr 
>> }}\anch_backgrounds_...
>> l.14 \stoptabulate
>> 
>> 
>> \starttext
>> \starttabulate[|lT|r|]
>>  \NC \paperheight \NC 29.000cm \NC\NR
>> \stoptabulate
>> 
>> \stoptext
> 
> because T is not \type
> 
>   \NC \type{\paperheight} \NC 29.000cm \NC\NR
> 
> or
> 
>   \NC \string\paperheight \NC 29.000cm \NC\NR
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Teletype in tabulate

2017-04-20 Thread Hans Hagen

On 4/20/2017 4:53 PM, Willi Egger wrote:

Hi all,

I have the context version 2017.04.16 12:32.

Now I detect that here the tabulate environment throws an error when using the 
T key for teletype in the preamble.

I am stuck…

/Users/willi/Documents/TEXdata/lezingenMAPSNTG/Bachotex2017/test.tex: ! Missing 
number, treated as zero


\unskip
\tabl_tabulate_column_normal #1->\unskip
 \aligntab \ifconditional \c_tabl_ta...
\tabl_tabulate_insert_body ...NC \paperheight \NC
  29.000cm \NC \NR
\tabl_tabulate_insert_content ...late_insert_body
  \tabl_tabulate_insert_foot...
\tabl_tabulate_process ...tabulate_insert_content
  \crcr }}\anch_backgrounds_...
l.14 \stoptabulate


\starttext
\starttabulate[|lT|r|]
\NC \paperheight \NC 29.000cm \NC\NR
\stoptabulate

\stoptext


because T is not \type

\NC \type{\paperheight} \NC 29.000cm \NC\NR

or

\NC \string\paperheight \NC 29.000cm \NC\NR

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Teletype in tabulate

2017-04-20 Thread Willi Egger
Hi all,

I have the context version 2017.04.16 12:32.

Now I detect that here the tabulate environment throws an error when using the 
T key for teletype in the preamble.

I am stuck…

/Users/willi/Documents/TEXdata/lezingenMAPSNTG/Bachotex2017/test.tex: ! Missing 
number, treated as zero

 
\unskip 
\tabl_tabulate_column_normal #1->\unskip 
 \aligntab \ifconditional \c_tabl_ta...
\tabl_tabulate_insert_body ...NC \paperheight \NC 
  29.000cm \NC \NR 
\tabl_tabulate_insert_content ...late_insert_body 
  \tabl_tabulate_insert_foot...
\tabl_tabulate_process ...tabulate_insert_content 
  \crcr }}\anch_backgrounds_...
l.14 \stoptabulate


\starttext
\starttabulate[|lT|r|]
\NC \paperheight \NC 29.000cm \NC\NR
\stoptabulate

\stoptext


Kind regards

Willi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___