[NTG-context] TeXLive newbie can't run Context
I'm the newest of newbies and have installed of TexLive on a PC running Vista. The post-installation tests described in Section 3.5 of the TeXLive Guide run just fine (Tex, LaTex, pdfLaTex). No tests were included for Context, so I failed around trying to run Texexec amd Texmfstart to no good end. How can I determine if Context was installed properly and how do I run Context? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey Football player w C small image003.jpg___ 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] TeXLive newbie can't run Context
Hans, I didn't explicitly install ruby because I thought that was done automatically as part of the TexLive install. A ruby folder exists as c:\Program Files\texlive\2008\texmf-dist\scripts\context\ruby and has files in it. Where can instructions for installing ruby be found? Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen Sent: Tuesday, July 14, 2009 12:31 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] TeXLive newbie can't run Context Tom wrote: I'm the newest of newbies and have installed of TexLive on a PC running Vista. The post-installation tests described in Section 3.5 of the TeXLive Guide run just fine (Tex, LaTex, pdfLaTex). No tests were included for Context, so I failed around trying to run Texexec amd Texmfstart to no good end. How can I determine if Context was installed properly and how do I run Context? did you install ruby? as an alternative take the minimals from the context garden as they are more up to date (as well as much smaller) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : 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] TeXLive newbie can't run Context
Hans, Please pardon these very basic questions. Do I understand correctly that Context requires that a Ruby compiler that is not part of the TexLive package be installed? I had not previously heard of the Ruby language so know nothing about it. I assume that there are competing compilers/interpreters for the language and various releases of those compilers. Which compilers are compatible with TexLive? Does this compiler need to be installed in any particular directory? Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen Sent: Tuesday, July 14, 2009 1:40 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] TeXLive newbie can't run Context Tom wrote: Hans, I didn't explicitly install ruby because I thought that was done automatically as part of the TexLive install. A ruby folder exists as c:\Program Files\texlive\2008\texmf-dist\scripts\context\ruby and has files in it. Where can instructions for installing ruby be found? i normally google for one (there are a couple of installers, just take a native windows version) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : 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 ___
[NTG-context] figure can not be found error
I am attempting for the first time to import a figure into a ConTeXt document and am getting figure 0481c can not be found. I am using TexLive on a Windows Vista system. I thought I was following the manual but apparently am doing something wrong. Here is the relevant code: %file 0481c.tif is located in c:\BookLayouts\Wisconsin\photos \setupexternalfigures[directory={c:/BookLayouts/Wisconsin/photos}] \useexternalfigure[ladies][0481c][width=3.127in] %after \starttext \placefigure[left]{none}{\externalfigure[ladies]} Tom Benjey Tuxedo Press 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] First page of chapter layout
The assistance for my last question came quickly and was so helpful that I will go back to the well. How does one go about changing the layout for the first pages of a chapter? By default, I get the chapter number and title in large print at the top of the page but want to make it something more interesting. My experiments with \setuphead haven't been fruitful. Tom Benjey Tuxedo Press ___ 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] Line overflows
A few lines overflow a couple of characters into the right margin. How does one solve this problem? Tom Benjey Tuxedo Press ___ 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] Fonts in MKII
I am confused about using fonts in MKII. Which documentation provides the best explanation and most accurate of how to use fonts in MKII. I am particularly interested in using fonts that are bundled in Tex-Live. I will leave bringing in other fonts till later when I understand the basics. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Table resolution too low
I just created a PDF of a bookblock by using MKII to produce the .ps file and Adobe Acrobat to create the PDF from it. When preflighting the PDF, all the photos were found to be 300dpi or greater but the table created by the following code was flagged at being only 150ppi. I don't see this as a problem but is there a way to cause it to be 300dpi or greater to eliminate the warning? \placetable[here,force]{none} {\starttable[|l|l|l|] \HL \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR \HL \VL Albert Exendine \VL End \VL 1970 \VL\SR \HL \VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR \HL \VL James Johnson \VL Quarterback \VL 1969 \VL\SR \HL \VL Ed Rogers \VL End \VL 1968 \VL\SR \HL \VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR \HL \VL Gus Welch \VL Quarterback \VL 1975 \VL\SR \HL \VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR \HL \stoptable}} Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Table resolution too low
Am 2010-12-23 um 16:11 schrieb Tom: I just created a PDF of a bookblock by using MKII to produce the .ps file and Adobe Acrobat to create the PDF from it. Why do you make the detour via PS at all? When preflighting the PDF, all the photos were found to be 300dpi or greater but the table created by the following code was flagged at being only 150ppi. I don't see this as a problem but is there a way to cause it to be 300dpi or greater to eliminate the warning? There's no reason why a table should be resolution dependend at all, consisting just of fonts and lines. But since you try to go via PS, there might be lowres pixel fonts (PK) involved. Please provide a complete minimal example and describe how and why you force ConTeXt to produce PS. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) Here is an example: \starttext \placetable[here,force]{none} {\starttable[|l|l|l|] \HL \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR \HL \VL Albert Exendine \VL End \VL 1970 \VL\SR \HL \VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR \HL \VL James Johnson \VL Quarterback \VL 1969 \VL\SR \HL \VL Ed Rogers \VL End \VL 1968 \VL\SR \HL \VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR \HL \VL Gus Welch \VL Quarterback \VL 1975 \VL\SR \HL \VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR \HL \stoptable} \stoptext Using Tex-Live MKII, I created the .ps with texexec --dvi TableExample Needing a PDF/X-1a:2001 file, I created the PDF from the .ps file using Adobe Acrobat Distiller 9 The warnings point to the lines in the table but not to the text. Tom ___ 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] Table resolution too low
On Thu, Dec 23, 2010 at 8:36 PM, Tom t...@tuxedo-press.com wrote: On Thu, Dec 23, 2010 at 4:42 PM, Tom t...@tuxedo-press.com wrote: Here is an example: \starttext \placetable[here,force]{none} {\starttable[|l|l|l|] \HL \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR \HL \VL Albert Exendine \VL End \VL 1970 \VL\SR \HL \VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR \HL \VL James Johnson \VL Quarterback \VL 1969 \VL\SR \HL \VL Ed Rogers \VL End \VL 1968 \VL\SR \HL \VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR \HL \VL Gus Welch \VL Quarterback \VL 1975 \VL\SR \HL \VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR \HL \stoptable} \stoptext Using Tex-Live MKII, I created the .ps with texexec --dvi TableExample If you try texexec TableExample what happen ? -- Luigi The PDF that is created is PDF 1.5 (Acrobat 6.x) If -- for some reason -- you need 1.4 try \pdfminorversion4 \starttext \placetable[here,force]{none} {\starttable[|l|l|l|] \HL \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR \HL \VL Albert Exendine \VL End \VL 1970 \VL\SR \HL \VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR \HL \VL James Johnson \VL Quarterback \VL 1969 \VL\SR \HL \VL Ed Rogers \VL End \VL 1968 \VL\SR \HL \VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR \HL \VL Gus Welch \VL Quarterback \VL 1975 \VL\SR \HL \VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR \HL \stoptable} \stoptext Preflighting it doesn't seem to generate the image resolution warning. Perhaps that is related to PDF/X-1a:2001. So is it ok now ? -- Luigi It seems to be but I'm such a novice using these tools that I may be preflighting with the wrong options set. Knowing that the lower resolution on the table doesn't matter much is consoling. It's about time for some eggnog. Tom ___ 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 ___ ___ 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] Identifying fonts on my system
My first step in trying to understand fonts is to determine exactly which fonts are loaded onto my system. Is there a command that will list all the fonts currently resident on my TexLive 2008 MKII installatation? Mfonts.pdf mentions that Adobe's 15 standard fonts are also available. How do I determine what they are and how to identify them in commands? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] TT font disregards margins
I need to intersperse my text with code typed by someone else and am attempting to give the appearance of the code having been typed on a typewriter. The problem I am encountering is that the Teletyped text does not respect margin settings. What could be done to correct this? (I am running MKII on a Windows system). Example follows: \definepapersize[6X9][width=6.0in, height=9.0in] \setuppapersize[6X9][6X9] \setuplayout[ width=middle, height=middle, backspace=.75 in, topspace=.5 in, header=.25 in, footer=0 in, headerdistance=.25 in, footerdistance=0 in, bottomspace=0.9 in, cutspace=.875 in, ] \starttext WHETHER I shall turn out to be the hero of my own life, or whether that station will be held by anybody else, these pages must show. To begin my life with the beginning of my life, I record that I was born (as I have been informed and believe) on a Friday, at twelve o'clock at night. It was remarked that the clock began to strike, and I began to cry, simultaneously. \blank[big] {\tt{WHETHER I shall turn out to be the hero of my own life, or whether that station will be held by anybody else, these pages must show. To begin my life with the beginning of my life, I record that I was born (as I have been informed and believe) on a Friday, at twelve o'clock at night. It was remarked that the clock began to strike, and I began to cry, simultaneously.}} \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Determining available fonts
\showbodyfont \showbodyfontenvironment display details about a single font. Which command lists or otherwise identifies fonts available for use on a Tex Live MKII system? I want to find out what fonts have been loaded onto my system. These would most likely be the standard fonts included with the on-line download. The documentation shows me how to load additional fonts but I don't yet know what is there by default. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Problem switching fonts in MKII
Kudos for the new documentation chapters on Typography and Fonts. However, I still can't completely get my hands around it. Running the following code under TexLive MKII doesn't give the desired results in that defining font synonyms and switching to those typefaces doesn't seem to work. Obviously, I'm doing something wrong. \usetypescriptfile[type-gyr] \usetypescript[palatino][ec] \setupbodyfont[palatino,11pt] \definefontsynonym[AltTextFont][palatino] \usetypescriptfile[type-one] \usetypescript[bookman][default] \setupbodyfont[bookman,11pt] \definefontsynonym[TextFont][bookman] \starttext \switchtotypeface[TextFont] \showbodyfont \input knuth \blank[big] \switchtotypeface[AltTextFont] \showbodyfont \input knuth \blank[big] \switchtotypeface[bookman][11pt] \showbodyfont \input knuth \blank[big] \switchtotypeface[palatino][11pt] \showbodyfont \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Problem switching fonts in MKII
Hi, On 01/30/11 19:18, Tom wrote: Kudos for the new documentation chapters on Typography and Fonts. However, I still can't completely get my hands around it. Running the following code under TexLive MKII doesn't give the desired results in that defining font synonyms and switching to those typefaces doesn't seem to work. Obviously, I'm doing something wrong. As far as I know, you cannot define fontsynonyms to typefaces. If you want to use names like 'TextFont' as a typeface, you have to use \definetypeface. Best wishes, Taco Thanks, Taco. That did the trick. Now to experiment with more of the fonts included in the TexLive distribution. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Iwona-Light error
I get the following error message when trying to use the iwona-light font in MKII: Cannot find Iwona-CapsLight.mf. Iwona and Iwona-Heavy load OK. The following code demonstrates the problem: \usetypescriptfile[type-one] \usetypescript[iwona-light][ec] \setupbodyfont[iwona-light,12pt] \starttext \showbodyfont \showbodyfontenvironment \input knuth \stoptext BTW, the new chapter on typography helps immensely. However, I am a bit confused by table 1.7 which, among other things, states that commercial fonts are typeset in bold. It might be my old eyes, but I don't see anything in that table typeset in bold. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Iwona-Light error
That works. Now I get: Cannot find Helvetica-Caps.mf for Postscript font. \usetypescriptfile[type-one] \usetypescript[postscript][ec] \setupbodyfont[postscript,12pt] \starttext \switchtobodyfont[ss] \showbodyfont \showbodyfontenvironment \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Wednesday, February 09, 2011 2:51 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Iwona-Light error On Wed, Feb 9, 2011 at 20:37, Tom t...@tuxedo-press.com wrote: I get the following error message when trying to use the iwona-light font in MKII: Cannot find Iwona-CapsLight.mf. In type-one.mkii it should have been: \starttypescript [sans] [iwona-light] [name] \setups[font:fallback:sans] ... \definefontsynonym [SansCaps] [Iwona-CapsLight-Regular] \definefontsynonym [SansItalicCaps] [Iwona-CapsLight-Italic] Instead of just Iwona-CapsLight and Iwona-CapsLightItalic. Thanks for noticing. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Iwona-Light error
I'm using TexLive 2008.05.21 15:21 MKII fmt: 2009.7.8 int: English/English (I haven't upgraded to a more recent version because I don't know how to have 2 executable versions on my PC at the same time) I can't find Helvetica-Caps or Helvetica-Caps-Regular in type-one.tex, the only file I changed. I can't find them in the original, unchanged version of the file either. I can email you the file if you'd like. Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Thursday, February 10, 2011 1:42 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Iwona-Light error On Wed, Feb 9, 2011 at 23:53, Tom wrote: That works. Now I get: Cannot find Helvetica-Caps.mf for Postscript font. I'm not able to reproduce that and the typescripts seem to be fine. Did you fix anything else by accident? (Modifying a single instance of Helvetica-Caps into Helvetica-Caps-Regular for example.) What version of ConTeXt do you use? 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Iwona-Light error
I just attempted to install Tex Live 2010 got a warning about a conflict with [pdf]tex program on the Tex Live 2008 system path. 2008 still comes up when I run Context, but the system path was automatically updated with the install. What else must I do? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Thursday, February 10, 2011 12:26 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Iwona-Light error On Thu, Feb 10, 2011 at 15:37, Tom wrote: I'm using TexLive 2008.05.21 15:21 MKII fmt: 2009.7.8 int: English/English (I haven't upgraded to a more recent version because I don't know how to have 2 executable versions on my PC at the same time) I can't find Helvetica-Caps or Helvetica-Caps-Regular in type-one.tex, the only file I changed. I can't find them in the original, unchanged version of the file either. I can email you the file if you'd like. Then it is in type-tfm.tex (or something like that). But I would advice you to install minimals in parallels (you can then switch between both). All you need to do is to change PATH when you want to switch. (But in any case it might be better to use at least TeX Live 2010.) 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Iwona-Light error
Windows Vista Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Friday, February 11, 2011 11:08 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Iwona-Light error On Fri, Feb 11, 2011 at 17:07, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Fri, Feb 11, 2011 at 16:34, Tom t...@tuxedo-press.com wrote: I just attempted to install Tex Live 2010 got a warning about a conflict with [pdf]tex program on the Tex Live 2008 system path. 2008 still comes up when I run Context, but the system path was automatically updated with the install. What else must I do? Are you using Windows on unix/linux/freebsd/mac? typo: or, not on of course 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Iwona-Light error
I'm using Windows on a PC. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Friday, February 11, 2011 11:08 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Iwona-Light error On Fri, Feb 11, 2011 at 16:34, Tom t...@tuxedo-press.com wrote: I just attempted to install Tex Live 2010 got a warning about a conflict with [pdf]tex program on the Tex Live 2008 system path. 2008 still comes up when I run Context, but the system path was automatically updated with the install. What else must I do? Are you using Windows on unix/linux/freebsd/mac? 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Table of Contents issues
Using a very recent download of TexLive 2010 (MKII) on my PC, my success generating a useful table of contents has been somewhat limited. I can't figure out how to put the title, Contents, in the font I desire. The various parameters I found in the documentation affect the chapter titles and the page numbers but nothing I've found allows me to control the title of the ToC. What am I overlooking? I would also like for the unnumbered chapter titles, such as introduction or preface, to align with the other chapter titles, not with their numbers. Aligntitle seems to have no effect on anything from what I have seen. \definehead [intro][chapter] \setuphead [intro][number=no,textstyle=\ss\bf] \setuphead [chapter][textstyle=\ss\bf,numberstyle=\ss\bf] \definecombinedlist [content][intro,chapter,section] \setupcombinedlist[content][style=\ss\bf,textstyle=\ss\bf,pagestyle=\ss\bf,n umberstyle=\ss\bf,aligntitle=yes] \setuplist [intro][headnumber=no] \starttext \completecontent \intro{Introduction} \input knuth \chapter{First chapter} \input knuth \chapter{Second Chapter} \input Knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Table of Contents issues
This works. Now I want to make the chapter titles larger but my experiments using style have failed. There must be a different way to do this. If I understand bodyfont correctly, it is used for the text of the document, not for the titles. In my case, the body is in a serif font and the titles are sanserif. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Saturday, February 12, 2011 1:56 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Table of Contents issues Am 12.02.2011 um 18:12 schrieb Tom: Using a very recent download of TexLive 2010 (MKII) on my PC, my success generating a useful table of contents has been somewhat limited. I can't figure out how to put the title, Contents, in the font I desire. The various parameters I found in the documentation affect the chapter titles and the page numbers but nothing I've found allows me to control the title of the ToC. What am I overlooking? I would also like for the unnumbered chapter titles, such as introduction or preface, to align with the other chapter titles, not with their numbers. Aligntitle seems to have no effect on anything from what I have seen. \setuphead[chapter][style=sansbold] \definehead[intro][chapter] \setuphead [intro][number=no] \definecombinedlist[content][intro,chapter,section] \setupcombinedlist [content][style=sansbold] \starttext \completecontent \intro{Introduction} \input knuth \chapter{First chapter} \input knuth \chapter{Second Chapter} \input knuth \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Using fonts from multiple families
\usetypescriptfile[type-one] \usetypescriptfile[type-gyr] TexLive 2010 MKII on a PC I'm completely flummoxed as how to use fonts from different families. Follows is an attempt to use Pallatino (rm) for the text of a book, Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page headers (intended but not implemented), and Chancery (cg) for the dedication. The only font that appears to come out right are the chapter titles and I can't change their size without changing the size of the text font. I apparently haven't found the right manual yet or am too stupid to understand what must be a relatively simple concept. \starttypescript [BookFont][texnansi,ec,qx,t5,default] \definetypeface[BookFont][rm][serif][pallatino][default] %text body \definetypeface[BookFont][ss][sans][iwona-light][default] %page headers \definetypeface[BookFont][ss][sansbold][iwona-heavy][default] %chapters \definetypeface[BookFont][tt][type][postscript][default] %embedded code \definetypeface[BookFont][cg][calligraphic][chancery][default] %dedic. \definetypeface[BookFont][mm][math][pallatino][default] %math \stoptypescript \usetypescript[BookFont][ec] \setupbodyfont[BookFont,12pt] \switchtobodyfont[serif] \setuphead [chapter][style=sansbold, alternative=middle] \definehead [intro][chapter] \setuphead [intro][number=no] \definecombinedlist [content][intro,chapter,section] \setuphead[chapter][style=sansbold] \starttext {\cg Dedication} \page \completecontent \intro{Introduction - Ag} \input knuth \chapter{First chapter - Ag} \input knuth \chapter{Second Chapter - Ag} \input Knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Saturday, February 12, 2011 1:56 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Table of Contents issues Am 12.02.2011 um 18:12 schrieb Tom: Using a very recent download of TexLive 2010 (MKII) on my PC, my success generating a useful table of contents has been somewhat limited. I can't figure out how to put the title, Contents, in the font I desire. The various parameters I found in the documentation affect the chapter titles and the page numbers but nothing I've found allows me to control the title of the ToC. What am I overlooking? I would also like for the unnumbered chapter titles, such as introduction or preface, to align with the other chapter titles, not with their numbers. Aligntitle seems to have no effect on anything from what I have seen. \setuphead[chapter][style=sansbold] \definehead[intro][chapter] \setuphead [intro][number=no] \definecombinedlist[content][intro,chapter,section] \setupcombinedlist [content][style=sansbold] \starttext \completecontent \intro{Introduction} \input knuth \chapter{First chapter} \input knuth \chapter{Second Chapter} \input knuth \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using fonts from multiple families
Thank you very much, Wolfgang. The time zone difference is helpful sometimes. I went to bed last night very frustrated and woke up this morning to find your solution in my inbox. It is also good to see that your assistance to me has also helped someone else. I do have a couple of questions: 1. Why aren't the \usetypescriptfile commands necessary? 2. It never occurred to me to consider the dedication as a separate chapter. Logically, it is but is the inverse of other chapters, sort of, in that the chapter title isn't normally displayed and the body of the chapter is printed in a different font than are the other chapters. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Sunday, February 13, 2011 4:59 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Using fonts from multiple families Am 13.02.2011 um 04:38 schrieb Tom: \usetypescriptfile[type-one] \usetypescriptfile[type-gyr] TexLive 2010 MKII on a PC I'm completely flummoxed as how to use fonts from different families. Follows is an attempt to use Pallatino (rm) for the text of a book, Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page headers (intended but not implemented), and Chancery (cg) for the dedication. The only font that appears to come out right are the chapter titles and I can't change their size without changing the size of the text font. I apparently haven't found the right manual yet or am too stupid to understand what must be a relatively simple concept. You can define multiple typefaces. % engine=pdftex % fonts \definetypeface [mainface] [rm] [serif] [palatino][default] \definetypeface [mainface] [ss] [sans] [iwona-heavy] [default] \definetypeface [mainface] [tt] [mono] [modern] [default] \definetypeface [mainface] [mm] [math] [palatino][default] \definetypeface [pagenumber] [ss] [sans] [iwona-light] [default] \definetypeface [dedication] [rm] [serif] [chancery] [default] \setupbodyfont[mainface] % headings \definehead [intro] [chapter] \definehead [dedication][chapter] \setuphead[chapter][style=\ss\bfa,alternative=middle] \setuphead[intro][number=no] \setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}] \definecombinedlist [content][intro,chapter,section] % pagenumbers \setuppagenumbering[style={\switchtobodyfont[pagenumber]}] \starttext \dedication{Dedication} \completecontent \intro{Introduction - Ag} \input knuth \chapter{First chapter - Ag} \input knuth \chapter{Second Chapter - Ag} \input knuth \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using fonts from multiple families
This should be my last question on this topic. I want to center the dedication but align=middle (or center) and alternative=middle added to \definestartstop[dedication] seem to have no effect. I can't seem to find a simple way to center an odd line of paragraph of text. Using a frame seems like using a sledgehammer to pound a tack. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Sunday, February 13, 2011 8:36 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Using fonts from multiple families Am 13.02.2011 um 14:23 schrieb Tom: Thank you very much, Wolfgang. The time zone difference is helpful sometimes. I went to bed last night very frustrated and woke up this morning to find your solution in my inbox. It is also good to see that your assistance to me has also helped someone else. I do have a couple of questions: 1. Why aren't the \usetypescriptfile commands necessary? ConTeXt already load there files to let you use the palatino etc. fonts 2. It never occurred to me to consider the dedication as a separate chapter. Logically, it is but is the inverse of other chapters, sort of, in that the chapter title isn't normally displayed and the body of the chapter is printed in a different font than are the other chapters. Add this to my example: \definestartstop[dedication][style={\switchtobodyfont[dedication]}] You can now write in your document \dedication{...} and \startdedeication ... \stopdedication 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 ___ ___ 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] Getting paragraphs to indent
My intention is to indent all paragraphs that do not follow whitespace. However, my code isn't making that happen. What am I doing wrong? (TexLive 2010 MKII on PC) \setupcolors[state=start] \definecolor [gray] [s=0.75] %\usetypescriptfile[type-one] %\usetypescriptfile[type-gyr] \definetypeface [mainface] [rm] [serif] [palatino][default] \definetypeface [mainface] [ss] [sans] [iwona-heavy] [default] \definetypeface [mainface] [tt] [mono] [modern] [default] \definetypeface [mainface] [mm] [math] [palatino][default] \definetypeface [pagenumber] [ss] [sans] [iwona-light] [default] \definetypeface [dedication] [rm] [serif] [chancery] [default] \setupbodyfont[mainface] % headings \definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}] \definehead [intro] [chapter] \definehead [dedication][chapter] \setuphead[chapter][style=\ss\bfd,alternative=middle] \setuphead[intro][number=no] \setuphead[dedication][incrementnumber=no] \definecombinedlist [content][intro,chapter,section] % pagenumbers \setuppagenumbering [state=start,alternative=doublesided,conversion=numbers,location=] \setupheadertexts [chapter][pagenumber][pagenumber][My Book Title] \setupheader[style={\switchtobodyfont[pagenumber,20pt]\sl},color=gray] %turn on indentation \setupindenting[medium] \indenting[next] \starttext \dedication{} \startdedication To someone who inspired or supported me. Let's see how this works for dedications that span multiple lines. \stopdedication \completecontent \intro{Introduction - Ag} \input knuth \chapter{First chapter - Ag} \input knuth \input knuth \input knuth \input knuth \input knuth \chapter{Second Chapter - Ag} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Sunday, February 13, 2011 4:59 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Using fonts from multiple families Am 13.02.2011 um 04:38 schrieb Tom: \usetypescriptfile[type-one] \usetypescriptfile[type-gyr] TexLive 2010 MKII on a PC I'm completely flummoxed as how to use fonts from different families. Follows is an attempt to use Pallatino (rm) for the text of a book, Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page headers (intended but not implemented), and Chancery (cg) for the dedication. The only font that appears to come out right are the chapter titles and I can't change their size without changing the size of the text font. I apparently haven't found the right manual yet or am too stupid to understand what must be a relatively simple concept. You can define multiple typefaces. % engine=pdftex % fonts \definetypeface [mainface] [rm] [serif] [palatino][default] \definetypeface [mainface] [ss] [sans] [iwona-heavy] [default] \definetypeface [mainface] [tt] [mono] [modern] [default] \definetypeface [mainface] [mm] [math] [palatino][default] \definetypeface [pagenumber] [ss] [sans] [iwona-light] [default] \definetypeface [dedication] [rm] [serif] [chancery] [default] \setupbodyfont[mainface] % headings \definehead [intro] [chapter] \definehead [dedication][chapter] \setuphead[chapter][style=\ss\bfa,alternative=middle] \setuphead[intro][number=no] \setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}] \definecombinedlist [content][intro,chapter,section] % pagenumbers \setuppagenumbering[style={\switchtobodyfont[pagenumber]}] \starttext \dedication{Dedication} \completecontent \intro{Introduction - Ag} \input knuth \chapter{First chapter - Ag} \input knuth \chapter{Second Chapter - Ag} \input knuth \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Getting paragraphs to indent
Those things worked. Now I'm trying to figure out which fonts are standard with TexLive MKII. So far, I've identified the following: modern palatino modernvariable postscript includes Times Roman, Helvetica and Courier antykwa-torunska referred to as just antykwa fourier bookman optima iwona iwona-light iwona-heavy chancery Have I missed any? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Sunday, February 13, 2011 3:58 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Getting paragraphs to indent Am 13.02.2011 um 21:40 schrieb Tom: My intention is to indent all paragraphs that do not follow whitespace. However, my code isn't making that happen. What am I doing wrong? \definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}] \definehead [dedication][chapter] Don't define two commands with the same name, \definestartstop[dedication] was meant as alternative to \definehead[dedication]. To force a page break you can add before=\page to \definestartstop. \setupindenting[medium] \indenting[next] Enable indenting, \indenting is just a synonym for \setupindenting but use the \setup-command. \setupindenting[yes,medium,next] \dedication{} ??? 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 ___ ___ 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] Chapter Command causes ToC to not display correctly
The code below seems to work fine when the first MyChapterCommand is commented out and the second one is active. However, when the first one is active and the second one is commented out, the ToC does not display properly. What could be causing this to happen? I know that the first MyChapterCommand is not appropriate and use an appropriate on in the front matter environment for the actual book. \definetypeface [mainface] [rm] [serif] [palatino][default] \definetypeface [mainface] [ss] [sans] [iwona-heavy] [default] \definetypeface [mainface] [tt] [mono] [modern] [default] \definetypeface [mainface] [mm] [math] [palatino][default] \definetypeface [pagenumber] [ss] [sans] [iwona-light] [default] \definetypeface [dedication] [rm] [serif] [chancery] [default] \setupbodyfont[mainface] %\starthiding %Chapter number only - not appropriate for frontmatter \def\MyChapterCommand#1#2% #1 is number, #2 is text {\framed[frame=off,bottomframe=on,topframe=on] {\vbox{\centerline{ #1 %\stophiding \starthiding %lines above and below chapter number and title \def\MyChapterCommand#1#2% #1 is number, #2 is text {\framed[frame=off,bottomframe=on,topframe=on] {\vbox{\headtext{chapter} #1\blank#2}}} \stophiding % headings \definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]},befo re=\page] \definehead [intro] [chapter] \setuphead[chapter][style=\ss\bfd,alternative=middle, command=\MyChapterCommand, header=empty,footer=chapter, after={\blank[0.5in]},before={\blank[force,1.0in]} \placeinitial] \setuphead[intro][number=no] \setuphead[dedication][incrementnumber=no] \definecombinedlist [content][intro,chapter,section] % pagenumbers \setuppagenumbering [state=start,alternative=doublesided,conversion=numbers,location=] \setupheadertexts [chapter][pagenumber][pagenumber][My Book Title] \setupheader[style={\switchtobodyfont[pagenumber,20pt]\sl}] %turn on indentation \setupindenting[yes,medium,next] \starttext \dedication{} \startdedication \startalignment[middle] To someone who inspired or supported me. Let's see how this works for dedications that span multiple lines. \stopalignment \stopdedication \completecontent \intro{Introduction - Ag} \input knuth \chapter{First chapter - Ag} \input knuth \input knuth \input knuth \input knuth \input knuth \chapter{Second Chapter - Ag} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Chapters not sowing up in ToC
When attempting to place only the chapter number on the first page of a chapter, the chapters do not appear in the ToC the ToC does not display. Inserting #2 just before the last } in the definition for MyChapterCommand causes the ToC to appear with chapter names although it and the chapters are ugly. Is it necessary to include chapter names at the beginning of chapters? Perhaps this is intended because leaving chapter names off the beginning of chapters would reduce the value of the ToC. Maybe ToCs are not desired in such situations. %insert #2 before last } to cause ToC to appear although %very ugly \def\MyChapterCommand#1#2% #1 is number, #2 is text {\framed[frame=off] {\vbox{\centerline{\headtext{chapter} #1 \setuphead[chapter] [command=\MyChapterCommand, header=empty,footer=chapter,page=mychapterpagebreak, after={\blank[0.5in]},before={\blank[force,1.0in]}] \starttext \completecontent \chapter{The First Chapter} \input knuth \chapter{The\\Second\\Chapter} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Stretching chapter titles - MKII
Follows is some code that executes. The lines immediately following \starttext create a sample of the desired output format. However, I want to accomplish similar results for chapter titles via the passing of arguments containing the chapter title and number. Numerous attempts at that have resulted in abject failure. I am clearly missing something. \def\MyChapterCommand#1#2 {\switchtobodyfont[ss,30pt] \hbox to \hsize {\stretched{Chapter\\One}} \blank[small] \switchtobodyfont[sansbold,20pt] \hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}} \setuphead[chapter] [command=\MyChapterCommand, header=empty,footer=chapter,page=mychapterpagebreak, after={\blank[0.5in]},before={\blank[force,1.0in]}] \starttext \switchtobodyfont[sans,30pt] \hbox to \hsize {\stretched{Chapter\\One}} \blank[small] \switchtobodyfont[sansbold,20pt] \hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}} \chapter{It\\Was\\The\\Best\\Of\\Times} \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Stretching chapter titles - MKII
I tried to execute MKIV by typing in context hello.tex and got an error message. Apparently something else needs to be installed. MTXrun | unknown script 'context.lua' or 'mtx-context.lua' What major changes to my documents will I likely need to make to shift to MKIV? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- Am 15.02.2011 um 01:45 schrieb Tom: Follows is some code that executes. The lines immediately following \starttext create a sample of the desired output format. However, I want to accomplish similar results for chapter titles via the passing of arguments containing the chapter title and number. Numerous attempts at that have resulted in abject failure. I am clearly missing something. Can't you use MkIV, it has better support for tracking? 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 ___
[NTG-context] Braces in TexLive MKIV
When I recently upgraded to TexLive MKII, I learned that \lq, etc. no longer worked in that version but that \lbrace still did. Today, I tried MKIV and find that \lbrace does not work in MKIV. So, I tried \braceleft because \quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft work in MKIV. What is now the proper representation for this character? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Braces in TexLive MKIV
Thanks, Wolfgang. My document now compiles without errors and produces a PDF. It is my understanding that one of the ways MKIV differs greatly from MKII is in the handling of fonts. Which documentation should I look at first to learn about fonts in MKIV (not that I understand them in MKII yet)? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Wednesday, February 16, 2011 5:24 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Braces in TexLive MKIV Am 16.02.2011 um 22:04 schrieb Tom: When I recently upgraded to TexLive MKII, I learned that \lq, etc. no longer worked in that version but that \lbrace still did. Today, I tried MKIV and find that \lbrace does not work in MKIV. So, I tried \braceleft because \quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft work in MKIV. What is now the proper representation for this character? Choose one! \starttext \{ $\{$ $\lbrace$ \letterleftbrace\ \textbraceleft \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \stretched in chapter titles in MKII
Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com The code that follows works fine in MKII but doesn't stretch the chapter title in MKIV. What must I change? Also, I want to convert the chapter number to text before stretching it. Has anything been done to the routines that convert numerals to alpha characters since last summer? Thanks, Tom -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Tuesday, July 06, 2010 12:19 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \stretched in chapter titles in MKII Am 05.07.10 21:15, schrieb Tom: I am trying to stretch two lines of text to the same width for use as a chapter head. I have two major problems: 1. The second line of text is appended to the end of the first line instead of being placed below it. 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}. Because of these errors I have hardcoded the values in the example that follows: \define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \chapter{Test Chapter Title} \input knuth \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \stretched in chapter titles in MKII
I'm sorry for being so thick but this code errors out when I run it under TexLive 2010 MKIV. The problem seems to be in the processing of textcommand, so I commented it out. The error went away and the \ChapterNumberCommand seemed to execute correctly. However, I want to stretch the title as well as the chapter number, so that is not a solution. I couldn't find documentation for \structuretitle and \structurenumber and am completely lost. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Tuesday, February 22, 2011 3:40 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \stretched in chapter titles in MKII Am 22.02.2011 um 01:18 schrieb Tom: The code that follows works fine in MKII but doesn't stretch the chapter title in MKIV. What must I change? Also, I want to convert the chapter number to text before stretching it. Has anything been done to the routines that convert numerals to alpha characters since last summer? Use \structuretitle and \structurenumber to access the values. \defineconversion [tom] [One,Two,Three,Four,Five,.] \define[1]\ChapterTextCommand {\line{\expanded{\stretched{\structuretitle \define[1]\ChapterNumberCommand {\line{\expanded{\stretched{Chapter \convertnumber{tom}{\structurenumber} \setuphead [chapter] [ alternative=middle, style=\ssc, textstyle=\bf, numberstyle=\tf, textcommand=\ChapterTextCommand, numbercommand=\ChapterNumberCommand] \starttext \chapter{Test Chapter Title} \input knuth \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Setting starting chapter number
I have the need to start a document on a chapter number greater than 1 but cannot find the command that sets the starting chapter number. I assume that such a command exists and have probably overlooked the right one. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] \stretched in chapter titles in MKII
I can actually use this for books that don't have chapter titles because I like how it appears with a font like Iwona-light. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Tuesday, February 22, 2011 5:15 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \stretched in chapter titles in MKII Am 22.02.2011 um 14:42 schrieb Tom: I'm sorry for being so thick but this code errors out when I run it under TexLive 2010 MKIV. The problem seems to be in the processing of textcommand, so I commented it out. The error went away and the \ChapterNumberCommand seemed to execute correctly. However, I want to stretch the title as well as the chapter number, so that is not a solution. I couldn't find documentation for \structuretitle and \structurenumber and am completely lost. Use the ConTeXt minimals or use a more pleasant layout for your headers, the stretched titles don't look very nice. 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 ___ ___ 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] Setting starting chapter number
Thanks, Wolfgang. That did the trick. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Wednesday, February 23, 2011 2:17 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Setting starting chapter number Am 23.02.2011 um 05:34 schrieb Tom: I have the need to start a document on a chapter number greater than 1 but cannot find the command that sets the starting chapter number. I assume that such a command exists and have probably overlooked the right one. http://wiki.contextgarden.net/Reference/en/setupheadnumber 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 ___
Re: [NTG-context] including pdf
I have a somewhat related question in that I am creating a document that will be used as an appendix to other documents. So, I can control the various aspects of the PDF that is created and use \copypages. What I want to do is number the pages A-1, etc. (or B-1, etc. depending on which appendix it will be placed). That will avoid coordinating page numbers with those in the documents to which it will be appended. What I can't figure out how to do is to prefix the pagenumber with A- (or B-). It is probably a simple matter but I can't figure out how to do it. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] [***SPAM***] \type works differently in MKIV than MKII
The following code creates the desired output in MKII but the \par commands appear to be ignored by MKIV: \starttext \type+{\framed[frame=off,align=middle]+ \par \type+ \{\placefigure [here]+ \par \type+ {none}+ \par \type+ {\externalfigure[frontispiece][width=\textwidth]}}}+ \par \par \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Fonts in ConTeXt is now available from boekplan.com
Is this book going to be available in the U.S.? If so, where can I find it? If not, may I suggest that you upload your PDFs to CreateSpace.com and have it made available to buyers through Amazon.com. I normally don't like limiting a book's availability to a single reseller, but for a niche book it makes sense. There is no cost to upload the book but an optional $39 fee that reduces print costs dramatically. There is no inventory cost as books are printed only when customers order copies. If multiple titles are to be published, using Lightning Source may make more sense for serving the U.S. market. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Marco Pessotto Sent: Tuesday, March 01, 2011 2:19 PM To: ntg-context@ntg.nl Subject: Re: [NTG-context] Fonts in ConTeXt is now available from boekplan.com Taco Hoekwater t...@elvenkind.com writes: After some delays, thankfully the book Fonts in ConTeXt is now finally available for immediate ordering. Due to the high costs of shipping and bank payment, could you tell me if the book Layouts in ConTeXt will be out as scheduled in a month (so I'll wait to buy them both, saving some logistic money)? As always, thanks for all you do. Bests -- 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 ___ ___ 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] (no subject)
The following code seems to ignore both justification (to the extent that a mono-spaced font could be justified) and the right margin. I recall seeing something that deals with this problem somewhere but can't recall where. \starttext \tt Janet had gone away to get the bath ready, when my aunt, to my great alarm, became in one moment rigid with indignation, and had hardly voice to cry out, {\quotation Janet! Donkeys!} Upon which, Janet came running up the stairs as if the house were in flames, darted out on a little piece of green in front, and warned off two saddle-donkeys, lady-ridden, that had presumed to set hoof upon it; while my aunt, rushing out of the house, seized the bridle of a third animal laden with a bestriding child, turned him, led him forth from those sacred precincts, and boxed the ears of the unlucky urchin in attendance who had dared to profane that hallowed ground. \rm \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Am not getting Roman numeral page numbers in MKIV
The following code is intended to produce lower-case Roman numeral page numbers for the first 3 pages before switching to Hindu-Arabic numerals starting with the Introduction. However, I get Hindu-Arabic numerals instead of the lower-case Roman numerals page numbers. \definehead [intro][chapter] \setuphead [intro][number=no] \setuppagenumbering [state=start, conversion=romannumerals, location=bottom] \startsectionblockenvironment[frontpart] \definecombinedlist [content][intro,chapter,section] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \stopsectionblockenvironment \startsectionblockenvironment[backmatter] \stopsectionblockenvironment \starttext \setuppagenumber[state=start] \startfrontmatter %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \setuppagenumber[state=start,conversion=number,number=1] \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Roman numeral page numbers produced in MKII
After posting the message about the following code not generating lower-case Roman numeral page numbers, I tested the code with MKII and it works fine. There must be a difference in how page number conversion is done between MKII and MKIV. \definehead [intro][chapter] \setuphead [intro][number=no] \setuppagenumbering [state=start, conversion=romannumerals, location=bottom] \startsectionblockenvironment[frontpart] \definecombinedlist [content][intro,chapter,section] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \stopsectionblockenvironment \startsectionblockenvironment[backmatter] \stopsectionblockenvironment \starttext \setuppagenumber[state=start] \startfrontmatter %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \setuppagenumber[state=start,conversion=number,number=1] \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \setuppagenumbering [state=start, conversion=numbers, location=bottom] \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Am not getting Roman numeral page numbers in MKIV
In MKIV, I am still unable to get lower-case Roman numeral page numbers on the front matter pages, but if I use frontpart in the \defineconversionset instead of frontmatter, the page numbers in the ToC are converted. Where is a good explanation of the structureblockenvironment? \definestructureconversionset[frontpart:pagenumber][][romannumerals] %pagenumbers in TOC not converted if frontmatter \definestructureconversionset[bodymatter:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \definehead [intro][chapter] \setuphead [intro][number=no] \startstructureblockenvironment[frontmatter] %whether frontpart or frontmatter seems to make no difference \setuppagenumbering [conversion=romannumerals, location=bottom] \setuppagenumber[number=1] \definecombinedlist [content][intro,chapter,section] \stopstructureblockenvironment \startstructureblockenvironment[bodymatter] \setuppagenumbering [conversion=numbers, location=bottom] \setuppagenumber[number=1] \stopstructureblockenvironment \startstructureblockenvironment[backmatter] \stopstructureblockenvironment \starttext \startfrontmatter % errors on startfrontpart %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \setuppagenumbering [state=start, conversion=numbers, location=bottom] \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Friday, March 11, 2011 8:29 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV Am 11.03.2011 um 06:00 schrieb Jeong Dalyoung: Also I use \startstructureblockenvironment[backpart] instead of \startsectionblockenvironment[backmatter]. You can use both but we should mention in manuals, the wiki etc. only the second. 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 ___ ___ 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] Am not getting Roman numeral page numbers in MKIV
I used to think I was of average intelligence but I can't figure out to do the most basic thing in ConTeXt. My current problems with this simple code are: 1. Front matter page numbers are not lower-case Roman numerals although they are listed as such in the TOC. 2. The Introduction is not listed in the TOC. 3. Page numbering isn't reset to 1 in the bodymatter section. Obviously, I'm not reading the correct documentation or am too stupid to understand what I am reading. \definehead [intro][chapter] \setuphead [intro][incrementnumber=no] \definestructureconversionset[frontpart:pagenumber][][romannumerals] %pagenumbers in TOC not converted if frontmatter \definestructureconversionset[bodymatter:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \setuplist[intro][pageconversionset=pagenumber] \startstructureblockenvironment[frontmatter] %whether frontpart or frontmatter seems to make no difference \setuppagenumber[number=1] \setuppagenumbering[state=start,location=bottom,conversion=romannumerals] \definecombinedlist [content][intro,chapter,section] \stopstructureblockenvironment \startstructureblockenvironment[bodymatter] \setuppagenumber[state=start,number=1] \setuppagenumbering[state=start,location=bottom,conversion=numbers] \stopstructureblockenvironment \startstructureblockenvironment[backmatter] \stopstructureblockenvironment \starttext \startfrontmatter % errors on startfrontpart %sample front matter \input knuth %page numbers not being converted to Roman numerals \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \intro{Introduction} %is not appearing in TOC \input knuth %page number not being set to 1 \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Am not getting Roman numeral page numbers in MKIV
Thank you for taking the time to look into this for me, Dalyoung. I changed bodymatter to bodypart in two places and got the same results as you did. Page numbering is reset to 1 for the Introduction. However, I still don't get Roman numerals in the front part and, as you also experienced, the TOC is not listed in the TOC. I am using Texlive 2010, which I downloaded on February 11, just two months ago yesterday. One would expect such basic functions to be rock solid in MKIV by now. What version are you using? I have avoided downloading Minimals for the reasons mentioned in the thread currently running on documentation plus that I don't want to be constantly downloading new versions because of serious bugs and having simple things that formerly worked to no longer work due to one of these bugs. I am not using advanced features by any means. This is very frustrating. BTW, where did you read to use front part instead of frontmatter? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Jeong Dalyoung Sent: Saturday, March 12, 2011 3:35 AM To: ntg-context@ntg.nl Subject: Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV Dear Tom, Since I am an enduser of ConTeXt, I couldn't expalin what happens here. I just run your code in the mail and got the following results. 1. Front matter page numbers are not lower-case Roman numerals although they are listed as such in the TOC. The Roman numerals in both front part and in TOC. 2. The Introduction is not listed in the TOC. Same as your output. No 3. Page numbering isn't reset to 1 in the bodymatter section. Same as you, but if I change \startstructureblockenvironment[bodymatter] to \startstructureblockenvironment[bodypart], then Introduction starts from page 1. So I guess that there are something between [bodymatter] and [bodypart]. best regards, Dalyoung ___ 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 ___ ___ 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] Minimals installation problem
After installing Minimals apparently successfully on a Windows Vista system, I got the following messages when executing context hello: MTXrun | forcing cache reload MTXrun | resolvers: loading configuration file 'C:/Context/tex/texmf/web2c/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' The directory name, Context, is not longer than eight characters and has no embedded spaces, so that should not be a problem. Executing texexec hello works fine. However, I want to use MKIV not MKII. BTW, I chose the current option to get a stable version. What could be the problem? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Is Minimals ready for non-developers to use?
Dalyoung, I attempted to install Minimals on my Windows system--twice--to no avail. I selected the current option because I don't want to be constantly updating the software when I am not using anything that remotely resembles cutting edge features. I am using a short, lower-case directory name as suggested. MKII appears to work fine but I get the following messages when I try to compile Hello.tex: MTXrun | forcing cache reload MTXrun | resolvers: loading configuration file 'C:/ctm/context/tex/texmf/web2c/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' I also get similar errors when attempting to run the following: mtxrun --selfupdate mtxrun --generate luatools --generate context --make From the message archives I see that others have had similar problems but I don't understand what the suggested fixes were. One massage stated that the instructions on ConTeXtGarden were deprecated, but I don't know if the instructions have been changed since that time. Do you have any idea what the problem might be? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Jeong Dalyoung Sent: Sunday, March 13, 2011 8:49 AM To: ntg-context@ntg.nl Subject: Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV Dear Tom, What version are you using? I am using minimal not TeXlive2010. Of course, there are some bugs in beta. But it would be fixed soon. Moreover, you can have more than one Minimal folder. So it is easy to use stable version if the beta has bugs. BTW, where did you read to use front part instead of frontmatter? There was a thread whose title is Roman Page numbers. And among the mails on 2009. 2. 4, there was a sample written by Wolfgang . \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \startstructureblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[number=1] \stopstructureblockenvironment \startstructureblockenvironment[bodypart] \setuppagenumber[number=1] \stopstructureblockenvironment \starttext \startfrontmatter \completecontent[criterium=all] \chapter{Intro} \input tufte \stopfrontmatter \startbodymatter \chapter{knuth} \input knuth \stopbodymatter \stoptext Mailing list is a good place for me to learn ConTeXt. There are so many things which are not described in the manual. I cannot give you a solution. But many experts who are reading this list will give you a solution. Cheers, Dalyoung ___ 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] Is Minimals ready for non-developers to use? (Tom)
Dalyoung, To the contrary, You have been most helpful. Installing the latest version of Minimals worked fine but I wonder why they even advertise that there is a stable version to be downloaded. I guess they mean a stable version of MKII. I had the same experience that you had with the Introduction not showing up in the TOC. Do you know how to report a bug? Thank you for your assistance and moral support. For awhile I thought I was going nuts. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Jeong Dalyoung Sent: Monday, March 14, 2011 5:16 AM To: ntg-context@ntg.nl Subject: Re: [NTG-context] Is Minimals ready for non-developers to use? (Tom) Dear Tom, I am sorry that my experience is not help for you. I am usning Mac OS X. I just downloaded first-setup.sh and run it. Then it installs minimal and makes formats well. Minimal's current version: 2011.02.25 22:03 This is LuaTeX, Version beta-0.65.0-2010121316 However, I believe that Mojca's suggestion will relieve you from the install problem. Hope you succeed to install stable ConTeXt. Best regards, Dalyoung ___ 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 ___ ___ 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] Is Minimals ready for non-developers to use? (Tom)
Thank you for explaining this, Mojca. Knowing that it will be fixed sometime before September gives me hope. In the meantime, I think I have a workaround that, although awkward, will create a correct PDF. What I will do is create a PDF that is correct except for the TOC that Context generates, create a correct TOC PDF with another tool, then create a new PDF with the good pages from the original PDF and the bad TOC replaced by the good one. Is there a list of known bugs somewhere? That would eliminate a lot of frustration and your having to deal with problems that are already being handled. Is it possible for one to create a new font style? For example, if I have a need for two different sanserif fonts (Iwona and Helvetica for the sake of argument) to be used sporadically throughout a document. It would be nice to be able to do something like \ss1 to select the first one and \ss2 to select the second one. \ss to select the first one and \aa (or two other letters) to select the other. Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: Mojca Miklavec [mailto:mojca.miklavec.li...@gmail.com] Sent: Monday, March 14, 2011 2:56 PM To: mailing list for ConTeXt users Cc: Tom Subject: Re: [NTG-context] Is Minimals ready for non-developers to use? (Tom) On Mon, Mar 14, 2011 at 14:22, Tom wrote: Dalyoung, To the contrary, You have been most helpful. Installing the latest version of Minimals worked fine but I wonder why they even advertise that there is a stable version to be downloaded. When minimals were created, a new stable version was released approximately once a week. It used to be a problem to get the beta version working since beta often depended on a new version of luatex (which was also released every two/three weeks, but often not synchronized with ConTeXt releases). Now Hans only releases a stable version twice a year or so. The problem is that minimals have not been designed with that in mind and there is only a single version of texmfcnf.lua and only a single version of luatex binary. Consequently minimals can only work either with beta or with current when the two versions diverge, but not with both and beta has priority. I need to change the way the distribution works entirely, from the grounds up (I have many parts ready, but not ready to publish yet). An easy solution would be to create another mirror and only provide a working current version there. I guess they mean a stable version of MKII. I had the same experience that you had with the Introduction not showing up in the TOC. Do you know how to report a bug? You don't need to report it. I'm aware of that flaw. I could do a temporary fix, but I would prefer to fix it properly. I'm sorry that it alredy took me several years to address those issues, but I promise to fix it before the conference. Properly. You also need to keep in mind that even though it is advertized as stable, bugs won't be fixed (many project often have at least two branches of development - one for fixing the released version and one for real development; the released version should get bugfixes, but in context development that doesn't and won't happen unless some volunteer starts carefully checking the new code and only applies bugfixes to the stable version). So most people that use ConTeXt actively need bugfixes very often and the only way to get the bugs fixed is to use the latest version. Well, latest version comes with its own bugs, but at least you have a chance to get them fixed quickly. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] Minimals ignores structureblockenvironment for frontmatter etc.
Minimals MKIV ignores the structureenvironment blocks when the suffix is 'matter' but applies them if the suffix is 'part.' Furthermore, they are applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc. blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks. The following code executes but does not apply the environment block commands. Commenting out the three \startstructureblockenvironment commands with 'matter arguments and uncommenting the three 'part' commands will cause the environment block commands to be executed. Ironically, the \start-\stop pairs between \starttext and \stoptext error if 'part' is used but execute if 'matter.' \def\MyFrontMatterCommand#1#2% #1 is number, #2 is text {\framed[frame=off,align=middle,width=broad] {\switchtotypeface[ChapterStart] #2}} \def\MyChapterCommand#1#2% #1 is number, #2 is text {\framed[frame=off,bottomframe=on,topframe=off] {\vbox{\centerline{\headtext{chapter} #1}\par\blank{\centerline{#2} \definepagebreak[mychapterpagebreak][yes,header,right] \startstructureblockenvironment[frontmatter] %ignored if frontmatter, applied if frontpart %\startstructureblockenvironment[frontpart] \setuppagenumbering[state=start,location=bottom,conversion=romannumerals] \setuphead[chapter] [command=\MyFrontMatterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, number=no,after={\blank[0.5in]}] \stopstructureblockenvironment \startstructureblockenvironment[bodymatter] %ignored if bodymatter, applied if bodypart %\startstructureblockenvironment[bodypart] \setuppagenumbering[alternative=doublesided,location=] \setuppagenumbering[state=start,location=bottom,conversion=numbers] \setuphead[chapter] [command=\MyChapterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, after={\blank[0.5in]},before={\blank[force,1.0in]} \placeinitial] \stopstructureblockenvironment \startstructureblockenvironment[backmatter] %ignored if back, applied if backpart %\startstructureblockenvironment[backpart] \setuphead[title] [command=\MyFrontMatterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, number=no,after={\blank[0.25in]}] \setuphead[chapter] [command=\MyFrontMatterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, number=no,after={\blank[0.25in]}] \stopstructureblockenvironment \starttext \startfrontmatter % errors if startfrontpart %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \chapter{Introduction} \input knuth \stopfrontmatter \startbodymatter %errors if startbodypart \chapter{I Was Born} \input knuth \chapter{I Observe} Lorem {\index{lorem}}ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ipsum turpis, imperdiet vel aliquam eu, iaculis at lorem. Proin ut orci ac dui sodales commodo vel quis sem. Etiam nunc odio, luctus non cursus elementum, elementum non. \stopbodymatter \startbackmatter %errors if startbackpart \title{Appendices} \page[blank] \completeindex \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Minimals ignores structureblockenvironment for frontmatter etc.
Thank you, Wolfgang. Your table is most helpful. This can probably be found in the documentation but not where I looked. This probably relates to the recent discussion regarding manuals for novices. My observation is that \completecontent and \completeindex are treated like chapter starts in that 'Contents' and 'Index' are formatted as if they were chapter titles. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Sunday, March 20, 2011 9:49 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Minimals ignores structureblockenvironment for frontmatter etc. Am 20.03.2011 um 14:37 schrieb Tom: Minimals MKIV ignores the structureenvironment blocks when the suffix is 'matter' but applies them if the suffix is 'part.' Furthermore, they are applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc. blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks. The following code executes but does not apply the environment block commands. Commenting out the three \startstructureblockenvironment commands with 'matter arguments and uncommenting the three 'part' commands will cause the environment block commands to be executed. Sectionblocks have two names, one which you use for the settings and another one when you enable it in your text, e.g. frontmatter has the internal name frontpart but in the document you use it with frontmatter. | Name | Command (\startXXX ... \stopXXX) | |--- | frontpart | frontmatter | | bodypart | bodymatter | | appendix | appendices | | backpart | backmatter | 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 ___ ___ 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] Table of Contents entries without page numbers
It is relatively easy to create table of contents entries without chapter numbers, but I can't figure out how to include entries without page numbers. I want to place a title page, 'Appendices,' in the ToC after the last chapter and before the first appendix. I can easily create the page using \title{Appendices} but it doesn't show up in the ToC. Using \chapter{Appendices} creates a ToC entry with a page number and an appendix number, which can be eliminated. There must be some way of placing headers within a ToC. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Round-corner textbox with shadow
Shadows on round-corner textboxes are producing square-corner shaded boxes with square-corner shadows. The following code illustrates the problem and should run asis. \def\Demos{ \startuniqueMPgraphic{shadow} fill OverlayBox shifted (4pt,-4pt) withcolor .8white ; fill OverlayBox withcolor .8white ; draw OverlayBox withcolor black ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay [shadow] [\uniqueMPgraphic{shadow}] \setupcolors[state=start] \startframedtext[ height=fit, width=\textwidth, location=inmargin , align=low, frame=on, % framecolor=black, framecorner=round, frameradius=.0625 in, background=shadow, %substitute screen for shadow and get clean box BUT no shadow backgroundscreen=0.9, backgroundcorner=round, backgroundradius=.0625 in, bodyfont=9pt, offset=0.05 in ] \setuptables[distance=small,bodyfont={9pt,sansserif}] \starttable[s1|Br|o4l|Br|l|] \NC Name:\NC \getvariable{Book:Demos}{name} \NC Nickname: \NC \getvariable{Book:Demos}{nickname} \NC\AR \NC DOB: \NC \getvariable{Book:Demos}{dob} \NC Height: \NC \getvariable{Book:Demos}{height} \NC\AR \NC Weight: \NC \getvariable{Book:Demos}{weight} \NC Age: \NC \getvariable{Book:Demos}{age} \NC\AR \NC Tribe: \NC \getvariable{Book:Demos}{tribe} \NC Home: \NC \getvariable{Book:Demos}{home} \NC\AR \NC Parents: \NC \THREE \getvariable{Book:Demos}{parents}\NC\AR \doifnot {\getvariable{Book:Demos}{parentsextra}}{}{\NC \NC \THREE \getvariable{Book:Demos}{parentsextra} \NC\AR} \stoptable \starttable[s1|Br|l|] \NC Early Schooling: \NC \getvariable{Book:Demos}{earlyschooling} \NC\AR \doifnot {\getvariable{Book:Demos}{laterschooling}}{}{\NC Later Schooling: \NC \getvariable{Book:Demos}{laterschooling} \NC\AR} \doifnot {\getvariable{Book:Demos}{honors1}}{}{\NC Honors: \NC \getvariable{Book:Demos}{honors1} \NC\AR} \doifnot {\getvariable{Book:Demos}{honors2}}{}{\NC \NC \getvariable{Book:Demos}{honors2} \NC\AR} \doifnot {\getvariable{Book:Demos}{honors3}}{}{\NC \NC \getvariable{Book:Demos}{honors3} \NC\AR} \doifnot {\getvariable{Book:Demos}{honors4}}{}{\NC \NC \getvariable{Book:Demos}{honors4} \NC\AR} \doifnot {\getvariable{Book:Demos}{honors5}}{}{\NC \NC \getvariable{Book:Demos}{honors5} \NC\AR} \doifnot {\getvariable{Book:Demos}{honors6}}{}{\NC \NC \getvariable{Book:Demos}{honors6} \NC\AR} \stoptable \stopframedtext } \starttext \setvariables[Book:Demos] [name={Glenn Scobey Warner}, nickname={Pop, The Old Fox}, dob={4/5/1871}, height={6'0}, weight={205}, age={}, tribe={N/A}, home={Springville, NY}, parents={William H. Warner, Adaline Scobey}, parentsextra={}, earlyschooling={Griffith Instatute}, laterschooling={Cornell University}, honors1={College Football Hall of Fame, Charter Member, 1951}, honors2={Helm's Athletic Foundation Hall of Fame, 1951}, honors3={Stanford Athletic Hall of Fame}, honors4={Greater Buffalo Hall of Fame, 2001}, honors5={}, honors6={} ] \Demos \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey Football player w C small image003.jpg___ 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] Block quotes with multiple paragraphs
I am away from home and don't have my reference books handy, so need to as a simple question: When block quotes include multiple paragraphs are these paragraphs separate by \medskip or \smallskip? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey Football player w C small image001.jpg___ 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] First page of chapter
I am struggling with getting the first pages of my chapters laid out as desired. What I want on the top third of the page is a roughly 2 inch square graphic on the left with the chapter number and chapter title on the right in large print. The following chunk errors out as shown but works when hard-coded. Am I headed off in the wrong direction by trying to use columns in this way? Previously, I tried treating the chapter number and title as text with startfiguretext. It works but I can't format the chapter titles to fit properly. Any suggestions for a ConTeXt beginner? \def\ChapterTop#1#2{ \startcolumns[n=2] \placefigure[left]{none}{\externalfigure[chief]} \column \switchtobodyfont[26pt] {\ss\bf\sl #1} \blank[large]\blank[large] {\ss\bf #2} \stopcolumns} \setuphead[chapter] [command=\ChapterTop, header=high,footer=pagenumber,page=center] \input c:. %chapter used to test the code Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey Football player w C small image003.jpg___ 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] First page of chapter
That works. Now I have to figure out how to insert the picture in the place marked GRAPHIC, get rid of all the boxes and get the page number to print on the bottom of the first page of the chapter. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Andreas Harder Sent: Tuesday, February 02, 2010 5:04 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] First page of chapter I am struggling with getting the first pages of my chapters laid out as desired. What I want on the top third of the page is a roughly 2 inch square graphic on the left with the chapter number and chapter title on the right in large print. The following chunk errors out as shown but works when hard-coded. Am I headed off in the wrong direction by trying to use columns in this way? Previously, I tried treating the chapter number and title as text with startfiguretext. It works but I can't format the chapter titles to fit properly. Any suggestions for a ConTeXt beginner? \def\ChapterTop#1#2{ \startcolumns[n=2] \placefigure[left]{none}{\externalfigure[chief]} \column \switchtobodyfont[26pt] {\ss\bf\sl #1} \blank[large]\blank[large] {\ss\bf #2} \stopcolumns} \setuphead[chapter] [command=\ChapterTop, header=high,footer=pagenumber,page=center] \input c:. %chapter used to test the code Hi! I think you search for something like this: \def\ChapterTop#1#2% bottom-aligned {\framed[width=broad,offset=overlay] {\framed[width=2in,height=2in]{GRAPHIC}\hfill \framed[align=right]{#1\blank[2*big]#2}}} \definetext[ChapterFoot][footer][pagenumber] \setuphead [chapter] [command=\ChapterTop, header=high, footer=ChapterFoot, numberstyle=\ssbid, textstyle=\ssbfd] \starttext \showframe \dorecurse{3}{\chapter{First Chapter}\dorecurse{5}{\input tufte}} \stoptext Greetings Andreas ___ 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] Figure not placed at margin
The following code fragment places the desired graphic at the beginning of the chapter but indents it to the right a quarter or 3/8 of an inch. The text (parameter #2, the chapter title) prints to the right of the figure but sometimes extends into the right margin. Other times, it wraps down to following lines as it should. The text begins right against the graphic (in a blank space) as it should, but the whole thing, graphic and text, are offset to the right rather than being aligned with the left margin. All other figures in the document are where they are supposed to be. Any ideas? \def\Myheader#1#2{ \setupfloats[offset=none,margin=0 in] \startfiguretext [left] [fig:graphic] {none} {\externalfigure[graphic][frame=off]} {\switchtobodyfont[26pt] {\ss\bf\sl #1}} \godown[.5in] {\ss\bf #2} \stopfiguretext} Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Changing Index Format
Could someone point me to documentation that describes how to change the format of the index created by \placeindex and \completeindex? In particular, I want to get rid of the entries created for the letters of the alphabet because I find them an unnecessary use of space. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] indent lost after \placefigure
When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] indent lost after \placefigure
This works, but my problem may be self-inflicted by my code for chapter first pages. I want different a different first page format for the introduction, contents and appendices than I have for regular chapters. I suppose that \chapter can be fed parameters other than the chapter name, but can't find them described in the manual. It isn't clear to me if \setuphead can be used for these non-standard chapters. Tom -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Alan BRASLAU Sent: Thursday, February 11, 2010 8:41 AM To: ntg-context@ntg.nl Subject: Re: [NTG-context] indent lost after \placefigure On Thursday 11 February 2010 02:14:12 Tom wrote: When I place a figure at the bottom of a page, everything is fine if it splits a paragraph, but if it falls between paragraphs, indentation of at least one of the paragraphs, generally the one coming after the figure, is lost. It appears that this has been a problem for some people over the years. On Thursday 11 February 2010 13:23:43 Peter Münster wrote: \setupitemize[indentnext=auto] % should be default value everywhere IMHO So here is the `bug' related to this entire thread -- minimal example: \setupindenting [medium,yes] \setupfloats [indentnext=auto] \starttext \input knuth \placefigure [here] {none} {\externalfigure [cow]} \input knuth \stoptext Doesn't work, but \setupfloats [indentnext=yes] forces knuth after the figure to be indented. Alan PS: Your opinion is not so humble, and I do not really see the rational why indentnext=no is the default for most things* rather than indentnext=auto. *OK, perhaps \setupheads... PPS: Subject: What do you miss in ConTeXt? On Tuesday 09 February 2010 19:51:13 Hans Hagen wrote: \composemanual [title=The real context manual,writingstyle=knuth] Let's do it! ___ 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 ___ ___ 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] chapter headers (was: indent lost after \placefigure)
Thanks, this is very helpful. I do have a couple of questions, though. Should I insert a section for the body of the text something like this? \startsectionblockenvironment[bodypart] \setuphead[chapter][...] \stopsectionblockenvironment \completecontent causes two blank (except for header) to be produced before the table of contents but \placecontent doesn't. It doesn't seem to me that the extra pages should be created. Could I have done something that caused this? Tom -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Thursday, February 11, 2010 2:59 PM To: mailing list for ConTeXt users Subject: [NTG-context] chapter headers (was: indent lost after \placefigure) Am 11.02.10 20:50, schrieb Tom: This works, but my problem may be self-inflicted by my code for chapter first pages. I want different a different first page format for the introduction, contents and appendices than I have for regular chapters. I suppose that \chapter can be fed parameters other than the chapter name, but can't find them described in the manual. It isn't clear to me if \setuphead can be used for these non-standard chapters. you can use context's document structure environments and change the layout for the chapter pages in the front- and backmatter \startsectionblockenvironment[frontpart] \setuphead[chapter][...] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setuphead[chapter][...] \stopsectionblockenvironment \starttext \startfrontmatter \chapterIntroduction} \complecontent \stopfrontmatter \startbodymatter % the content \stopbodymatter \startappendices \chapter{A appendix chapter} \stopappendices \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter headers
Wolfgang, I found a spurious ] in the setuphead for the frontpart. Somehow it didn't cause a compile error but was treated as text that I didn't notice at first. Because I want the first pages of regular chapters to look different than those for the contents, introduction and index, I created a sectionblockenvironment and a setuphead for the regular chapters. Now to figure out how to keep page numbering from starting until the introduction without putting special code in that chapter. Tom -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Thursday, February 11, 2010 5:10 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] chapter headers Am 11.02.10 22:41, schrieb Tom: Thanks, this is very helpful. I do have a couple of questions, though. Should I insert a section for the body of the text something like this? \startsectionblockenvironment[bodypart] \setuphead[chapter][...] \stopsectionblockenvironment You can do this but you don't have to, general settings for the headers in all blocks can be done outside of the sectionblock environment and only certain setups should be done in the block. \completecontent causes two blank (except for header) to be produced before the table of contents but \placecontent doesn't. It doesn't seem to me that the extra pages should be created. Could I have done something that caused this? Who knows, i can't see what you did in your document from here. \completecontents insert a header before the TOC while the \placecontent produce only the TOC without a header. 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 ___ ___ 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] Suggestions on fonts and foundries
Some time back I recall seeing a message in which someone discussed using fonts available from foundries and recommended certain ones. Unfortunately, I can't seem to find that message. I will probably need one serif font for the text of the book, a plain sans serif font to use for entries in a table, a fancier sans serif font for chapter titles and, possibly a different not-too-plain sans serif font for page headers. Also, I can't figure out how to tell ConTeXt which font to use for page headers. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Blank page at end of chapter
I can't figure out how to turn off running headers on the blank pages that are inserted into a document to make the first page of the next chapter start on a right page. I'm probably overlooking something. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Embedding fonts
Printers that I deal with want the PDFs to have the fonts embedded. The PDFs that Texlive produces don't appear to have their fonts embedded and I can't find what option I must set or routine that must be run to embed the fonts. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Embedding fonts
I don't know what you mean by look like. Unable to find documentation of an option or command to embed (likely due to my looking in the wrong documentation), I searched the message archive and found a discussion of embedding fonts with Mark-IV. This led me to believe that fonts may not automatically embedded. After receiving your response, I looked at the properties of the PDF I created and found that the fonts are indeed embedded. I also transferred my PDF to another computer and, even though the PDF includes fonts not on that computer, the proper fonts were displayed. However, in 2-up view, odd-numbered pages display on the left on the other computer where they display on the right on mine. Both systems have Adobe Reader 8.1.2. I haven't found the option to set to get the document to display properly on the other computer. My document was produced by pdfTeX-1.40.9, PDF version 1.5 and opens with Adobe Reader 8.1 or so it says. Is there a way to select a different PDF version (older) to be produced? Some printers I work with want PDFs to be produced to earlier specs. Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Saturday, March 06, 2010 1:54 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Embedding fonts On Sat, Mar 6, 2010 at 05:33, Tom wrote: Printers that I deal with want the PDFs to have the fonts embedded. The PDFs that Texlive produces don't appear to have their fonts embedded and I can't find what option I must set or routine that must be run to embed the fonts. They are embded by default. How does your document look like? 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bibtex problems
I am now trying to create a bibliography database and have, I think, followed the documentation but to no good result. Myfile.tex contains the following: \setupbibtex[database=myfile] \starttex \startpublication ... \stoppublication \stoptext texexec --once myfile processes myfile then returns no ctx file found and ends with nothing to process What am I missing? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] bibtex problems
Here's where I'm at: 1. I Loaded bibdemo.tex on my machine and ran it. The output looked good. 2. I Interspersed the commands from bibdemo into my document at what I thought were the proper places. That created a bibliography of one item--the one in xampl. 3. I want to create my own database of references to be used in my documents, but have a couple of questions: Q1. Do I create my database by creating MyReferences.tex with my text editor? Q2. Is MyReferences.bbl supposed to be created by \setupbibtex when it appears in a document? Q3. I am confused by the \cite[article-full] command in the example. I thought the specific publication to be cited would be reference by key or some other unique identifier and have no idea how article-full identifies the publication to be cited. I didn't used to be this stupid, but the decades have taken a toll. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Taco Hoekwater Sent: Wednesday, March 10, 2010 2:52 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] bibtex problems Tom wrote: I am now trying to create a bibliography database and have, I think, followed the documentation but to no good result. Myfile.tex contains the following: \setupbibtex[database=myfile] \starttex \startpublication ... \stoppublication \stoptext texexec --once myfile processes myfile then returns no ctx file found and ends with nothing to process What am I missing? It looks like you misunderstood the documentation quite a bit. Perhaps the wiki page helps? http://wiki.contextgarden.net/Bibliography Best wishes, Taco ___ 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 ___ ___ 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] \completepublications does not create index entry
\completepublications creates a satisfactory bibliography but doesn't create an index entry. Is there a parameter that I don't know about that makes this happen? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] \completepublications does not create index entry
Doh! Yes, I meant table of contents. I had index on my mind because the index follows the bibliography and it has an entry in the TOC. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Thursday, March 11, 2010 8:00 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \completepublications does not create index entry On Thu, 11 Mar 2010, Tom wrote: \completepublications creates a satisfactory bibliography but doesn't create an index entry. Is there a parameter that I don't know about that makes this happen? Erhm... why should the bibliography create an index entry? Did you mean an entry in table of contents? Aditya ___ 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 ___ ___ 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] \completepublications does not create index entry
That did the trick. Now I know that I have MkII. The next newbie question is: how do I create an entry in the TOC without it being assigned an appendix letter? After the entry for the last chapter and before the bibliography entry, I'd like APPENDICES to display and for bibliography to be appendix A. Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Thursday, March 11, 2010 8:47 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \completepublications does not create index entry On Thu, 11 Mar 2010, Tom wrote: Doh! Yes, I meant table of contents. I had index on my mind because the index follows the bibliography and it has an entry in the TOC. Indeed. MkII and MkIV behave differently with \completecontent. \usemodule[bib] \starttext \completecontent \completepublications \stoptext Gives references in the TOC with MkIV but not with MkII. To get references in the TOC with MkII, you can use \chapter{References} \placepublications[criterium=all] Aditya ___ 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 ___ ___ 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] \hyphenation problems
When I wrap text around the right side of a figure, the justification along the right margin is a bit ragged in a couple of places. One problem is that it can't hyphenate cfbdatawarehouse.com, even when I provide the hyphenation via a \hyphenation command. The malhyphenation error seems to be caused by the embedded dot. Another line ends with last letter of the last word on the line (head) extending into the margin. That word cannot be hyphenated. How does on get the justification to work correctly in such cases? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] \hyphenation problems
I am very confused. Inserting {\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} results in Example in very large type being placed in my output and seems not to affect the hyphenation or justification. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Monday, March 22, 2010 1:21 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \hyphenation problems Am 22.03.10 02:48, schrieb Tom: When I wrap text around the right side of a figure, the justification along the right margin is a bit ragged in a couple of places. One problem is that it can't hyphenate cfbdatawarehouse.com, even when I provide the hyphenation via a \hyphenation command. The malhyphenation error seems to be caused by the embedded dot. Another line ends with last letter of the last word on the line (head) extending into the margin. That word cannot be hyphenated. How does on get the justification to work correctly in such cases? \starttext {\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \hyphenation problems
Boy, am I thick. Here is an example that demonstrates the problem. You should be able to see that cfbdatawarehouse.com did not hyphenate. To get the malhyphenation error, it is necessary to uncomment the \hyphenation command. Changing the width of the figure to 2.0 inches will demonstrate additional ragged right problems. An unrelated issue is that the leading for the caption is larger than I would like. \definepapersize[6X9][width=6.14in, height=9.21in] \setuppapersize[6X9][6X9] \setuplayout[ width=middle, height=middle, backspace=.75 in, topspace=.5 in, header=.25 in, footer=0 in, headerdistance=.25 in, footerdistance=0 in, bottomspace=0.9 in, cutspace=.875 in, ] \setupcaptions[location=bottom,number=no,style=rm,align=middle] %\hyphenation{cfb-da-ta-ware-house-.-com} \starttext \placefigure [left] {{\centerline {\switchtobodyfont[9pt] Joel Wheelock in track uniform}} {\centerline {\switchtobodyfont[9pt]{\it Cumberland County Historical}}} {\centerline {\switchtobodyfont[9pt]{\it Society, Carlisle, PA {\externalfigure[dummy][width=1.8 in]} On the whole he was a good coach and deserves praise for developing such a fine squad out of so many raw recruits, for we must remember that only a few of our last year's Varsity men came back this year. The school's yearbook recorded 1917 as a 3--4 season but {\it cfbdatawarehouse.com} includes two more games, a forfeit by Temple and a 73--0 thrashing of Millersburg, giving Wheelock a 5--4 record for his only year as a head coach. \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Thomas A. Schmitz Sent: Monday, March 22, 2010 9:14 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \hyphenation problems On Mar 22, 2010, at 2:01 PM, Tom wrote: I am very confused. Inserting {\definedfont[Serif sa 8]^^45^^78^^61^^6d^^70^^6c^^65^^21} results in Example in very large type being placed in my output and seems not to affect the hyphenation or justification. I think Wolfgang was trying to steer you to this: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl Thomas ___ 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 ___ ___ 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] \hyphenation problems
As the Pennsylvania Dutch say, Wonderful good. The captions are now fine except when used in combinations of two images. Then the font and spacing is the same as for the text. The \setupcaption seems to be ignored for combinations. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Thomas A. Schmitz Sent: Monday, March 22, 2010 11:03 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] \hyphenation problems On Mar 22, 2010, at 3:16 PM, Tom wrote: Boy, am I thick. Here is an example that demonstrates the problem. You should be able to see that cfbdatawarehouse.com did not hyphenate. To get the malhyphenation error, it is necessary to uncomment the \hyphenation command. Changing the width of the figure to 2.0 inches will demonstrate additional ragged right problems. An unrelated issue is that the leading for the caption is larger than I would like. :-) Not sure if I can solve all your problems, but here are a few pointers: 1. for the url, you could use a command which provides a url that can be hyphenated. Surprisingly enough, it is called \hyphenatedurl{}. 2. TeX doesn't hyphenate in certain situations, e.g., when a word is already hyphenated (and apparently when it contains a period). In ConTeXt, you can wrap these symbols into ||, and TeX will happily hyphenate (see section 7.8 of cont-eni). In your case, you can write cfbdatawarehouse|.|com 3. Your caption: well, since you do not apply the bodyfontswitch to all of the lines, but to each line individually, you never give ConTeXt a chance to calculate the interlinespace. You shouldn't format individual lines, but use something like this: \setupcaptions[style={\switchtobodyfont[9pt]}, align=center] However, I was surprised to see that the caption was not centered below the image, so I ended up with \placefigure [left] {\framed[align=middle,frame=off]{Joel Wheelock in track uniform \\ {\it Cumberland County Historical \\ Society, Carlisle, PA}}} {\externalfigure[dummy][width=2.2 in]} This works, but seems like a kludge. Anything better? 4. As for words sticking out in the margin: TeX does its best, but sometimes, no good line breaks can be found. A certain word processor will then go on and stretch your interword space and even interletter space within words. TeX doesn't do that and will let words stick out to warn you. If you don't want to / can't edit the text, you'll have to allow it to be less strict. You should read about \setuptolerance in cont-eni, section 4.13. HTH Thomas ___ 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 ___ ___ 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] Incorrect font size in captions
Captions for individual figures display in the proper (9 pt) font but those for combinations do not. See example: \definepapersize[6X9][width=6.14in, height=9.21in] \setuppapersize[6X9][6X9] \setuplayout[ width=middle, height=middle, backspace=.75 in, topspace=.5 in, header=.25 in, footer=0 in, headerdistance=.25 in, footerdistance=0 in, bottomspace=0.9 in, cutspace=.875 in, ] \setupcaptions[style={\switchtobodyfont[9pt]}, location=bottom,number=no,align=raggedcenter] \starttext \placefigure [here]{none} \startcombination[2*1] {\externalfigure[s033-1b][width=.481\textwidth]} {Martin Wheelock\\{\it Cumberland County Historical Society}\\ {\it Carlisle, PA}} {\externalfigure[041-1b][width=.459\textwidth]} {Antonio Lubo\\{\it U. S. Army Military History Institute}} \stopcombination Some text for comparison of font size with captions. \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Incorrect font size in captions
Sorry for being so thick. I misread your previous message. Thank you for your kind assistance to a newbie. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Tuesday, March 23, 2010 11:43 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Incorrect font size in captions Am 23.03.10 15:37, schrieb Tom: \setupcaptions[style={\switchtobodyfont[9pt]}, location=bottom,number=no,align=raggedcenter] 'align' in \setupcaptions has nothing to do with the alignment of the captiontext, as i wrote in my other mail you need style={\switchtobodyfont[9pt]\raggedcenter} 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 ___ ___ 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] Selectively dropping page numbers
The Chicago Manual of Style, 14th edition, states that page numbers are normally omitted on pages containing only illustrations or tables, except in long sequences of figures or tables. Is it practical within ConTeXt to omit page numbers from a single page within a chapter? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Hanging indents
I have a series of paragraphs for which the first line of each should not be indented, but the following lines should be. I can't figure out what option or combination of options will give me this result. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Hanging indents
Exdent works fine when I substitute my text for Knuth in the example, but has a problem when I include it in my document. The first line of text after Exdent is called is not outdented, but is in all subsequent paragraphs as it should be. I tried calling Exdent for the paragraphs that start my document and get the same result. From that I surmise that I have set up something that overrides the outdenting on the first line of the first paragraph, but is overridden by Exdent after that. Do you have any ideas what it might be? I am getting Para 1 Line 1 Para 1 Line 2 Para 2 Line 1 Para 2 Line 2 Para 3 Line 1 Para 3 Line 2 ... When I should be getting Para 1 Line 1 Para 1 Line 2 Para 2 Line 1 Para 2 Line 2 Para 3 Line 1 Para 3 Line 2 ... Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Monday, April 05, 2010 2:53 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents On Sun, 4 Apr 2010, Tom wrote: I have a series of paragraphs for which the first line of each should not be indented, but the following lines should be. I can't figure out what option or combination of options will give me this result. You mean this? http://wiki.contextgarden.net/Shaped_paragraphs Aditya ___ 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 ___ ___ 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] Hanging indents
Aditya, It took me awhile to sort through all the code to find what was creating the problem. It appears that the code for the first page of a chapter is the culprit but I don't know why it's causing the problem. \definepagebreak[mychapterpagebreak][yes,header,right] %eliminates headers on blank pages \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}] \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \chapter{HangingIndent} \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Monday, April 05, 2010 1:52 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents On Mon, 5 Apr 2010, Tom wrote: Exdent works fine when I substitute my text for Knuth in the example, but has a problem when I include it in my document. The first line of text after Exdent is called is not outdented, but is in all subsequent paragraphs as it should be. I tried calling Exdent for the paragraphs that start my document and get the same result. From that I surmise that I have set up something that overrides the outdenting on the first line of the first paragraph, but is overridden by Exdent after that. Do you have any ideas what it might be? Can you create a minimal example that does not work? \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \starttext \startexdent \dorecurse{10}{Para 1: Some random text to fill space} \dorecurse{10}{Para 2: Some random text to fill space} \dorecurse{10}{Para 3: Some random text to fill space} \dorecurse{10}{Para 4: Some random text to fill space} \stopexdent \stoptext Aditya ___ 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 ___ ___ 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] Hanging indents
Thanks, Wolfgang. That did it. Because I wasn't using a section, I didn't pay attention to the indentnext=yes. The numbercommand is an artifact leftover from code used for numbered chapters that I neglected to delete. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Monday, April 05, 2010 6:30 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Hanging indents Am 06.04.10 00:19, schrieb Tom: Aditya, It took me awhile to sort through all the code to find what was creating the problem. It appears that the code for the first page of a chapter is the culprit but I don't know why it's causing the problem. \definepagebreak[mychapterpagebreak][yes,header,right] %eliminates headers on blank pages You change the style of the number but suppress it in the output, i guess there is some reason for this and i don't understand it. \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}] \setuphead[chapter][indentnext=yes] but i think the setup is used here http://wiki.contextgarden.net/Shaped_paragraphs just for fun. 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 ___ ___ 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] Extra page created at end of document
The following code creates an extra page at the end of the pdf for a total of 3 pages: \setuppagenumbering[location=,alternative=doublesided] \setuppagenumber[state=stop] \starttext %\startfrontmatter \input knuth %\stopfrontmatter \stoptext But this code doesn't create that third page: \setuppagenumbering[location=,alternative=doublesided] \setuppagenumber[state=stop] \starttext \input knuth \stoptext I need to handle the creation of my book using frontmatter, etc. parts and don't want to create that unneeded page at the end. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Extra page created at end of document
It now works on TexLive, which I assume is mk2. The Context manual doesn't seem to include the stop option for \page. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Peter Münster Sent: Tuesday, April 06, 2010 1:23 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Extra page created at end of document On Tue, Apr 06 2010, Tom wrote: The following code creates an extra page at the end of the pdf for a total of 3 pages: \setuppagenumbering[location=,alternative=doublesided] \setuppagenumber[state=stop] \starttext %\startfrontmatter \input knuth %\stopfrontmatter \stoptext It seems, that you're using mk2. There is no such problem with mk4. Here a workaround: \setuppagenumbering[location=,alternative=doublesided] \setuppagenumber[state=stop] \starttext \startfrontmatter \input knuth \stopfrontmatter \page[stop] \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 ___ ___ 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] Courier font in TexLive
I'm using TextLive 2008. ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2009.7.8 int: english/english Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Tuesday, April 06, 2010 7:08 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Courier font in TexLive On Tue, Apr 6, 2010 at 21:37, Tom wrote: The code that follows seems to work but gives me a warning: pdfTeX warning: pdftex.exe (file ec-urw-courier.map): cannot open font map file The PDF lists 3 embedded fonts: LMRoman10-Regular, LMSans10-Regular NimbusMonL-Regu. Does NumbusMonl-Regu looks like Courier? Which version of TeX Live are you using? With TL 2009 (or maybe I have an updated version) I get TeX Gyre Cursor without any warning (provided that I remove the first line that loads type-win). TG Cursor does look like Courier. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Courier font in TexLive
It appears that the Nimbus Mono L font that was substituted is close enough to Courier for my purpose. The only place I use it is for a single, short telegram. I will consider getting a newer version of TexLive for my next book. You make a good argument for getting it on DVD rather than downloading it. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Mojca Miklavec Sent: Wednesday, April 07, 2010 9:32 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Courier font in TexLive On Wed, Apr 7, 2010 at 02:23, Tom wrote: I'm using TextLive 2008. There used to be a zip with special font-support files for ConTeXt, but I have no idea where those zips can be found now. (Maybe old DVDs with TeX Live include the whole ConTeXt distribution.) The easiest answer would be: try to use a more recent ConTeXt version. Else you can still try to write your own map file, but that takes a bit of patience and knowledge (not particularly recommended). 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Aligning text to bottom of page
Is there a command that will align the text that follows to the bottom of the page? Copyright pages are often oriented this way. Another example of this is the end of chapter page in The TeXbook by Knuth. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] (no subject)
The following example computes page numbers correctly, places the correct entries into the TOC, and produces the desired page headers on the first pages of chapters. However, there are some things it doesn't do properly: 1. It puts headers on blank pages at the ends of chapters even after I inserted the code that takes care of that problem. 2. It seems to ignore some commands or wait until the next chapter to implement them. An example is the header on page vi. It's supposed to read viContents 3. It seems that commands in the \startsectionenvironment frontmatter block are ignored or overridden by commands that are for the body part. That is why I have so many setup commands ib the \starttext section. %figure on left - chapter number and title on right \def\MyChapterCommandM#1#2% #1 is number, #2 is text {\startfiguretext[left]{none} {\externalfigure[cow][width=.2\textwidth]} {\framed[frame=off,align=middle,width=broad] {\switchtobodyfont[15pt] #1\\\blank[small] #2}} \stopfiguretext} %no figure on left - chapter number and title on right \def\MyFrontMatterCommandM#1#2% #1 is number, #2 is text {\framed[frame=off,align=middle,width=broad] {\switchtobodyfont[15pt] #1\\\blank[small] #2}} %eliminate headers on blank page at end of chapter \definepagebreak[mychapterpagebreak][yes,header,next] %put pagenumber on bottom of first page of chapter \definetext[chapter][footer][pagenumber] \setuphead[chapter][header=high,footer=chapter,page=right] \setuppagenumbering[location=] \startsectionblockenvironment[frontpart] \definehead[mycontenttitle][chapter] \setuphead[mycontenttitle] [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf, header=empty,footer=empty,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in \placeinitial %comment out this line to eliminate drop capitals ] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupheadertexts [chapter][pagenumber][pagenumber][Content Example] \setuphead[chapter][page=mychapterpagebreak] \setuphead[chapter] [command=\MyChapterCommandM,textstyle=\ss\bf, header=empty,footer=empty,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in \placeinitial %comment out this line to eliminate drop capitals ] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupsectionblock[appendix][page=appendicespagebreak] \stopsectionblockenvironment \starttext \startfrontmatter \setuppagenumbering[state=start,alternative=doublesided,conversion=romannume rals] Some random text to occupy front matter pages. \blank[medium] \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \page[right] %\starthiding \setuphead[title] [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf, header=empty,footer=pagenumber,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in \placeinitial %comment out this line to eliminate drop capitals ] \setupheadertexts [Contents][pagenumber][pagenumber][Contents] \title{Content} %\stophiding %\mycontenttitle{Content} %displays Contents but drops the TOC \placecontent[alternative=c] \blank[medium] Random text added to push TOC onto a second page to test page headers. \blank[medium] \input knuth \input knuth \input knuth \input knuth \setupheadertexts [chapter][pagenumber][pagenumber][Content Example] \setuphead[chapter] [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf, header=empty,footer=pagenumber,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in \placeinitial %comment out this line to eliminate drop capitals ] \chapter{Preface} \input knuth \page[right] %switch from lower case Roman numberals to Arabic numbers \setuppagenumbering[state=start,alternative=doublesided,conversion=numbers] \setuppagenumber[state=start,number=1] \setuphead[chapter] [command=\MyChapterCommandM,textstyle=\ss\bf, header=empty,footer=pagenumber,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in \placeinitial %comment out this line to eliminate drop capitals ] \chapter{Introduction} \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \stopfrontmatter \startbodymatter \chapter{Chapter One} \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \chapter{Chapter Two} \input knuth \stopbodymatter \startappendices \page[stop] \stopappendices \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context
[NTG-context] Page headers drop capitals not working but pagenumbering is
The following code numbers the pages as I desired and the TOC lists those page numbers. However, it is not doing two things as I desire and would appreciate it if someone could indicate precisely which lines of code need to be corrected. In the front matter, page headers should be on the recto of the TOC (page vi) and pages 2 and 3 of the introduction. Page headers seem to be operating correctly in the body of the book. \placeinitial is not creating drop capitals on the first page of each chapter in the body of the text. Example code follows: %figure on left - chapter number and title on right \def\MyChapterCommandM#1#2% #1 is number, #2 is text {\startfiguretext[left]{none} {\externalfigure[flowers][width=.2\textwidth]} {\framed[frame=off,align=middle,width=broad] {\switchtobodyfont[15pt] #1\\\blank[small] #2}} \stopfiguretext} %no figure on left - chapter number and title on right \def\MyFrontMatterCommand#1#2% #1 is number, #2 is text {\framed[frame=off,align=middle,width=broad] {\switchtobodyfont[15pt] #1\\\blank[small] #2}} %eliminate headers on blank page at end of chapter \definepagebreak[mychapterpagebreak][yes,header,right] %put pagenumber on bottom of first page of chapter \definetext[chapter][footer][pagenumber] \setuphead[chapter][header=high,footer=chapter,page=mychapterpagebreak] \setuphead[title][header=high,footer=chapter,page=mychapterpagebreak] %turn off putting naked page numbers on pages \setuppagenumbering[location=] \setupsectionblock[bodypart][page=chapter] \setupsectionblock[frontpart][page=chapter] \startsectionblockenvironment[frontpart] \setuphead[title] [command=\MyFrontMatterCommand,textstyle=\ss\bf,number=no, header=empty,footer=chapter,page=mychapterpagebreak, after=\vskip 0.5in] \setuphead[chapter] [command=\MyFrontMatterCommand,textstyle=\ss\bf,number=no, header=empty,footer=chapter,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in \placeinitial %comment out this line to eliminate drop capitals ] \setupheadertexts[chapter] [chapter][pagenumber][pagenumber][chapter Example] \setupheadertexts[title] [title][pagenumber][pagenumber][title] \setuppagenumbering[alternative=doublesided] %\setupheader[state=stop] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumbering[alternative=doublesided] \setupheadertexts [chapter][pagenumber][pagenumber][Content Example] \setuphead[chapter] [command=\MyChapterCommandM,textstyle=\ss\bf, header=empty,footer=chapter,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in\placeinitial] %comment out this line to eliminate drop capitals \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupsectionblock[appendix][page=appendicespagebreak] \stopsectionblockenvironment \starttext \startfrontmatter Some random text to occupy front matter pages. \blank[medium] \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \page[right] \setuppagenumbering[state=start,alternative=doublesided,conversion=romannume rals,location=] \setupheader[state=start] \title{Contents} \placecontent[alternative=c,criterium=all] \blank[medium] Random text added to push TOC onto a second page to test page headers. \blank[medium] \input knuth \input knuth \input knuth \input knuth \chapter{Preface} \input knuth \page[right] %switch from lower case Roman numerals to Arabic numbers \setuppagenumbering[state=start,alternative=doublesided,conversion=numbers] \setuppagenumber[state=start,number=1] \setuphead[chapter] [command=\MyChapterCommandM,textstyle=\ss\bf,number=no, header=empty,footer=chapter,page=mychapterpagebreak, numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in \placeinitial %comment out this line to eliminate drop capitals ] \chapter{Introduction} \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \stopfrontmatter \startbodymatter \chapter{Chapter One} \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \chapter{Chapter Two} \input knuth \chapter{Chapter Three} \input knuth \page \stopbodymatter \startappendices \stopappendices \page[stop] \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Article titles not capitalized in bibliography
Book titles retain proper capitalization from the .bib file but articles from periodicals do not. Only the first word of an article title is capitalized in the .bbl file. Even proper names in titles lose their capitalization. Is there an option that needs to be set to cause article titles to retain proper capitalization? MKII Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Suppressing page number on chapter's last page
The following link discusses a method for suppressing headers (including page numbers) from blank pages at the ends of chapters: http://wiki.contextgarden.net/Titles in the section titled Truly empty pagebreak before chapters. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Converting numerals to text
Is there a command or macro that converts a numeral to its English language equivalent? For example, I would like to display Thirteen for 13. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Converting numerals to text
On Sun, 27 Jun 2010, Tom wrote: On Sat, Jun 26, 2010 at 22:31, Tom wrote: Is there a command or macro that converts a numeral to its English language equivalent? For example, I would like to display Thirteen for 13. http://wiki.contextgarden.net/Page_numbering_in_words http://thread.gmane.org/gmane.comp.tex.context/33962/focus=34304 (there is an attachment t-counting.tex in that thread) Mojca The wiki includes the code for a macro, \numstr, that can be used to create lower-case chapter numbers, but when I try to capitalize the first word, get error messages. For example, the following errors out: Chapter \Word{\numstr{23}} As does Chapter \Words{\numstr{23}} but Chapter \numstr{23} Works as does Chapter \Words{twenty-three} However, the former returns twenty-three (all lower case) and the latter returns Twenty-three (only the first part is in upper case) It's not clear from the Chicago Manual of Style if three should be capitalized in this instance but, to my eye, it doesn't look right. Is there a way to convert chapter numbers to text and select the desired capitalization? If you want every word to be capitalized, simply change one, two, three, etc in the source of \numstr to One, Two, Three. Aditya If I do that, they will always be in upper case. I would lose the option of having them in lower case. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] \numstr errors out in chapter star logic
\numstr seems to work fine in the body of text but errors out as if #1 was not a number when it is used in chapter start loc. Here is an example: %\numstr begins here \unprotect \def\numstring#1{\expandaft...@numstring\csname c...@#1\endcsname} \d...@numstring#1{\ns@numstr{#1}...@nineteens{null}{}} \let\nums...@numstring% \def...@numoutofrange#1#2{\number#1#2} \def...@numstr#1#2#3#4% {\ifnum\number#1\plusone% #3% \else\ifnum\number#110 % \expandafter...@numstring\expandafter{\number#1}#2% \else% \...@numoutofrange{#1}{#4}% \fi\fi} \def...@numstring#1#2{% \expandafter\ns@@numstring% \ifcase% \ifnum#110 1% \else\ifnum#1100 2% \else\ifnum#1\...@m 3% \else\ifnum#1\...@m 4% \else\ifnum#110 5% \else\ifnum#1100 6% \else\ifnum#11000 7% \else\ifnum#11 8% \else9% \fi\fi\fi\fi\fi\fi\fi\fi % \or#1% case 1: Add 8 leading zeros \or000#1% case 2: Add 7 leading zeros \or00#1% case 3: Add 6 leading zeros \or0#1%case 4: Add 5 leading zeros \or#1% case 5: Add 4 leading zeros \or000#1% case 6: Add 3 leading zeros \or00#1% case 7: Add 2 leading zeros \or0#1%case 8: Add 1 leading zero \or#1% case 9: Add no leading zeros \or% \...@nil#2% \fi} \def\ns@@numstring#1#2#3#4#5#6#7\or...@nil#9% {\ifnum#1#2#3\z@ \...@million#1#2#3% \ifnum#4#5#6\...@\space\fi% \fi% \ifnum#4#5#6\...@% \...@hundred#4#5#6{#1#2#3}{#4#5}\ns@nineteen% \ifnum#4#5#6\...@\space\fi% thousand% \ifnum#7\...@\space\fi% \fi% \...@hundred#7{#4#5#6}1#9} \def...@million#1#2#3% {\ifnum#1#2#3=\plusone% \...@hundred#1#2#301\ns@nineteene% \space% million% \else% \...@hundred#1#2#301\ns@nineteens% \space% millions% \fi} \def...@hundred#1#2#3#4#5#6% {\ifnum#1\...@% \ifnum#4#1\...@\ns@nineteen#1\space\fi% hundred% \ifnum#2#3\...@\space and\space\fi% \fi% \ifnum#2#320 % \ifnum#5#2#3\...@#6{#2#3}\fi% \else% \...@ninety#2\ifnum#3\...@-\ns@nineteen#3\fi% #60% \fi} \def...@nineteen#1% {\ifcase#1\empty\or one\or two\or three\or four\or five\or six\or% seven\or eight\or nine\or ten\or eleven\or twelve\or thirteen\or% fourteen\or fifteen\or sixteen\or seventeen\or% eighteen\or nineteen\fi} \def...@nineteens#1{\ns@nineteen{#1}} \def...@nineteene#1{\ns@nineteen{#1}} \def...@ninety#1% {\ifcase#1 \or \or twenty% \or thirty% \or forty% \or fifty% \or sixty% \or seventy% \or eighty% \or ninety% \fi} \protect \def\MyChapterCommandA#1#2% #1 is number, #2 is text {\numstr{#1}} \def\MyChapterCommandB#1#2% #1 is number, #2 is text {#1 #2} \setuphead[chapter] [command=\MyChapterCommandA] %change A to B to eliminate \substr call \starttext \chapter{First Chapter} Some sample text. Chapter \numstr{1} numstr logic works correctly when embedded in the text. Chapter title displays correctly when numstr not in chapter start logic. Errors out when numstr is in chapter start logic as if parameter is not a number. \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] \numstr errors out in chapter star logic
Am 28.06.10 17:59, schrieb Tom: \numstr seems to work fine in the body of text but errors out as if #1 was not a number when it is used in chapter start loc. Here is an example: [...] \setuphead[chapter] [command=\MyChapterCommandA] %change A to B to eliminate \substr call Try \setuphead[chapter][deepnumbercommand=\numstr] Wolfgang Making the following changes resulted in ! Missing Number, treated as zero. %\def\MyChapterCommandA#1#2% #1 is number, #2 is text % {\numstr{#1}} %\def\MyChapterCommandB#1#2% #1 is number, #2 is text % {#1 #2} \setuphead[chapter] [deepnumbercommand=\numstr] Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] \numstr errors out in chapter star logic
\setupsection[chapter][conversion=numstring] Wolfgang This change produces the desired results on the first page of each chapter but also has some, in my case, undesired side-effects. Chapter numbers in the table of contents are now spelled out (I prefer numerals in the TOC) and section numbers in the text begin with the words rather than the numerals (again, I prefer numerals for section numbers). The documentation probably explains how to deal with this, but I haven't been able to find it. All I want to do is make a cosmetic change to the tops of the chapter start pages. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] \numstr errors out in chapter star logic
Am 28.06.10 23:33, schrieb Tom: The lazy method below yields eleven pages, each of which is headed by n Chapter n, where n represents the numerals from 1 to 11. The text version of the chapter numbers do not appear. \defineconversion[numstring][One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Te n,Eleven] \setuphead[chapter] [conversion=numstring] How should i know you're using mkii! Replace \setuphead with \setupsection: \setupsection[chapter][conversion=numstring] Wolfgang The following example converts chapter numbers to words for the \chapter logic but also converts chapter numbers to words in unwanted places such as in the TOC and section numbers in the text. \defineconversion[numstring][One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Te n,Eleven] \setupsection[chapter] [conversion=numstring] \starttext \completecontent \dorecurse{11}{\chapter{Chapter #1}\par\section{Example section}} \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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 ___