[NTG-context] Horizontal spacing

2022-11-21 Thread Steffen Wolfrum via ntg-context
Hi,

these line can modify the space between words:

\installtolerancemethod
{horizontal}
{MySpace}
{\spaceskip2.75pt plus1.60pt minus1.10pt\relax}

\setupalign[line,block]\setfalse\raggedonelinerstate% kein hz=expansion mehr?
\setuptolerance[MySpace]


But how can I adjust in general the horizontal distance between glyphs (I don't 
mean \kern, I am looking for a general setup)?


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

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


Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Steffen Wolfrum via ntg-context


> Am 25.10.2022 um 11:47 schrieb Hans Hagen via ntg-context 
> :
> 
> On 10/25/2022 11:05 AM, Steffen Wolfrum via ntg-context wrote:
>> This does not open the right link.
>> At least on my machine nothing happens when clicking on «litteraturbanken.se 
>> <http://litteraturbanken.se/>».
>> (And it looks as the link was cropped, only reads the first line?)
> 
> \setupinteraction[state=start]
> 
> \useurl
>  [litteraturbanken]
>  [https://litteraturbanken.se]
> [författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only]
>  [https://litteraturbanken.se]
> 
> \starttext
> 
>before \goto{\url[litteraturbanken]}[url(litteraturbanken)] after
> 
>before \from[litteraturbanken] after
> 
> \stoptext
> 
> beware of viewer behaviour: some viewers parse the displayed pdf
> 
> Hans



…. strange, on my machine your example doesn't open the link.

Please have a look here: only the last one («works …») opens the link. Why?


\setupinteraction[state=start]

\useurl
 [litteraturbanken]
 [https://litteraturbanken.se]
[författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only]
 [https://litteraturbanken.se]

\starttext

   before \goto{\url[litteraturbanken]}[url(litteraturbanken)] after

   before \from[litteraturbanken] after

   fails 
\useURL[test][https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?
 
show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only][][{https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?
 
show_sear-ch_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only}]\from[test]
 after

   works 
\useURL[test][https://litteraturbanken.se/f\%C3\%B6rfattare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?
 
show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only][][{https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?
 
show_sear-ch_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only}]\from[test]
 after

\stoptext


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

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


Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Steffen Wolfrum via ntg-context
This does not open the right link.

At least on my machine nothing happens when clicking on «litteraturbanken.se 
».

(And it looks as the link was cropped, only reads the first line?)

Steffen



> Am 24.10.2022 um 20:04 schrieb Pablo Rodriguez via ntg-context 
> mailto:ntg-context@ntg.nl>>:
> 
> A simpler approach would read (there is a single url, instead of two
> [less typos in the end]):
> 
> \setupinteraction[state=start]
> 
> \starttext
> 
> \def\MyURL[#1]{\goto{\tt\hyphenatedurl{#1}}[url(#1)]}
> 
> \MyURL[https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only
>  
> ]
> \stoptext

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

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


[NTG-context] never add a hyphen to break a URL

2022-10-24 Thread Steffen Wolfrum via ntg-context
Hi,

according to the Chicago Manual of Style we should «never add a hyphen to break 
a URL»:

(https://www.chicagomanualofstyle.org/qanda/data/faq/topics/URLs/faq0008.html)


Is there a switch to forbid \useURL adding hyphens?


\starttext

\useURL[test][https://litteraturbanken.se/f\%C3\%B6rfattare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?
 
show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only][][{https://litteraturbanken.se/f\%C3\%B6rfattare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?
 
show_sear-ch_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only}]\from[test]%

\stoptext


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

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


[NTG-context] Fwd: Hyphenation in multi-language projects

2022-10-24 Thread Steffen Wolfrum via ntg-context


> Anfang der weitergeleiteten Nachricht:
> 
> Von: Pablo Rodriguez via ntg-context  >
> Betreff: Aw: [NTG-context] Hyphenation in multi-language projects
> Datum: 14. September 2022 um 19:40:53 MESZ
> An: Denis Maier via ntg-context  >
> Kopie: Pablo Rodriguez mailto:oi...@gmx.es>>
> Antwort an: mailing list for ConTeXt users  >
> 
> On 9/14/22 16:54, Denis Maier via ntg-context wrote:
>>> [...]
>>> Isn’t there a way to list exceptions that will work in *all*
>>> languages?
>> 
>> I thought that \hyphenation would work like that, or \startexceptions
>> without a language code. Apparently that's not the case.
> 
> \hyphenation only works for the given language:
> 
>  \hyphenation{macOS}
>  \starttext
>  \startTEXpage[offset=1em]
>  \currentlanguage:
>  \hyphenatedword{macOS}
> 
>  \startlanguage[fr]
>  \currentlanguage:
>  \hyphenatedword{macOS}
>  \stoplanguage
>  \stopTEXpage
>  \stoptext
> 
> But I’d say that \registerhyphenationexception[macOS] was
> language-independent for me some time ago. (Now it seems to work like
> \hyphenation.)
> 
> In any case, \registerhyphenationexception seems to have issues with
> ligatures:
> 
>  \setuphyphenation[method=traditional]
>  \registerhyphenationexception[steff-en macOS]
>  \registerhyphenationexception[it][steff-en macOS]
> 
>  \starttext
>  \startTEXpage[offset=1em]
>  \currentlanguage:
>  \hyphenatedword{steffen macOS}
> 
>  \startlanguage[it]
>  \currentlanguage:
>  \hyphenatedword{steffen macOS}
>  \stoplanguage
>  \stopTEXpage
>  \stoptext
> 
> If there isn’t a command to add language-indepented hyphenation
> exceptions or patterns, one for proper names (for people, products or
> companies) would be really useful.
> 
> Just in case Hans or other wizard may take a look at this,
> 
> Pablo


Hans, is there any news regarding Pablos wish?

Steffen

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

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


Re: [NTG-context] Combining Macron Below needed

2022-09-22 Thread Steffen Wolfrum via ntg-context
for what fonts does this fontfeature work?


\definefontfeature[default][default][compose=yes]

\starttext

\definedfont[name:agaramondproregular*default]{ḵ ṭarī}

\stoptext


I need it for Garamond Premier Pro (and Renner*).
Steffen


> Am 11.09.2022 um 11:38 schrieb Hans Hagen via ntg-context 
> :
> 
> On 9/10/2022 5:41 PM, Steffen Wolfrum via ntg-context wrote:
>> Hi,
>> a text is to be set in Garamond Premier Pro and uses this character: ḵ
>> Is there a way to set a combining macron below (U+0331), preferable in a 
>> Garamond-like font?
> I'm sure that these missing accented chars in fonts have been discussed 
> before and you can use this feature (made for Mojca long ago):
> 
> \definefontfeature[default][default][compose=yes]
> 
> \starttext
>  ḵ
> \stoptext
> 
> So, unless you wikify it, I bet the same question will come up again.
> 
> Hans
> 
> -
>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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
a bug?

st.


> Am 14.09.2022 um 16:54 schrieb denis.ma...@unibe.ch:
> 
>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Steffen
>> Wolfrum via ntg-context
>> Gesendet: Mittwoch, 14. September 2022 16:45
>> An: mailing list for ConTeXt users 
>> Cc: Steffen Wolfrum ; Hans Hagen
>> 
>> Betreff: Re: [NTG-context] Hyphenation in multi-language projects
>> 
>> Isn’t there a way to list exceptions that will work in *all* languages?
> 
> I thought that \hyphenation would work like that, or \startexceptions without 
> a language code. Apparently that's not the case.
> 
> Denis
> 
> 

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

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


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
Isn’t there a way to list exceptions that will work in *all* languages?

Steffen


> Am 14.09.2022 um 09:19 schrieb Denis Maier via ntg-context 
> :
> 
>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Max
>> Chernoff via ntg-context
>> Gesendet: Mittwoch, 14. September 2022 08:51
>> An: ntg-context@ntg.nl
>> Cc: Max Chernoff ; cont...@st.estfiles.de
>> Betreff: Re: [NTG-context] Hyphenation in multi-language projects
>> 
>> Hi Steffen,
>> 
>>> … \replaceword should be the correct way for proper hyphenation??
>> 
>> Well I'm not sure if it's "correct", but it seems to work. Based on my 
>> testing,
>> having three subsequent sets of groups ({A}{B}{C}) is converted to a
>> discretionary. The discretionary hyphen "\-" is equivalent to the Plain TeX
>> command "\discretionary{-}{}{}", so
>> 
>>  \replaceword[hyphenations][steffen][steff{-}{}{}en]
>> 
>> acts just like "steff\-en". TeX won't otherwise hyphenate a word with
>> discretionaries, so this means that "steff-en" will be the only allowable
>> hyphenation.
> 
> Just one caveat though. IIRC, Hans has mentioned that this kind of stuff is 
> slower than using the hyphenation engine directly. (That's why he has 
> reimplemented the ligature suppression mechanism on the hyphenation level, 
> rather than acting on the node list.) 
> 
> Best,
> Denis
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Hyphenation in multi-language projects

2022-09-14 Thread Steffen Wolfrum via ntg-context
… \replaceword should be the correct way for proper hyphenation??

st.


> Am 14.09.2022 um 08:35 schrieb Max Chernoff :
> 
> 
> Hi Steffen,
> 
>> The idea is to set the hyphenation for certain words regardless of the
>> language that is used in the surrounding paragraphs.
>> 
>> In this example it should stay: «steff-en»
>> 
>> How do i set this to all non-english paragraphs (without using
>> \hyphenation on each language-switch)?
> 
> You can use \replaceword:
> 
> \starttext
> 
> \setuppapersize[A6][A6]
> 
> \mainlanguage[en]
> 
> \replaceword[hyphenations][steffen][steff{-}{}{}en]
> \setreplacements[hyphenations]
> 
> english text english text english teste: steffen steffen
> 
> \start\language[it]
> italian text italian text italian teste: steffen steffen
> \stop
> 
> \stoptext
> 
> -- Max

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

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


[NTG-context] Hyphenation in multi-language projects

2022-09-12 Thread Steffen Wolfrum via ntg-context
Hi,

please have a look at this minimal example.

The idea is to set the hyphenation for certain words regardless of the language 
that is used in the surrounding paragraphs.

In this example it should stay: «steff-en»

How do i set this to all non-english paragraphs (without using \hyphenation on 
each language-switch)?

Best,
Steffen

—

\starttext

\setuppapersize[A6][A6]

\mainlanguage[en]

\startexceptions
steff-en
\stopexceptions

english text english text english teste: steffen

\start\language[it]
italian text italian text italian teste: steffen
\stop

\start\language[it]\hyphenation{steff-en}
italian text italian text italian teste: steffen
\stop

\stoptext

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

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


[NTG-context] Combining Macron Below needed

2022-09-10 Thread Steffen Wolfrum via ntg-context
Hi,

a text is to be set in Garamond Premier Pro and uses this character: ḵ

Is there a way to set a combining macron below (U+0331), preferable in a 
Garamond-like font?

Best,
Steffen

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

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


Re: [NTG-context] overfull lines

2022-07-22 Thread Steffen Wolfrum via ntg-context


> Am 22.07.2022 um 10:05 schrieb Hans Hagen via ntg-context 
> :
> 
> On 7/21/2022 5:02 PM, Steffen Wolfrum via ntg-context wrote:
>> Hi,
>> the command \version[temporary] shows an overfullrule when lines are set 
>> overfull.
>> How does this work also in footnotes?
>> MWE:
>> \setuppapersize[A10]
>> \overfullrule5\points
>> %\version[temporary]
>> \starttext
>> \showframe
>> XX\footnote{xxx}
>> \stoptext
> \let\dontcomplain\relax

… no, I can't complain ;o)

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

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


[NTG-context] overfull lines

2022-07-21 Thread Steffen Wolfrum via ntg-context
Hi,

the command \version[temporary] shows an overfullrule when lines are set 
overfull.

How does this work also in footnotes?

MWE:

\setuppapersize[A10]

\overfullrule5\points
%\version[temporary]

\starttext

\showframe

XX\footnote{xxx}

\stoptext


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

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


Re: [NTG-context] overfull gone?

2022-06-07 Thread Steffen Wolfrum via ntg-context


> Am 28.05.2022 um 14:16 schrieb Hans Hagen via ntg-context 
> :
> 
> On 5/28/2022 12:43 PM, Steffen Wolfrum via ntg-context wrote:
>> Hi,
>> in order to easily see overfull lines I used \overfullrule30\points : this 
>> gave a clear black box in the right margin.
>> Is this command (\version[temporary]) gone??
>> Please have a look at the example below: no overfull indicator ...
>> Steffen
>> ---
>> \setuppapersize[A6]
>> \setupexternalfigures[location={default}]
>> %\version[temporary]
>> \overfullrule30\points% < BLACK BOX?
>> \starttext
>> \startcolumns[n=3]
>> % Overfull lines will have slugs in colum margins.
>> \input linden
>> % Underfull hboxes get no warning
>> x
>> \stopcolumns
>> \stoptext
> i'll check it .. looks like some interference with normalization .. actually 
> one can enable more advanced tracers:
> 
> % \enabletrackers[builders.hpack.quality]
> % \enabletrackers[builders.hpack.overflow]


the overfullrule is great for visual debugging
thanks for checking it

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] interwordspace error after update

2022-06-06 Thread Steffen Wolfrum via ntg-context
Hi,

with my last ConTeXt ver 2022.01.21 20:31 LMTX (arm64) this work:

\startsetups footnotesetup
\interwordspace 2.75pt % \setuptolerance[NEUNspace] hat hier keine Wirkung!
\interwordstretch 1.7pt
\interwordshrink 0.9pt
\setupinterlinespace[line=11pt, height=.79,depth=.21]
\lineskiplimit-\maxdimen
\setupwhitespace[0pt]
\stopsetups


Now, with ver 2022.05.11 11:36 LMTX (arm64) the same document gives an error:

tex error   > tex error on line 4 in file ./01_Fara.tex: You can't use 
'\scaledinterwordspace' in internal vertical mode

 \22>:footnotesetup 
   #1->\interwordspace 
   2.75pt\clubpenalty =1\widowpenalty =1\displaywidowpenalty 
=1\brokenpenalty =0\setupinterlinespace [line=11pt, 
height=.79,depth=.21]\lineskiplimit -\maxdimen \setupwhitespace [0pt]
 
 \m_syst_setups_asked 
   \clf_autosetups {\m_syst_setups_asked }
   \relax 
 \handlenoteinsert 
   ...ngroup \edef \currentnote {#1}\strc_constructions_initialize 
{#1}\strc_notes_synchronize \the \everybeforenoteinsert \insert 
\currentnoteinsertionnumber \bgroup \the \everyinsidenoteinsert \relax 
\usesetupsparameter \noteparameter 
   \useinterline ...
 \currentconstructionsynchronize 
   ...es \global \settrue \postponednote \orelse \ifconditional 
\c_strc_notes_flushed \handlenoteitself \currentnote \currentnotenumber \orelse 
\ifconditional \c_strc_notes_delayed \else \handlenoteinsert \currentnote 
\currentnotenumber 
   \fi \endgroup ...
 \currentconstructionsynchronize 
   \csname \??constructionnotehandler \currentconstructionhandler \endcsname 
   \strc_constructions_finalize \strc_notations_finalize 
 
   \stopfootnote
   }


Is there any chance my setup might work again?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ugly bug

2022-06-03 Thread Steffen Wolfrum via ntg-context


> Am 02.06.2022 um 20:13 schrieb Wolfgang Schuster 
> :
> 
> Steffen Wolfrum schrieb am 01.06.2022 um 14:03:
>> Hi,
>> 
>> several times I got problems with my publishing house when they noticed that 
>> the headerlines jump up and down on pages that end/begin with qoutes (i.e. 
>> smaller interlineskip), see example below: on page 1 the blackrule is about 
>> 1mm higher than on page 2.
>> 
>> In the past I then used really laborious workarounds to get these single 
>> pages in the correct way (without jumping)… manual pagebreak, re-define 
>> layout etc.
>> 
>> But as the pages are hard to find it would be better that the layout would 
>> be reliable consistent.
>> 
>> How can this be solved?
> 
> \defineinterlinespace[steffen][line=4.2ex]
> 
> \starttext
> 
> \dorecurse{2}{\samplefile{lorem}\par}
> 
> \start
> %\setuplocalinterlinespace[line=4.2ex]% wrong header alignment
> \setuplocalinterlinespace[steffen]% correct header alignment
> \dorecurse{4}{\samplefile{lorem}\par}
> \stop
> 
> \dorecurse{2}{\samplefile{lorem}\par}
> 
> \stoptext


ok, this minimal example works.

but for other reasons (lots of heading with various vertical spaces)!) I also 
need \setuplayout[grid=tolerant]


\setuplayout[grid=tolerant]% this kills the smaller interlinespace

\defineinterlinespace[steffen][line=4.2ex]

\starttext

\dorecurse{2}{\samplefile{lorem}\par}

\start
%\setuplocalinterlinespace[line=4.2ex]% wrong header alignment
\setuplocalinterlinespace[steffen]% correct header alignment
\dorecurse{4}{\samplefile{lorem}\par}
\stop

\dorecurse{2}{\samplefile{lorem}\par}

\stoptext


Any idea how to preserve the smaller interlinespace?
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] ugly bug

2022-06-01 Thread Steffen Wolfrum via ntg-context
Hi,

several times I got problems with my publishing house when they noticed that 
the headerlines jump up and down on pages that end/begin with qoutes (i.e. 
smaller interlineskip), see example below: on page 1 the blackrule is about 1mm 
higher than on page 2.

In the past I then used really laborious workarounds to get these single pages 
in the correct way (without jumping)… manual pagebreak, re-define layout etc.

But as the pages are hard to find it would be better that the layout would be 
reliable consistent.

How can this be solved?


Best wishes, Steffen

===

\setupbodyfont[palatino,9.5pt]\setupinterlinespace[13pt]

\setuppagenumbering [alternative=doublesided,location=]
\setupheader[strut=yes]
\setupheadertexts[text][][\blackrule]


\definepapersize[stw][width=17cm,height=24cm]
\setuppapersize[stw][stw]

\setuplayout
[width=122mm,
backspace=18mm,topspace=10mm,
header=7mm,headerdistance=5.969mm,
footer=5mm,footerdistance=5mm,height=214.031mm, 
location=middle]


\definedelimitedtext
[narrowtext]
[leftmargin=6mm,rightmargin=0mm]%,

\starttext

%%Test 1:
\dorecurse{6}{\input linden}

%%Test 2:
%\dorecurse{5}{\input tufte}


\start
\startdelimitedtext[narrowtext]
\switchtobodyfont[8pt]\setuplocalinterlinespace[line=11pt]
\input linden\par
\stopdelimitedtext
\stop

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] arm osx

2022-05-29 Thread Steffen Wolfrum via ntg-context
Hi,

the first, clean install of MacOS ARM64bits I downloaded from 
https://wiki.contextgarden.net/Installation

Next I followed the thread below (exchanging texmf-osx-64/bin to 
texmf-osx-arm64/bin) and everything works like a charm (ConTeXt ver: 2022.01.21 
20:13 LMTX) !

Today I wanted to update, using 
sh install.sh

After that, running the same TeXShop engine as before gives an error:

Users/steffen/Library/TeXShop/Engines/ConTeXt LMTX_ARM.engine: line 3: 19971 
Killed: 9   
/Users/steffen/context-osx-arm64/tex/texmf-osx-arm64/bin/mtxrun --autogenerate 
--script context --autopdf "$1"

What did I do wrong?

Steffen




> Am 25.04.2021 um 18:52 schrieb Keith McKay :
> 
> Great! I'm glad it worked OK!
> Best Wishes
> Keith
> 
> On Sun, 25 Apr 2021, 09:59 Charles Doherty,  
> wrote:
> Dear Keith and Mojca,
> 
> I followed the information provided buy Keith below and everything is working 
> just fine. Mojca I directed my request to Keith in the first instance since I 
> felt it was most likely my lack of knowledge of how to get things going that 
> was the problem (as usual). So thank you for your quick response and offer to 
> test. And thank you Keith for your example below it did the trick.
> 
> Very best wishes,
> Charlie
> 
>> On 23 Apr 2021, at 15:53, Keith McKay  wrote:
>> 
>> Sorry. I put a typo in the engine file in my reply. It should be
>> 
>> #!/bin/bash
>> 
>> export 
>> PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin
>> 
>> /Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun --autogenerate 
>> --script context --autopdf "$1"
>> 
>> Best Wishes
>> 
>> Keith
>> 
> 
> ***
> CHARLES DOHERTY
> 13 BANCROFT ROAD
> TALLAGHT
> DUBLIN 
> D24 YH2V
> home: +353 1 2447483
> Mobile: +353 863868629
> charles.dohe...@icloud.com
> 
> 
> 
> 
> 
> ___
> 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
> ___

___
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] overfull gone?

2022-05-28 Thread Steffen Wolfrum via ntg-context
Hi,

in order to easily see overfull lines I used \overfullrule30\points : this gave 
a clear black box in the right margin.

Is this command (\version[temporary]) gone??

Please have a look at the example below: no overfull indicator ...

Steffen

---

\setuppapersize[A6]

\setupexternalfigures[location={default}]
%\version[temporary]
\overfullrule30\points% < BLACK BOX?

\starttext

\startcolumns[n=3]
 % Overfull lines will have slugs in colum margins.
 \input linden 

 % Underfull hboxes get no warning
 x
\stopcolumns

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] spooky jumping headerline

2022-05-25 Thread Steffen Wolfrum via ntg-context
Hi,

the \blackrule (in my real project this is the running title) on page 1 is 
about 1mm higher than on page 2.

Why?

Best, Steffen



\setupbodyfont[palatino,9.5pt]\setupinterlinespace[13pt]

\setuppagenumbering [alternative=doublesided,location=]
\setupheader[strut=yes]
\setupheadertexts[text][][\blackrule]


\definepapersize[stw][width=17cm,height=24cm]
\setuppapersize[stw][stw]

\setuplayout
[width=122mm,
backspace=18mm,topspace=10mm,
header=7mm,headerdistance=5.969mm,
footer=5mm,footerdistance=5mm,height=214.031mm, 
location=middle]


\definedelimitedtext
 [narrowtext]
 [leftmargin=6mm,rightmargin=0mm]%,

\starttext

%%Test 1:
\dorecurse{6}{\input linden}

%%Test 2:
%\dorecurse{5}{\input tufte}


\start
\startdelimitedtext[narrowtext]
\switchtobodyfont[8pt]\setuplocalinterlinespace[line=11pt]
\input linden\par
\stopdelimitedtext
\stop

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] is \version[temporary] still alive?

