Re: [NTG-context] \right| spacing issue

2016-05-09 Thread Hans Hagen

On 5/9/2016 7:47 PM, Weber, Matthias wrote:

Dear All,

the right hand side moves the Y into the |.
This used to look ok in older versions of mkiv & mkii.

\starttext
\startformula
 |X\times Y|= \left| X\times Y\right|
\stopformula
\stoptext


This is a side effect of extreme italics in latin modern. These are 
modelled after traditional tex fonts and in traditional tex mode italics 
are always added and sometimes compensated when not needed, while in 
opentype math those corrections are only added in character sequences 
(sort of) and not in constructs (which left/right are).


Fixing thei s lm wil make other fonts behave bad so we have a chicken 
egg problem there. Best is to patch lm fonts to behave more like other 
fonts (i might provide that as pseudo feature).


\starttext

\showglyphs

\startbuffer
\startformula
|X\times Y| = \left| X\times Y \right| = \left( X\times Y \right) = 
\left( {X\over Y} \right)

\stopformula
\startformula
|x\times y| = \left| x\times y \right| = \left( x\times y \right) = 
\left( {x\over y} \right)

\stopformula
\stopbuffer

   \getbuffer
\switchtobodyfont[cambria] \getbuffer
\switchtobodyfont[pagella] \getbuffer

\stoptext

the lm italic correction for Y is some 40% vs 5% for cambria.

(one can argue that for normal size fences italic correction can be 
added but for that we need proof from the specification (ok, we can make 
that an option in the engine if really needed)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with # in url

2016-05-09 Thread Pablo Rodriguez
On 05/09/2016 10:09 AM, Hans Hagen wrote:
> On 5/8/2016 10:27 PM, Pablo Rodriguez wrote:
>> [...]
>> Latest beta from 2016.05.08 17:30 doesn’t generate a clickable link with
>> the first two paragraphs. It seems to be caused by the presence of # in
>> the url.
>> [...]
> 
> It has to do with more robust ways to let special character travel 
> through the machinery

Many thanks for the code to fix the issue, Hans.


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
___

[NTG-context] \right| spacing issue

2016-05-09 Thread Weber, Matthias
Dear All,

the right hand side moves the Y into the |.
This used to look ok in older versions of mkiv & mkii.

\starttext
\startformula
 |X\times Y|= \left| X\times Y\right|
\stopformula
\stoptext


Matthias
___
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] headline and no indent

2016-05-09 Thread Andrea Valle
Thanks Wolfgang (and Marco), that was the trick!

Best

-a-

--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

> On 09 May 2016, at 17:44, Wolfgang Schuster  
> wrote:
> 
>> Andrea Valle   9. Mai 2016 um 17:19
>> Dear all,
>> 
>> I’m finishing a book in ConTeXt. The publisher is pretty happy with the 
>> results.
>> But he asks me:
>> 
>> When opting for paragraph indents, paragraphs following directly after a 
>> headline  should no show the indent.
>> 
>> I guess that the first line of chapter/section/subsection should have no 
>> indent.
>> Hmm, how to get this?
>> 
>> 
>> For  chapter/section/subsection
>> I have e.g.
>> 
>> \setuphead[chapter]
>> [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, 
>> foregroundcolor=black, background=color, backgroundcolor=bgGrey1, 
>> framecolor=bgGrey2,offset=0.25cm,
>> rulethickness=0.05cm, frame=off, topframe=on,  
>> bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}]
>> 
>> Is there an available option to be set?
> You have to add \noindentation after \stopframedtext.
> 
> \setuphead
>   [chapter]
>   [before={\startframedtext},
>after={\stopframedtext\noindentation}]
> 
> \setupindenting[yes,medium]
> 
> \starttext
> 
> \chapter{Knuth}
> 
> \input knuth
> 
> \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
> ___

___
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] headline and no indent

2016-05-09 Thread Wolfgang Schuster

Andrea Valle 
9. Mai 2016 um 17:19
Dear all,

I’m finishing a book in ConTeXt. The publisher is pretty happy with 
the results.

But he asks me:

When opting for paragraph indents, paragraphs following directly after 
a headline  should no show the indent.


I guess that the first line of chapter/section/subsection should have 
no indent.

