Re: [NTG-context] How to test the emptyness of a variable?

2013-11-05 Thread Hans Hagen
On 11/5/2013 12:42 AM, Géry Ogam wrote: Hello, How to test if the current structure label is empty? The following example does not work because I don’t know how to expand the variable \currentstructurelabel.. E.g.: \define \MyCommand{\doifempty{\currentstructurelabel}{Do something}} you

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

2013-11-05 Thread Hans Hagen
On 11/4/2013 11:14 PM, Peter Münster wrote: Any news about this issue? Can it be solved? Should I add it to the tracker? 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.

Re: [NTG-context] Sectioning from 0?

2013-11-05 Thread 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

[NTG-context] Counter resetting

2013-11-05 Thread Géry Ogam
You can use “way=byhead” to reset the counter with each section. Wolfgang It does not work (with ConTeXt ver: 2012.05.30): \defineenumeration[cool][text=Cool, way=byhead] \starttext \section{Cat} \subsection{Cat} \cool{} \cool{} \subsection{Cat} \cool{} \cool{} \section{Cat} \cool{}

[NTG-context] How to test the emptyness of a variable?

2013-11-05 Thread Géry Ogam
you can try \doifnothing\currentstructurelabel{Do something} It does not work in my case (even if the currenstructurelabel is empty it acts as if it not empty). In fact I asked that to get the following behaviour: — When there is a chapter label (\setuplabeltext[chapter=CHAPTER~]) I want

[NTG-context] rpcode values in pure?

2013-11-05 Thread john Culleton
In pdftex we have \rpcode and \lpcode. In context these values are already defined somewhere. What module/file contains the Context values for character protrusion? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create

Re: [NTG-context] rpcode values in pure?

2013-11-05 Thread Hans Hagen
On 11/5/2013 3:06 PM, john Culleton wrote: In pdftex we have \rpcode and \lpcode. In context these values are already defined somewhere. What module/file contains the Context values for character protrusion? font-ext.lua so one can define additional vectors but equally well adapt scaling

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
On 11/4/2013 5:32 PM, Wolfgang Schuster wrote: Am 04.11.2013 um 22:56 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com: 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,

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Mojca Miklavec
On Tue, Nov 5, 2013 at 5:08 PM, Lars Huttar wrote: On 11/4/2013 5:32 PM, Wolfgang Schuster wrote: Am 04.11.2013 um 22:56 schrieb Mojca Miklavec: That TTF should work as well. The only difference is that you might need slightly different commands to set it up (there were recent

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
On 11/5/2013 12:05 PM, Mojca Miklavec wrote: On Tue, Nov 5, 2013 at 5:08 PM, Lars Huttar wrote: On 11/4/2013 5:32 PM, Wolfgang Schuster wrote: Make your choice: \definefontfamily [gentium-basic] [serif] [Gentium Basic] \definefontfamily [gentium-book] [serif] [Gentium Book Basic]

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
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

Re: [NTG-context] Pdf bookmarks with meta-structure (frontmatter, bodymatter etc)

2013-11-05 Thread Pol Stra
Le lundi 4 novembre 2013, 20:11:25 Hans Hagen a écrit : On 10/21/2013 6:45 PM, pol stra wrote: Hello, In my document, when I use a meta-structure, I only get introduction and content bookmarks, while not using a meta-structure, I have my part and chapter (which is the desired

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

2013-11-05 Thread Peter Münster
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

[NTG-context] How to test the emptyness of a variable?

2013-11-05 Thread Géry Ogam
Any idea for achieving this behaviour? - When there is a chapter label (\setuplabeltext[chapter=CHAPTER~]), display : CHAPTER ONE Cool CHAPTER 2 Cat CHAPTER 3 Mouse etc. - When there is no chapter label (\setuplabeltext[chapter=]), display: 1 Cool 2 Cat 3 Mouse etc. My try achieves the first

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

2013-11-05 Thread Géry Ogam
What do you think about that Hans? Géry Ogam 2013/11/1 Géry Ogam 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]

Re: [NTG-context] Sectioning from 0?

2013-11-05 Thread Wolfgang Schuster
Am 05.11.2013 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I noticed now that: \starttext \startsection[ownnumber=0,title=A] bla \stopsection \startsection[title=B] bla \stopsection \stoptext gives: 0 A bla 2

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Wolfgang Schuster
Am 05.11.2013 um 19:25 schrieb Lars Huttar lars_hut...@sil.org: I did try loading the simplefonts module explicitly, but definefontfamily is still undefined. The simplefonts module is now part of the context core, to use it you need a recent version (1 month old or less). The commands from