Re: [NTG-context] Horizontal spacing

2022-11-21 Thread Max Chernoff via ntg-context

Hi Steffen,

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

You probably want \definecharacterkerning. See

   https://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf#page=171

for details on how to use it.

-- 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] 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] horizontal spacing under special circumstances

2015-12-13 Thread Henning Hraban Ramm
Am 2015-12-09 um 04:16 schrieb Wolfgang Schuster :

>> \definedescription[BibItem][
>> before={\directsetup{tightspace}\bgroup\language[packed]},
>> after={\egroup},
>> ]
> you can use here (the grouping isn’t necessary)
> 
>before={\directsetup{tightspace}\setupspacing[packed]},

Thank you very much, that’s what i was looking for!


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] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster

Henning Hraban Ramm 
7. Dezember 2015 um 10:54
Hi again,

since my bibliographic setup works well, thanks again, I’d like to 
tighten it a bit, i.e. reduce spacing under defined circumstances.


In the docs and sources I found only how to affect spacing of 
languages, and only "packed" or "broad".


In lang-spa.mkiv I found \definehspace, and in spac-hor.mkiv I found 
\spac_spacecodes_set_fixed{}, but I don’t understand if they can do 
what I want, and how.


This doesn’t help:

\unprotect
\definedescription[BibItem][
headcommand=\gobbleoneargument,
align=right,
before={\bgroup\spac_spacecodes_set_fixed{50}}, % does this take a 
value or a unicode point?

after={\egroup}, %\spac_spacecodes_set_stretch},
]
\protect

I’d also like to have footnotes in tighter spacing.


You have to change the value of the \spaceskip register when you want to 
change with width of a space.


\startsetups[footnote:space]
  \spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink

\stopsetups

\setupnote[footnote][setups=footnote:space]

\starttext

\input zapf
\startfootnote
\input zapf
\stopfootnote

\stoptext

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] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster

Henning Hraban Ramm 
8. Dezember 2015 um 12:11

Thank you for the suggestion, but I can’t see any change, even if I 
use extreme values for \spaceskip (like 0.1 or 10.0), neither in footnotes

The footnote on the second page is a line shorter.

\startsetups[footnote:space]
  \spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink

\stopsetups

\starttext

\input zapf
\startfootnote
\input zapf
\stopfootnote

\page

\setupnote[footnote][setups=footnote:space]

\input zapf
\startfootnote
\input zapf
\stopfootnote

\stoptext
nor in my description (is the setups key even supposed to work in 
\definedescription?).
No, there is no setups key for description and you have to misuse the 
style key.


\define\CompressSpace
  {\spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink}


\definedescription[compressedspace]

\starttext

\startcompressedspace
\input zapf
\stopcompressedspace

\setupdescription[compressedspace][style=\CompressSpace]

\startcompressedspace
\input zapf
\stopcompressedspace

\stoptext

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] horizontal spacing under special circumstances

2015-12-08 Thread Pablo Rodriguez
On 12/08/2015 12:11 PM, Henning Hraban Ramm wrote:
> [...]
> Thank you for the suggestion, but I can’t see any change, even if I use
> extreme values for \spaceskip (like 0.1 or 10.0), neither in footnotes
> nor in my description (is the setups key even supposed to work in
> \definedescription?).

Hi Hraban,

I don’t know whether this is right, but this works for me:

\startsetups[footnote:space]
  \spaceskip .7\interwordspace
plus .5\interwordstretch minus \interwordshrink
\stopsetups

\definedescription[definition][before=\directsetup{footnote:space}]
\definedescription[definitiona]

\starttext
\definition{Hermann Zapf} \input zapf

\definitiona{Hermann Zapf} \input zapf
\stoptext


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
___

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Henning Hraban Ramm
Am 2015-12-08 um 15:01 schrieb Wolfgang Schuster :

