Re: [NTG-context] \replaceword in footnotes

2016-04-05 Thread Wolfgang Schuster

Thomas A. Schmitz 
6. April 2016 um 08:25
Hi all,

I use replacements to break unwanted ligatures in German text. This 
works in the text body, but not in footnotes. How can this be achieved 
in footnotes as well? Example attached!


Thanks

Thomas

\setreplacements [german]

\replaceword [german] [Auflage] [Au{fl}age]

\mainlanguage [de]

\setupbodyfont [termes, 12pt]

\starttext

flüssig Auflage\footnote{flüssig Auflage}

\stoptext

The feature is disabled in footnotes and you have to reenable it:

\startsetups[footnote]
\setreplacements [german]
\stopsetups

\setupnote[footnote][setups=footnote]

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] \replaceword in footnotes

2016-04-05 Thread Thomas A. Schmitz

Hi all,

I use replacements to break unwanted ligatures in German text. This 
works in the text body, but not in footnotes. How can this be achieved 
in footnotes as well? Example attached!


Thanks

Thomas

\setreplacements [german]

\replaceword [german] [Auflage] [Au{fl}age]

\mainlanguage [de]

\setupbodyfont [termes, 12pt]

\starttext

flüssig Auflage\footnote{flüssig Auflage}

\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] Microtypography in ConTeXt

2016-04-05 Thread Henning Hraban Ramm
Am 2016-04-06 um 03:51 schrieb Jan Tosovsky :

> 
> Note that character protrusion requires pdfTeX (version 0.14f or later), 
> LuaTeX, or
> XeTeX (at least version 0.9997). Font expansion works with pdfTeX (version 
> 1.20 for
> automatic expansion) or LuaTeX. The package will by default enable protrusion 
> and
> expansion if they can safely be assumed to work. Disabling ligatures requires 
> pdfTeX
> (≥ 1.30) or LuaTeX, 
> 
> 
> while the adjustment of interword spacing 
> and of kerning only works with pdfTeX (≥ 1.40). 
> 
> *
> 
> Letterspacing is available with pdfTeX (≥ 1.40) or LuaTeX (≥ 0.62).
> 

Looks like it’s not about interword spacing and kerning in itself, but their 
*adjustment*.

I didn’t look into that docs, but I’d assume, tracking refers to some logging 
or visualization of spacing.
AFAIR ConTeXt can do that very nicely (while I never used it and don’t know how 
to enable it).


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] Consistent random number generation

2016-04-05 Thread Alan BRASLAU
On Tue, 5 Apr 2016 17:43:53 -0400
Aditya Mahajan  wrote:

> Is it possible to generate consistent random numbers across multiple 
> operating systems.

Then they are not random!

Why not save your chosen "random" paths to files?

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] Square pens and dash pattern

2016-04-05 Thread Alan BRASLAU
On Tue, 5 Apr 2016 19:44:33 -0400
Aditya Mahajan  wrote:

> There appears to be a metapost bug with square pens and dash patterns:

I confirm that dashed anything with a pensquare does not dash.

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] Square pens and dash pattern

2016-04-05 Thread Aditya Mahajan

Hi,

There appears to be a metapost bug with square pens and dash patterns:

\starttext

\startMPcode
pickup pencircle scaled 1bp;
drawarrow origin -- (5cm, 4cm) dashed evenly;
pickup pensquare scaled 1bp;
drawarrow origin -- (5cm,-4cm) dashed evenly;
\stopMPcode

\stoptext

Note that the second arrow is not dashed at all! This is not due to the 
thick pen.


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] Microtypography in ConTeXt

2016-04-05 Thread Jan Tosovsky
On 2016-04-05 Hans Hagen wrote:
> On 4/5/2016 10:55 PM, Jan Tosovsky wrote:
> >
> > according to http://texdoc.net/texmf-
> > dist/doc/latex/microtype/microtype.pdf
> > pdfTeX offers fine tuning of:
> > (1) Character protrusion
> > (2) Font expansion
> > (3) Tracking
> > (4) Additional kerning
> > (5) Interword spacing
> >
> > AFAIK ConTeXt covers 1+2+(3?) ...
> > Are there any plans to cover the rest?
> 