Hmm, how to get this?


For  chapter/section/subsection
I have e.g.

\setuphead[chapter]
[style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, 
foregroundcolor=black, background=color, backgroundcolor=bgGrey1, 
framecolor=bgGrey2,offset=0.25cm,
rulethickness=0.05cm, frame=off, topframe=on, 
 bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}]


Is there an available option to be set?

You have to add \noindentation after \stopframedtext.

\setuphead
  [chapter]
  [before={\startframedtext},
   after={\stopframedtext\noindentation}]

\setupindenting[yes,medium]

\starttext

\chapter{Knuth}

\input knuth

\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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Mohammad Hossein Bateni
I once converted part of the xepersian package dealing with Kashida to
ConTeXt (on LuaTeX).  Being a newcomer, the result wasn't that great,
though it did work for many situations.  In a couple of weeks, I will have
time to clean it up a bit and share with anyone who's interested.

—MHB

On Mon, May 9, 2016 at 11:15 AM, Alan BRASLAU  wrote:

> On Mon, 9 May 2016 10:51:23 +0200
> Hans Hagen  wrote:
>
> > > Wasn't in obvious that I was joking?
> > > (Even though deep down I feared someone would reply with "here it
> > > is".)
> >
> > well, its more like challenging us (in fact i remember messing a bit
> > with this fill-to-end-of-line-with-rules stuff that you see in ugly
> > official documents but then decided that lawyers should use
> > justification instead)
>
> It would be a better exercise to compose one's text in verse using
> words that fill all lines nicely eliminating entirely the need for
> justification. Maybe this should be an exercise for the upcoming
> Context meeting?
>
> My entry will consist entirely of four-letter words...
>
> 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
>
> ___
>
___
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] headline and no indent

2016-05-09 Thread Marco Patzer
On Mon, 9 May 2016 17:19:15 +0200
Andrea Valle  wrote:

> When opting for paragraph indents, paragraphs following directly
> after a headline  should no show the indent.
> 
> I guess that the first line of chapter/section/subsection should have
> no indent. Hmm, how to get this?

That's actually the default behaviour when you enable indenting.
Example:

\setupindenting [yes, 1em]
\starttext
  \startsectionlevel [title=Foo]
\input knuth
\startsectionlevel[title=Bar]
  \input knuth
\stopsectionlevel
  \stopsectionlevel
\stoptext

If you receive different results in your text, please create an MWE.

> \setuphead[chapter]
> [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local,
> foregroundcolor=black, background=color, backgroundcolor=bgGrey1,
> framecolor=bgGrey2,offset=0.25cm, rulethickness=0.05cm, frame=off,
> topframe=on,
> bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}]

That's all not relevant to indenting. It's best to create a small
*working* example with only the necessary options.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] headline and no indent

2016-05-09 Thread Andrea Valle
Dear all,

I’m finishing a book in ConTeXt. The publisher is pretty happy with the results.
But he asks me:

When opting for paragraph indents, paragraphs following directly after a 
headline  should no show the indent.

I guess that the first line of chapter/section/subsection should have no indent.
Hmm, how to get this?


For  chapter/section/subsection
I have e.g.

\setuphead[chapter]
[style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, 
foregroundcolor=black, background=color, backgroundcolor=bgGrey1, 
framecolor=bgGrey2,offset=0.25cm,
rulethickness=0.05cm, frame=off, topframe=on,  
bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}]


Is there an available option to be set?

Many thanks

-a-


--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)



--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Alan BRASLAU
On Mon, 9 May 2016 10:51:23 +0200
Hans Hagen  wrote:

> > Wasn't in obvious that I was joking?
> > (Even though deep down I feared someone would reply with "here it
> > is".)  
> 
> well, its more like challenging us (in fact i remember messing a bit 
> with this fill-to-end-of-line-with-rules stuff that you see in ugly 
> official documents but then decided that lawyers should use 
> justification instead)

It would be a better exercise to compose one's text in verse using
words that fill all lines nicely eliminating entirely the need for
justification. Maybe this should be an exercise for the upcoming
Context meeting?

My entry will consist entirely of four-letter words...

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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Hans Åberg

> On 9 May 2016, at 12:15, Arthur Reutenauer  
> wrote:
> 
>> PS: I guess that ConTeXt still lacks support for fillers and
>> 
>> \startalign[snakes]
>> ...
>> \stopalign
> 
>  The snakes idea is actually pretty close to the practice of Kashida in
> Arabic typography (https://en.wikipedia.org/wiki/Kashida),

It has been discussed on the Unicode list, also mentioning traditional Tibetan 
justification than kashida.

http://unicode.org/pipermail/unicode/2016-May/003576.html


___
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] Setting up TeXworks

2016-05-09 Thread Thomas Fehige
To prevent misunderstandings: This is /not/ the solution, the problem 
remains that the newly installed standalone mtxrun doesn't find certain 
configuration files and complains about an outdated something or other, 
/when started from within TeXworks/, while everything works fine from 
the command line.


Am 07.05.2016 um 12:49 schrieb Thomas Fehige:

Am 06.05.2016 um 10:04 schrieb Mojca Miklavec:
Can you check the paths in the fourth tab (= Typesetting) of 
Preferences/Settings? It is possible that you have more than one 
version of ConTeXt installed and that you see different paths in the 
Terminal than in the GUI. Mojca


Yes I have two versions of ConTeXt. I have TeXlive from the Ubuntu 
repository and now the newer version as standalone. I added the paths 
to the new version at the top of that list in TeXwoks' preferences. 
And it does find and run the new version of mtxrun.


Cheers -- Thomas
___ 

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
___


___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Mojca Miklavec
On 9 May 2016 at 12:35, Ulrike Fischer wrote:
> Am Mon, 9 May 2016 09:41:39 +0200 schrieb Mojca Miklavec:
>
>> http://xkcd.com/1676/
>
> http://tex.stackexchange.com/questions/307795/how-to-create-nonbreaking-arbitrary-length-snakes-for-full-width-justification

Oh great, no need to fiddle with fonts. The snake fragments are
already available as vector images:
https://gist.github.com/wrtlprnft/4cc8fe07f114449f0d8748fe60af39e9

Mojca
___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Ulrike Fischer
Am Mon, 9 May 2016 09:41:39 +0200 schrieb Mojca Miklavec:

> http://xkcd.com/1676/

http://tex.stackexchange.com/questions/307795/how-to-create-nonbreaking-arbitrary-length-snakes-for-full-width-justification


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.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
___

Re: [NTG-context] [OT] Full-width justification (xkcd)

2016-05-09 Thread Arthur Reutenauer
> PS: I guess that ConTeXt still lacks support for fillers and
> 
> \startalign[snakes]
> ...
> \stopalign

  The snakes idea is actually pretty close to the practice of Kashida in
Arabic typography (https://en.wikipedia.org/wiki/Kashida), doesn’t
ConTeXt already support that somehow?

Best,

Arthur
___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Hans Hagen

On 5/9/2016 11:12 AM, Taco Hoekwater wrote:

Hi,


Mojca:
Wasn't in obvious that I was joking?
(Even though deep down I feared someone would reply with "here it is”.)


I actually thought about doing just that ;) But it will take more work
than is justified for simply an email reply. And it is a nice teaching
opportunity, so we plan to get back on this topic during the upcoming
ConTeXt meeting in Kalenberg.



Luigi:
metapost ,head-body-tail or tail-body-head for the filler, lenght of the snake
node programming...not bad.
I could be useful when one has numbers, and wants to be sure that nobody 
prepend or append something.


Actually I had a use case for this some years back when I was attempting
to reproduce old-fashioned woodblock print. But that predated most luatex
development, and I ended up faking the whole thing using \hboxes.


there's actually already quite some in place to deal with such issues 
but the question often is what criteria to use and what interfacing and 
for criteria you need to know a bit about what a line is internally in 
terms of spacing ... i'm pretty sure that Taco will cover that aspect 
but you have to wait till Kalenberg to learn the details


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] Handling Optical Sizes for Minion Pro in Context (LuaTeX)

2016-05-09 Thread Antoine Cailliau
I found how to make it work with \switchtobodyfont, I was
missing \definebodyfontenvironment for the sizes. And I had (obviously) to
update the \definebodyfont with the correct sizes.

But still, \tfxx and so do not switch to correct font.

Thanks,

Antoine

On 9 May 2016 at 11:23, Antoine Cailliau  wrote:

> Hi,
>
> I'm continuing my quest for supporting Minion Pro font in my document.
>
> I defined the different sizes, as shown on contextgarden. But apparently,
> it does not (fully) work.
>
> The problems are :
> - When using \tfxx, \tfx, ... Regular font is always used, there is no
> switch to appropriate font.
> - When using \switchtobodyfont, switches are correct up to 12pt. After
> that, it fallback on xits-mathbold
>
> Any help is welcome :-)
>
> The compiled file :
> https://drive.google.com/file/d/0Bwo7pPA5_WkDdlNLbHdkMjg2dkU/view?usp=sharing
>
> The source:
>
> \definefontalternative[me]
> ...
>
> \starttypescript [serif] [optical] [size]
>
>   % design size 8 pt, size range (6 pt, 8.4 pt]
>   \definebodyfont [4pt,5pt,6pt,7pt,8pt] [rm]
> [tf=SerifCaption sa 1,
>  it=SerifCaptionItalic   sa 1,
>  me=SerifCaptionMedium   sa 1,
>  mi=SerifCaptionMediumItalic sa 1,
>  se=SerifCaptionSemiBold sa 1,
>  si=SerifCaptionSemiBoldItalic   sa 1,
>  bf=SerifCaptionBold sa 1,
>  bi=SerifCaptionBoldItalic   sa 1]
>
>   % design size 11 pt, size range (8.4 pt, 13 pt]
>   \definebodyfont [9pt,10pt,11pt,12pt] [rm]
> [tf=SerifRegular sa 1,
>  it=SerifRegularItalic   sa 1,
>  me=SerifRegularMedium   sa 1,
>  mi=SerifRegularMediumItalic sa 1,
>  se=SerifRegularSemiBold sa 1,
>  si=SerifRegularSemiBoldItalic   sa 1,
>  bf=SerifRegularBold sa 1,
>  bi=SerifRegularBoldItalic   sa 1]
>
>   % design size 19 pt, size range (13 pt, 19.9 pt]
>   \definebodyfont [14.4pt,17.3pt] [rm]
> [tf=SerifSubhead sa 1,
>  it=SerifSubheadItalic   sa 1,
>  me=SerifSubheadMedium   sa 1,
>  mi=SerifSubheadMediumItalic sa 1,
>  se=SerifSubheadSemiBold sa 1,
>  si=SerifSubheadSemiBoldItalic   sa 1,
>  bf=SerifSubheadBold sa 1,
>  bi=SerifSubheadBoldItalic   sa 1]
>
>   % design size 72 pt, size range (19.9 pt, 72 pt]
>   \definebodyfont [20.7pt] [rm]
> [tf=SerifDisplay sa 1,
>  it=SerifDisplayItalic   sa 1,
>  me=SerifDisplayMedium   sa 1,
>  mi=SerifDisplayMediumItalic sa 1,
>  se=SerifDisplaySemiBold sa 1,
>  si=SerifDisplaySemiBoldItalic   sa 1,
>  bf=SerifDisplayBold sa 1,
>  bi=SerifDisplayBoldItalic   sa 1]
>
> \stoptypescript
>
> \starttypescript [serif] [minionpro]
> \definefontsynonym [SerifRegular]
>  [file:MinionPro-Regular.otf]  [features=default]
> ...
> \stoptypescript
>
> \definetypeface [source] [rm] [serif] [minionpro] [optical]
> \definetypeface [source] [mm] [math]  [xits]  [default]
>
> \setupbodyfont[source, 11pt]
>
> \starttext
>
> ...
>
> \page
>
> {\tfxx \purefontname\font: \input ward \blank}
> {\tfx \purefontname\font: \input ward \blank}
> {\tf \purefontname\font: \input ward \blank}
> {\tfa \purefontname\font: \input ward \blank}
> {\tfb \purefontname\font: \input ward \blank}
> {\tfc \purefontname\font: \input ward \blank}
> {\tfd \purefontname\font: \input ward \blank}
>
> \page
>
> \dostepwiserecurse {6} {22} {1}
>   {\switchtobodyfont[#1pt]
>\purefontname\font: \input ward
>\blank}
>
> \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] [OT] Full-width justification (xkcd)