>> \unprotect
>> \definedescription[BibItem][
>> headcommand=\gobbleoneargument,
>> align=right,
>> before={\bgroup\spac_spacecodes_set_fixed{50}}, % does this take a value or 
>> a unicode point?
>> after={\egroup}, %\spac_spacecodes_set_stretch},
>> ]
>> \protect
>> 
>> I’d also like to have footnotes in tighter spacing.
> 
> You have to change the value of the \spaceskip register when you want to 
> change with width of a space.
> 
> \startsetups[footnote:space]
>   \spaceskip .7\interwordspace plus .5\interwordstretch minus \interwordshrink
> \stopsetups
> 
> \setupnote[footnote][setups=footnote:space]

Thank you for the suggestion, but I can’t see any change, even if I use extreme 
values for \spaceskip (like 0.1 or 10.0), neither in footnotes nor in my 
description (is the setups key even supposed to work in \definedescription?).

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] horizontal spacing under special circumstances

2015-12-08 Thread Henning Hraban Ramm
Am 2015-12-08 um 17:48 schrieb Wolfgang Schuster :

>> Henning Hraban Ramm 8. Dezember 2015 um 12:11
>> 
>> Thank you for the suggestion, but I can’t see any change, even if I use 
>> extreme values for \spaceskip (like 0.1 or 10.0), neither in footnotes
> The footnote on the second page is a line shorter.

Ok.

>> nor in my description (is the setups key even supposed to work in 
>> \definedescription?).
> No, there is no setups key for description and you have to misuse the style 
> key.
> 
> \define\CompressSpace
>   {\spaceskip .7\interwordspace plus .5\interwordstretch minus 
> \interwordshrink}
> 
> \definedescription[compressedspace]

Yes, this works for me. But I like Pablo’s version better.


Greetlings, Hraban
Grüßlinge, 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] horizontal spacing under special circumstances

2015-12-08 Thread Henning Hraban Ramm

Am 2015-12-08 um 17:50 schrieb Pablo Rodriguez :

> On 12/08/2015 12:11 PM, Henning Hraban Ramm wrote:
>> [...]
>> Thank you for the suggestion, but I can’t see any change, even if I use
>> extreme values for \spaceskip (like 0.1 or 10.0), neither in footnotes
>> nor in my description (is the setups key even supposed to work in
>> \definedescription?).
> 
> Hi Hraban,
> 
> I don’t know whether this is right, but this works for me:
> 
>\startsetups[footnote:space]
>  \spaceskip .7\interwordspace
>plus .5\interwordstretch minus \interwordshrink
>\stopsetups
> 
>\definedescription[definition][before=\directsetup{footnote:space}]
>\definedescription[definitiona]
> 
>\starttext
>\definition{Hermann Zapf} \input zapf
> 
>\definitiona{Hermann Zapf} \input zapf
>\stoptext

Thank you, this is really nice. Didn’t know \directsetup (i.e. I can’t handle 
these setups at all).

I also tried to get rid of the bigger space after stops:

\installlanguage[packed][en]
\setuplanguage[packed][spacing=packed]

\startsetups[tightspace]
  \spaceskip 0.7\interwordspace plus .5\interwordstretch minus \interwordshrink
\stopsetups

\definedescription[BibItem][
before={\directsetup{tightspace}\bgroup\language[packed]},
after={\egroup},
]


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] horizontal spacing under special circumstances

2015-12-08 Thread Aditya Mahajan

On Tue, 8 Dec 2015, Wolfgang Schuster wrote:

nor in my description (is the setups key even supposed to work in 
\definedescription?).
No, there is no setups key for description and you have to misuse the style 
key.


Should we add one? It is a bit annoying at times that some of the 
environments (descriptions, delimitedtexts, etc) don't have a setup key. 
For environments that have been rewritten in the new style, adding a setup 
key is relatively simple.


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
___

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster

Henning Hraban Ramm 
8. Dezember 2015 um 16:22

Thank you, this is really nice. Didn’t know \directsetup (i.e. I can’t 
handle these setups at all).


