Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Andrew Dowell
On 10/11/12 13:43, Marco Patzer wrote: 2012-11-10 Marco Patzer: 2012-11-10 Hans Hagen: On 11/10/2012 1:38 PM, Andrew Dowell wrote: Chapter One This is the Name of the First Chapter I assume the OP was looking for a way to convert a counter to the corresponding

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Hans Hagen
On 11/10/2012 2:43 PM, Marco Patzer wrote: 2012-11-10 Marco Patzer: 2012-11-10 Hans Hagen: On 11/10/2012 1:38 PM, Andrew Dowell wrote: Chapter One This is the Name of the First Chapter I assume the OP was looking for a way to convert a counter

[NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Andrew Dowell
Hi I've some experience with Latex (written a thesis in it) but have just started to try ConteXt as my son wants me to typeset a story he's written as an A5 book, and ConteXt seems to do that more easily than Latex. However, he wants the chapter headings to be on the form

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Hans Hagen
On 11/10/2012 1:38 PM, Andrew Dowell wrote: Chapter One This is the Name of the First Chapter \setuppapersize [A5] \setupheadertexts [][chapter] [\getvariable{document}{title}][] \setuppagenumbering [alternative=doublesided, location=footer

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Hans Hagen
Maybe add \setupbodyfont [punknova] Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 |

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Marco Patzer
2012-11-10 Hans Hagen: On 11/10/2012 1:38 PM, Andrew Dowell wrote: Chapter One This is the Name of the First Chapter I assume the OP was looking for a way to convert a counter to the corresponding English word: \defineconversion [words] [One, Two

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Marco Patzer
2012-11-10 Marco Patzer: 2012-11-10 Hans Hagen: On 11/10/2012 1:38 PM, Andrew Dowell wrote: Chapter One This is the Name of the First Chapter I assume the OP was looking for a way to convert a counter to the corresponding English word

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-10 Thread Pontus Lurcock
On Sat 10 Nov 2012, Alan BRASLAU wrote: Given our interest in pdf production, perhaps we ought to be (more) involved in opensource pdf viewer development? But I suppose that acrobat and adobe reader remain the tools having the most widespread use. It would certainly be nice to have an

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread luigi scarso
On Thu, Nov 8, 2012 at 8:49 PM, Bill Meahan subscribed_li...@meahan.netwrote: I note there are two different ways of handling a chapter: The traditional \chapter{mytitle} \startchapter[title=mytitle, ownnumber=N ..] blah \stopchapter Is there any difference or advantage/disadvatage

Re: [NTG-context] Tikz backgrounds (was Re: Highlight current chapter in list)

2012-11-09 Thread Hans Hagen
On 11/9/2012 1:43 AM, Aditya Mahajan wrote: \externalfigure [cow] [frame=off, frameoffset=5pt, backgroundoffset=frame, background=decoration, decoration={coil, amplitude=4pt, segment length=5pt}] how about a namespace: decoration:spec={coil, amplitude=4pt, segment length=5pt}]

Re: [NTG-context] Highlight current chapter in list

2012-11-09 Thread Sietse Brouwer
Hans wrote: the next beta has: \namedstructureheadlocation{name} so that you can compare \currentlistentrylocation with \namedstructureheadlocation{chapter} (todo: also store locations elsewhere?) Best document this before we forget about it. Is this a good description of the command's

Re: [NTG-context] Highlight current chapter in list

2012-11-09 Thread Hans Hagen
On 11/9/2012 5:53 PM, Sietse Brouwer wrote: Hans wrote: the next beta has: \namedstructureheadlocation{name} so that you can compare \currentlistentrylocation with \namedstructureheadlocation{chapter} (todo: also store locations elsewhere?) Best document this before we forget about

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread Bill Meahan
On 11/09/2012 03:05 AM, luigi scarso wrote: On Thu, Nov 8, 2012 at 8:49 PM, Bill Meahan subscribed_li...@meahan.net mailto:subscribed_li...@meahan.net wrote: I note there are two different ways of handling a chapter: The traditional \chapter{mytitle} \startchapter[title

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread luigi scarso
there are two different ways of handling a chapter: The traditional \chapter{mytitle} \startchapter[title=mytitle, ownnumber=N ..] blah \stopchapter Is there any difference or advantage/disadvatage to using one method or the other? \startsection.. \stopsection: tagged pdf

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread Bill Meahan
On 11/09/2012 01:25 PM, luigi scarso wrote: On Fri, Nov 9, 2012 at 7:12 PM, Bill Meahan subscribed_li...@meahan.net mailto:subscribed_li...@meahan.net wrote: I don't quite understand the difference between tagged pdf and what you get when you use a TOC. I get the expected

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread luigi scarso
On Fri, Nov 9, 2012 at 7:32 PM, Bill Meahan subscribed_li...@meahan.netwrote: On 11/09/2012 01:25 PM, luigi scarso wrote: On Fri, Nov 9, 2012 at 7:12 PM, Bill Meahan subscribed_li...@meahan.netmailto: subscribed_lists@**meahan.net subscribed_li...@meahan.net wrote: I don't quite

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread Hans Hagen
On 11/9/2012 7:32 PM, Bill Meahan wrote: On 11/09/2012 01:25 PM, luigi scarso wrote: On Fri, Nov 9, 2012 at 7:12 PM, Bill Meahan subscribed_li...@meahan.net mailto:subscribed_li...@meahan.net wrote: I don't quite understand the difference between tagged pdf and what you get when

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-09 Thread Alan BRASLAU
On Fri, 9 Nov 2012 13:32:47 -0500 Bill Meahan subscribed_li...@meahan.net wrote: Adobe stopped supporting Linux after Acrobat 9 :( And I find that acrobat 8 and 9 running under linux or linux emulation (freebsd) have serious memory leaks, and sometimes fork leaving rogue shadows running in the

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Wolfgang Schuster
Am 08.11.2012 um 00:29 schrieb Marco Patzer home...@lavabit.com: Hi! How do I highlight the current chapter in the table of contents? The TOC is displayed on each page. For illustration I misused the interaction colour, which of course only works for the first page of a chapter

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Wolfgang Schuster: Hi Wolfgang! \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative [highlight] [renderingsetup=list:highlight] I like the flexibility

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 11:06 AM, Marco Patzer wrote: 2012-11-08 Wolfgang Schuster: Hi Wolfgang! \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative [highlight] [renderingsetup

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 12:06 PM, Hans Hagen wrote: On 11/8/2012 11:06 AM, Marco Patzer wrote: 2012-11-08 Wolfgang Schuster: Hi Wolfgang! \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Hans Hagen: the next beta has: \namedstructureheadlocation{name} so that you can compare \currentlistentrylocation with \namedstructureheadlocation{chapter} Thanks Hans. Best document this before we forget about it. I assume that's my part, right? I'll extend

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Marco Patzer: Best document this before we forget about it. I assume that's my part, right? I'll extend or add a wiki page the weekend after the beta is released. http://wiki.contextgarden.net/Command/definelistalternative Marco

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 6:32 PM, Marco Patzer wrote: 2012-11-08 Marco Patzer: Best document this before we forget about it. I assume that's my part, right? I'll extend or add a wiki page the weekend after the beta is released. http://wiki.contextgarden.net/Command/definelistalternative fyi: more

[NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-08 Thread Bill Meahan
I note there are two different ways of handling a chapter: The traditional \chapter{mytitle} \startchapter[title=mytitle, ownnumber=N ..] blah \stopchapter Is there any difference or advantage/disadvatage to using one method or the other? Other than the source code, is there anything

Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter

2012-11-08 Thread Marco Patzer
2012-11-08 Bill Meahan: I note there are two different ways of handling a chapter: The traditional \chapter{mytitle} \startchapter[title=mytitle, ownnumber=N ..] blah \stopchapter Is there any difference or advantage/disadvatage to using one method or the other? With the start

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
2012-11-08 Wolfgang Schuster: \setupheadertexts [\setups{headlist}] \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups \definelistalternative [highlight] [renderingsetup=list:highlight] Why

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Marco Patzer
] [background=layer:chapter] \setupbackgrounds [page] [background=layer:chapter, setups=setups:headlayer] \setlayer [layer:chapter] {\placelist [chapter] [alternative=f, criterium=all]}%% works %% {\placelist [chapter] [alternative=highlight, criterium=all]} %% fails

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Wolfgang Schuster
Am 08.11.2012 um 22:37 schrieb Marco Patzer home...@lavabit.com: 2012-11-08 Wolfgang Schuster: \setupheadertexts [\setups{headlist}] \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight, criterium=all]} \stopsetups

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
On 11/8/2012 10:48 PM, Wolfgang Schuster wrote: Am 08.11.2012 um 22:37 schrieb Marco Patzer home...@lavabit.com: 2012-11-08 Wolfgang Schuster: \setupheadertexts [\setups{headlist}] \startsetups [headlist] \framed[align=normal, frame=off] {\placelist [chapter] [alternative=highlight

[NTG-context] Tikz backgrounds (was Re: Highlight current chapter in list)

2012-11-08 Thread Aditya Mahajan
On Thu, 8 Nov 2012, Hans Hagen wrote: (just to illustrate that an overlay can be used for anything) This prompted me to finish testing what I had been thinking about for a while. In most cases, metapost is sufficient for drawing backgrounds, but occasionally using tikz is nicer. For

[NTG-context] Highlight current chapter in list

2012-11-07 Thread Marco Patzer
Hi! How do I highlight the current chapter in the table of contents? The TOC is displayed on each page. For illustration I misused the interaction colour, which of course only works for the first page of a chapter. \setupheadertexts [\setups{headlist}] \startsetups [headlist

[NTG-context] Chapters without chapter number

2012-10-04 Thread Pavel Hanák
Hi all, I would like to ask what is the best way to achieve this: The title line of the chapter should be without the chapter number, but the chapter number should be on all subsequent pages in the header. I tried this: \setuphead [chapter] [header=empty, number

Re: [NTG-context] Chapters without chapter number

2012-10-04 Thread Wolfgang Schuster
Am 04.10.2012 um 19:18 schrieb Pavel Hanák pa...@hanak.name: Hi all, I would like to ask what is the best way to achieve this: The title line of the chapter should be without the chapter number, but the chapter number should be on all subsequent pages in the header. I tried

[NTG-context] Formulas include chapter number

2012-09-17 Thread Marco Patzer
Hi, the last beta includes the chapter number in formulas, former betas didn't. Example: \starttext \startchapter [title=Foo] \startplaceformula \startformula E=mc^2 \stopformula \stopplaceformula \stopchapter \stoptext ∙ Is this intended? ∙ How to remove the chapter number

Re: [NTG-context] Formulas include chapter number

2012-09-17 Thread Sietse Brouwer
Hi Marco, It's a bug, I think. The keys that control this are way and prefixsegments: \setupformulas[way=bychapter, prefixsegments=chapter] way=bychapter means 'resume numbering at each chapter' prefixsegments=chapter means 'precede each formula number with the chapter number': chapter.formula

Re: [NTG-context] Formulas include chapter number

2012-09-17 Thread Marco Patzer
2012-09-17 Sietse Brouwer sbbrou...@gmail.com: Hi Sietse, It's a bug, I think. The keys that control this are way and prefixsegments: \setupformulas[way=bychapter, prefixsegments=chapter] way=bychapter means 'resume numbering at each chapter' prefixsegments=chapter means 'precede each

Re: [NTG-context] Include chapter number in figure numbering

2012-09-04 Thread Marco Patzer
On 2012-09-04 Sietse Brouwer sbbrou...@gmail.com wrote: Hi Sietse, how do I include the chapter number in the figure numbering? Untested: \setupcaptions[prefixsegment=chapter] This works with beta 2011-11-29, but unfortunately not in a current one. Does it work for you? Marco

Re: [NTG-context] Include chapter number in figure numbering

2012-09-04 Thread Sietse Brouwer
how do I include the chapter number in the figure numbering? Untested: \setupcaptions[prefixsegment=chapter] This works with beta 2011-11-29, but unfortunately not in a current one. Does it work for you? You're right: it doesn't work for me, either. A bug, then, or possibly an unannounced

Re: [NTG-context] Include chapter number in figure numbering

2012-09-04 Thread Rogers, Michael K
On Sep 4, 2012, at 4:00 AM, Sietse Brouwer wrote: how do I include the chapter number in the figure numbering? Untested: \setupcaptions[prefixsegment=chapter] This works with beta 2011-11-29, but unfortunately not in a current one. Does it work for you? You're right: it doesn't work

Re: [NTG-context] Include chapter number in figure numbering

2012-09-04 Thread Marco Patzer
On 2012-09-04 Rogers, Michael K mrog...@emory.edu wrote: Hi Rogers, I think the key name is plural, and you need to turn on prefixes. \setupcaptions[prefix=yes,prefixsegments=chapter] Thanks, that works. I updated the wiki. Marco

Re: [NTG-context] Include chapter number in figure numbering

2012-09-04 Thread Robert Blackstone
On 4 Sep 2012, at 10:46 , 08:55:10 +0200 Marco Patzer home...@lavabit.com wrot Hi Sietse, how do I include the chapter number in the figure numbering? Untested: \setupcaptions[prefixsegment=chapter] This works with beta 2011-11-29, but unfortunately not in a current one. Does

Re: [NTG-context] About Chapter head definition and FunnyFrame

2012-09-03 Thread dalyoung
Dear Wolfgang, Both of your methods are working fine. \define[2]\Myheader{?} with a recent beta or \unexpanded\def\Myheader#1#2{?} I also find out a new method '\defineheadalternative' too. Thank you so much. Best regards, Dalyoung

[NTG-context] Include chapter number in figure numbering

2012-09-03 Thread Marco Patzer
Hi, how do I include the chapter number in the figure numbering? The following example used to produce (as of November 2011) “Figure 1.1”. A current beta yields merely “Figure 1”. \starttext \startchapter [title=Foo] \startplacefigure [title=Bar] \stopplacefigure \stopchapter

Re: [NTG-context] Include chapter number in figure numbering

2012-09-03 Thread Sietse Brouwer
Marco Patzer wrote: how do I include the chapter number in the figure numbering? Untested: \setupcaptions[prefixsegment=chapter] or \setupcaption[figure][prefixsegment=chapter] should both work. (The former should affect table captions, too.) Slightly more at http://wiki.contextgarden.net

[NTG-context] About Chapter head definition and FunnyFrame

2012-09-02 Thread Jeong Dalyoung
Dear all, I have two questions. 1. I defined \Myheader and use it to shape the chapter head as following: \def\Myheader#1#2{% \framedtext [width=\overlaywidth, height=9\bodyfontsize, background=color, backgroundcolor=lightgray, offset=2pt, strut=no, frame=off, align={middle, middle}] { {\tfb

Re: [NTG-context] About Chapter head definition and FunnyFrame

2012-09-02 Thread Wolfgang Schuster
Am 03.09.2012 um 05:34 schrieb Jeong Dalyoung hak...@me.com: Dear all, I have two questions. 1. I defined \Myheader and use it to shape the chapter head as following: \def\Myheader#1#2{% Use \define[2]\Myheader{…} with a recent beta or \unexpanded\def\Myheader#1#2

Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)

2012-07-19 Thread Steffen Wolfrum
Am 18.07.2012 um 16:56 schrieb Marco: On 2012-07-18 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: When you use the start/stop-commands you can use “insidesection=…” which comes after the “after” key. Nice, I didn't know that one, yet. Wikified under \setupheads. I searched for

Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)

2012-07-19 Thread Marco
On 2012-07-19 Steffen Wolfrum cont...@st.estfiles.de wrote: Hi Steffen Nice, I didn't know that one, yet. Wikified under \setupheads. I searched for insidesection on this garden's page ... http://wiki.contextgarden.net/Command/setuphead http://wiki.contextgarden.net/Command/setupheads

Re: [NTG-context] Local TOC after each chapter title

2012-07-19 Thread Hans Hagen
On 19-7-2012 10:41, Marco wrote: On 2012-07-19 Steffen Wolfrum cont...@st.estfiles.de wrote: Hi Steffen Nice, I didn't know that one, yet. Wikified under \setupheads. I searched for insidesection on this garden's page ... http://wiki.contextgarden.net/Command/setuphead

[NTG-context] Local TOC after each chapter title (was: Re: Need help)

2012-07-18 Thread Marco
On 2012-07-18 Shiv Shankar Dayal shivshankar.da...@gmail.com wrote: Hi Shiv! For your next posts please ∙ Provide a meaningful subject, not just “Need help”. E.g. “Local TOC after each chapter title” ∙ Provide a MWE, a minimal *working* example. A small code snippet that compiles

Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)

2012-07-18 Thread Wolfgang Schuster
Am 18.07.2012 um 16:15 schrieb Marco: How about this: \setuphead [chapter] [after=\placecontent] When you use the start/stop-commands you can use “insidesection=…” which comes after the “after” key. Wolfgang

Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)

2012-07-18 Thread Marco
On 2012-07-18 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: When you use the start/stop-commands you can use “insidesection=…” which comes after the “after” key. Nice, I didn't know that one, yet. Wikified under \setupheads. Marco

[NTG-context] Chapter layout with \structureuservariable and a makeup

2012-06-06 Thread Marco
Hi, I fail to use \structureuservariable to print a value on the page preceding a chapter. Example: \setuphead [chapter] [before=\setups{chap}, command=\myChap] \startsetups chap \startmakeup setups\crlf structureuservariable foo: \structureuservariable{foo} \stopmakeup

[NTG-context] Link to next chapter

2012-05-28 Thread Aditya Mahajan
It is possible to get the title (either marking or list text) and a link to the next chapter in the footer? Such a style is used in Kindle and I'd like to recreate it. Minimum non-working example \setupfootertexts[][\setups{chapter:next}] \startsetups chapter:next % This does not give me

Re: [NTG-context] Line Wrapping/Hyphenation in Chapter/Section Headings

2012-03-17 Thread Wolfgang Schuster
Am 16.03.2012 um 23:34 schrieb Malte Stien: Wolfgang, Use ?align={flushleft,nothyphenated}?. You mean as in \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, align={flushleft, nothyphenated}] I tried that and it has no effect. I also found this article here: http

Re: [NTG-context] Line Wrapping/Hyphenation in Chapter/Section Headings

2012-03-17 Thread Malte Stien
Hi Wolfgang, Use also the broad keyword for align which makes ConTeXt more tolerant to break the line with ragged text. That did the trick. Thank you so much. Regards, Malte. ___ If your question is of interest

[NTG-context] Line Wrapping/Hyphenation in Chapter/Section Headings

2012-03-16 Thread Malte Stien
Hi all, I seem to have a problem with line wrapping/hyphenation in chapter/section headings. I have a chapter heading Technical Definitions, Acronyms and Abbreviations. When I setup my chapter headings as follows \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin] the heading

Re: [NTG-context] Line Wrapping/Hyphenation in Chapter/Section Headings

2012-03-16 Thread Wolfgang Schuster
Am 16.03.2012 um 12:09 schrieb Malte Stien: Hi all, I seem to have a problem with line wrapping/hyphenation in chapter/section headings. I have a chapter heading Technical Definitions, Acronyms and Abbreviations. When I setup my chapter headings as follows \setuphead[chapter][style

Re: [NTG-context] Line Wrapping/Hyphenation in Chapter/Section Headings

2012-03-16 Thread Malte Stien
Wolfgang, Use ?align={flushleft,nothyphenated}?. You mean as in \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, align={flushleft, nothyphenated}] I tried that and it has no effect. I also found this article here: http://tex.stackexchange.com/questions/35686/avoid-hyphenation

[NTG-context] Linebreak in a framed for a chapter setuphead

2012-02-29 Thread Charles
Hi, I have a problem with the following definition of chapter header. I would like to have the chapter title on the left side and the number, with higher size, on the right side. The \mychap seems to work while used directly. Any solution? Thanks Charles \def\mychap#1#2{\framed[frame

Re: [NTG-context] Linebreak in a framed for a chapter setuphead

2012-02-29 Thread Wolfgang Schuster
Am 29.02.2012 um 12:19 schrieb Charles: Hi, I have a problem with the following definition of chapter header. I would like to have the chapter title on the left side and the number, with higher size, on the right side. The \mychap seems to work while used directly. Any solution

Re: [NTG-context] Linebreak in a framed for a chapter setuphead

2012-02-29 Thread Charles
Le 29/02/2012 12:42, Wolfgang Schuster a écrit : Am 29.02.2012 um 12:19 schrieb Charles: Hi, I have a problem with the following definition of chapter header. I would like to have the chapter title on the left side and the number, with higher size, on the right side. The \mychap seems

Re: [NTG-context] Linebreak in a framed for a chapter setuphead

2012-02-29 Thread Wolfgang Schuster
Am 29.02.2012 um 16:05 schrieb Charles: Le 29/02/2012 12:42, Wolfgang Schuster a écrit : Am 29.02.2012 um 12:19 schrieb Charles: Hi, I have a problem with the following definition of chapter header. I would like to have the chapter title on the left side and the number, with higher

Re: [NTG-context] Linebreak in a framed for a chapter setuphead

2012-02-29 Thread Charles
Le 29/02/2012 16:18, Wolfgang Schuster a écrit : Am 29.02.2012 um 16:05 schrieb Charles: Le 29/02/2012 12:42, Wolfgang Schuster a écrit : Am 29.02.2012 um 12:19 schrieb Charles: Hi, I have a problem with the following definition of chapter header. I would like to have the chapter title

Re: [NTG-context] Linebreak between Chapter Number and Name

2012-02-27 Thread Aditya Mahajan
On Mon, 27 Feb 2012, Wolfgang Schuster wrote: Am 27.02.2012 um 02:47 schrieb Rogers, Michael K: On Feb 26, 2012, at 7:13 PM, Marc Trius wrote: I am trying to format a chapter heading so that there is a linebreak between the number and the name. The only way I managed to do

[NTG-context] Linebreak between Chapter Number and Name

2012-02-26 Thread Marc Trius
Hi, I am trying to format a chapter heading so that there is a linebreak between the number and the name. The only way I managed to do this is this: \setuphead[ chapter][command=\ChapTitle] \def\ChapTitle#1#2% {\framed[height=2cm,width=broad]{#1\\#2} } But this limits me to a fixed height

Re: [NTG-context] Linebreak between Chapter Number and Name

2012-02-26 Thread Rogers, Michael K
On Feb 26, 2012, at 7:13 PM, Marc Trius wrote: Hi, I am trying to format a chapter heading so that there is a linebreak between the number and the name. The only way I managed to do this is this: \setuphead[ chapter][command=\ChapTitle] \def\ChapTitle#1#2% {\framed[height=2cm,width=broad]{#1

Re: [NTG-context] Linebreak between Chapter Number and Name

2012-02-26 Thread Wolfgang Schuster
Am 27.02.2012 um 02:47 schrieb Rogers, Michael K: On Feb 26, 2012, at 7:13 PM, Marc Trius wrote: Hi, I am trying to format a chapter heading so that there is a linebreak between the number and the name. The only way I managed to do this is this: \setuphead[ chapter][command

[NTG-context] How to start every new chapter on page 1!?

2012-02-21 Thread Verhaag, G.C.H.M.
Hi ConTeXt Users, I'd like to start every chapter on page one. The footer should contain the chapter number followed by the page number. So page three of chapter 10, should read something like 10-3. I was thinking way=bychapter in the \setuppagenumbering command would do the trick. However

Re: [NTG-context] How to start every new chapter on page 1!?

2012-02-21 Thread Wolfgang Schuster
Am 21.02.2012 um 17:04 schrieb Verhaag, G.C.H.M.: Hi ConTeXt Users, I'd like to start every chapter on page one. The footer should contain the chapter number followed by the page number. So page three of chapter 10, should read something like 10-3. I was thinking way=bychapter

Re: [NTG-context] How to start every new chapter on page 1!?

2012-02-21 Thread Verhaag, G.C.H.M.
On 02/21/2012 06:34 PM, Wolfgang Schuster wrote: Am 21.02.2012 um 17:04 schrieb Verhaag, G.C.H.M.: Hi ConTeXt Users, I'd like to start every chapter on page one. The footer should contain the chapter number followed by the page number. So page three of chapter 10, should read something

Re: [NTG-context] How to start every new chapter on page 1!?

2012-02-21 Thread Wolfgang Schuster
Am 21.02.2012 um 19:34 schrieb Verhaag, G.C.H.M.: On 02/21/2012 06:34 PM, Wolfgang Schuster wrote: Am 21.02.2012 um 17:04 schrieb Verhaag, G.C.H.M.: Hi ConTeXt Users, I'd like to start every chapter on page one. The footer should contain the chapter number followed by the page

Re: [NTG-context] How to start every new chapter on page 1!?

2012-02-21 Thread Wolfgang Schuster
Am 21.02.2012 um 19:34 schrieb Verhaag, G.C.H.M.: On 02/21/2012 06:34 PM, Wolfgang Schuster wrote: Am 21.02.2012 um 17:04 schrieb Verhaag, G.C.H.M.: Hi ConTeXt Users, I'd like to start every chapter on page one. The footer should contain the chapter number followed by the page

Re: [NTG-context] How to start every new chapter on page 1!?

2012-02-21 Thread Verhaag, G.C.H.M.
On 02/21/2012 07:41 PM, Wolfgang Schuster wrote: Am 21.02.2012 um 19:34 schrieb Verhaag, G.C.H.M.: On 02/21/2012 06:34 PM, Wolfgang Schuster wrote: Am 21.02.2012 um 17:04 schrieb Verhaag, G.C.H.M.: Hi ConTeXt Users, I'd like to start every chapter on page one. The footer

[NTG-context] Turning off special chapter headings

2012-02-16 Thread Alasdair McAndrew
I'm using the following: \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}] for my chapter headings. But one chapter: Answers to Exercises I want unnumbered, without the Chapter text, and also in the table

Re: [NTG-context] Turning off special chapter headings

2012-02-16 Thread Otared Kavian
Hi, Didn't you see my answer? As suggested below, you can use \chapter[title={Answer to all the questions},number=no]. On 16 févr. 2012, at 08:59, Otared Kavian wrote: Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First

Re: [NTG-context] Turning off special chapter headings

2012-02-16 Thread Alasdair McAndrew
Thanks for your suggestion, but it didn't seem to work. I just discovered the answer myself and that was to create a new chapter command: \def\uchap#1#2{#2} and then follow as per the wiki: \definehead[ans][chapter] \setuphead[ans][command=\uchap,number=no] \definecombinedlist[content][ans

[NTG-context] Unnumbered chapter in table of contents?

2012-02-15 Thread Alasdair McAndrew
Hello, For my student notes, there are ten numbered chapters, and one unnumbered (Answers to Exercises). I want all of these to appear in the table of contents. So: 1. First Chapter 2. Second chapter 10. Tenth Chapter Answers to Exercises I've set up the chapters with \def\chap#1#2

Re: [NTG-context] Unnumbered chapter in table of contents?

2012-02-15 Thread Otared Kavian
Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First section} \section{Second section} \chapter{Chapter two} \section{First section} \section{Second section} \chapter[title={Answer to all the questions},number=no] \stoptext

[NTG-context] \footnote and \chapter

2012-02-08 Thread Otared Kavian
Hi Hans, For your information, I just tested the latest beta (ConTeXt ver: 2012.02.08 21:58 MKIV fmt: 2012.2.8) with my usual test suite and found that the following gives an error message: % begin \starttext \chapter{Testing a chapter\footnote{Actually for testing footnotes

[NTG-context] Bug? Counters inherit chapter number

2012-01-16 Thread Felix Ingram
] \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter] \stopchapter \stoptext The second example has an empty chapter heading followed by 1. 1.1 1.2 1.3. This is on version

Re: [NTG-context] Bug? Counters inherit chapter number

2012-01-16 Thread Wolfgang Schuster
example has an empty chapter heading followed by 1. 1.1 1.2 1.3. This is on version: 2011.11.29. Apologies if this is has been addressed - I'm holding off updating until I've worked out some more features in my doc. By default the counter is reset with each new chapter, since you have chapters

Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Otared Kavian
On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote: […] You need a command after “align=middle” because you assign “middle ” (with a space) to the align key. Hi Wolfgang, I didn't get exactly what you mean, but saying either of the following: \setuphead[chapter][header=high,align

Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Wolfgang Schuster
of the following: \setuphead[chapter][header=high,align=middle] or \setuphead[chapter][align=middle,header=high] or \setuphead[chapter][align=middle, header=high] or \setuphead[chapter][header=high, align=middle ] results in an error. While

Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Aditya Mahajan
On Tue, 3 Jan 2012, Otared Kavian wrote: On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote: […] You need a command after “align=middle” because you assign “middle ” (with a space) to the align key. I didn't get exactly what you mean, but saying either of the following: I have not

Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Otared Kavian
Otared Kavian: On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote: […] You need a command after “align=middle” because you assign “middle ” (with a space) to the align key. Hi Wolfgang, I didn't get exactly what you mean, but saying either of the following: \setuphead[chapter

[NTG-context] Beta: bug in \setuphead[chapter]

2012-01-02 Thread Otared Kavian
Dear Hans, dear all, My best wishes to all the community for this New Year! With the latest beta, \setuphead[chapter] has a strange behavior: the order of two keys seems to be important… More precisely \setuphead [chapter] [header=high, align=middle ] results

Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-02 Thread Wolfgang Schuster
Am 03.01.2012 um 06:41 schrieb Otared Kavian: Dear Hans, dear all, My best wishes to all the community for this New Year! With the latest beta, \setuphead[chapter] has a strange behavior: the order of two keys seems to be important… More precisely \setuphead [chapter

[NTG-context] Custom chapter footer

2012-01-01 Thread Andreas Harder
Hi Hans, the following used to work. Has the syntax changed? \definetext[chapter][footer][pagenumber] \setuphead [chapter][footer=chapter] \starttext \chapter{test} \stoptext ! Undefined control sequence. Regards Andreas

Re: [NTG-context] Custom chapter footer

2012-01-01 Thread Wolfgang Schuster
Am 01.01.2012 um 22:39 schrieb Andreas Harder: Hi Hans, the following used to work. Has the syntax changed? This has to be changed in page-txt.mkvi: \def\resetlayouttextlines % public {\csname\??layouttextsreset\v!top \endcsname \csname\??layouttextsreset\v!header\endcsname

[NTG-context] \placelist after \chapter

2011-12-12 Thread Felix Ingram
Hi all, I can't seem to get a list placed after a numbered heading. For example: \starttext \title{First one} \placelist[chapter] \chapter{Second one} \placelist[chapter] % This won't be placed \stoptext Is this something I should be able to do? The reason I ask is that I'm looking to generate

Re: [NTG-context] \placelist after \chapter

2011-12-12 Thread Wolfgang Schuster
Am 12.12.2011 um 13:04 schrieb Felix Ingram: Hi all, I can't seem to get a list placed after a numbered heading. For example: \starttext \title{First one} \placelist[chapter] \chapter{Second one} \placelist[chapter] % This won't be placed \stoptext Is this something I should

Re: [NTG-context] \placelist after \chapter

2011-12-12 Thread Felix Ingram
Thanks Wolfgang - that works as expected. I'm trying to create a table from the headings (as previously mentioned). Something like this: \setuplist[chapter][criterium=all,alternative=command,command=\MySummaryTable,before={\setupTABLE[frame=on]\bTABLE\bTABLEbody},after={\eTABLEbody\eTABLE

Re: [NTG-context] chapter please ignore part

2011-11-09 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 08 Nov 2011 22:24:17 -0700, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \definestructureresetset[continue][0,0][1] \setuphead[sectionresetset=continue] Both esoteric and fascinating! Thanks!! Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal

[NTG-context] chapter please ignore part

2011-11-08 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear Knights, I seem to remember there was a way to do this, but I can't find it. This is what i want: Part Foo 1 Chapter One 2 Chapter Two Part Foo Moo 3 Chapter Three 4 Chapter Four But what I always get is, obviously Part Foo 1 Chapter One 2 Chapter Two Part Foo Moo 1 Chapter

Re: [NTG-context] chapter please ignore part

2011-11-08 Thread Wolfgang Schuster
Am 08.11.2011 um 22:45 schrieb Idris Samawi Hamid ادريس سماوي حامد: Dear Knights, I seem to remember there was a way to do this, but I can't find it. This is what i want: Part Foo 1 Chapter One 2 Chapter Two Part Foo Moo 3 Chapter Three 4 Chapter Four But what I always

Re: [NTG-context] Question about chapter headings

2011-10-25 Thread Peter Münster
On Tue, Oct 25 2011, Alasdair McAndrew wrote: \def\chap#1#2{Chapter #1\crlf #2} \def\chap#1#2{\vbox{Chapter #1\crlf #2}} -- Peter ___ If your question is of interest to others as well, please add

Re: [NTG-context] Question about chapter headings

2011-10-25 Thread Alasdair McAndrew
Thanks very much! (I'm embarrassed - I should have been able to work that one out for myself...) -Alasdair On Tue, Oct 25, 2011 at 5:55 PM, Peter Münster pmli...@free.fr wrote: On Tue, Oct 25 2011, Alasdair McAndrew wrote: \def\chap#1#2{Chapter #1\crlf #2} \def\chap#1#2{\vbox{Chapter #1

<    1   2   3   4   5   6   7   8   9   10   >