2016-05-09 Thread luigi scarso
On Mon, May 9, 2016 at 11:12 AM, Taco Hoekwater  wrote:

> Hi,
>
> > Mojca:
> > Wasn't in obvious that I was joking?
> > (Even though deep down I feared someone would reply with "here it is”.)
>
> I actually thought about doing just that ;) But it will take more work
> than is justified for simply an email reply. And it is a nice teaching
> opportunity, so we plan to get back on this topic during the upcoming
> ConTeXt meeting in Kalenberg.
>
>
uh uh time to fill the   Registration Form...

-- 
luigi
___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread luigi scarso
On Mon, May 9, 2016 at 11:23 AM, Mikael P. Sundqvist 
wrote:

> On Mon, May 9, 2016 at 9:41 AM, Mojca Miklavec
>  wrote:
> > http://xkcd.com/1676/
> >
> > Mojca
> >
> >
> > PS: I guess that ConTeXt still lacks support for fillers and
> >
> > \startalign[snakes]
> > ...
> > \stopalign
> >
> ___
> > 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
> >
> ___
>
> In the true ConTeXt spirit, it should perhaps be
>
> \startalign[cows]
> ...
> \stopalign
>
> instead?
>
>
the ideal is a pattern like narrow x, they fill better the space


-- 
luigi
___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Mikael P. Sundqvist
On Mon, May 9, 2016 at 9:41 AM, Mojca Miklavec
 wrote:
> http://xkcd.com/1676/
>
> Mojca
>
>
> PS: I guess that ConTeXt still lacks support for fillers and
>
> \startalign[snakes]
> ...
> \stopalign
> ___
> 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
> ___

In the true ConTeXt spirit, it should perhaps be

\startalign[cows]
...
\stopalign

instead?
___
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] Handling Optical Sizes for Minion Pro in Context (LuaTeX)

2016-05-09 Thread Antoine Cailliau
Hi,

I'm continuing my quest for supporting Minion Pro font in my document.

I defined the different sizes, as shown on contextgarden. But apparently,
it does not (fully) work.

The problems are :
- When using \tfxx, \tfx, ... Regular font is always used, there is no
switch to appropriate font.
- When using \switchtobodyfont, switches are correct up to 12pt. After
that, it fallback on xits-mathbold

Any help is welcome :-)

The compiled file :
https://drive.google.com/file/d/0Bwo7pPA5_WkDdlNLbHdkMjg2dkU/view?usp=sharing

The source:

\definefontalternative[me]
...

\starttypescript [serif] [optical] [size]

  % design size 8 pt, size range (6 pt, 8.4 pt]
  \definebodyfont [4pt,5pt,6pt,7pt,8pt] [rm]
[tf=SerifCaption sa 1,
 it=SerifCaptionItalic   sa 1,
 me=SerifCaptionMedium   sa 1,
 mi=SerifCaptionMediumItalic sa 1,
 se=SerifCaptionSemiBold sa 1,
 si=SerifCaptionSemiBoldItalic   sa 1,
 bf=SerifCaptionBold sa 1,
 bi=SerifCaptionBoldItalic   sa 1]

  % design size 11 pt, size range (8.4 pt, 13 pt]
  \definebodyfont [9pt,10pt,11pt,12pt] [rm]
[tf=SerifRegular sa 1,
 it=SerifRegularItalic   sa 1,
 me=SerifRegularMedium   sa 1,
 mi=SerifRegularMediumItalic sa 1,
 se=SerifRegularSemiBold sa 1,
 si=SerifRegularSemiBoldItalic   sa 1,
 bf=SerifRegularBold sa 1,
 bi=SerifRegularBoldItalic   sa 1]

  % design size 19 pt, size range (13 pt, 19.9 pt]
  \definebodyfont [14.4pt,17.3pt] [rm]