2022-05-22 Thread Steffen Wolfrum via ntg-context
Hi,

testing this mwe I’d expect some indicators detecting overfull lines.

At least on my machine (ConTeXt  ver: 2022.01.21 20:13 LMTX) nothing happens:

\setuppapersize[A6]
% Tell ConTeXt where the windmill picture is
\setupexternalfigures[location={default}]
\version[temporary]

\section{Slithy toves}

% Top right of page will show successful reference '< fig2'
% Left margin will mention unsuccessful reference 'figNothing->'
See \in{Figure}[fig2] and \in{Figure}[figNothing].

% Top right of page will show new-created anchors '> fig1' and '> fig2'
% Top right of page will show successfully placed floats
\placefigure[here][fig1]{First windmill}{
   \externalfigure[mill][width=1cm]
}
\placefigure[here][fig2]{Second windmill}{
   \externalfigure[mill][width=1cm]
}

\startcolumns[n=3]
   % Overfull lines will have slugs in colum margins.
   \input linden 

   % Underfull hboxes get no warning
   x
\stopcolumns


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] split TABLE cells

2022-05-19 Thread Steffen Wolfrum via ntg-context


> Am 19.05.2022 um 08:14 schrieb Hans Hagen via ntg-context 
> :
> 
> On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote:
>> Hi,
>> I just found an old mail from 30 May 2008:
>> How do I split not only TABLE but cells? It was not possible then.
>> \starttext
>> \bTABLE[split=yes,option=stretch]
>> \bTR
>> \bTD
>> \input tufte \input knuth Hello world ...
>> \eTD
>> \bTD
>> \input tufte
>> \eTD
>> \bTD
>> \input knuth
>> \eTD
>> \eTR
>> \bTR
>> \bTD
>> Test
>> \eTD
>> \bTD
>> Test
>> \eTD
>> \bTD
>> Test
>> \eTD
>> \eTR
>> \eTABLE
>> \stoptext
> not possible, use tabulate instead


