Re: [NTG-context] \chapter{} vs \startchapter..\stopchapter
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 open-source PDF viewer approaching Adove Reader's capabilities. I've never seen any moves in this direction, though. The impression I have is that 99% of people only need very basic PDF viewer functionality, and regard most of Adobe Reader's features as bloat. Personally I find this worrying: I'm using Adobe Reader 9 on Linux, Adobe aren't going to release any newer Linux versions, and at some point I will run into a feature I need which is not supported either by AR9 or any open-source viewer. Pont ___ 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] Beginner question. Chapter heading in words
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: > > \defineconversion > [words] > [One, Two, Three, Four, Five] I forgot to add how to hook this into Hans' example: \defineconversion [words] [One, Two, Three, Four, Five] \setuphead [chapter] [header=high, command=\MyChapterTitle, style=\bfc, conversion=words, numberstyle=\bfb] 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 ___
Re: [NTG-context] Beginner question. Chapter heading in words
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, Three, Four, Five] \definecounter [mycount] \setupcounter [mycount] [numberconversion=words] \starttext \dorecurse{5}{%% \incrementcounter [mycount] \convertedcounter [mycount]} \stoptext Maybe there is a conversion built-in that does this automatically without having to define the words yourself. 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 ___
Re: [NTG-context] Beginner question. Chapter heading in words
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 | 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] Beginner question. Chapter heading in words
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] \unexpanded\def\MyChapterTitle#1#2% {\framed [offset=overlay, frame=off, width=\textwidth, align={middle,lohi}] {#1\blank#2}} \setuphead [chapter] [header=high, command=\MyChapterTitle, style=\bfc, numberstyle=\bfb] \setuplabeltext [chapter=Chapter~] \startdocument[title=MyTitle] \startchapter[title=First] \dorecurse{10}{\input ward\par} \stopchapter \startchapter[title=Second] \dorecurse{10}{\input ward\par} \stopchapter \stopdocument -- - 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 ___
[NTG-context] Beginner question. Chapter heading in words
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: Chapter One This is the Name of the First Chapter ie. with the chapter number in words, centred on the page, and then the title of the chapter centred below it. (By default it seems to do it as a numeral and then the title on the the same line) He'd also like the title of the book as the header for even pages and the title of the chapter as a header for odd side pages. I've looked through the manual but can't find obvious instructions as to how to do this. Thanks for any suggestions. Andrew ___ 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] Presets in collectors
2012-11-10 Wolfgang Schuster: > The collector macros aren’t based on layers. I don't know why I thought they were. What is the correct way to place a collector mid aligend underneath another? I manage to place them underneath left aligned using location={right, bottom}, corner=bottom and mid aligned as in the example below. However, I prefer not to adjust the distance manually. \setupbodyfont [12pt] \definecollector [mycollector] \setcollector [mycollector] {\framed[align=normal]{\input khatt-en\par}} %% this is the desired output, but without the manual adjustment \setcollector [mycollector] [location=bottom, corner=middle, %% voffset=.5\layerheight, %% no effect voffset=.8cm] {\framed[width=5cm,align=normal]{\input ward\par}} \flushcollector [mycollector] \starttext\null\stoptext Intuitively I would expect the following to work, but I guess the `middle` syntax is not supported or I am using it in the wrong way. \setcollector [mycollector] [corner={middle, bottom}, location={middle, bottom}] {\framed[width=5cm,align=normal]{\input ward\par}} 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 ___
Re: [NTG-context] Preventing page break in register between reference and page number
Am 09.11.2012 um 13:43 schrieb H. Özoguz : > I don't find this macro in > > strc-reg.mkiv > > I am using > > current version: 2012.05.30 11:26 > > What do I have to change? You need the beta version but before you do this make a copy of your current version. Even then don’t try to modify the macro in the file itself because the next update changes this back to the old definition with the next update and you can never say how long this would work because it’s a internal macro which could change/disappear. 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 ___