I also tried to get rid of the bigger space after stops:

\installlanguage[packed][en]
\setuplanguage[packed][spacing=packed]

You don’t have add a new language because

\startsetups[tightspace]
\spaceskip 0.7\interwordspace plus .5\interwordstretch minus 
\interwordshrink

\stopsetups

\definedescription[BibItem][
before={\directsetup{tightspace}\bgroup\language[packed]},
after={\egroup},
]

you can use here (the grouping isn’t necessary)

   before={\directsetup{tightspace}\setupspacing[packed]},

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] horizontal spacing under special circumstances

2015-12-07 Thread Aditya Mahajan

On Mon, 7 Dec 2015, Henning Hraban Ramm wrote:


Hi again,

since my bibliographic setup works well, thanks again, I’d like to tighten it a 
bit, i.e. reduce spacing under defined circumstances.

In the docs and sources I found only how to affect spacing of languages, and only 
"packed" or "broad".

In lang-spa.mkiv I found \definehspace, and in spac-hor.mkiv I found 
\spac_spacecodes_set_fixed{}, but I don’t understand if they can do what I 
want, and how.

This doesn’t help:

\unprotect
\definedescription[BibItem][
headcommand=\gobbleoneargument,
align=right,
before={\bgroup\spac_spacecodes_set_fixed{50}}, % does this take a 
value or a unicode point?
after={\egroup}, %\spac_spacecodes_set_stretch},
]
\protect

I’d also like to have footnotes in tighter spacing.

Any ideas?


When typesetting bibliography manually, I typically use \frenchspacing.

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] horizontal spacing under special circumstances

2015-12-07 Thread Henning Hraban Ramm
Hi again,

since my bibliographic setup works well, thanks again, I’d like to tighten it a 
bit, i.e. reduce spacing under defined circumstances.

In the docs and sources I found only how to affect spacing of languages, and 
only "packed" or "broad".

In lang-spa.mkiv I found \definehspace, and in spac-hor.mkiv I found 
\spac_spacecodes_set_fixed{}, but I don’t understand if they can do what I 
want, and how.

This doesn’t help:

\unprotect
\definedescription[BibItem][
headcommand=\gobbleoneargument,
align=right,
before={\bgroup\spac_spacecodes_set_fixed{50}}, % does this take a 
value or a unicode point?
after={\egroup}, %\spac_spacecodes_set_stretch},
]
\protect

I’d also like to have footnotes in tighter spacing.

Any ideas?


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] horizontal spacing under special circumstances

2015-12-07 Thread Henning Hraban Ramm
Am 2015-12-08 um 02:15 schrieb Rik Kabel :

>>> When typesetting bibliography manually, I typically use \frenchspacing.
>> You may, but that is increasing spacing (at least around punctuation).
>> But my publisher would like tighter-than-normal spacing.
> Is a condensed font that complements your text face available? That, and 
> reducing the font size should be the first things to look at.
> If neither will work for you, there is a sledge-hammer you can wield: 
> \kerncharacters. Depending on the font and your sensibilities, you might get 
> away with \kerncharacters[-0.07], but even at -0.03 some look bad. You will 
> lose ligatures.

Thank you for the suggestion, but I am not looking for typographical solutions, 
being a typographer myself.

I asked explicitely for TeXnical advice to achieve tighter spacing - maybe I 
should have made clear that I don’t mean character kerning but only the 
handling of "space" glyphs.

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] horizontal spacing under special circumstances

2015-12-07 Thread Rik Kabel

On 2015-12-07 13:06, Henning Hraban Ramm wrote:

Am 2015-12-07 um 21:39 schrieb Aditya Mahajan :


When typesetting bibliography manually, I typically use \frenchspacing.

