Re: [NTG-context] stretched hyphenated url

2012-03-30 Thread Hans Hagen

On 30-3-2012 21:29, Steffen Wolfrum wrote:


Am 30.03.2012 um 20:10 schrieb Hans Hagen:


On 30-3-2012 10:01, Steffen Wolfrum wrote:

Hi,

I, personally, like the solution for hyphenated url (by stretching).
Only a author of mine feels that it was too much (see attached, first line).

Is there a way to adjust the degree of stretching?


\def\lang_url_space{\nobreak\hskip\zeropoint plus\onepoint\nobreak}



thank you for the fast help! I made some testing and found a value that 
stretches nicely in my document.
did I understand it correctly that I can only make this change *globally*, ie. 
in lang-url.mkiv plus regenerating the formats?


You can put it in your style (between \unprotect \protect). As it's a 
low level hack, it might eventually become some configuration option but 
urls are low on my priority list.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] stretched hyphenated url

2012-03-30 Thread Steffen Wolfrum

Am 30.03.2012 um 20:10 schrieb Hans Hagen:

> On 30-3-2012 10:01, Steffen Wolfrum wrote:
>> Hi,
>> 
>> I, personally, like the solution for hyphenated url (by stretching).
>> Only a author of mine feels that it was too much (see attached, first line).
>> 
>> Is there a way to adjust the degree of stretching?
> 
> \def\lang_url_space{\nobreak\hskip\zeropoint plus\onepoint\nobreak}


thank you for the fast help! I made some testing and found a value that 
stretches nicely in my document.
did I understand it correctly that I can only make this change *globally*, ie. 
in lang-url.mkiv plus regenerating the formats?

st.
___
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] stretched hyphenated url

2012-03-30 Thread Hans Hagen

On 30-3-2012 10:01, Steffen Wolfrum wrote:

Hi,

I, personally, like the solution for hyphenated url (by stretching).
Only a author of mine feels that it was too much (see attached, first line).

Is there a way to adjust the degree of stretching?


\def\lang_url_space{\nobreak\hskip\zeropoint plus\onepoint\nobreak}

you can make the stretch 0pt and hope for the best


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Page numbering in latest beta

2012-03-30 Thread Hans Hagen

On 30-3-2012 18:41, Steffen Fritzsche wrote:

Hi Hans,

I just ran my update script again, the issue still exists. Last update before 
was this morning around 10 a.m. CEST.



Any ideas or suggestions?


The old numbering code had a side effect. Every time one changes 
settings the state of the counters needs to be synchronized and in fact 
a reset happened. Now, normally this is no big deal, as one sets up 
things at the beginning of a document. However, when mid document one 
wants to change the style, this reset becomes annoying. (The linenote 
bug reported a few days ago was a side effect of this.)


So, now we don't reset any longer unless the 'start' key's value 
differs. As a consequence one needs to be explicit in some cases, like 
yours. By default, we number per text (we could change that if needed) 
but in the past the \setupuserpagenumber triggers a synchronization of 
the counter and therefore reset the number, so that obscured the fact. 
Now, you just need to set the 'way':


\starttext

\setupuserpagenumber[way=byblock] % can be default  yes/no?

\setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]

\setupheadertexts [section][pagenumber][pagenumber][chapter]
\setupheader [before={\ss\switchtobodyfont[10pt]}]

\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
\setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
\setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

\startfrontmatter test \stopfrontmatter
\startbodymatter  test \stopbodymatter
\startappendices  test \stopappendices
\startbackmatter  test \stopbackmatter

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Page numbering in latest beta

2012-03-30 Thread Wolfgang Schuster

Am 30.03.2012 um 17:39 schrieb Steffen Fritzsche:

> Hi,
> 
> nice surprise, with the latest beta my document just grew 15 pages ;)
> 
> On a closer look, it turned out that the numbering of my body part is not 
> reset to 1, instead it continues with the next number after my frontpart. 
> Here is how I did set this up long time ago:
> 
> \startsectionblockenvironment[frontpart]
>  \setupheader [before={\ss\switchtobodyfont[10pt]}]

  \setupheader[style={\switchtobodyfont[ss,10pt]}]

or use

  \definefont[HeaderFont][Sans at 10pt]

in combination with

  \setupheader[style=HeaderFont]

>  \setupheadertexts [section][pagenumber][pagenumber][chapter]
>  \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
> style={\ss\bold}]

The partnumber setting is now controlled by the prefix for the pagenumber.

A better value for the style key is “style=sansbold”, “style=\ss\bf” or 
“style=\ssbf”.

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] Page numbering in latest beta

2012-03-30 Thread Hans Hagen

On 30-3-2012 17:39, Steffen Fritzsche wrote:

Hi,

nice surprise, with the latest beta my document just grew 15 pages ;)

On a closer look, it turned out that the numbering of my body part is not reset 
to 1, instead it continues with the next number after my frontpart. Here is how 
I did set this up long time ago:


What time did you update? I fixed a side effect of some counter code 
renaming efforts.


Hans


\startsectionblockenvironment[frontpart]
   \setupheader [before={\ss\switchtobodyfont[10pt]}]
   \setupheadertexts [section][pagenumber][pagenumber][chapter]
   \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
   \setupuserpagenumber[numberconversion=romannumerals]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
   \setupheader [before={\ss\switchtobodyfont[10pt]}]
   \setupheadertexts [section][pagenumber][pagenumber][chapter]
   \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
   \setuppagenumber[number=1]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
   \setupheader [before={\ss\switchtobodyfont[10pt]}]
   \setupheadertexts [chapter][pagenumber][pagenumber][chapter]
   \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
   \setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
   \setupheader [before={\ss\switchtobodyfont[10pt]}]
   \setupheadertexts [section][pagenumber][pagenumber][chapter]
   \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
   \setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

Any ideas or suggestions?

Thanks in advance!

Steffen





___
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 | voip: 087 875 68 74 | 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] Page numbering in latest beta

2012-03-30 Thread Steffen Fritzsche
Hi,

nice surprise, with the latest beta my document just grew 15 pages ;)

On a closer look, it turned out that the numbering of my body part is not reset 
to 1, instead it continues with the next number after my frontpart. Here is how 
I did set this up long time ago:

\startsectionblockenvironment[frontpart]
  \setupheader [before={\ss\switchtobodyfont[10pt]}]
  \setupheadertexts [section][pagenumber][pagenumber][chapter]
  \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
  \setupuserpagenumber[numberconversion=romannumerals]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
  \setupheader [before={\ss\switchtobodyfont[10pt]}]
  \setupheadertexts [section][pagenumber][pagenumber][chapter]
  \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
  \setuppagenumber[number=1]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
  \setupheader [before={\ss\switchtobodyfont[10pt]}]
  \setupheadertexts [chapter][pagenumber][pagenumber][chapter]
  \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
  \setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
  \setupheader [before={\ss\switchtobodyfont[10pt]}]
  \setupheadertexts [section][pagenumber][pagenumber][chapter]
  \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
style={\ss\bold}]
  \setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

Any ideas or suggestions?

Thanks in advance!

Steffen




smime.p7s
Description: S/MIME cryptographic signature
___
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] Strange errors on using setupheader

2012-03-30 Thread Hans Hagen

On 30-3-2012 11:47, Malte Stien wrote:

Hans,

No, everything works in the "(by now ancient) current" but is broken in the 
beta. I am trying to switch to the beta as you suggested, but am being held up by some 
errors, the first one of which is this


Ah, I forgot to rename a macro ... new beta in an hour ...

(btw, no need for utf directive in mkiv and english is default anyway)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Strange errors on using setupheader

2012-03-30 Thread Malte Stien
Hans,

