[NTG-context] Expansion in PDF metadata

2016-03-03 Thread Marco Patzer
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?

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
___

[NTG-context] Struggling with new version of ConTeXt

2016-03-03 Thread Willi Egger
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} 

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

[NTG-context] \writetolist command...

2016-03-03 Thread Willi Egger
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

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

Re: [NTG-context] oldstyle numerals in mathmode

2016-03-03 Thread Hans Hagen

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
___

Re: [NTG-context] interaction in a chapter footer

2016-03-03 Thread Hans Hagen

On 3/3/2016 11:45 PM, Alan BRASLAU wrote:

On Thu, 3 Mar 2016 22:42:22 +0100
Hans Hagen  wrote:


\startsetups chapter:footer
  {\goto{\CONTEXT\
garden}[url(http://http://wiki.contextgarden.net)]} \stopsetups

\definetext
[chapterfooter]
[footer]
[\setups{chapter:footer}]


Thanks,

I believe that the use of setups is the most simple and elegant
solution, rather than nesting additional grouping {} that leads to
messy source style.


btw, you don't need the extra {} in the setup


-
  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] interaction in a chapter footer

2016-03-03 Thread Alan BRASLAU
On Thu, 3 Mar 2016 22:42:22 +0100
Hans Hagen  wrote:

> \startsetups chapter:footer
>  {\goto{\CONTEXT\
> garden}[url(http://http://wiki.contextgarden.net)]} \stopsetups
> 
> \definetext
>[chapterfooter]
>[footer]
>[\setups{chapter:footer}]

Thanks,

I believe that the use of setups is the most simple and elegant
solution, rather than nesting additional grouping {} that leads to
messy source style.

Alan
___
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] oldstyle numerals in mathmode

2016-03-03 Thread Alan Bowen
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]?


Alan
___
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] interaction in a chapter footer

2016-03-03 Thread Hans Hagen

On 3/3/2016 10:12 PM, Alan BRASLAU wrote:

Hello,

Is it possible (without being too cleaver) to include interaction (a
hyperlink) in a chapter footer?

Alan

M(non-)WE:

\setupinteraction [state=start]

\definetext
   [chapterfooter]
   [footer]
   [{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}]

\setuphead [chapter]
   [footer=chapterfooter]

\starttext

\startchapter [title=A chapter]

\input knuth

\stopchapter

\stoptext


(also-)MWE

  [{{\goto{\CONTEXT\ garden}[url(http://http://wiki.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
___




--

-
  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] interaction in a chapter footer

2016-03-03 Thread Hans Hagen

On 3/3/2016 10:12 PM, Alan BRASLAU wrote:

Hello,

Is it possible (without being too cleaver) to include interaction (a
hyperlink) in a chapter footer?

Alan

M(non-)WE:

\setupinteraction [state=start]

\definetext
   [chapterfooter]
   [footer]
   [{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}]

\setuphead [chapter]
   [footer=chapterfooter]

\starttext

\startchapter [title=A chapter]

\input knuth

\stopchapter

\stoptext


(partly-)MWE

\startsetups chapter:footer
{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}
\stopsetups

\definetext
  [chapterfooter]
  [footer]
  [\setups{chapter:footer}]



___
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
___

[NTG-context] interaction in a chapter footer

2016-03-03 Thread Alan BRASLAU
Hello,

Is it possible (without being too cleaver) to include interaction (a
hyperlink) in a chapter footer?

Alan

M(non-)WE:

\setupinteraction [state=start]

\definetext
  [chapterfooter]
  [footer]
  [{\goto{\CONTEXT\ garden}[url(http://http://wiki.contextgarden.net)]}]

\setuphead [chapter]
  [footer=chapterfooter]

\starttext

\startchapter [title=A chapter]

\input knuth

\stopchapter

\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
___

Re: [NTG-context] issue with font loading

2016-03-03 Thread Wolfgang Schuster

Pablo Rodriguez 
2. März 2016 um 23:18

Many thanks for your reply, Wolfgang.

I wanted to avoid the installation of the font, because I had another
version of GaramondNo8 already installed.

So, I renamed the font and installed it. Everything works fine now.

This is recommended when you change a font to avoid such problems
but you can also put the fonts in your local tex directory which has
a higher priority than system fonts.

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] issue with font loading

2016-03-03 Thread Wolfgang Schuster

Pablo Rodriguez 
2. März 2016 um 16:56

Even if the font is on the same directory as the ConTeXt source file? I
invoke it by its file name.

Sorry, this was outside the ConTeXt tree. And I didn’t know that it has
to be indexed by ConTeXt.

Loading font by filename whoch are in the same directory as your document
works only with typescripts but \definefontfamily has to look in the 
index even

when you the file-method to ensure the requested font is available.

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
___

[NTG-context] next beta

2016-03-03 Thread Hans Hagen

Hi,

A next beta will have a new setting

\setupinteraction
  [focusoffset=5pt]

(once tested that value will become default)

Hans

-
  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] issue with font loading

2016-03-03 Thread Hans Hagen

On 3/2/2016 7:25 PM, Thomas A. Schmitz wrote:

On 03/02/2016 07:12 PM, Wolfgang Schuster wrote:

Don’t write just some garbage as third argument for the
\definefontfamily or \definefallbackfamily commands.

In the attached picture you can see the fonforge information for the
font names,
needed for the \definefontfamily command is the "family name" value.

\definefallbackfamily[mainface][rm][GaramondNo8][scale=0.88,range=0x22C0]

Wolfgang


Or, if you happen to have texlive installed:

otfinfo -a 


or if you want to know how context sees fonts:

mtxrun --script font --list --pattern=*  --all --info

or more detailed:

mtxrun --script font --list --pattern=* --all

Hans

-
  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
___