Re: [NTG-context] two newbie questions (about conditional processing)
As you said before, in my problem, this kind of handler could break something like hyper-links, and I assume Yue wanted those kind of stuffs. Maybe just a \start(stop)setups which changes the background back to normal and \prependtoks it to some token list. So is there an \everypage or \everyshipout token? Then using \setuphead (I don't know if it's appropriate) or \appendtoks to every title page. On Sun, May 24, 2009 at 1:34 AM, Wolfgang Schuster wrote: > > Took me a while but with the help of the MkII/IV manual I was able to > implement the chapter layout. > > \enableattributeinheritance > > \newif\ifchapterpage > > \installpagehandler{color}% > {\dowithnextbox > {\ifchapterpage > > \actualshipout{\framed[background=color,backgroundcolor=black,foregroundcolor=white]{\attributedbox\nextbox}} > \else > \actualshipout{\flushnextbox} > \fi\global\chapterpagefalse} > \normalhbox} > > \starttext > > \setuppaper[method=color] > > \subject{Tufte}\chapterpagetrue > > \dorecurse{10}{\input tufte\par} > > \page > > \setuppaper[method=color] > > \subject{Knuth}\chapterpagetrue > > \dorecurse{10}{\input knuth\par} > > \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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] subsection numbering
Dear all, I got a problem with the numbering of subsections : they are numbered using the \currentheadnumber of the heading containing the \subsection attached an example and the output. in the log, I get : structure : chapter @ level 2 : 0.1 -> Chapter structure : section @ level 3 : 0.1.1 -> Section structure : subsection @ level 4 : 0.1.1.1 -> Subsection structure : subsection @ level 4 : 0.1.1.2 -> Subsection [2.2] structure : chapter @ level 2 : 0.2 -> Chapter structure : subsection @ level 4 : 0.2.0.1 -> Subection structure : subsection @ level 4 : 0.2.0.2 -> Subsection [3.3] best, Amaël \starttext \section{Section} \char`\\{}currentheadnumber : \currentheadnumber \subsection{Subsection} \char`\\{}currentheadnumber : \currentheadnumber \chapter{Chapter} \char`\\{}currentheadnumber : \currentheadnumber \section{Section} \char`\\{}currentheadnumber : \currentheadnumber \subsection{Subsection} \char`\\{}currentheadnumber : \currentheadnumber \subsection{Subsection} \char`\\{}currentheadnumber : \currentheadnumber \chapter{Chapter} \char`\\{}currentheadnumber : \currentheadnumber \subsection{Subection} \char`\\{}currentheadnumber : \currentheadnumber \subsection{Subsection} \char`\\{}currentheadnumber : \currentheadnumber \stoptext essai.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] two newbie questions (about conditional processing)
Am 21.05.2009 um 03:25 schrieb Yue Wang: Hi, I have a new book to design, but I don't know how to do page/content conditional processing). Please help me:) - I want my chapter page (first page of each chapter) to be really distinctive. that is, I define a dark color background, and want all the text on the first page set in white. how can I do that? for example \chapter{hello} \dorecurse{10}{\input zapf } % all the characters in the first page should white, others should set in black. Took me a while but with the help of the MkII/IV manual I was able to implement the chapter layout. \enableattributeinheritance \newif\ifchapterpage \installpagehandler{color}% {\dowithnextbox {\ifchapterpage \actualshipout {\framed[background=color,backgroundcolor=black,foregroundcolor=white] {\attributedbox\nextbox}} \else \actualshipout{\flushnextbox} \fi\global\chapterpagefalse} \normalhbox} \starttext \setuppaper[method=color] \subject{Tufte}\chapterpagetrue \dorecurse{10}{\input tufte\par} \page \setuppaper[method=color] \subject{Knuth}\chapterpagetrue \dorecurse{10}{\input knuth\par} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] two newbie questions (about conditional processing)
On Sun, May 24, 2009 at 12:49 AM, Zhichu Chen wrote: > On Thu, May 21, 2009 at 9:25 AM, Yue Wang wrote: >> Hi, >> >> I have a new book to design, but I don't know how to do page/content >> conditional processing). Please help me:) >> >> - I want my chapter page (first page of each chapter) to be really >> distinctive. that is, I define a dark color background, and want all >> the text on the first page set in white. how can I do that? for >> example >> \chapter{hello} >> \dorecurse{10}{\input zapf } % all the characters in the first page >> should white, others should set in black. > This must have something to do with the OTR, I'm really not good > at that. > > By \definecolor[black][r=1, g=1, b=1] you can get white texts which > maybe useful for you. confused. can you give me an example? >> >> - I want to insert graphics and images. all the graphics are inserted >> using \placeexternalfigures. I want all the pages where the insertion >> happens to be quite distictive (that is, have a very narrow text >> layout, and leave the large margin for the figures. However, when a >> page starts, TeX does not know wheter or not an external figure will >> be placed on this page, so it really has no idea whether this page >> should be set narrower or not. how can I do that? > Sounds like an \insert like footnote. Good luck. >> Yes. but a footnote on margin... >> Thanks. >> >> Yue Wang >> ___ >> 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 : https://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___ >> > > > > -- > Best Regards > Chen > > > Zhi-chu Chen | Shanghai Synchrotron Radiation Facility > No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China > tel: 086 21 5955 3405 | zhichu.chen.googlepages.com > | www.sinap.ac.cn > > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] two newbie questions (about conditional processing)
On Thu, May 21, 2009 at 9:25 AM, Yue Wang wrote: > Hi, > > I have a new book to design, but I don't know how to do page/content > conditional processing). Please help me:) > > - I want my chapter page (first page of each chapter) to be really > distinctive. that is, I define a dark color background, and want all > the text on the first page set in white. how can I do that? for > example > \chapter{hello} > \dorecurse{10}{\input zapf } % all the characters in the first page > should white, others should set in black. This must have something to do with the OTR, I'm really not good at that. By \definecolor[black][r=1, g=1, b=1] you can get white texts which maybe useful for you. > > - I want to insert graphics and images. all the graphics are inserted > using \placeexternalfigures. I want all the pages where the insertion > happens to be quite distictive (that is, have a very narrow text > layout, and leave the large margin for the figures. However, when a > page starts, TeX does not know wheter or not an external figure will > be placed on this page, so it really has no idea whether this page > should be set narrower or not. how can I do that? Sounds like an \insert like footnote. Good luck. > > Thanks. > > Yue Wang > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] two newbie questions (about conditional processing)
anyone can help? thanks. On Thu, May 21, 2009 at 9:25 AM, Yue Wang wrote: > Hi, > > I have a new book to design, but I don't know how to do page/content > conditional processing). Please help me:) > > - I want my chapter page (first page of each chapter) to be really > distinctive. that is, I define a dark color background, and want all > the text on the first page set in white. how can I do that? for > example > \chapter{hello} > \dorecurse{10}{\input zapf } % all the characters in the first page > should white, others should set in black. > > - I want to insert graphics and images. all the graphics are inserted > using \placeexternalfigures. I want all the pages where the insertion > happens to be quite distictive (that is, have a very narrow text > layout, and leave the large margin for the figures. However, when a > page starts, TeX does not know wheter or not an external figure will > be placed on this page, so it really has no idea whether this page > should be set narrower or not. how can I do that? > > Thanks. > > Yue Wang > ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] indices
Dear all, I have a bibliography created in BibDesk. I insert it in my .tex file using \setupbibtex[database={IndexHag},sort=author] and with the other commands I get my bibliography printed beautifully. I assign keywords in BibDesk and they appear in a list in the .bbl file for example as \keywords{Anderson, Columba, Colum Cille, Adamn{\'a}n, hagiography, hagiographer, saints lives} In the bibmod.pdf guide it says that \keyword KEYWORD Just text (for use in indices) \keywords KEYWORDS Just text (for use in indices) I have a very long bibliography and it would be great to automatically generate indices based on the keywords that do not appear in the bibliography itself. If this can be done can someone show me how to go about that. Thank you in advance. Charlie Doherty *** Mr Charles Doherty, Early Irish History, Room K113, School of History, John Henry Newman Building, University College Dublin, Belfield, Dublin 4 Tel: +353 1 716 8381 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] asymptote support
On Sat, May 23, 2009 at 05:45, Aditya Mahajan wrote: > On Fri, 22 May 2009, Mojca Miklavec wrote: > >> Hello, >> >> Just to let you know - thanks to John Bowman (Michail Vidiassov is >> also working on it) these are some latest posts from asymptote >> developers on their forum - if anyone would like to play with >> asymptote, feel free to test. > > This is great. However, even simple examples do not work. I will test in > more detail later. Is there some settings to get a verbose output on what > asymptote is doing (-v just says Processing filename, which is not too > informative). Sorry, I forgot to tell (and I forgot that I have been using this before at all): > You can generate examples that use these constructs in settings.cc like this: > asy -k labelsquare > Then see the file labelsquare_.tex On my computer I have a file /opt/local/share/doc/asymptote/examples/labelsquare.asy for example. You need to copy that file (or any other asymptote file) on working directory and run asy -k -tex context labelsquare At least that is my guess. Using asy -k -tex xelatex labelsquare works here and generates all the intermediate files labelsquare.pdf labelsquare_.aux labelsquare_.log labelsquare_.tex labelsquare_0.eps labelsquare_0.pdf and I'm waiting for a release since I have no idea how to compile from source (thanks to Arthur's pointer - the build in TL works fine with -DBROKENCOMPILER switch, but it doesn't have the ConTeXt patches included yet). I could copy-paste single files, but I'll wait a bit longer to be able to test the official release. Mojca ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___