do you have a MWE? 

the example from https://wiki.contextgarden.net/Tabulate gives an empty page:



\setuppapersize[A10, landscape][A8, landscape]
\setuppaper[nx=2,ny=2]
\setuparranging[XY]

\switchtobodyfont[5pt]
\setuppagenumbering[location={header,inright}]
\showframe[edge]

\setuptabulate
 [split=yes,
  header=text,
  title={\color[red] Fenchurch St. Paul},
  frame=on]

\starttabulate[|p(1.2cm)|p(1.2cm)|]
\dorecurse{6}{
\NC  Bells:  \NC  Tin tan din dan bim bam bom bo \NC\NR
\HL
\NC  Name:  \NC  Tailor Paul \NC \NR
  
\HL
}
\stoptabulate
)



Best wishes, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] split TABLE cells

2022-05-18 Thread Steffen Wolfrum via ntg-context
Hi,

I just found an old mail from 30 May 2008:

How do I split not only TABLE but cells? It was not possible then.

\starttext
\bTABLE[split=yes,option=stretch]
\bTR
\bTD
\input tufte \input knuth Hello world ...
\eTD
\bTD
\input tufte
\eTD
\bTD
\input knuth
\eTD
\eTR
\bTR
\bTD
Test
\eTD
\bTD
Test
\eTD
\bTD
Test
\eTD
\eTR
\eTABLE
\stoptext