No, everything works in the "(by now ancient) current" but is broken in the 
beta. I am trying to switch to the beta as you suggested, but am being held up 
by some errors, the first one of which is this

Regards,
Malte.

On 30/03/2012, at 20:44, Hans Hagen wrote:

> On 30-3-2012 11:35, Malte Stien wrote:
> 
>>   doifelsemarking("\ascii
> 
> So that's in the (by now ancient) current and not th ebets I assume?
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Typescript not found

2012-03-30 Thread Hans Hagen

On 30-3-2012 01:12, S Barmeier wrote:

On 03/29/2012 03:33 PM, Wolfgang Schuster wrote:


Am 28.03.2012 um 09:32 schrieb S Barmeier:


I have some typescript problems.

The output says

fonts>  typescripts>  unknown: library 'mytypescript'
fonts>  typescripts>  unknown: library 'Myface'
fonts>  preloading latin modern fonts (third stage)

In my environment file I have

\usetypescriptfile[mytypescript]
\usetypescript[MyIPAex]
\setupbodyfont[Myface,rm,12pt]

and the typescript file is in the same folder as the source files.

What am I doing wrong?


Has your typescript file “type-” as prefix?


It did until recently, is that a problem? Now I called it mytypescript
with an output just as above, i.e. still unable to find the typescript.


There is some lookup-logic involved. If you have typescripts that need 
to b eloaded explicitly or automatically, use type-imp-.mkiv 
(or tex) names. Alternatively you can just put the definitions in an 
environment that you load as part of the document style.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Strange errors on using setupheader

2012-03-30 Thread Hans Hagen

On 30-3-2012 11:35, Malte Stien wrote:


  doifelsemarking("\ascii


So that's in the (by now ancient) current and not th ebets I assume?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Strange errors on using setupheader

2012-03-30 Thread Malte Stien
Hi again,

After I had some issues with \externalfigure, Hans suggested to me that I use a 
newer version of ConTeXt. So, rather than using the latest current (which seems 
to be from May 2011)

  ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.12.6  int: english/english

I am not using the latest beta

  ConTeXt  ver: 2012.03.29 11:28 MKIV  fmt: 2012.3.29  int: english/english

However, as it turns out, the document I am working on is no longer processed 
without errors. I butchered my document to isolate the error and come up with a 
(close to) minimal example:


% Use UTF encoding
\enableregime[utf]

% Set English as the language
\language[en]

% Select A4 as the paper size
\setuppapersize[A4]

% Setup the header...
\setupheadertexts[chapter][section]
\setupheader[leftwidth=.5\hsize, rightwidth=.4\hsize]

\starttext
\startfrontmatter
\completecontent

\chapter{Purpose and Scope}
\section[]{Purpose}
This document should be read in conjunction with bla bla bla...

\stopfrontmatter
\stoptext


I get the following error when processing with the aforementioned version:


 doifelsemarking("\ascii 
   ")
\ctxcommand #1->\directlua \zerocount {commands.#1
  }
\page_layouts_process_element_single_limited ...i 
  {\limitatetext {\getmarkin...
\page_layouts_process_element_single_indeed ...#4}
  \fi \endgroup 
\page_layouts_process_element_single ...#1#2#3{#4}
  \fi 
 ...\layoutelementparameter \c!lefttext 
  \hss }\hskip -\makeupwidth...
...
l.18 \chapter{Purpose and Scope}


Strangely enough, all works well when I remove (or comment) the \setupheader 
line. Is there anything strange I am doing here? Should work, right?

Any pointers would be appreciated.
Thank you,
Malte.

___
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] stretched hyphenated url

2012-03-30 Thread Steffen Wolfrum
Hi,

I, personally, like the solution for hyphenated url (by stretching).
Only a author of mine feels that it was too much (see attached, first line).

Is there a way to adjust the degree of stretching?

Steffen
---


PastedGraphic-2.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
___