My concern was based on this introduction (on title page), especially on that 
sentence marked with asterisks:


Note that character protrusion requires pdfTeX (version 0.14f or later), 
LuaTeX, or
XeTeX (at least version 0.9997). Font expansion works with pdfTeX (version 1.20 
for
automatic expansion) or LuaTeX. The package will by default enable protrusion 
and
expansion if they can safely be assumed to work. Disabling ligatures requires 
pdfTeX
(≥ 1.30) or LuaTeX, 


while the adjustment of interword spacing 
and of kerning only works with pdfTeX (≥ 1.40). 

*

Letterspacing is available with pdfTeX (≥ 1.40) or LuaTeX (≥ 0.62).



> 3 - i have no clue what tracking is

As explained in that document this seems to be a synonym for letter spacing, 
which is IMO supported.

> 4 - neither what additional kerning is (unless you mean (usually ugly)
> extra inter character kerning, which is supported)

Rereading the description in that document there is no advanced processing 
behind it, so most likely just that ugly kerning, already available in ConTeXt. 
Just curious why not mentioned as supported on the title page.

> 5 - it being a rather core tex feature, normal interword spacing is
> supported

This seems to be a standard glue with plus/minus value. Again, curious why not 
mentioned as supported on the title page.

Are you aware of any typographic feature which is available in pdfTeXt, but not 
in ConTeXt?

Thnaks, Jan

___
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] Consistent random number generation

2016-04-05 Thread Aditya Mahajan

Hi,

Is it possible to generate consistent random numbers across multiple 
operating systems. For example, consider the following file:


math.randomseed(1000)
print(math.random())
print(math.random())
print(math.random())

If I process this using texlua, the output on linux and MacOS is 
different. Is it possible to get consistent output?


Rationate: I use randomization to randomize certain paths in metapost. Not 
all randomly generated paths look okay, so I play around with the seed 
until I get a good path. But I have to repeat this process everytime I 
update my distribution and if I compile on different machines.


Thanks,
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] ConTeXt anew-but where?

2016-04-05 Thread Hans Hagen

On 4/5/2016 11:02 PM, kle...@sxmail.de wrote:

Dear NTG-ConTeXt list members,

[a] Excuse me that I will have to send this email in html format. The
very format of this email is not meant to offend anyone consciously
(even if perceived so). Paragraph beginnings [a] through [e] may lead
you the way, instead.
[b] A NEW(er) PROBLEM: After I have decided to re-instal ConTeXt because
my previous installation (dating from last quarter of 2014) was from
some time on un-updatable (maybe some remember a question posted to this
list by me in one of the months passed), a folder named "context" in
which one can lay down/ find a skript file (.sh) that is the pivot of
"any" update to come IS APPARENTLY ABSENT.
[c] WHY COULD THAT BE OF INTEREST? ...simply because I wondered
throughout this  second installation process whether there w ould be any
question which path that very folder should finally have DID SIMPLY NOT
SURFACE (the old "context" folder formerly in "/home/myUsername" was
discarded).
[d] QUESTION: Where,consequently, on a Kubuntu Linux operating system
(version LTS 14.04 on a 64bit architecture) was one to look for that
folder to be able to eventually perform an update via command line (=
bash console) as "http://wiki.contextgarden.net/ConTeXt_Standalone";
[Ref-1] describes what the user should do in advance to any update
attempt, and thus, following installation? I feel awkward when it comes
to that issue as I already asked for an update option earlier.
[e] Thank you very much for your precious time.


when you install context from the context garden in

/foo/bar/context

using the first-setup script, you can just run that script again in 
order to update your installation


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] Microtypography in ConTeXt

2016-04-05 Thread Hans Hagen

On 4/5/2016 10:55 PM, Jan Tosovsky wrote:

Dear All,

according to http://texdoc.net/texmf-dist/doc/latex/microtype/microtype.pdf
pdfTeX offers fine tuning of:
(1) Character protrusion
(2) Font expansion
(3) Tracking
(4) Additional kerning
(5) Interword spacing