[tf=SerifSubhead sa 1,
 it=SerifSubheadItalic   sa 1,
 me=SerifSubheadMedium   sa 1,
 mi=SerifSubheadMediumItalic sa 1,
 se=SerifSubheadSemiBold sa 1,
 si=SerifSubheadSemiBoldItalic   sa 1,
 bf=SerifSubheadBold sa 1,
 bi=SerifSubheadBoldItalic   sa 1]

  % design size 72 pt, size range (19.9 pt, 72 pt]
  \definebodyfont [20.7pt] [rm]
[tf=SerifDisplay sa 1,
 it=SerifDisplayItalic   sa 1,
 me=SerifDisplayMedium   sa 1,
 mi=SerifDisplayMediumItalic sa 1,
 se=SerifDisplaySemiBold sa 1,
 si=SerifDisplaySemiBoldItalic   sa 1,
 bf=SerifDisplayBold sa 1,
 bi=SerifDisplayBoldItalic   sa 1]

\stoptypescript

\starttypescript [serif] [minionpro]
\definefontsynonym [SerifRegular]
 [file:MinionPro-Regular.otf]  [features=default]
...
\stoptypescript

\definetypeface [source] [rm] [serif] [minionpro] [optical]
\definetypeface [source] [mm] [math]  [xits]  [default]

\setupbodyfont[source, 11pt]

\starttext

...

\page

{\tfxx \purefontname\font: \input ward \blank}
{\tfx \purefontname\font: \input ward \blank}
{\tf \purefontname\font: \input ward \blank}
{\tfa \purefontname\font: \input ward \blank}
{\tfb \purefontname\font: \input ward \blank}
{\tfc \purefontname\font: \input ward \blank}
{\tfd \purefontname\font: \input ward \blank}

\page

