Re: [NTG-context] tnum and aligncharacter=yes

2013-11-06 Thread Peter Münster
On Wed, Nov 06 2013, Hans Hagen wrote:

> One year ago we used a different method (less robust). The current mechanism
> assumes equal width digits but nevertheless forces [tnum=yes,lnum=no] so if
> you get weird widths it's a font issue and you nee to make sure that somehow
> you force it to use equal width digits.

Unfortunately I don't know how to do that... :(

Does it mean, that the only solution is to use an older ConTeXt version?
Or is there perhaps another work-around?

-- 
   Peter
___
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 size for mainfont or sansfont in stable simplefonts

2013-11-06 Thread Lars Huttar
On 11/6/2013 5:35 PM, Wolfgang Schuster wrote:
> Am 06.11.2013 um 23:27 schrieb Lars Huttar :
>
>> \setsansfont[Tex Gyre Heros][size=8pt]
>>
>> but it didn't seem to have any effect.
> \setsansfont[…][scale=0.95]
>
> Wolfgang
>

Thanks for the quick response!

Lars

___
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 size for mainfont or sansfont in stable simplefonts

2013-11-06 Thread Wolfgang Schuster

Am 06.11.2013 um 23:27 schrieb Lars Huttar :

> Hello,
> 
> I'm using the simplefonts module from TeX Live 2013. (I can't use the
> new simplefonts for this production project, due to stability requirements.)
> 
> I have the following, which works well for the most part:
> 
> \setupbodyfontenvironment[default][em=italic]
> 
> \usemodule[simplefonts][size=9.2pt]
> 
> \setmainfont[Gentium Book Basic]
> \setsansfont[Tex Gyre Heros]
> 
> 
> \starttext
> 
> Serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em bold
> italic} styles.
> 
> 
> \ss Sans--serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em
> bold italic} styles.
> 
> \stoptext
> 
> 
> 
> Because the Tex Gyre Heros font is larger than Gentium Book Basic at a
> given point size, when I compile this document, there is a size mismatch
> between the serif and the sans typefaces. So I looked for a way to give
> the sans font a smaller default size. I couldn't find an example of such
> at http://wiki.contextgarden.net/simplefonts. I tried this:
> 
> \setsansfont[Tex Gyre Heros][size=8pt]
> 
> but it didn't seem to have any effect.

\setsansfont[…][scale=0.95]

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] setting size for mainfont or sansfont in stable simplefonts

2013-11-06 Thread Lars Huttar
Hello,

I'm using the simplefonts module from TeX Live 2013. (I can't use the
new simplefonts for this production project, due to stability requirements.)

I have the following, which works well for the most part:

\setupbodyfontenvironment[default][em=italic]

\usemodule[simplefonts][size=9.2pt]

\setmainfont[Gentium Book Basic]
\setsansfont[Tex Gyre Heros]


\starttext

Serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em bold
italic} styles.


\ss Sans--serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em
bold italic} styles.

\stoptext



Because the Tex Gyre Heros font is larger than Gentium Book Basic at a
given point size, when I compile this document, there is a size mismatch
between the serif and the sans typefaces. So I looked for a way to give
the sans font a smaller default size. I couldn't find an example of such
at http://wiki.contextgarden.net/simplefonts. I tried this:

\setsansfont[Tex Gyre Heros][size=8pt]

but it didn't seem to have any effect.

Is there a way to do what I'm trying to do? I could use
\switchtobodyfont[8pt] every time I go to sans, but I don't think that's
the intention of simplefonts.

Thanks,
Lars

___
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] conditional argument and \doifemptyelse

2013-11-06 Thread Wolfgang Schuster

Am 06.11.2013 um 20:26 schrieb Pablo Rodriguez :

> Dear list,
> 
> I’m trying to define a command that has a conditional argument:
> 
>\def\MyCommand#1#2#3{#1, #2, \doifemptyelse{#3}{#1}{#3}}
>\starttext
>\MyCommand{first}{second}
>\stoptext
> 
> The problem is that \doifemtpyelse only works if there the third
> argument is there as {}. And the third argument is actually an exception
> to workaround an unwanted behavior of the command in very few
> exceptional cases.
> 
> Is there no way to make \MyCommand above work with \doifemptyelse even
> if its third argument is not defined?

