Re: [NTG-context] Relative font scaling
Olivier said this at Wed, 31 Aug 2005 22:07:42 +0200: >> \definetypeface [MyFnt] [mm] [math] [euler] [default] >[rscale=0.99,encoding=default] >which did the trick perfectly well. Ideally, you should be using the euler size typescript as well: \definetypeface [MyFnt] [mm] [math] [euler] [euler] [rscale=1] ^ >But then, say we would like to typeset something like >> $n^{n\log{n}}$ >Of course, you would expect the x-height of the two fonts in the >exponent to be in the >same ratio as well... but this is not the case! You must be using a different setting still. "log" is typeset in euler, still, with the default settings. I can't stress the importance enough of really doing minimal test case documents for debugging, especially when asking the list. I know I've found bugs in my code before posting many times that way! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with \startcombination
On Monday 29 August 2005 09:37 pm, Mojca Miklavec wrote: > John R. Culleton wrote: > > Here is a code fragment: > > \section{Gallery} > > > > \useexternalfigure[B008][B008.jpg][scale=2000] > > \useexternalfigure[B009][B009.jpg][scale=2000] > > ... > > \placefigure{}{ > \startcombination[2] > {\externalfigure[B008]}{} > {\externalfigure[B009]}{} > \stopcombination > } > > Just a pair of braces around the \start...\stopcombination ;) > > Mojca > ___ Mojca's solution works, which means that the sample code on page 242 of _The Context Manual_ is missing the necessary braces. Just for fun I tried Hans' solution also, It did not help in this case. The correct example is on page 227. I corrected page 242 so that I don't ask the same question again :) -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting a line on the header
4. Just below all this a long line to separate the page header from its content \setupbackgrounds[header][text][frame=off,bottomframe=on] (You probably have to adjust some parameters in \setuplayout: header height and distance between header and text.) Thank you. It works, but I have a long line on all the pages. Is it possibile to exclude the first page of the document and the first page of every chapter using some settings? jk -- // Jilani KHALDI http://www.archsf.org ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Actually, those lines > \definebodyfont[13pt] > \definebodyfont[11.6pt] > \definebodyfont[8.3pt] > \definebodyfont[8.2pt] > \definebodyfont[6pt] > \definebodyfont[5.8pt] > \setupbodyfontenvironment[11.6pt] > [text=11.6pt, > script=8.3pt, > scriptscript=5.8pt, > x=8.2pt, > xx=5.8pt, > big=13pt, > small=6pt] originated from the following issue: When using euler fonts with a text serif font let's call it myrm, myrm has a bigger x-height than euler's. So I used > \definetypeface [MyFnt] [mm] [math] [euler] [default] > [rscale=0.99,encoding=default] which did the trick perfectly well. But then, say we would like to typeset something like > $n^{n\log{n}}$ Of course, you would expect the x-height of the two fonts in the exponent to be in the same ratio as well... but this is not the case! Hence the need to tweak the bodyfont sizes as shown above. Is this a bug, or something I didn't get? Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
I got the guilty lines: \definebodyfont[13pt] \definebodyfont[11.6pt] \definebodyfont[8.3pt] \definebodyfont[8.2pt] \definebodyfont[6pt] \definebodyfont[5.8pt] \setupbodyfontenvironment[11.6pt] [text=11.6pt, script=8.3pt, scriptscript=5.8pt, x=8.2pt, xx=5.8pt, big=13pt, small=6pt] at the very end of the typescript file. Sorry for not having strip down to the minimal buggy file before posting... So how to setup such relative font sizes for a specific family say \rm and then rscale the other one (mm, tt, ss) so that the x-heights match? Do I have to put such sizes inside the typescripts of all families? Thanks Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Olivier said this at Wed, 31 Aug 2005 18:03:57 +0200: >Quoting "Adam Lindsay" : >> -- was [EMAIL PROTECTED] on Aug 31, 2005 at 04:44:35PM -- > >> Olivier said this at Wed, 31 Aug 2005 16:53:56 +0200: >> >> >moreover the math font is >> >correctly rscaled) but the tt font isn't rscaled at all. >> >Any idea where the issue might come from? >> >> I suspect it's in your local specifics. As we don't have access to your >> rfont/mfont/tfont typescripts, > > >\starttypescript [mono] [my-officina] [texnansi] > \definefontsynonym [MY-Officina][texnansi-LIGA-KERN-OfficinaSerifStd-Book] > [encoding=texnansi] >\stoptypescript Well, in testing, I used the locally-defined pcrr8t in the place of the file you cite, but your example works for me. I tested (just in case) if it was something to do with the OTF conversion (highly unlikely), but the following lines added to your typescripts (calling a locally-installed font) did what was expected: \loadmapfile[texnansi-LIGA-KERN-adobe-myriad] \starttypescript [sans] [myriad] [texnansi] \definefontsynonym [myriadreg] [texnansi-LIGA-KERN-MyriadPro-SemiCn] [encoding=texnansi] \stoptypescript \starttypescript [sans] [myriad] [name] \setups[font:fallback:sans] \definefontsynonym [Sans] [myriadreg] \stoptypescript \definetypeface [MyFnt] [ss] [sans] [myriad] [default][rscale=0.6,encoding=texnansi] >It's ok since I get the correct font, just it isn't rscaled. >THe mechanism seems to work well here however since the euler font is >correctly rscaled. > >The information is all I put in the typescript for the tt font. All I can ask now is: ConTeXt version? How do you call the font in your text/for testing? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Quoting "Adam Lindsay" : > -- was [EMAIL PROTECTED] on Aug 31, 2005 at 04:44:35PM -- > Olivier said this at Wed, 31 Aug 2005 16:53:56 +0200: > > >moreover the math font is > >correctly rscaled) but the tt font isn't rscaled at all. > >Any idea where the issue might come from? > > I suspect it's in your local specifics. As we don't have access to your > rfont/mfont/tfont typescripts, \starttypescript [mono] [my-officina] [texnansi] \definefontsynonym [MY-Officina][texnansi-LIGA-KERN-OfficinaSerifStd-Book] [encoding=texnansi] \stoptypescript \starttypescript [mono] [my-officina] [name] \definefontsynonym [Mono][MY-Officina] \definefontsynonym [MonoBold][Mono] \definefontsynonym [MonoItalic] [Mono] \definefontsynonym [MonoSlanted] [Mono] \definefontsynonym [MonoBoldItalic] [Mono] \definefontsynonym [MonoBoldSlanted] [Mono] \definefontsynonym [MonoCaps][Mono] \stoptypescript \starttypescript [MyFnt] \definetypeface [MyFnt] [rm] [serif] [rfont] [default][encoding=ec] \definetypeface [MyFnt] [mm] [math] [euler] [default][rscale=0.99,encoding=default] \definetypeface [MyFnt] [tt] [mono] [my-officina] [default][rscale=3,encoding=texnansi] \stoptypescript I used texfont to generate the fonts tfm, map file and vf via texfont --fo=. --ma --in --ve=linotype --co=officina --lcdf --pre --va=liga,kern It's ok since I get the correct font, just it isn't rscaled. THe mechanism seems to work well here however since the euler font is correctly rscaled. The information is all I put in the typescript for the tt font. Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Quoting "Hans Hagen" : > -- was [EMAIL PROTECTED] on Aug 31, 2005 at 05:53:45PM -- > Olivier wrote: > > >Hi, > > > >I'm experiencing issues with rscale. When using: > > > >\starttypescript [MyFnt] > >\definetypeface [MyFnt] [rm] [serif] [rfont] [default] [encoding=ec] > >\definetypeface [MyFnt] [mm] [math] [mfont] [default] > >[rscale=0.99,encoding=default] > >\definetypeface [MyFnt] [tt] [mono] [tfont] [default] > >[rscale=0.1,encoding=texnansi] > >\stoptypescript > > > >everything works as expected (text font is indeed rfont, math font is > >indeed mfont, tt font is indeed tfont, and moreover the math font is > >correctly rscaled) but the tt font isn't rscaled at all. > >Any idea where the issue might come from? > > > how about trying .55 or so? .1 is pretty small all right, I used .98 first, then .5 and now .1 just in case :) Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting header texts (second)
Jilani Khaldi wrote: > Hi All, > > Having set this header text: > > \setupheadertexts > [\vbox{\hbox{AAA}} > \hbox{BBB}}}] > [{CCC}] > > the result is: > AAA in the top left corner, > BBB just under AAA > CCC in the top right corner > with the page number in the center > > What I want to have is: > 1. AAA = the title of the chapter > 2. BBB = the title of the section > 3. CCC in the top right corner but containing the page number You already got the answer to this one I guess, just to sum it up: \setupheadertexts [{\framed[align=flushleft,frame=off,offset=0pt]{\getmarking[chapter]\crlf\getmarking[section]}}] [pagenumber] % or empty % and one of the two commands: %- % this one overwrites the second argument above %\setuppagenumbering[location={header,right}] % this one only removes page number from the center %\setuppagenumbering[location=] > 4. Just below all this a long line to separate the page header from its > content \setupbackgrounds[header][text][frame=off,bottomframe=on] (You probably have to adjust some parameters in \setuplayout: header height and distance between header and text.) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
Randall Skelton wrote: One more quick question. When using a grid, I gather that I should wrap all floating content (tables & figures in my case) with \placeongrid to ensure \snaptogrid is being used. Does this also apply to formulae? i.e. should I be using: no, actually most environments hald grids themselves (for math on grid, see details.pdf) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Olivier wrote: Hi, I'm experiencing issues with rscale. When using: \starttypescript [MyFnt] \definetypeface [MyFnt] [rm] [serif] [rfont] [default] [encoding=ec] \definetypeface [MyFnt] [mm] [math] [mfont] [default] [rscale=0.99,encoding=default] \definetypeface [MyFnt] [tt] [mono] [tfont] [default] [rscale=0.1,encoding=texnansi] \stoptypescript everything works as expected (text font is indeed rfont, math font is indeed mfont, tt font is indeed tfont, and moreover the math font is correctly rscaled) but the tt font isn't rscaled at all. Any idea where the issue might come from? how about trying .55 or so? .1 is pretty small 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Olivier said this at Wed, 31 Aug 2005 16:53:56 +0200: >moreover the math font is >correctly rscaled) but the tt font isn't rscaled at all. >Any idea where the issue might come from? I suspect it's in your local specifics. As we don't have access to your rfont/mfont/tfont typescripts, here's a similar example that works here: \definetypeface [MyFnt] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [MyFnt] [mm] [math] [palatino] [default] [rscale=0.9,encoding=default] \definetypeface [MyFnt] [tt] [mono] [courier] [default] [rscale=0.5,encoding=ec] \setupbodyfont [MyFnt] \starttext something $a+b$ here {\tt teeny text} \stoptext So, barring further analysis of your typescripts, rscale seems to work here... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
One more quick question. When using a grid, I gather that I should wrap all floating content (tables & figures in my case) with \placeongrid to ensure \snaptogrid is being used. Does this also apply to formulae? i.e. should I be using: \placeformula \placeongrid{% \startformula ... \stopformula } Thanks, Randall ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
Absolutely fantastic. Thanks both Taco and Vit for this! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Relative font scaling
Hi, I'm experiencing issues with rscale. When using: \starttypescript [MyFnt] \definetypeface [MyFnt] [rm] [serif] [rfont] [default] [encoding=ec] \definetypeface [MyFnt] [mm] [math] [mfont] [default] [rscale=0.99,encoding=default] \definetypeface [MyFnt] [tt] [mono] [tfont] [default] [rscale=0.1,encoding=texnansi] \stoptypescript everything works as expected (text font is indeed rfont, math font is indeed mfont, tt font is indeed tfont, and moreover the math font is correctly rscaled) but the tt font isn't rscaled at all. Any idea where the issue might come from? Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Setting header texts (second)
"\getmarking[chapter][current]" should give you the title of the current chapter. Similarly "\getmarking[section][current]", etc. In order to rid yourself of the default pagenumber in the middle of the top header, use "\setuppagenumbering[location=]", or add "location=" to your existing \setuppagenumbering command. Hope that helps. That's ok. Thank you very much! jk -- // Jilani KHALDI http://www.archsf.org ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Elided page numbers in registers
Duncan Hothersall wrote: Another question on registers (just getting into indexing!). I have a book which numbers its pages by chapter, and so page numbers are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for the pages of chapter 2. I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26. I would like these ranges to be elided - in other words, the first one would read 1/1-3 (remove repeated chapter number), and the second would read 2/24-6 (remove repeated chapter number and also the repeated 2 in page number). Question: is there an already existing system to do this? I guess no :-) And I add one more related question: Is it possible to mix \start...\stopregister with just \register? According to this minimal example not. If there is not some secret for me, can it be extended? Please, focus on Duncan: -- \defineregister[Name][Names] \setupregister[Name][pagestyle=\it] \setupregister[Name][bf][pagestyle=\bf] \starttext Names: \Name[bf::]{Hans} \Name{Taco} \startregister[Name][bf::]{Duncan} \page[yes] \Name{Hans} \stopregister[Name][bf::]{Duncan} \page[yes] \Name{Duncan} \placeregister[Name] \stoptext -- Thanks vit Followup: I would be willing to help to code this if it doesn't exist (I have some experience with such systems) if someone can point me at the right bit of code to look at (things seem to be changing around texutils, newtexexec etc. so I don't want to start at the wrong place). Thanks... Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
Randall Skelton wrote: Many thanks for the suggestion Vit. In this case, however, I've split the \starttable and \stoptable commands in the \startAuthors and \stopAuthors definitions which may well be the root of my problem. This means that I cannot easily wrap the whole table with \placeongrid{ }. I cannot see a way of getting the \domoveongrid and/or \snaptogrid\vbox to work either. OK, in this case use in \startAuthor \placeongrid[...]\bgroup and in \stopAuthor \egroup cheers vit Does anyone have any suggestions on how I can clean this up so that \starttable and \stoptable are not in separate definitions but I can still use variables to define the table elements as is done in the \Authors definition? Cheers, Randall \placeongrid{%or e.g. \placeongrid[{broad,high}]{% your table } > %%% Authors and Approvals > \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} > > \def\startAuthors{% > \blank[2*big]\AuthorsTitle\\\blank[2*big]% > \hbox to \hsize\bgroup\hss\SetTableToWidth{ 6.5in}% > \starttable[|c|c|c|c|c|] > \HL > \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} > > \def\stopAuthors{\stoptable\hss\egroup} > > def\Author[#1]{% > \getgparameters[Author][#1]% > \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% > \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% > \doifundefined{AuthorName}{\gdef\AuthorName{-}}% > \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% > \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% > \VL\AuthorRole \VL\AuthorFunction% > \VL\AuthorName \VL\AuthorSignature% > \VL\AuthorDate% > \VL\SR\HL% > \gdef\AuthorFunction{ }\gdef\AuthorName{ }% > \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% > } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
This should do the trick: \def\startAuthors{% \placeongrid\bgroup ...<>... } \def\stopAuthors{% ...<>... \egroup } Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Elided page numbers in registers
Another question on registers (just getting into indexing!). I have a book which numbers its pages by chapter, and so page numbers are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for the pages of chapter 2. I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26. I would like these ranges to be elided - in other words, the first one would read 1/1-3 (remove repeated chapter number), and the second would read 2/24-6 (remove repeated chapter number and also the repeated 2 in page number). Question: is there an already existing system to do this? I guess no :-) Followup: I would be willing to help to code this if it doesn't exist (I have some experience with such systems) if someone can point me at the right bit of code to look at (things seem to be changing around texutils, newtexexec etc. so I don't want to start at the wrong place). Thanks... Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
Many thanks for the suggestion Vit. In this case, however, I've split the \starttable and \stoptable commands in the \startAuthors and \stopAuthors definitions which may well be the root of my problem. This means that I cannot easily wrap the whole table with \placeongrid{ }. I cannot see a way of getting the \domoveongrid and/or \snaptogrid\vbox to work either. Does anyone have any suggestions on how I can clean this up so that \starttable and \stoptable are not in separate definitions but I can still use variables to define the table elements as is done in the \Authors definition? Cheers, Randall \placeongrid{%or e.g. \placeongrid[{broad,high}]{% your table}> %%% Authors and Approvals> \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}}>> \def\startAuthors{%> \blank[2*big]\AuthorsTitle\\\blank[2*big]%> \hbox to \hsize\bgroup\hss\SetTableToWidth{ 6.5in}%> \starttable[|c|c|c|c|c|]> \HL> \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL}>> \def\stopAuthors{\stoptable\hss\egroup}>> def\Author[#1]{%> \getgparameters[Author][#1]% > \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}%> \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}%> \doifundefined{AuthorName}{\gdef\AuthorName{-}}%> \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% > \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}%> \VL\AuthorRole \VL\AuthorFunction%> \VL\AuthorName \VL\AuthorSignature%> \VL\AuthorDate%> \VL\SR\HL%> \gdef\AuthorFunction{ }\gdef\AuthorName{ }% > \gdef\AuthorSignature{ }\gdef\AuthorDate{ }%> } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Setting header texts (second)
Hi. "\getmarking[chapter][current]" should give you the title of the current chapter. Similarly "\getmarking[section][current]", etc. In order to rid yourself of the default pagenumber in the middle of the top header, use "\setuppagenumbering[location=]", or add "location=" to your existing \setuppagenumbering command. Hope that helps. Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting header texts (second)
Hi All, Having set this header text: \setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}] the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section \getmarking{chapter} etc 3. CCC in the top right corner but containing the page number \pagenumber 4. Just below all this a long line to separate the page header from its content I tried to apply the tips but now I have the page number on both the center and the right, without having the name of the chapter and the section in the left. Could you please be more precise. Where can I find info about "\getmarking"? Thanks. jk -- // Jilani KHALDI http://www.archsf.org ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem installing ConTeXt jedit syntax
Hans, Sorry about taking a long time to get back to you. I checked the syntax of the ConTeXt mode files. They seem to be consistent with the syntax in modes that are known to work. The delegate syntax doesn't seem to have changed. I don't recieve XML validation errors for any other parts of the code. Just the delegation. I can't see why the XML is invalid. For the record, I'm using jEdit 4.2final Elliot Elliot Clifton wrote: >Hi, > >I've added the context jedit mode files to the modes directory inside >my jedit settings directory, and appended the mode to the catalogue. I >get XML validation errors that state the various DELEGATEs are >invalid. The external files (*-en, *-de, etc...) do not import. Why? >What am I doing wrong? > > is there a more detailed report? can you figure otu if the delegates syntax has changed? Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Register page ranges
Bug or feature? In a register (such as the index), a command like \index[key]{entry} creates an index entry sorted as 'key', and there exists also \startregister[key]{entry} ... \stopregister[key] which creates a page range. As far as I can tell, the [key] here plays two roles - the ID of the range, and the sort key. Problems arise if a publication contains more than one range with the same key - the system ends up thinking it is one long range and you get output like entry 1-2-8-9 instead of entry 1-2, 8-9. One solution here is to simply add a number to the end of the key, so that the first range becomes [key1] and the second [key2]. This corrects the output. So I guess my question is, is this a bug or a feature? It had me confused for a while... Thanks, Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt and OSX / PDFsearch / sync
Steffen Wolfrum wrote: Does someone know if this also works with ConTeXt's project structure (\component etc.)? At practed 2005 Dick asked me about the context way of loading files and told me that he would implement support fo rit, so maybe it works; otherwise, just ask him 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting header texts (second)
Jilani Khaldi wrote: Hi All, Having set this header text: \setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}] the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section \getmarking{chapter} etc 3. CCC in the top right corner but containing the page number \pagenumber 4. Just below all this a long line to separate the page header from its content Thanks. jk -- - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Setting header texts (second)
Hi All, Having set this header text: \setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}] the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center What I want to have is: 1. AAA = the title of the chapter 2. BBB = the title of the section 3. CCC in the top right corner but containing the page number 4. Just below all this a long line to separate the page header from its content Thanks. jk -- // Jilani KHALDI http://www.archsf.org ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Setting header texts
Hi All, Having set this header text: \setupheadertexts [\vbox{\hbox{AAA}} \hbox{BBB}}}] [{CCC}] the result is: AAA in the top left corner, BBB just under AAA CCC in the top right corner with the page number in the center What I want to have is: 1. AAA in the top left corner, 2. BBB just under AAA (and that's ok) 3. CCC in the top right corner but containing the page number 4. Just below all this a long line to separate the page header from its content I have struggled for a while but in vain, so help! Thanks. jk -- // Jilani KHALDI http://www.archsf.org ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ConTeXt and OSX / PDFsearch / sync
Hi, this one is to all of us using ConTeXt on a Mac: At MacOSX-TeX mailing list I recently saw the following post: Bob Kerstetter <[EMAIL PROTECTED]> wrote: On May 18, 2005, at 11:57 AM, Richard Koch wrote: > TeXShop 2.03 is available at > > http://www.uoregon.edu/~koch/texshop Wow! I installed Tiger for this: -- Improved the PDFsearch code (i.e., sync) for \include{file}, \input{file}, and \import{file}. Users who had trouble using sync with large projects may find that it works now. It appears to work very nicely here. Very cool. Thanks Dick. Does someone know if this also works with ConTeXt's project structure (\component etc.)? Thanks, Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bug with active :!;?
Hans Hagen wrote: BILLET Olivier wrote: By the way, does this include the possibility to treat the character in different ways depending on the current mode (math/text)? Because, in the current setting, if you request for 3cm before `:' and then define a mathematical function $f : R \to Z$ you'll end up with a huuuge space between f and : which you certainly isn't what you want. see attached file; taco may know other tricks (i remember that there is some mechanism in tex for active char treatment in math mode) It is possible to treat an arbitrary character as if it was \active inside math mode, but not the other way around: when a character has catcode \active, it is always treated as that macro, regardless of the current mode. For curious people, here is how you make a "mathmode only" macro: \mathcode`\!="8000 \begingroup \catcode`\!=13 \gdef!{\it math} \endgroup This is a $!$ test!. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
Randall Skelton wrote: Hi all, Attached is an example showing my misunderstanding about grid alignment. The attached works as expected when \setuplayout[grid=no] is used or the 'Author table' is commented out. The inclusion of the little table in the text is really just to convince myself that I can have a table with the grid enabled. \placeongrid{%or e.g. \placeongrid[{broad,high}]{% your table } vit Any and all suggestions are greatly appreciated. Cheers, Randall \showframe %\showmakeup %\showgrid %%% Dimensions \newdimen\PaperWidth \PaperWidth=8.5in \newdimen\PaperHeight \PaperHeight=11.0in \newdimen\TextWidth \TextWidth=5.5in \newdimen\TextHeight \TextHeight=10.0in \setuppapersize[letter][letter] % paper size \definepapersize[width=\PaperWidth,height=\PaperHeight] \setuplayout [location=doublesided, % double-sided printing grid=yes, WHY DOES THIS CAUSE AN ERROR? topspace=0.50in, % the space at the very top of the page backspace=1.5in, % the space in the gutter header=0.75in,% the space for headers footer=0.50in,% the space for footers leftmargin=1in, % the space for margin notes rightmargin=1in, % the space for right margin notes width=\TextWidth, % the width of the body text height=\TextHeight] % the height of the body text %%% Authors and Approvals \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} \def\startAuthors{% \blank[2*big]\AuthorsTitle\\\blank[2*big]% \hbox to \hsize\bgroup\hss\SetTableToWidth{6.5in}% \starttable[|c|c|c|c|c|] \HL \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} \def\stopAuthors{\stoptable\hss\egroup} def\Author[#1]{% \getgparameters[Author][#1]% \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% \doifundefined{AuthorName}{\gdef\AuthorName{-}}% \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% \VL\AuthorRole \VL\AuthorFunction% \VL\AuthorName \VL\AuthorSignature% \VL\AuthorDate% \VL\SR\HL% \gdef\AuthorFunction{ }\gdef\AuthorName{ }% \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% } \starttext %%% Start: Front \startfrontmatter \startAuthors \Author [Role={Prepared by:}, Function={Scientist}, Name={John Smith}, Date={2005-08-24}] \Author [Role={Checked by}:, Date={2005-08-24}] \Author [Role={Approved by:}, Date={2005-08-24}] \stopAuthors %%% Stop: Front \stopfrontmatter %%% Start: Body \startbodymatter \section{One} \dorecurse{3}{\input knuth} \starttable[|c|c|] \HL \VL One \VL Two \VL\FR \VL Three \VL Four \VL\LR \HL \stoptable \section{Two} \dorecurse{4}{\input knuth} %%% Stop: Body part \stopbodymatter \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bug with active :!;?
BILLET Olivier wrote: By the way, does this include the possibility to treat the character in different ways depending on the current mode (math/text)? Because, in the current setting, if you request for 3cm before `:' and then define a mathematical function $f : R \to Z$ you'll end up with a huuuge space between f and : which you certainly isn't what you want. see attached file; taco may know other tricks (i remember that there is some mechanism in tex for active char treatment in math mode) 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 - enco-ffr.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context