Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Am 04.03.2016 um 20:00 schrieb Wolfgang Schuster:
> No, because I used a local version of the interface file where I added
> missing entries but it isn’t finished yet.

Wonderful. I love this feature. I am eagerly looking forward to see it
released.

Thanks!
juh
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Wolfgang Schuster

Jan U. Hasecke 
4. März 2016 um 19:29
Thank you Wolfgang,

your examples are very helpful.


Did you make the pdf with \showsetup{...}?

I am missing setupdescriptions.

\setupdescriptions is a synonym for the \setupdescription command.

And I get "MISSING SETUP" when I try \showsetup{setupdescription}.

My context installation is: current version: 2016.02.24 11:19

Shall I update to have the newest interface descriptions available?

No, because I used a local version of the interface file where I added
missing entries but it isn’t finished yet.

Wolfgang
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Hi Aditya,

Am 04.03.2016 um 16:49 schrieb Aditya Mahajan:
> See: http://www.ntg.nl/maps/36/09.pdf which explains some of these.

thank you very much for hinting to this ressources.

juh
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Thank you Wolfgang,

your examples are very helpful.

Am 04.03.2016 um 16:52 schrieb Wolfgang Schuster:

> Take a look at the attached files for the valid keys for the description
> and enumeration environments.

Did you make the pdf with \showsetup{...}?

I am missing setupdescriptions.

And I get "MISSING SETUP" when I try \showsetup{setupdescription}.

My context installation is: current version: 2016.02.24 11:19

Shall I update to have the newest interface descriptions available?

juh

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Wolfgang Schuster

Jan U. Hasecke 
4. März 2016 um 16:25
Hi all,

I am working on a small documentation and today I tried all the options
in \definedescription and/or \setupdescriptions to understand what is
going on.

I have no idea what these options are doing:

closecommand

\definedescription[testdescription][title=yes,closecommand=\wordright,closesymbol={\symbol[square]}]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

titleleft
titleright
titledistance
titlestyle
titlecolor

The title* keys can only be used with enumerations.

headcommand

\definedescription[testdescription][title=yes,headcommand=\framed]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

hang

Works only with “alternative=left” or “alternative=right”.

\definedescription[testdescription][title=yes,hang=2]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

inbetween

Works only with “alternative=top”.

\definedescription[testdescription][title=yes,alternative=top,inbetween={\blank[3*line]}]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

command

This is no valid key for descriptions.

Take a look at the attached files for the valid keys for the description 
and enumeration environments.


Wolfgang


descriptions.pdf
Description: Adobe PDF document


enumerations.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Aditya Mahajan

On Fri, 4 Mar 2016, Jan U. Hasecke wrote:


Hi all,

I am working on a small documentation and today I tried all the options
in \definedescription and/or \setupdescriptions to understand what is
going on.

I have no idea what these options are doing:

closecommand
titleleft
titleright
titledistance
titlestyle
titlecolor
headcommand
hang
inbetween
command

I could not see any result and found no hint in the documentation.

Can anyone shed some light on this?


See: http://www.ntg.nl/maps/36/09.pdf which explains some of these.

Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Hi all,

I am working on a small documentation and today I tried all the options
in \definedescription and/or \setupdescriptions to understand what is
going on.

I have no idea what these options are doing:

closecommand
titleleft
titleright
titledistance
titlestyle
titlecolor
headcommand
hang
inbetween
command

I could not see any result and found no hint in the documentation.

Can anyone shed some light on this?

Thank in advance
juh


-- 
13. März 2016: 20. Todestag von Krzysztof Kieślowski
Die Wahrheit des Sehens. Der Dekalog von Krzysztof Kieślowski.
http://www.amazon.de/dp/1484071433/
Taschenbuch: 264 Seiten
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] oldstyle numerals in mathmode

2016-03-04 Thread Alan Bowen
As I feared, Hans. But thanks. I must re-code the math for the publisher,
then.

Alan

On Thu, Mar 3, 2016 at 6:18 PM, Hans Hagen  wrote:

> On 3/3/2016 11:11 PM, Alan Bowen wrote:
>
>> I am am using for my mainface, a font that has only oldstyle numerals.
>> For math, I am using Latin Modern for math. How do I get output in
>> oldstyle numbers starting with
>> \definefontfamily[mainface][math][Latin Modern Math]?
>>
>
> there is no oldstyle in math
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] A document composed only of TEXpages

2016-03-04 Thread Hans Hagen

On 3/3/2016 7:49 PM, Chicho Pep wrote:

Hello everybody,

I would like to have a document composed of TEXpages only, where each
TEXpage contains one whole subsection or section. I have achieved that
indeed, but I don't get to understand how the numbering of pages works
in this case. I've tried to use \setcounter[userpage][\pagenumber+1].


TEXpage etc is probably not the best mechanism to use for that as it is 
just a vbox


in the test suite there is a file experiment-001.tex that shows you a 
trick (maybe that should be module)



Here is my document:

***

\setupinteraction[state=start]

\startsetups[myTEXpagesetup]
   \setupwhitespace[line]
   \setuptolerance[space]
\stopsetups

\setupfittingpage[TEXpage]
   [command=\texsetup{myTEXpagesetup},
height=fit,
width=210mm,
offset=10mm]

\starttext

\startTEXpage
\startsection[title={My Section}]
\placecontent
\stopTEXpage

\setcounter[userpage][\pagenumber+1]

\startTEXpage
\startsubsection[title={My First Subsection}]
Contents
\stopsubsection
\stopTEXpage

\setcounter[userpage][\pagenumber+1]

\startTEXpage
\startsubsection[title={My Second Subsection}]
Contents
\stopsubsection
\stopTEXpage

\setcounter[userpage][\pagenumber+1]

\startTEXpage
\startsubsection[title={My Third Subsection}]
Contents
\stopsubsection
\stopTEXpage

\stopsection

\stoptext

***

The PDF browser numbers the pages correctly, and in this case they get
numbers 1 to 4. But the generated list of contents in page 1 says that
section "My Third Subsection" is in page 3 instead of 4, though the link
correctly jumps to page 4. The (sub)section in the last TEXpage of the
document gets always numbered as if it would be in the next to last TEXpage.

To make the list of contents look good, I may add one last empty TEXpage
at the end of the document. But I'd still like to ask how, or if, it
would be possible to make this use case work without that trick.

There's a pair more things:

When the document is composed of only one single TEXpage, then that page
gets number 0 in the PDF browser, instead of number 1.

When I don't use \setcounter[userpage][\pagenumber+1] in between the
TEXpages, they get numbers 1,1,1,2 in the PDF browser, while the list of
contents says my subsections are in pages 1,1,0 (but the links jump
always to the correct page).

Thank you for your help

Pep

p.s. As PDF browsers, I use Evince, Okular and Firefox's built-in PDF Viewer

p.p.s. I love ConTeXt :)



___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Struggling with new version of ConTeXt

2016-03-04 Thread Willi Egger
Hans, thank you for fixing this so quickly!