\def\MyCommand
  {\dotriplegroupempty\doMyCommand}
  
\def\doMyCommand#1#2#3%
  {#1, #2, \ifthirdargument #3\else #1\fi}

\starttext

\MyCommand{first}{second}{third}

\MyCommand{first}{second}

\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] conditional argument and \doifemptyelse

2013-11-06 Thread Pablo Rodriguez
Dear list,

I’m trying to define a command that has a conditional argument:

\def\MyCommand#1#2#3{#1, #2, \doifemptyelse{#3}{#1}{#3}}
\starttext
\MyCommand{first}{second}
\stoptext

The problem is that \doifemtpyelse only works if there the third
argument is there as {}. And the third argument is actually an exception
to workaround an unwanted behavior of the command in very few
exceptional cases.

Is there no way to make \MyCommand above work with \doifemptyelse even
if its third argument is not defined?

Many thanks for your help,


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] installing a true-type font: can't find ttf2afm

2013-11-06 Thread Hans Hagen

On 11/5/2013 7:55 PM, Lars Huttar wrote:

On 11/4/2013 4:56 PM, Mojca Miklavec wrote:

On Mon, Nov 4, 2013 at 10:46 PM, Lars Huttar wrote:

On 11/4/2013 3:34 PM, Mojca Miklavec wrote:

- you can find Gentium at http://www.ctan.org/pkg/gentium-tug (also in
TeX Live and in the ConTeXt distribution)

Thank you ... that was key information I didn't have.
I was instead downloading the TTF files from sil.org.

That TTF should work as well. The only difference is that you might
need slightly different commands to set it up (there were recent
changes/improvements in that, other users should tell you how exactly
that can be done).


I will look for that, because it turns out that I still need to use a
TTF font. Gentium Plus does not include bold and bold-italic weights,
and Gentium Basic doesn't include all the characters ranges I need. We
have a customized version of Gentium Basic with bold weight, with an
extra character added, and it's a TTF. We had it working with mkii but
not yet with mkiv.


in that case yoiu can put the fonts somewhere and write a typescript .. 
see type-imp-mscore.mkiv for exmaples ... that way you have complete 
control over what gets loaded


Hans

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

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


Re: [NTG-context] Preventing caption stoppers from appearing in references

2013-11-06 Thread Hans Hagen

On 11/5/2013 11:01 PM, Géry Ogam wrote:

What do you think about that Hans?


not that much yet ... maybe later this month (as that kind of tuning 
influences a lot of other mechanisms)


Hans


Géry Ogam


2013/11/1 Géry Ogam mailto:maggy...@gmail.com>>

Hello Hans,

I would like to prevent caption stoppers from appearing in
references in ConTeXt.

Here is a minimal example:

\starttext
\setupcaptions[numberstopper=.~---~, distance=0em]
\placefigure[][cow]{A Cow}{\externalfigure[cow]}
\in{Figure}[cow] shows a cow.
\stoptext

Aditya suggested that I use suffix instead of numberstopper, which
works very well, but Wolgang said:

‘I’m sorry to disappoint you but there is no official solution to
achieve this.

There are ways to change the stopper for section numbers in the
heading and
the text but not for the other counters (floats, descriptions etc.).

The solution you got from Aditya at stackexchange works but it’s
more a hack
because suffixes are used when you use a splitted float (e.g. a
table which spans
multiple pages) where you get 1.a., 1.b etc. (the a and b are
suffixes) as numbers.’

So since numberstoppers — of any kinds (for floats, sections,
descriptions) — are supposed to separate numbers from titles, it
would be logical that they don’t appear in references because
references don’ have titles, only numbers, so no separation sign
(numberstopper) is needed. Could you change that behaviour Hans, or
add a command for setting the layout of the numbers in references
(separators, counter conversion, etc.)? There is already such a
command for section numbers and you only have to add another one for
other counters.

Best regards.




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

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




--

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

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


Re: [NTG-context] Installing Context on Windows XP