AFAIK ConTeXt covers 1+2+(3?). In recent discussion Hans mentioned
experimental 'space kerning'. Is it anything related to above features (4)?
Are there any plans to cover the rest?


1 - protrusion is supported
2 - expansion is supported

both with variants and granularity

3 - i have no clue what tracking is
4 - neither what additional kerning is (unless you mean (usually ugly) 
extra inter character kerning, which is supported)
5 - it being a rather core tex feature, normal interword spacing is 
supported


the mentioned space kerning refers to kerning between characters and 
spaces defined in the font itself


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
___

[NTG-context] ConTeXt anew-but where?

2016-04-05 Thread klerer
Dear NTG-ConTeXt list members,[a] Excuse me that I will have to send this email 
in html format. The very format of this email is not meant to offend anyone 
consciously (even if perceived so). Paragraph beginnings [a] through [e] may 
lead you the way, instead.[b] A NEW(er) PROBLEM: After I have decided to 
re-instal ConTeXt because my previous installation (dating from last quarter of 
2014) was from some time on un-updatable (maybe some remember a question posted 
to this list by me in one of the months passed), a folder named "context" in 
which one can lay down/ find a skript file (.sh) that is the pivot of "any" 
update to come IS APPARENTLY ABSENT.[c] WHY COULD THAT BE OF INTEREST? 
...simply because I wondered throughout this  second installation process 
whether there would be any question which path that very folder should finally 
have DID SIMPLY NOT SURFACE (the old "context" folder formerly in 
"/home/myUsername" was discarded).[d] QUESTION: Where, consequently, on a 
Kubuntu Linux
operating system (version LTS 14.04 on a 64bit architecture) was one to look 
for that folder to be able to eventually perform an update via command line (= 
bash console) as "http://wiki.contextgarden.net/ConTeXt_Standalone"; [Ref-1] 
describes what the user should do in advance to any update attempt, and thus, 
following installation? I feel awkward when it comes to that issue as I already 
asked for an update option earlier.[e] Thank you very much for your precious 
time.Best regards,Markus Hofstetter

___
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] Microtypography in ConTeXt

2016-04-05 Thread Jan Tosovsky
Dear All,

according to http://texdoc.net/texmf-dist/doc/latex/microtype/microtype.pdf
pdfTeX offers fine tuning of:
(1) Character protrusion
(2) Font expansion
(3) Tracking
(4) Additional kerning
(5) Interword spacing

AFAIK ConTeXt covers 1+2+(3?). In recent discussion Hans mentioned
experimental 'space kerning'. Is it anything related to above features (4)?
Are there any plans to cover the rest?

Thanks, Jan



___
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] Fwd: BachoTeX 2016: deadline extensions

2016-04-05 Thread Mojca Miklavec
Dear ConTeXters & LuaTeXers,

There's no such great opportunity as the wonderful conference BachoTeX
in Poland to get your TeX projects done, getting hold of some
handcrafting skills (book binding, calligraphy, ...) and to brainstorm
your ideas with Hans, Luigi (and many others) while enjoying a cup of
coffee, sunbathing or swimming in a lake, or just relaxing around a
bonfire. Children and families welcome (even in the conference room).

Link: http://www.gust.org.pl/bachotex/2016-en

Be warned: the attendance is highly addictive :)

Mojca

-- Forwarded message --
From: Jerzy Ludwichowski

Dear prospect BachoTeX participants and authors,

the deadline for BachoTeX registrations has been extended to the 10th
of April 2016, which means that no "late penalty" will be levied.

We still do accept paper proposals -- please help to make the
conference a success!

To whet your appetite please note that among others these are but
a few speakers: Norbert Preining (specially from Japan!), Hans Hagen,
Willi Egger, Arthur Reutenauer, Ulrik Vieth, Bogus\law Jackowski or
Marek Ryćko (no offense intended to others, not mentioned here!)

Program details will be posted at the conference page(s) a.s.a.p.

Please hurry to register, so we can finalize planning.

See you there,

for the Organizing Committee
(-) Jerzy Ludwichowski
___
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
___