Re: [NTG-context] Sections in content: macros v text

2020-10-07 Thread Tomas Hala
Thank you, Wolfgang, that's it! Tomáš Wed, Oct 07, 2020 ve 05:12:42PM +0200 Wolfgang Schuster napsal(a): # Tomas Hala schrieb am 05.10.2020 um 20:20: # >Hi all, # > # >the content generated by the MWE below contains # >1 bb ... 1 # >2 bb ... 1 # >instead of # >1 aa ... 1 # >2 bb ... 1 # >because

Re: [NTG-context] Sections in content: macros v text

2020-10-07 Thread Wolfgang Schuster
Tomas Hala schrieb am 05.10.2020 um 20:20: Hi all, the content generated by the MWE below contains 1 bb ... 1 2 bb ... 1 instead of 1 aa ... 1 2 bb ... 1 because the content structure refers to the macro name \name in both sections instead of to work with the text. Maybe it was already discuss

[NTG-context] Sections in content: macros v text

2020-10-05 Thread Tomas Hala
Hi all, the content generated by the MWE below contains 1 bb ... 1 2 bb ... 1 instead of 1 aa ... 1 2 bb ... 1 because the content structure refers to the macro name \name in both sections instead of to work with the text. Maybe it was already discussed by I am not able to find any solution how

Re: [NTG-context] sections without numbering

2014-07-25 Thread Wolfgang Schuster
Am 13.07.2014 um 12:06 schrieb Werner Hintze : > Aha. I see. Two possibilities more. But I forgot another problem. All these > solutions give me > > »1.2. Kapitel« - »1.2. Kapitel« etc. if it’s the first part. I don’t > unterstand the mechanism and so I don’t know where to look for the solutio

Re: [NTG-context] sections without numbering

2014-07-13 Thread Werner Hintze
Aha. I see. Two possibilities more. But I forgot another problem. All these solutions give me »1.2. Kapitel« - »1.2. Kapitel« etc. if it’s the first part. I don’t unterstand the mechanism and so I don’t know where to look for the solution. On 13 Jul 2014, at 11:38, Wolfgang Schuster wrote:

Re: [NTG-context] sections without numbering

2014-07-13 Thread Wolfgang Schuster
Am 13.07.2014 um 09:23 schrieb Werner Hintze : > Hi Philipp, > > I don’t know what happened: I believe I started a new thread with a new > subject. My mail program makes sometimes strange things… > > Anayway. Thanks for your response. In the meantime I found another solution: > > \starttext >

Re: [NTG-context] sections without numbering