You may, but that is increasing spacing (at least around punctuation).
But my publisher would like tighter-than-normal spacing.


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
___
Is a condensed font that complements your text face available? That, and 
reducing the font size should be the first things to look at.
If neither will work for you, there is a sledge-hammer you can wield: 
\kerncharacters. Depending on the font and your sensibilities, you might 
get away with \kerncharacters[-0.07], but even at -0.03 some look bad. 
You will lose ligatures.


--
Rik
___
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] horizontal spacing under special circumstances

2015-12-07 Thread Henning Hraban Ramm

Am 2015-12-07 um 21:39 schrieb Aditya Mahajan :

> When typesetting bibliography manually, I typically use \frenchspacing.

You may, but that is increasing spacing (at least around punctuation).
But my publisher would like tighter-than-normal spacing.


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
___

[NTG-context] horizontal spacing

2015-05-16 Thread henman
In the below example, used with the latest standalone ConTeXt version, I 
can only get
\hskip to work when the parameter is 1 dimension unit.  e.g. 1em or 1cm 
for example.


How can I get a larger horizontal space say 3em , rather that having to 
write

 \hskip 1em  \hskip 1em  \hskip  1em  three  times?

- minimal example follows:

\starttext

\framed[ width=8cm, height=4cm,
 align={flushleft}]
  {Here is the minimum example:  \crlf

   \hskip 1em  1em space before this line? \crlf
   \hskip 2em  2em space before this line? \crlf
   \hskip 3em  3em space before this line? \crlf

   \hskip+1em  1em space before this line? \crlf
   \hskip+2em  2em space before this line? \crlf
   \hskip+3em  3em space before this line? \crlf

   \hskip+1cm  1cm space before this line? \crlf
   \hskip+2cm  2cm space before this line? \crlf
   \hskip+3cm  3cm space before this line? \crlf


\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] horizontal spacing

2015-05-16 Thread Wolfgang Schuster

 Am 16.05.2015 um 11:09 schrieb henman dhen...@gmail.com:
 
 In the below example, used with the latest standalone ConTeXt version, I can 
 only get
 \hskip to work when the parameter is 1 dimension unit.  e.g. 1em or 1cm for 
 example.
 
 How can I get a larger horizontal space say 3em , rather that having to write
 \hskip 1em  \hskip 1em  \hskip  1em  three  times?


Your problem is the use of \crlf to force line breaks because the commands 
prevents
the indentation of the following line. The reason why the first line of each 
block is
intended is the empty line before it which ends the previous paragraph.

To ensure your indentation setting is taken into account use \par (or a empty 
line)
or the \\ command which does the same when used in the argument of \framed.

\starttext

\startframed[align=flushleft]
 Line 1\crlf
\hskip 1em\relax Line 2\crlf
\hskip 2em\relax Line 3
\stopframed

\startframed[align=flushleft]
 Line 1\par
\hskip 1em\relax Line 2\par
\hskip 2em\relax Line 3
\stopframed

\startframed[align=flushleft]
 Line 1\\
\hskip 1em\relax Line 2\\
\hskip 2em\relax Line 3
\stopframed

\stoptext

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] horizontal spacing between only two rows

2012-06-18 Thread Helmut Schwertner

Hello,

in the following example it is possible to split a table vertical 
(between the first and the second column with (\startxcell[distance=5pt] 
test \stopxcell).



\starttext
\startxtable[option={stretch,width}]
\startxrow
\startxcell[distance=5pt] test \stopxcell
\startxcelltest \stopxcell
\startxcelltest \stopxcell
\stopxrow
\startxrow
\startxcelltest \stopxcell
\startxcelltest \stopxcell
\startxcelltest \stopxcell
\stopxrow
\startxrow
\startxcelltest \stopxcell
\startxcelltest \stopxcell
\startxcelltest \stopxcell
\stopxrow
\stopxtable
\stoptext

But how can I get horizontal spacing between only two rows, and not 
for the whole table?



Thank you,

Helmut

--



Helmut Schwertner

28201 Bremen

eMail: helmut.schwertner(at)gmx.de
___
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
___