Best wishes, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \figuresymbol with underlying hyperlink?

2022-03-29 Thread Steffen Wolfrum via ntg-context
No, I didn’t…. Thank you very much, now it works ;o)

Steffen


> Am 29.03.2022 um 12:59 schrieb Henning Hraban Ramm via ntg-context 
> :
> 
> Did you try to use it with a parameter?
> \Link{wiki.contextgarden.net}
> 
> Hraban
> 
> Am 29.03.22 um 10:48 schrieb Steffen Wolfrum:
>> Unfortunately I have to use it at a heading:
>> and this gives an error:
>> \starttext
>> \define[1]\Link{\goto{\symbol[wingdings 
>> 3][barb1right]}[url(https://#1)]\autoinsertnextspace}
>> \chapter{a\Link}
>> text
>> \stoptext
>> Steffen
>>> Am 29.03.2022 um 09:56 schrieb Henning Hraban Ramm via ntg-context 
>>> :
>>> 
>>> Am 28.03.22 um 21:08 schrieb Steffen Wolfrum via ntg-context:
>>>> Hi,
>>>> is it possible to combine figuresymbol with some kind of \useurl?
>>>> The goal is to have an inline symbol that provides a http url link.
>>> 
>>> AFAIK there’s nothing ready-made in that regard, but just define your own 
>>> macro.
>>> 
>>> E.g. I use:
>>> 
>>> \define[1]\Web{\goto{\hyphenatedurl{#1}}[url(https://#1)]\autoinsertnextspace}
>>> \define[1]\Email{\goto{\hyphenatedurl{#1}}[url(mailto:#1)]\autoinsertnextspace}
>>> \define[1]\WebQR{\inouter[scope=local]{\barcode[alternative=qr code, 
>>> text={#1}, width=10mm]}\Web{#1}}
>>> \define[1]\WebArrow{\symbol[wingdings 
>>> 3][barb1right]~{\em\hyphenatedurl{#1}}}
>>> 
>>> So I guess you’d like something like:
>>> 
>>> \define[1]\Link{\goto{\symbol[wingdings 
>>> 3][barb1right]}[url(https://#1)]\autoinsertnextspace}
>>> 
>>> Hraban
>>> 
>>> ___
>>> 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
> ___

___
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] \figuresymbol with underlying hyperlink?

2022-03-29 Thread Steffen Wolfrum via ntg-context
Unfortunately I have to use it at a heading:
and this gives an error:


\starttext

\define[1]\Link{\goto{\symbol[wingdings 
3][barb1right]}[url(https://#1)]\autoinsertnextspace}

\chapter{a\Link}

text

\stoptext


Steffen



> Am 29.03.2022 um 09:56 schrieb Henning Hraban Ramm via ntg-context 
> :
> 
> Am 28.03.22 um 21:08 schrieb Steffen Wolfrum via ntg-context:
>> Hi,
>> is it possible to combine figuresymbol with some kind of \useurl?
>> The goal is to have an inline symbol that provides a http url link.
> 
> AFAIK there’s nothing ready-made in that regard, but just define your own 
> macro.
> 
> E.g. I use:
> 
> \define[1]\Web{\goto{\hyphenatedurl{#1}}[url(https://#1)]\autoinsertnextspace}
> \define[1]\Email{\goto{\hyphenatedurl{#1}}[url(mailto:#1)]\autoinsertnextspace}
> \define[1]\WebQR{\inouter[scope=local]{\barcode[alternative=qr code, 
> text={#1}, width=10mm]}\Web{#1}}
> \define[1]\WebArrow{\symbol[wingdings 3][barb1right]~{\em\hyphenatedurl{#1}}}
> 
> So I guess you’d like something like:
> 
> \define[1]\Link{\goto{\symbol[wingdings 
> 3][barb1right]}[url(https://#1)]\autoinsertnextspace}
> 
> Hraban
> 
> ___
> 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
___


[NTG-context] \figuresymbol with underlying hyperlink?

2022-03-28 Thread Steffen Wolfrum via ntg-context
Hi,

is it possible to combine figuresymbol with some kind of \useurl?

The goal is to have an inline symbol that provides a http url link.

Best wishes, 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___