2013-11-06 Thread Alan BRASLAU
Try an ssh tunnel. See Proxy settings in
http://wiki.contextgarden.net/ConTeXt_Standalone

Alan

On Wed, 6 Nov 2013 15:22:15 +0100
Nelson Goncalves  wrote:

> Hello,
> 
> I want to install Context on Windows XP, but the  rsync commands fails
> because the network ports are closed. And the admin of my company
> does not want to modify the settings.
> 
> Is there any other way to install Context on Windows other than the
> script for the command line ?
> 
> Thanks,
> 
>   Nelson
> 
> P.S - I already sacrified a member of my family and did the tours
> around the pentagram but the admin would not change his mind.

___
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] Installing Context on Windows XP

2013-11-06 Thread Nelson Goncalves

Hello,

I want to install Context on Windows XP, but the  rsync commands fails
because the network ports are closed. And the admin of my company
does not want to modify the settings.

Is there any other way to install Context on Windows other than the
script for the command line ?

Thanks,

 Nelson

P.S - I already sacrified a member of my family and did the tours around
the pentagram but the admin would not change his mind.
___
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] Aligning Part-Title in TOC

2013-11-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

a bit ugly but working somehow


\setuphead[part][number=no]

%\showboxes

\starttext
  \completecontent

  \part{\inframed[frame=off]{Part 2:}
\inframed
  [frame=off,width=fit,align=flushleft,location=high]
  {This is the title of the first part, it is very very long, but 
actually not a real title of a part in a book}%
  }
\stoptext


but I'm not able to move the page number to the bottom of the long section name.

Best regards,

Lukas


On Thu, 24 Oct 2013 07:41:32 +0200, H. Özoguz  wrote:


Hello together,

my question today is about aligning the part-title in the toc, see this
simple example:

\setuphead[part][number=no]
\starttext
\completecontent
\part{Part 1: This is the title of the first part, it is very very
long,  but actually not a real title of a part in a book}
\stoptext

Whatever I try, using \crlf, \\, \blank[...] or anything else, I did not
get the result of aligning I want. I want the title indented in the
second line, as is is in the first line (so both lines have a
left-offset to "Part 1"). For better understanding I attached a image
with the intended result. How to do get this?

Thanks alot.
Huseyin




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] tnum and aligncharacter=yes

2013-11-06 Thread Hans Hagen

On 11/5/2013 9:56 PM, Peter Münster wrote:

On Tue, Nov 05 2013, Hans Hagen wrote:


That was already solved a while ago, driven by:

% \enabletrackers[typesetters.characteralign.autofont]

which is enabled by default. It's about the most I can do about it.


Hi Hans,

I'm sure, that you can do much better, because there was no such problem
about one year ago. Please find here a test file, the font, and the
outputs for versions 2012.12.10 and 2013.11.05:

http://pmrb.free.fr/tmp/context-tnum/

TIA for any further help,


One year ago we used a different method (less robust). The current 
mechanism assumes equal width digits but nevertheless forces 
[tnum=yes,lnum=no] so if you get weird widths it's a font issue and you 
nee to make sure that somehow you force it to use equal width digits. 
(Some fonts do weird things with oldstyle for instance).


Hans


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

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


Re: [NTG-context] Sectioning from 0?

2013-11-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... It works perfectly, thanks!

Lukas

On Tue, 05 Nov 2013 23:31:25 +0100, Wolfgang Schuster 
 wrote:



Am 05.11.2013 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
:


Hello,

I noticed now that:


\starttext
 \startsection[ownnumber=0,title=A]
   bla
 \stopsection

 \startsection[title=B]
   bla
 \stopsection
\stoptext


gives:

"
0 A

bla

2 B <- 1 should be here instead of 2; automatically

bla
"

instead of:

"
0 A

bla

1 B

bla
"

So my original question remains:

How to start counting sections (locally) from 0, not from 1?


\defineexpandable[1]\PreviousNumber{\number\numexpr#1-1\relax}

\defineconversion[PreviousNumber][\PreviousNumber]

\setuphead[section][conversion=PreviousNumber]

\starttext

\startsection[title=A]
bla
\stopsection

\startsection[title=B]
bla
\stopsection

\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
___




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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
___