2014-07-13 Thread Philipp Gesang
· > Anayway. Thanks for your response. In the meantime I found another > solution: > > > \starttext > > \define[2]\MyChapter {#1.\,Kapitel: #2} > \setuphead [chapter] [command=\MyChapter, page=no] Yes, that a valid solution as well. Good luck! Philipp pgpne94u5pd

Re: [NTG-context] sections without numbering

2014-07-13 Thread Werner Hintze
Hi Philipp, I don’t know what happened: I believe I started a new thread with a new subject. My mail program makes sometimes strange things… Anayway. Thanks for your response. In the meantime I found another solution: \starttext \define[2]\MyChapter {#1.\,Kapitel: #2}

[NTG-context] sections without numbering

2014-07-13 Thread Philipp Gesang
Hello Werner! · > I can’t figure out how to change the chapter heading. More important: > I have no idea where to find the needed information. What I want to see > is for example: > > Kapitel: Blablabla Several unnumbered structures are predefined. \setuphead [subject] [before=Ka

Re: [NTG-context] sections

2014-06-01 Thread Hans Hagen
On 6/1/2014 8:18 PM, Pablo Rodriguez wrote: Hi Hans, I found out that the issue I wrote about in my previous message is about widow and orphan lines. indeed, when testing setting them to 0 helps (there are more cases when such penalties interfere, idem for (ex)hyphenpenalty) Hans -

Re: [NTG-context] sections

2014-06-01 Thread Pablo Rodriguez
Hi Hans, I found out that the issue I wrote about in my previous message is about widow and orphan lines. Here is the sample: \showframe\showgrid \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1

Re: [NTG-context] sections

2014-06-01 Thread Pablo Rodriguez
Hi Hans, many thanks for your explanation and sorry for the trouble. I created the test case that only contains three issues related to page breaks. Many thanks for the new beta, I’m afraid I’m still experiencing issues. \showframe\showgrid \setupbodyfont[pagella,15pt] \starttext

Re: [NTG-context] sections

2014-06-01 Thread Hans Hagen
On 6/1/2014 5:40 PM, Rik wrote: Is this also the cause of problems I noted with heading placed into the margin, as in the example below? no, unrelated, try this: \setuphead [section] [after={\strut\blank[-2*line,samepage,disable]}, command=\SectionCommand, distance=0pt] \define[2]\

Re: [NTG-context] sections

2014-06-01 Thread Rik
On 2014-06-01 07:51, Hans Hagen wrote: Hi Pablo, The section breaks are a bit of a headache. In the old mechanism (also mkii) we used penalties between different section levels (different values so that there is some hierarchy). In mkiv we have a weighted penalty/glue mechanism which has adv

[NTG-context] sections

2014-06-01 Thread Hans Hagen
Hi Pablo, The section breaks are a bit of a headache. In the old mechanism (also mkii) we used penalties between different section levels (different values so that there is some hierarchy). In mkiv we have a weighted penalty/glue mechanism which has advantages but can also create side effect

Re: [NTG-context] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-18 Thread Wolfgang Schuster
Am 18.05.10 11:56, schrieb Jaroslav Hajtmar: Thanx Wolfgang. It is OK. Is there any possibility continue numbering from previous sections? Is there any manual or informations about this? I study contextref.pdf and I didnt any info about. This seems to be not possible in MkIV because a new se

Re: [NTG-context] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-18 Thread Jaroslav Hajtmar
Thanx Wolfgang. It is OK. Is there any possibility continue numbering from previous sections? Is there any manual or informations about this? I study contextref.pdf and I didnt any info about. Thanx Jaroslav Dne 18.5.2010 10:57, Wolfgang Schuster napsal(a): Am 17.05.10 22:12, schrieb Jaros

Re: [NTG-context] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-18 Thread Wolfgang Schuster
Am 17.05.10 22:12, schrieb Jaroslav Hajtmar: Is there due \setupsectionblock [backpart] [before={\setupuserpagenumber[numberconversion=Romannumerals]}] \setupsectionblock [appendix] [before={\setupuserpagenumber[numberconversion=numbers] %Characters \s

[NTG-context] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-17 Thread Jaroslav Hajtmar
Hello, is there any way to change default setting of style of section numbering of miscellaneous parts of documents? In \startbodymatter - \stopbodymatter environment is default style of numbering : 1. Section 1 2. Section 2 but in \startappendices \stopappendices environment is style of n

Re: [NTG-context] sections in mkiv

2009-07-18 Thread Mojca Miklavec
On Sat, Jul 18, 2009 at 11:45, Hans Hagen wrote: > Mojca Miklavec wrote: >> >> Hello, >> >> out of curiosity I have tried the latest current. Is the command >>    \setupheadnumber[section][6] >> now invalid on purpose or is there a simple way to fix it? > > i dunno, i see the command but never test

Re: [NTG-context] sections in mkiv

2009-07-18 Thread Hans Hagen
Mojca Miklavec wrote: Hello, out of curiosity I have tried the latest current. Is the command \setupheadnumber[section][6] now invalid on purpose or is there a simple way to fix it? i dunno, i see the command but never tested if it works (might not be adapted to some changes); do you need

[NTG-context] sections in mkiv

2009-07-18 Thread Mojca Miklavec
Hello, out of curiosity I have tried the latest current. Is the command \setupheadnumber[section][6] now invalid on purpose or is there a simple way to fix it? One more problem: \setuphead[section][textstyle=\ss\bfc] % combined with numbercommand= \setuphead[subsection][style=\ss\bfb] \start

[NTG-context] sections, subsections, indenting, startnarrower, alignment

2009-05-26 Thread afsmith
I do not understand what you mean. Could you explain? I stopped trying to use sections because I read somewhere in the archives that sections cannot be used 'recursively' like this. I have instead been trying to use definitions. With regards to other approaches, I have been trying to use severa

Re: [NTG-context] sections, subsections, indenting, startnarrower, alignment

2009-05-26 Thread Amaël Broustet
Wouldn't be easier to achieve this using section personalized section numbering ? Best, Amaël Le vendredi 22 mai 2009 à 14:40 -0700, afsmith a écrit : > Hi again ntg-context. > > I have been working on my own CV/Resume module. Up until now I've just > been asking about specific bits of the im

[NTG-context] sections, subsections, indenting, startnarrower, alignment

2009-05-22 Thread afsmith
Hi again ntg-context. I have been working on my own CV/Resume module. Up until now I've just been asking about specific bits of the implementation of this thing I want to do, but perhaps that was a mistake as it hasn't really helped progress much, so: What I am trying to achieve is to define some

Re: [NTG-context] sections & incompatible colors in mkii/mkiv

2009-02-23 Thread Wolfgang Schuster
Am 24.02.2009 um 00:48 schrieb Hans Hagen: Mojca Miklavec wrote: Hello, Maybe this is just one incompatibility I need to live with, but maybe it could be fixed. You can try to compare results in mkii and mkiv. The text "Section is called" is desplayed in black in mkii and in red in mkiv. (It m

Re: [NTG-context] sections & incompatible colors in mkii/mkiv

2009-02-23 Thread Hans Hagen
Mojca Miklavec wrote: Hello, Maybe this is just one incompatibility I need to live with, but maybe it could be fixed. You can try to compare results in mkii and mkiv. The text "Section is called" is desplayed in black in mkii and in red in mkiv. (It made some of my documents look funny. I can fi

[NTG-context] sections & incompatible colors in mkii/mkiv

2009-02-23 Thread Mojca Miklavec
Hello, Maybe this is just one incompatibility I need to live with, but maybe it could be fixed. You can try to compare results in mkii and mkiv. The text "Section is called" is desplayed in black in mkii and in red in mkiv. (It made some of my documents look funny. I can fix it myself, but maybe t

Re: [NTG-context] Sections, cross-references and separators

2008-04-01 Thread Taco Hoekwater
Duncan Hothersall wrote: > Taco wrote: >> In this case it is easier to make the actual chapter number include >> the 'A'. That way, you won't have to worry about "separator" at all >> (which is good, because its use is confusing). >> >> Try this: >> >> @@ -1,4 +1,4 @@ >> -\setupheads[separator=]

Re: [NTG-context] Sections, cross-references and separators

2008-04-01 Thread Duncan Hothersall
Taco wrote: > In this case it is easier to make the actual chapter number include > the 'A'. That way, you won't have to worry about "separator" at all > (which is good, because its use is confusing). > > Try this: > > @@ -1,4 +1,4 @@ > -\setupheads[separator=] %<-- this can't be right > \setupre

Re: [NTG-context] Sections, cross-references and separators

2008-03-31 Thread Taco Hoekwater
Duncan Hothersall wrote: > What I am aiming for is a style where: > Parts are labelled A, B, C [done], > Chapters are labelled A1, A2, A3 [done, but...], > Cross-references to Chapters call them A1, A2, A3 [not done: I'm > getting A.1] > Figures are labelled A1.1, A1.2 [not done; I

[NTG-context] Sections, cross-references and separators

2008-03-31 Thread Duncan Hothersall
Dear all, I am confused. Here is a minimal version of my problem: --- \setupheads[separator=] %<-- this can't be right \setupreferencing[state=start,chapternumber=yes,global=yes] \setupsection[section-1][conversion=Characters] \setupsection[section-2][previousnumber=yes] \setuphead[part][placehea

Re: [NTG-context] Sections with additional dot: a little request

2006-02-20 Thread Hans Hagen
Mojca Miklavec wrote: > >> \setuplabeltext >> [sl] >> [chapter={{},{.}}] >> > > Thanks a lot. It's an interesting trick. > it's actually meant for that, it was introduced some years ago when chinese needed such features Hans

Re: [NTG-context] Sections with additional dot: a little request

2006-02-19 Thread Mojca Miklavec
On 2/18/06, Hans Hagen wrote: > Mojca Miklavec wrote: > > Hello Hans, > > > > The sections in Slovenian have to be numbered wih dots at the end: > > > > 1. Introduction > > 2. Contents > > 2.1. Subsection > > 2.1.1. Subsubsection > > 2.1.2. Subsubsection > > 2.2. Subsection > > 2.3. Subsection > >

Re: [NTG-context] Sections with additional dot: a little request

2006-02-18 Thread Hans Hagen
Mojca Miklavec wrote: > Hello Hans, > > The sections in Slovenian have to be numbered wih dots at the end: > > 1. Introduction > 2. Contents > 2.1. Subsection > 2.1.1. Subsubsection > 2.1.2. Subsubsection > 2.2. Subsection > 2.3. Subsection > 3. Bibliography > > rather than > > 1 Introduction > 2

[NTG-context] Sections with additional dot: a little request

2006-02-17 Thread Mojca Miklavec
Hello Hans, The sections in Slovenian have to be numbered wih dots at the end: 1. Introduction 2. Contents 2.1. Subsection 2.1.1. Subsubsection 2.1.2. Subsubsection 2.2. Subsection 2.3. Subsection 3. Bibliography rather than 1 Introduction 2 Contents 2.1 Subsection 2.1.1 Subsubsection 2.1.2