Willi
> On 4 mrt. 2016, at 10:42, Hans Hagen  wrote:
> 
> On 3/4/2016 6:03 AM, Willi Egger wrote:
>> With version :ConTeXt  ver: 2016.02.17 11:11 MKIV beta the following code 
>> worked:
>> 
>> \define[2]\Illustration{%
>>  \startplacefigure
>>  [title=#2,reference=fig:#1]
>>  \externalfigure[#1][height=.25\textheight]
>>  \stopplacefigure}
>> 
>> \starttext
>> 
>>  \Illustration{cow}{A Frisian cow}
>> 
>> \stoptext
>> 
>> With ConTeXt  ver: 2016.03.03 23:31 MKIV beta I get a fatal error:
>> 
>> ...test.tex: ! Extra }, or forgotten \endgroup
>> 
>> \strc_counters_register_component_list ...focus 
>> }}titledata{label{\detokeniz...
>> \strc_counters_register_component ...}{#3}{#4}{#9}\else \ifx 
>> \currentstructu...
>> \strc_floats_place_packaged_boxes_indeed ... ][#1]\globallet 
>> \previousfloatn...
>> \strc_floats_finish_placement ...e_packaged_boxes\dostoptagged \global 
>> \d_p...
>> l.30 \Illustration{cow}{A Frisian cow}
> 
> fixed, btw you can also say:
> 
> \starttexdefinition Illustration #1#2
>\startplacefigure[title=#2,reference=fig:#1]
>\externalfigure[#1][height=.25\textheight]
>\stopplacefigure
> \stoptexdefinition
> 
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \writetolist command...

2016-03-04 Thread Willi Egger
Hans, thank you for your tip!

Willi
> On 4 mrt. 2016, at 12:08, Hans Hagen  wrote:
> 
> On 3/4/2016 5:37 AM, Willi Egger wrote:
>> Hi all,
>> 
>> I need to write to a list, however it appears that the second argument from 
>> \writetolist[name]{number}{ext} does not end up in the list. — What do I 
>> miss?
>> 
>> \starttext
>>  \startsubject[title=Contents]
>>  \placelist[section][criterium=all]
>>  \stopsubject
>> 
>>  \startsubject[title=A Paragraph as Subject]
>>  \writetolist[section]{1}{Writetolist: Subject title}
>>  \stopsubject
>> \stoptext
> 
> headnumber=always
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \writetolist command...

2016-03-04 Thread Hans Hagen

On 3/4/2016 5:37 AM, Willi Egger wrote:

Hi all,

I need to write to a list, however it appears that the second argument from 
\writetolist[name]{number}{ext} does not end up in the list. — What do I miss?

\starttext
\startsubject[title=Contents]
\placelist[section][criterium=all]
\stopsubject

\startsubject[title=A Paragraph as Subject]
\writetolist[section]{1}{Writetolist: Subject title}
\stopsubject
\stoptext


headnumber=always


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Bug in cont-*.xml

2016-03-04 Thread Jan U. Hasecke
Hi all,

In \showsetup{setupdescriptions} the option closesymbol is listed twice.

BTW: Is there a bugtracker anywhere?

juh

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] in next beta

2016-03-04 Thread Hans Hagen

\starttext

\setuplistalternative
  [c]
  [filler=symbol,
   symbol=\hbox to .25em{\periodcentered},
   symcolor=darkred,
   symstyle=\bf]

\startsubject[title=Contents]
\placelist[section][criterium=all,alternative=c]
\stopsubject

\startsection[title=D. Ward]
\input ward
\stopsection
\startsection[title=E.R. Tufte]
\input tufte
\stopsection

\stoptext

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] FIXED: footnotes broken in latest beta

2016-03-04 Thread Henning Hraban Ramm
Sorry for the noise - that was yesterday’s beta. It works now.


Am 2016-03-04 um 16:57 schrieb Henning Hraban Ramm :

> Hi wizards,
> 
> with the latest beta, I get an error even with the most basic document 
> containing footnotes:
> 
> \starttext
> bla\footnote{blub}
> \stoptext

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] urgent: footnotes broken in latest beta

2016-03-04 Thread Henning Hraban Ramm
Hi wizards,

with the latest beta, I get an error even with the most basic document 
containing footnotes:

\starttext
bla\footnote{blub}
\stoptext


tex error   > tex error on line 2 in file .../testfootnote.tex: ! Undefined 
control sequence


\554>yes ...\strc_references_set_simple_reference 
  {*\currentnoteinternal }\s...
\strc_notes_inject_symbol_indeed ..._check_inline 
  \strc_notes_set_style_colo...
\207>notation:note ...trc_notes_inject_symbol_yes 
  \else \unskip \unskip \glo...
\m_syst_action_nop ...structionhandler \endcsname 
  \strc_constructions_finali...
l.2 bla\footnote{blub}


1 \starttext
2 >>  bla\footnote{blub}
3 \stoptext
4 



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Expansion in PDF metadata

2016-03-04 Thread Marco Patzer
On Fri, 4 Mar 2016 10:34:49 +0100
Hans Hagen  wrote:

> On 3/4/2016 7:58 AM, Marco Patzer wrote:
> > Hi!
> >
> > How to expand \translate so that it doesn't show up in the PDF
> > metadata? Example:
> >
> > \setupdocument [metadata:title=\documentvariable{title}]
> > \mainlanguage  [sv]
> >
> > \startdocument [title={\translate[en=Foo, sv=Bar]}]
> >\input knuth
> > \stopdocument
> >
> > This literally shows:
> >
> >Title: \translate [en=Foo, sv=Bar]
> >
> > The following workaround does the job, but it's not that elegant:
> >
> > \setupdocument [metadata:title=\documentvariable{title}]
> > \enablemode [sv]
> >
> > \startmodeset
> >[en] {\mainlanguage[en]\startdocument[title=Foo]}
> >[sv] {\mainlanguage[sv]\startdocument[title=Bar]}
> > \stopmodeset
> >
> >\input knuth
> > \stopdocument
> >
> > Is there a better mechanism to support multiple languages in the
> > PDF metadata or just have \translate expanded?  
> 
> \mainlanguage[sv]
> 
> \startmodeset
>  [*en] {
>  \setupdocument [metadata:title=Foo]
>  }
>  [*sv] {
>  \setupdocument [metadata:title=Bar]
>  }
>  [default] {
>  \setupdocument [metadata:title=Far]
>  }
> \stopmodeset
> 
> \startdocument [title={\translate[en=Foo, sv=Bar]}]
>\input knuth
> \stopdocument

That works and seems cleaner, thanks.

Marco
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Struggling with new version of ConTeXt

2016-03-04 Thread Hans Hagen

On 3/4/2016 6:03 AM, Willi Egger wrote:

With version :ConTeXt  ver: 2016.02.17 11:11 MKIV beta the following code 
worked:

\define[2]\Illustration{%
\startplacefigure
[title=#2,reference=fig:#1]
\externalfigure[#1][height=.25\textheight]
\stopplacefigure}

\starttext

\Illustration{cow}{A Frisian cow}

\stoptext

With ConTeXt  ver: 2016.03.03 23:31 MKIV beta I get a fatal error:

...test.tex: ! Extra }, or forgotten \endgroup

\strc_counters_register_component_list ...focus }}titledata{label{\detokeniz...
\strc_counters_register_component ...}{#3}{#4}{#9}\else \ifx \currentstructu...
\strc_floats_place_packaged_boxes_indeed ... ][#1]\globallet \previousfloatn...
\strc_floats_finish_placement ...e_packaged_boxes\dostoptagged \global \d_p...
l.30 \Illustration{cow}{A Frisian cow}


fixed, btw you can also say:

\starttexdefinition Illustration #1#2
\startplacefigure[title=#2,reference=fig:#1]
\externalfigure[#1][height=.25\textheight]
\stopplacefigure
\stoptexdefinition




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Expansion in PDF metadata

2016-03-04 Thread Hans Hagen

On 3/4/2016 7:58 AM, Marco Patzer wrote:

Hi!

How to expand \translate so that it doesn't show up in the PDF
metadata? Example:

\setupdocument [metadata:title=\documentvariable{title}]
\mainlanguage  [sv]

\startdocument [title={\translate[en=Foo, sv=Bar]}]
   \input knuth
\stopdocument

This literally shows:

   Title: \translate [en=Foo, sv=Bar]

The following workaround does the job, but it's not that elegant:

\setupdocument [metadata:title=\documentvariable{title}]
\enablemode [sv]

\startmodeset
   [en] {\mainlanguage[en]\startdocument[title=Foo]}
   [sv] {\mainlanguage[sv]\startdocument[title=Bar]}
\stopmodeset

   \input knuth
\stopdocument

Is there a better mechanism to support multiple languages in the
PDF metadata or just have \translate expanded?


\mainlanguage[sv]

\startmodeset
[*en] {
\setupdocument [metadata:title=Foo]
}
[*sv] {
\setupdocument [metadata:title=Bar]
}
[default] {
\setupdocument [metadata:title=Far]
}
\stopmodeset

\startdocument [title={\translate[en=Foo, sv=Bar]}]
  \input knuth
\stopdocument


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in beta from 2016.03.03 23:31?

2016-03-04 Thread Hans Hagen

On 3/4/2016 9:43 AM, Pablo Rodriguez wrote:

Hans,

the following code was compiled fine with beta from 2016.03.02 16:55:

 \starttext
 This is text.\footnote{This is a footnote.}
 \stoptext

But with latest beta from 2016.03.03 23:31, I get the following error:

tex error   > tex error on line 2 in file /home/ousia/a.tex: !
Undefined control sequence


fixed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] A document composed only of TEXpages

2016-03-04 Thread Chicho Pep
Hello everybody,

I would like to have a document composed of TEXpages only, where each
TEXpage contains one whole subsection or section. I have achieved that
indeed, but I don't get to understand how the numbering of pages works in
this case. I've tried to use \setcounter[userpage][\pagenumber+1]. Here is
my document:

***

\setupinteraction[state=start]

\startsetups[myTEXpagesetup]
  \setupwhitespace[line]
  \setuptolerance[space]
\stopsetups

\setupfittingpage[TEXpage]
  [command=\texsetup{myTEXpagesetup},
   height=fit,
   width=210mm,
   offset=10mm]

\starttext

\startTEXpage
\startsection[title={My Section}]
\placecontent
\stopTEXpage

\setcounter[userpage][\pagenumber+1]

\startTEXpage
\startsubsection[title={My First Subsection}]
Contents
\stopsubsection
\stopTEXpage

\setcounter[userpage][\pagenumber+1]

\startTEXpage
\startsubsection[title={My Second Subsection}]
Contents
\stopsubsection
\stopTEXpage

\setcounter[userpage][\pagenumber+1]

\startTEXpage
\startsubsection[title={My Third Subsection}]
Contents
\stopsubsection
\stopTEXpage

\stopsection

\stoptext

***

The PDF browser numbers the pages correctly, and in this case they get
numbers 1 to 4. But the generated list of contents in page 1 says that
section "My Third Subsection" is in page 3 instead of 4, though the link
correctly jumps to page 4. The (sub)section in the last TEXpage of the
document gets always numbered as if it would be in the next to last TEXpage.

To make the list of contents look good, I may add one last empty TEXpage at
the end of the document. But I'd still like to ask how, or if, it would be
possible to make this use case work without that trick.

There's a pair more things:

When the document is composed of only one single TEXpage, then that page
gets number 0 in the PDF browser, instead of number 1.

When I don't use \setcounter[userpage][\pagenumber+1] in between the
TEXpages, they get numbers 1,1,1,2 in the PDF browser, while the list of
contents says my subsections are in pages 1,1,0 (but the links jump always
to the correct page).

Thank you for your help

Pep

p.s. As PDF browsers, I use Evince, Okular and Firefox's built-in PDF Viewer

p.p.s. I love ConTeXt :)
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] bug in beta from 2016.03.03 23:31?

2016-03-04 Thread Pablo Rodriguez
Hans,

the following code was compiled fine with beta from 2016.03.02 16:55:

\starttext
This is text.\footnote{This is a footnote.}
\stoptext

But with latest beta from 2016.03.03 23:31, I get the following error:

tex error   > tex error on line 2 in file /home/ousia/a.tex: !
Undefined control sequence


\554>yes ...\strc_references_set_simple_reference
  {*\currentnoteinternal
}\s...
\strc_notes_inject_symbol_indeed ..._check_inline

\strc_notes_set_style_colo...
\207>notation:note ...trc_notes_inject_symbol_yes
  \else \unskip \unskip
\glo...
\m_syst_action_nop ...structionhandler \endcsname

\strc_constructions_finali...
l.2 This is text.\footnote{This is a footnote.}


 1 \starttext
 2 >>  This is text.\footnote{This is a footnote.}
 3 \stoptext

I’m afraid it may be a bug.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___