\dostepwiserecurse {6} {22} {1}
  {\switchtobodyfont[#1pt]
   \purefontname\font: \input ward
   \blank}

\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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Taco Hoekwater
Hi,

> Mojca:
> Wasn't in obvious that I was joking?
> (Even though deep down I feared someone would reply with "here it is”.)

I actually thought about doing just that ;) But it will take more work
than is justified for simply an email reply. And it is a nice teaching
opportunity, so we plan to get back on this topic during the upcoming 
ConTeXt meeting in Kalenberg.


> Luigi:
> metapost ,head-body-tail or tail-body-head for the filler, lenght of the snake
> node programming...not bad.
> I could be useful when one has numbers, and wants to be sure that nobody 
> prepend or append something.

Actually I had a use case for this some years back when I was attempting 
to reproduce old-fashioned woodblock print. But that predated most luatex
development, and I ended up faking the whole thing using \hboxes.

Best wishes,
Taco



___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread luigi scarso
On Mon, May 9, 2016 at 10:42 AM, Mojca Miklavec <
mojca.miklavec.li...@gmail.com> wrote:

> On 9 May 2016 at 10:28, Hans Hagen wrote:
> > On 5/9/2016 9:41 AM, Mojca Miklavec wrote:
> >>
> >> http://xkcd.com/1676/
> >>
> >> Mojca
> >>
> >>
> >> PS: I guess that ConTeXt still lacks support for fillers and
> >>
> >> \startalign[snakes]
> >> ...
> >> \stopalign
> >
> >
> > not to hard to implement but also not that high my list to demo it
>
> Wasn't in obvious that I was joking?
> (Even though deep down I feared someone would reply with "here it is".)
>
metapost ,
head-body-tail or tail-body-head for the filler, lenght of the snake
node programming...not bad.
I could be useful when one has numbers, and wants to be sure that nobody
prepend or append something.



-- 
luigi
___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Hans Hagen

On 5/9/2016 10:42 AM, Mojca Miklavec wrote:

On 9 May 2016 at 10:28, Hans Hagen wrote:

On 5/9/2016 9:41 AM, Mojca Miklavec wrote:


http://xkcd.com/1676/

Mojca


PS: I guess that ConTeXt still lacks support for fillers and

\startalign[snakes]
...
\stopalign



not to hard to implement but also not that high my list to demo it


Wasn't in obvious that I was joking?
(Even though deep down I feared someone would reply with "here it is".)


well, its more like challenging us (in fact i remember messing a bit 
with this fill-to-end-of-line-with-rules stuff that you see in ugly 
official documents but then decided that lawyers should use 
justification instead)


-
  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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Mojca Miklavec
On 9 May 2016 at 10:28, Hans Hagen wrote:
> On 5/9/2016 9:41 AM, Mojca Miklavec wrote:
>>
>> http://xkcd.com/1676/
>>
>> Mojca
>>
>>
>> PS: I guess that ConTeXt still lacks support for fillers and
>>
>> \startalign[snakes]
>> ...
>> \stopalign
>
>
> not to hard to implement but also not that high my list to demo it

Wasn't in obvious that I was joking?
(Even though deep down I feared someone would reply with "here it is".)

Mojca
___
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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Hans Hagen

On 5/9/2016 9:41 AM, Mojca Miklavec wrote:

http://xkcd.com/1676/

Mojca


PS: I guess that ConTeXt still lacks support for fillers and

\startalign[snakes]
...
\stopalign


not to hard to implement but also not that high my list to demo it

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with # in url

2016-05-09 Thread Hans Hagen

On 5/8/2016 10:27 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

\startbuffer[demo]

 Link not working:
http://a.b/c#d;>http://a.b/c#d
 Link not working:
http://a.b/c;>http://a.b/c#d
 Working link:
http://a.b/c#d;>http://a.b/c

\stopbuffer

\starttext

\startxmlsetups xml:initialize
 \xmlsetsetup{#1}{p|doc|a}{xml:*}
 \xmlsetsetup{\xmldocument}{span[@label]}{xml:logo}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:doc
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
 \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:a
\mypersonalurl{\xmlflush{#1}}
\stopxmlsetups

\setupinteraction[state=start]

\def\mypersonalurl#1{\bgroup\tt\goto{%
\hyphenatedurl{#1}}[url(#1)]\egroup}%
\unexpanded\def\href#1#2{\goto{#2} [url(#1)]}

\xmlprocessbuffer{main}{demo}{}

\stoptext

Latest beta from 2016.05.08 17:30 doesn’t generate a clickable link with
the first two paragraphs. It seems to be caused by the presence of # in
the url.

The latest beta I have that generates three clickable links is
2016.01.14 09:55 (using LuaTeX-0.87.0).

From beta 2016.02.01 13:26 (and LuaTeX-0.88.0) the first two links
aren’t interactive. And this beta included a wrong rendering from # as
"\Ux {23}".

The wrong # conversion was corrected in beta from 2016.02.15 10:26 (and
LuaTeX-0.89.0), but links weren’t made interactive.

I hope the description helps. Could anyone confirm the issue?


It has to do with more robust ways to let special character travel 
through the machinery




\startbuffer[demo]

 Case 1: http://a.b/c#d;>http://a.b/c#d
 Case 2: http://a.b/c;  >http://a.b/c#d
 Case 3: http://a.b/c#d;>http://a.b/c  

\stopbuffer

\nopdfcompression

\startxmlsetups xml:initialize
 \xmlsetsetup{#1}{*}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:d
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
 \xmlflush{#1}
 \blank
\stopxmlsetups

\startxmlsetups xml:a
\mypersonalurl
  {\xmlatt{#1}{href}}
  {\xmlflush{#1}}
  {\xmlraw{#1}{.}}
\stopxmlsetups

\starttexdefinition unexpanded mypersonalurl #1#2#3
\dontleavehmode
\begingroup
\tt
\starttabulate[]
\NC url \NC #1 \NC \goto{\hyphenatedurl{#2}}[url(#1)] \NC \NR
\NC txt \NC #2 \NC \goto{\hyphenatedurl{#2}}[url(#2)] \NC \NR
\NC raw \NC #3 \NC \goto{\hyphenatedurl{#3}}[url(#3)] \NC \NR
\stoptabulate
\endgroup
\stoptexdefinition

\setupinteraction[state=start]

\starttext

% \enabletrackers[structures.referencing.analyzing]

\xmlprocessbuffer{main}{demo}{}

\stoptext

-
  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] [OT] Full-width justification (xkcd)

2016-05-09 Thread Mojca Miklavec
http://xkcd.com/1676/

Mojca


PS: I guess that ConTeXt still lacks support for fillers and

\startalign[snakes]
...
\stopalign
___
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
___