Re: [NTG-context] How to disable page numbers in empty pages
On Mon, May 25, 2009 at 11:43 PM, Khaled Hosny khaledho...@eglug.orgwrote: On Fri, May 22, 2009 at 12:04:08PM +0200, Alan Stone wrote: On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny khaledho...@eglug.org wrote: How can I disable page numbers (or header/footer) in empty pages, as page 2 in the following example: \setuppagenumbering[alternative=doublesided] \starttext \chapter{one} \input tufte \chapter{two} \input tufte \stoptext Regards, Khaled http://www.ntg.nl/pipermail/ntg-context/2008/030594.html Alan Thanks for the tip, but I've a slightly more complex layout and it might need a more generalized solution, see: \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \chapter {testA} \dorecurse{10}{\input tufte } \startstandardmakeup \dorecurse{4}{\input tufte } \stopstandardmakeup \chapter {testB} \dorecurse{10}{\input tufte } \stoptext The page after first chapter and before the markup is empty and thus shouldn't have any headers/footers, but it isn't. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer \setupsectionblock[bodypart][page=yes] \setupmakeup[standard][page=empty] \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \startbodymatter \chapter {testA} \dorecurse{10}{\input tufte } \stopbodymatter \startstandardmakeup \dorecurse{4}{\input tufte } \stopstandardmakeup \startbodymatter \chapter {testB} \dorecurse{10}{\input tufte } \stopbodymatter \stoptext -- Alan ___ 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] How to disable page numbers in empty pages
On Tue, May 26, 2009 at 3:12 PM, Khaled Hosny khaledho...@eglug.org wrote: On Tue, May 26, 2009 at 10:53:30AM +0200, Alan Stone wrote: \setupsectionblock[bodypart][page=yes] \setupmakeup[standard][page=empty] \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \startbodymatter \chapter {testA} \dorecurse{10}{\input tufte } \stopbodymatter \startstandardmakeup \dorecurse{4}{\input tufte } \stopstandardmakeup \startbodymatter \chapter {testB} \dorecurse{10}{\input tufte } \stopbodymatter \stoptext Thanks alot, this was very helpfull. (BTW, the mypagebreak part isn't really needed). It depends whether you put more than one \chapter in each bodymatter part(s) or not. Alan Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] How to disable page numbers in empty pages
On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny khaledho...@eglug.orgwrote: How can I disable page numbers (or header/footer) in empty pages, as page 2 in the following example: \setuppagenumbering[alternative=doublesided] \starttext \chapter{one} \input tufte \chapter{two} \input tufte \stoptext Regards, Khaled http://www.ntg.nl/pipermail/ntg-context/2008/030594.html http://www.ntg.nl/pipermail/ntg-context/2008/030594.htmlAlan -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoWc5oACgkQRoqITGOuyPIJ6wCfbz74HEvxBgVSywJehwLPuLeR hRUAn05ZvLNTqOqWcwVzemJsSSJz0k/A =VnNd -END PGP SIGNATURE- ___ 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] MP newbie question
On Mon, May 18, 2009 at 8:45 PM, Alan Stone software.list.1e...@gmail.comwrote: Hi, How do you make this work ? --- mpframed.tex --- %\def\myFrameAlternative{line} %\def\myFrameAlternative{dashes} \def\myFrameAlternative{dots} The MetaPost User Manual brought the answer... %\def\myFrameAlternative{line} %\def\myFrameAlternative{dashes} \def\myFrameAlternative{dots} \startuniqueMPgraphic{name} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; show (\myFrameAlternative) ; if \myFrameAlternative = dashes : if \myFrameAlternative = dashes : Alan % if (\myFrameAlternative) = dashes : draw p dashed evenly scaled 2 ; % elseif (\myFrameAlternative) = dots : elseif \myFrameAlternative = dots : draw p dashed withdots scaled 2 ; else : draw p ; fi ; \stopuniqueMPgraphic \defineoverlay[myGraphic][\uniqueMPgraphic{name}] \starttext \framed[% offset=5mm, background=myGraphic, frame=off] {mp framed} \stoptext --- context.cmd mpframed -- Alan ___ 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] New structure ...
{\externalfigure[XY\currentheadnumber][width=0.5\textwidth]} ^ Alan On Tue, May 19, 2009 at 11:41 AM, Willi Egger w.eg...@boede.nl wrote: Hi all, I should call the current head number in a figure. I am getting the following error: ! Undefined control sequence. argument \reporttextprefixerror \secondoftwoarguments #1#2-#2 \rightlabeltext ...ts \let \reporttextprefixerror \doreporttextprefixerror \... \labeltexts ...eftlabeltext {#1}#2\rightlabeltext {#1} \doifundefinedelse #1-\ifcsname #1 \endcsname \...@ea \secondoftwoarguments \el... argument ... {\??ef \??ef XY\currentheadnumber } {\useexternalfigure [\s!d... ... l.14 ...Y\currentheadnumber][width=0.5/textwidth]} Using: This is LuaTeX, Version beta-0.40.1-2009050813 (Web2C 7.5.7) ConTeXt ver: 2009.05.14 16:44 MKIV fmt: 2009.5.19 int: english/english Minimal example attached KR Willi ___ 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 ___ -- Alan ___ 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] New structure ...
On Tue, May 19, 2009 at 5:17 PM, Willi Egger w.eg...@boede.nl wrote: Don't worry, Holland is still fine... But the problem I refer to is not in the dimension whether or not it is spelled correcltly. The error is still the same: ! Undefined control sequence. argument \reporttextprefixerror \secondoftwoarguments #1#2-#2 \rightlabeltext ...ts \let \reporttextprefixerror \doreporttextprefixerror \... \labeltexts ...eftlabeltext {#1}#2\rightlabeltext {#1} \doifundefinedelse #1-\ifcsname #1 \endcsname \...@ea \secondoftwoarguments \el... argument ... {\??ef \??ef XY\currentheadnumber } {\useexternalfigure [\s!d... ... l.14 ...er][width=\the\dimexpr.5\textwidth\relax]} \starttext \chapter{One} \placefigure [here] [] {A figure} {\externalfigure[XY\currentheadnumber][width=\the\dimexpr.5\textwidth\relax]} \stoptext Willi With... \starttext \chapter{One} \placefigure [here] [] {A figure} % {\externalfigure[XY\currentheadnumber][width=0.5/textwidth]} {\externalfigure[XY\currentheadnumber][width=0.5\textwidth]} % {\externalfigure[XY\currentheadnumber][width=\the\dimexpr.5\texwidth\relax]} \stoptext I get: see attachment. -- Alan headnumber-test.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] replacing words by underlines
At Saturday 24/01/2009 21:07, you wrote: Am 24.01.2009 um 19:00 schrieb Alan Stone: Hi, In the underneath example, how do you get each word replaced by an underline ? Or, if not possible, underlined word groups with correct underline breaks for multi-line phrases. \def\doUnderlineD#1% {\bgroup \setbox\scratchbox\hbox{#1}% \underbar{\hskip\wd\scratchbox}\space \egroup} \def\UnderlineD#1% {\processseparatedlist[#1][ ]\doUnderlineD\removeunwantedspaces} Wolfgang Ahoi, A finishing touch question... How do you cut off underbar parts which exceed \textwidth ? \showframe \setuplayout[width=7cm] \def\doUnderlineD#1% {\bgroup \setbox\scratchbox\hbox{#1}% \underbar{\hskip\wd\scratchbox}\space \egroup} \def\UnderlineD#1% {\processseparatedlist[#1][ ]\doUnderlineD\removeunwantedspaces} \starttext \UnderlineD{ cc d e vv www x yyy zzz} \stoptext Thanks in advance. Alan ___ 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] MP newbie question
Hi, How do you make this work ? --- mpframed.tex --- %\def\myFrameAlternative{line} %\def\myFrameAlternative{dashes} \def\myFrameAlternative{dots} \startuniqueMPgraphic{name} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; show (\myFrameAlternative) ; if \myFrameAlternative = dashes : % if (\myFrameAlternative) = dashes : draw p dashed evenly scaled 2 ; % elseif (\myFrameAlternative) = dots : elseif \myFrameAlternative = dots : draw p dashed withdots scaled 2 ; else : draw p ; fi ; \stopuniqueMPgraphic \defineoverlay[myGraphic][\uniqueMPgraphic{name}] \starttext \framed[% offset=5mm, background=myGraphic, frame=off] {mp framed} \stoptext --- context.cmd mpframed -- Alan mpframed.log Description: Binary data ___ 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] page area state evaluation
Can this be done (see previous message below) ? Alan On Fri, Apr 17, 2009 at 11:03 AM, Alan Stone software.list.1e...@gmail.comwrote: Hi, How do you evaluate, for example, a page's header state (normal, start, stop, empty, high, none, nomarking, name) in order to if header state = x do this else do that endif Thanks, Alan ___ 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] page area state evaluation
Hi, How do you evaluate, for example, a page's header state (normal, start, stop, empty, high, none, nomarking, name) in order to if header state = x do this else do that endif Thanks, Alan ___ 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] button alignment question
Hi, How do you keep the footer buttons between the footer's top and bottom ? \showframe \def\myHeaderButton{\interactionbuttons[width=2cm,height=\headerheight][OK]} \def\myFooterButton{\interactionbuttons[width=2cm,height=\footerheight][OK]} \setupinteraction[state=start] \setupheadertexts[text][aaa][aaa] \setupheadertexts[margin][\myHeaderButton][\myHeaderButton] \setupfootertexts[text][ppp][ppp] \setupfootertexts[margin][\myFooterButton][\myFooterButton] \starttext test \stoptext Thanks, Alan ___ 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] extending setuppagenumbering's location to top bottom
Hi, How do you extend setuppagenumbering's location key with a top and bottom option ? There's setup(top/bottom)texts[.1.][pagenumber][pagenumber] however setupagenumbering offers more page numbering options. Thanks Happy Easter. Alan ___ 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] Affiliation change
On Thu, Apr 2, 2009 at 10:20 AM, luigi scarso luigi.sca...@gmail.comwrote: well, if it helps you to calm doen, i can let you know that luatex now reports a \badness of 2 when you typeset the word 'taco' ok , but it's not enough How about... http://en.wikipedia.org/wiki/Infinite ? Oh and authors of the manual, would you please add this to it - in a separate chapter ? ;O) Alan ___ 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] FontSite's CombiNumerals Pro
On Wed, Apr 1, 2009 at 4:20 PM, Alan Stone software.list.1e...@gmail.comwrote: Re: http://www.fontsite.com/dev/fonts-c-e/combinumerals-pro-v5-win/ Character charts: http://www.fontsite.com/dev/wp-content/uploads/2008/12/cnp5.pdf Char a Dec 97 Hex 61 Glyph round circled 10 I'm trying to output some glyph but all I get is the corresponding character (see attachment) ... \starttypescript [sans] [combinumeralspro] \definefontsynonym [CombiNumeralsProRegular] [name:combinumeralsproregular] [features=default] \stoptypescript \starttypescript [sans] [combinumeralspro] \setups [font:fallback:sans] \definefontsynonym [Sans] [CombiNumeralsProRegular] \stoptypescript \starttypescript [combinumeralspro] \definetypeface [combinumeralspro] [ss] [sans] [combinumeralspro] [default] \stoptypescript \usetypescript[combinumeralspro] \starttext 1a) \getglyph{name:combinumeralspro}{\char61} 1b) \getglyph{name:CombiNumeralsProRegular}{\char61} 1c) \getglyph{Sans}{\char61} \stoptext What's missing ? What could be missing ? Alan ___ 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] Affiliation change
On Thu, Apr 2, 2009 at 10:37 AM, luigi scarso luigi.sca...@gmail.comwrote: Oh and authors of the manual, would you please add this to it - in a separate chapter ? ;O) +1 in perpetual memory (anyway it's not enough) Hmmm... Add a line About Taco to the Welcome section of http://wiki.contextgarden.net/Main_Page , in bold red characters ? Alan ___ 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] Affiliation change
On Thu, Apr 2, 2009 at 3:01 PM, Taco Hoekwater t...@elvenkind.com wrote: Henning Hraban Ramm wrote: Am 2009-04-02 um 10:47 schrieb Hans Hagen: Looks like I owe Luigi a beer (for which he will have to attend the meeting, of course). ok, two beers than (since dutch beers are half the size of german, czech and slovenian beers) Depends - Colonian beer is served in tiny glasses... I wouldn't be so eager to drink beer with 'colon' in the name, either :) That probably explains the tiny glasses. Perhaps we should stop this thread ... 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \doifmodeselse?
On Thu, Apr 2, 2009 at 6:01 PM, Gerben Wierda gerben.wie...@rna.nl wrote: Using --mode or --modes with texexec sets up modes which can be used in the files to parse different parts. For that I use \doifmodeelse{}{}{} But combining various modes in one \doiffmodeelse would be handy. e.g. (pseudocode) if mode is workinprogress or test or the other way around if mode is all or editor So I would like something like \doifmodeselse{all,editor) Do you mean something like this ? \starttext \doifmodeelse{a,b} {\doifmode{a}{a} \doifmode{b}{b}} {c} \stoptext context.cmd --modes=a modes context.cmd --modes=a,b modes context.cmd --modes=c modes Alan or even better booleans \doiffmodeselse{not test or editor} so I do not need to build a large setup of nested \ifmodeelse This is not in ConTeXt currently. Would it be easy to program such a multiple modes selector? G ___ 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] \doifmodeselse?
For your information... http://www.pragma-ade.com/general/manuals/mmodes.pdf Alan On Thu, Apr 2, 2009 at 6:28 PM, Alan Stone software.list.1e...@gmail.comwrote: On Thu, Apr 2, 2009 at 6:01 PM, Gerben Wierda gerben.wie...@rna.nlwrote: Using --mode or --modes with texexec sets up modes which can be used in the files to parse different parts. For that I use \doifmodeelse{}{}{} But combining various modes in one \doiffmodeelse would be handy. e.g. (pseudocode) if mode is workinprogress or test or the other way around if mode is all or editor So I would like something like \doifmodeselse{all,editor) Do you mean something like this ? \starttext \doifmodeelse{a,b} {\doifmode{a}{a} \doifmode{b}{b}} {c} \stoptext context.cmd --modes=a modes context.cmd --modes=a,b modes context.cmd --modes=c modes Alan or even better booleans \doiffmodeselse{not test or editor} so I do not need to build a large setup of nested \ifmodeelse This is not in ConTeXt currently. Would it be easy to program such a multiple modes selector? G ___ 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] Affiliation change
On Wed, Apr 1, 2009 at 8:33 PM, Taco Hoekwater t...@elvenkind.com wrote: Hello everybody, This message is to inform you all that as of today, I am no longer an employee of Elvenkind BV, the company where I have worked for during the past years. Working for Elvenkind has been a pleasure, but it has always been hard for Elvenkind to find enough commercial projects to employ me in. Even the recent (much appreciated!) funded TeX-development projects simply do not generate enough revenue for Elvenkind to make it viable to keep me as an employee in the current economic climate. This is not the best time to be out of a job, but nevertheless I have decided to try to make the most of it an attempt to make an old dream happen: being my own boss. Hey Taco, Congrats for your daring decisoin! ;O) There's never a right, wrong or best time. Even more today, the day job thing is just an excuse to stay in an illusionary comfort zone. We make our own choices and success. Go for it, don't look back and keep up the good work. All the best and to your success, Alan Since quite some time already I have had a private company called Bittext that I use for various bits and pieces that simply did not fit in with Elvenkind's company strategy (its original intent was to place my font development work in that company, but it has also been used as the company behind organizing the ConTeXt Epen meeting in 2007, for example). For the development of luatex and metapost, I do not expect that much to change compared to the current situation: Hans and I will continue to write funding proposals and we hope that enough of those will be granted so that I can keep that development work going much like it is. (about a 50% commitment working on these two programs in an average working week). However, for ConTeXT and other TeX-related things, the situation is a bit more problematic. Pragma ADE does not have money to fund any projects, even if I managed to find something to excite Hans that he couldn't do faster himself ;). To find the missing source of income, I intend to start giving commercial ConTeXt courses and I plan to start selling manuals via lulu. Perhaps there is a bit of consultancy that can be found as well, and I will try to regain some of my old mathematical typesetting clients. But I fear that even all of that together will generate enough income for me to continue developing modules and offering help for free. Therefore, the planned bib module replacement will be released as commercial software, and support for other ConTeXT stuff (like the current bib module) will become a paid service. Probably via a subscription website, that will (for example) also host my release notes. I am brooding on other ConTeXt module ideas that people may be willing to pay for, and I will finish the font projects that are still on my disk for sale via my website. This April (until around BachoTeX) I will still be busy preparing the luatex and metapost binaries for the TeXlive 2009 deadline, but after that I will likely drop offline for a while, creating the Bittext website ( http://www.bittext.com ) and figuring out things like how to be on the receiving end of Lulu and PayPal. Well, that is about all I wanted to say right now. I am quite apprehensive about how this news will fall in the ConTeXT community, but I see no other way. And I must admit that at the same time I am quite excited about being in control of my own destiny, as they say! Best wishes to all of you, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How do you get this in the ToC ?
Dear ConTeXt Gang, In the example below, how do you get Text Page One in the table of contents ? \starttext \startstandardmakeup Title Page \stopstandardmakeup \startstandardmakeup Text Page One \stopstandardmakeup \startstandardmakeup Text Page Two \stopstandardmakeup \startfrontmatter \placecontent \stopfrontmatter \startbodymatter \chapter{Chapter One} \input knuth \stopbodymatter \stoptext Thanks, Alan ___ 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] How do you get this in the ToC ?
On Tue, Mar 31, 2009 at 6:58 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 31.03.2009 um 18:23 schrieb Alan Stone: Dear ConTeXt Gang, In the example below, how do you get Text Page One in the table of contents ? \writetolist / \writebetweenlist Thanks for confirming my suspicion. Could get it to work now. Alan Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] initial view of PDF
On Tue, Mar 24, 2009 at 10:14 AM, Vyatcheslav Yatskovsky yatskov...@gmail.com wrote: Hello, How to set initial view of PDF document to 'fit page'? You might get some inspiration from this thread Vyatcheslav... *http://archive.contextgarden.net/message/20030409.181638.f586b7ab.fr.html* as wel as from \dosetuppageview in spec-fdf.texhttp://archive.contextgarden.net/message/20030410.152720.9de5a401.fr.html Alan Cheers, Vyatcheslav ___ 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] typescript repository
Zuuuper idee! Alan On Mon, Mar 23, 2009 at 9:30 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi all, what do think about a page with typescript files for good quality free fonts, we have a few typescripts on the wiki but you have to copy them first in your document or in a file before you can use them. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Alan ___ 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] CoTeXtgarden is down
The mailing list archive too. :O( On Tue, Mar 24, 2009 at 5:05 PM, Henning Hraban Ramm hra...@fiee.netwrote: Ahoi, since some hours the garden server doesn't respond on http or rsync. Could you please look after it? Greetlings, Hraban ___ 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 ___ -- Alan ___ 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] CoTeXtgarden is down
On Tue, Mar 24, 2009 at 5:23 PM, Alan Stone software.list.1e...@gmail.comwrote: The mailing list archive too. :O( Oops... that one's on the same server. Meanwhile, alternative here: http://news.gmane.org/gmane.comp.tex.context Alan On Tue, Mar 24, 2009 at 5:05 PM, Henning Hraban Ramm hra...@fiee.netwrote: Ahoi, since some hours the garden server doesn't respond on http or rsync. Could you please look after it? Greetlings, Hraban ___ 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 ___ -- Alan -- Alan ___ 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] font switching questions
2009/3/19 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 18.03.2009 um 16:26 schrieb Alan Stone: On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen pra...@wxs.nl wrote: (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) Read and understand! Thanks for your comments Wolfgang. Hope they're useful and beneficial to other people. The example I adapted and was enquiring about was in the context of what Hans replied earlier... (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) Hans, does what you meant by the above correspond to Wolfgang's example or did you mean something else ? If so, what precisely please ? Thanks, Alan % Typescript for Arial \starttypescript [sans] [arial] \setups [font:fallback:sans] \definefontsynonym [Sans] [ArialNormal] \definefontsynonym [SansItalic] [ArialItalic] \definefontsynonym [SansBold] [ArialBold] \definefontsynonym [SansBoldItalic] [ArialBoldItalic] \stoptypescript \starttypescript [sans] [arial] \definefontsynonym [ArialNormal] [name:arial] [features=default] \definefontsynonym [ArialItalic] [name:arialitalic] [features=default] \definefontsynonym [ArialBold] [name:arialbold] [features=default] \definefontsynonym [ArialBoldItalic] [name:arialbolditalic] [features=default] \stoptypescript \starttypescript [arial] \definetypeface [arial] [ss] [sans] [arial] [default] \stoptypescript % Load the Arial typescript for certain elements \usetypescript[sans][arial] % Load the main typescripts and set the font for the document \usetypescript[palatino] \setupbodyfont[palatino] % Define a new font for the header and set it \definefont[SectionStyle][ArialBold sa 1.5] % Symbolic name for Arial \setuphead[section][style=SectionStyle] \starttext \section{Knuth} \input Knuth \section{Zapf} \input zapf \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font switching questions
On Wed, Mar 18, 2009 at 5:03 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: [...] ... it's explained in the fonts manual and in the new ConTeXt manual. The most important thing I understand from reading the fonts manual and the ConTeXt manual's old and new font chapter for the n-th time (lost count), is that explaining fonts and their use is not a piece cake. As such, every effort in trying to explain it in a way that's understandable to non initiated people can only be appreciated and welcomed. Nevertheless, I wonder... Are fonts like men, or like women ? ;O) To be happy with a man you must understand him a lot and love him a little. To be happy with a woman you must love her a lot and not try to understand her at all.” - Helen Rowland As for the issue at hand... Let's say goodbye with a smile, dear, Just for a while, dear, we must part. Don't let the parting upset you, I'll not forget you, sweetheart. We'll meet again, don't know where, don't know when, But I know we'll meet again, some sunny day. Keep smiling through, just like you always do, 'Til the blue skies drive the dark clouds far away. So will you please say hello to the folks that I know, Tell them I won't be long. They'll be happy to know that as you saw me go, I was singing this song. After the rain comes the rainbow, You'll see the rain go, never fear, We two can wait for tomorrow, Goodbye to sorrow, my dear. ( source: http://ingeb.org/songs/wellmeet.html ) Alan ___ 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] font switching questions
On Thu, Mar 19, 2009 at 4:24 PM, Taco Hoekwater t...@elvenkind.com wrote: Alan Stone wrote: The most important thing I understand from reading the fonts manual and the ConTeXt manual's old and new font chapter for the n-th time (lost count), is that explaining fonts and their use is not a piece cake. As such, every effort in trying to explain it in a way that's understandable to non initiated people can only be appreciated and welcomed. Any remaining inclarity in any published documentation is by definition unexpected by the author of that documentation. Hmmm... By definition ??? What a fascinating point of view. So if something is unclear, you really have to mention specifically what it is exactly that is unclear. Otherwise, no progress will ever be made... Indeed. However, please take into account that... This topic is (way ?) beyond my present means of comprehension. So be prepared to receive some stupid and/or hilarious questions. ;O) It might also be, quoting the great Alberto, and with all due respect (really) for the author(s)... “If you can't explain it simply, you don't understand it well enough” - Albert Einstein From my own small experience, it's often a mix of both. And that's ok. That means there's means of improvement, learning and growth for everybody involved. Considering the complexity of the matter and taking into account the great Alberto's wise words, I'll try to understand my own questions first before posting them in a hopefully understandable way. Talk soon. Cheers, Alan 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font switching questions
On Thu, Mar 19, 2009 at 4:29 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Are fonts like men, or like women ? ;O) fonts are simply complex ... Ok, they're like women then. Alan - no real consistency (esp in names) - complicted by the fact that we want (in tex) some coherent system - complicated even more by math - and by incomplete fonts - and ... - and ... to some extend luatex/mkiv is making it a bit more convenient but even then .. - fonts can have truckloads of features - and related bugs - and ... 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 ___ -- Alan ___ 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] font switching questions
On Tue, Mar 17, 2009 at 11:27 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Ahoi, Following a previous discussion, I've been advised to try to avoid \switchtobodyfont and use \definedfont or \definefont instead. what is better depends on the situation - for a structured document using \switchtobodyfont is ok - for special layout elements (headers, title pages, keywords) \definefont might be handier (esp when funny sizes are used) - when using \definefont it can be handy to use the symbolic names (Serif, SansBold etc) and sizes (sa 1.2) because that makes redefinition easier (1) What's the difference between \definefont and \definedfont ? \definefont defines a macro that represents a font, and \definedfont just switches to a font (the forst one is more efficient when you switch often) (2) In the underneath example... (2a) how to implement \define(d)font for font switching ? (2b) how to define \myFontHook ? Thanks, Alan \usemodule[t-lettrine] \usetypescriptfile[tps_arial] \usetypescript[arial] ... just look how gyre typefaces are defined \setupbodyfont[myFont,\myFontSize] just \setupbodyfont[myFont,12pt] and an occasional \definefont[BigFont][SerifBold sa 3.5] which gives you \BigFont Which low level command allows to fill in \definefont[SomeFont][SomeSynonym sa SomeScale] with SomeSynonym=Sans(X)/Serif(X) (X)=Bold/Italic, i.e. regardless of the synonym's name (defined in the typescript)? \setuphead[chapter][style={\switchtobodyfont[myOtherFont,\myOtherFontSize]}] it depends on what can occur in a title, if there's math and monospaced and whatever being used mixed, then best use a typeface (apart from the one time definition it's quite fast to switch a typeface) Alan ___ 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] font switching questions
On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: [...] Which low level command allows to fill in \definefont[SomeFont][SomeSynonym sa SomeScale] with SomeSynonym=Sans(X)/Serif(X) (X)=Bold/Italic, i.e. regardless of the synonym's name (defined in the typescript)? it just follows the bodyfont \definefont[SomeFont][SerifBold sa 1.5] And what about non-bodyfonts (some other sans or serif font) ? Alan ___ 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] font switching questions
On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen pra...@wxs.nl wrote: [...] (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) these symbolic names are there for a reason as i never want to see hard coded font names (and features) in my document styles more than once What I'm looking for... With: \starttypescript [serif/sans] [somefont] \definefontsynonym [SomeFontRegular] [name:somefont] [features=default] \definefontsynonym [SomeFontItalic] [name:somefontitalic] [features=default] \definefontsynonym [SomeFontBold][name:somefontbold] [features=default] \definefontsynonym [SomeFontBoldItalic] [name:somefontbolditalic] [features=default] \stoptypescript \starttypescript [serif/sans] [somefont] \setups [font:fallback:sans] \definefontsynonym [Regular] [SomeFontRegular] \definefontsynonym [Italic][SomeFontItalic] \definefontsynonym [Bold][SomeFontBold] \definefontsynonym [BoldItalic] [SomeFontBoldItalic] \stoptypescript \starttypescript [somefont] \definetypeface [somefont] [rm/ss] [serif/sans] [somefont] [default] \stoptypescript \usetypescriptfile[tps_somefont] \usetypescript[somefont] \definetypeface[myXTypeface][somefont] and... * somefont = arial, times, tahoma, courrier, ... * X = Body/Chapter/Section/.../Header/Footer/... how to... \def\myXSymbolicName=\somecommandRegular/Bold/Italic{myXTypeface} for... \definefont[myXFont][myXSymbolicName sa myXScale] Alan ___ 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] font switching questions
On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen pra...@wxs.nl wrote: (there's also Normal, Bold etc that is even more generic in the sense that it can be sans or serif depending of the situation) Re. code in attachment Why is the font output not correct when using \usetypescriptfile[tps_arial_normal] ? Alan arialtest.tex Description: TeX document arialtest_normal.pdf Description: Adobe PDF document arialtest_sans.pdf Description: Adobe PDF document tps_arial_normal.tex Description: TeX document tps_arial_sans.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Which revision control system do you use?
Can these thingies also be used for document version/revision control also or are they software dedicated ? If not, what's more appropriate for document version control ? Thanks in advance. Alan On Mon, Mar 16, 2009 at 9:56 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi all, to start the threat here is what I use(d). On my old Windows machines I used Subversion because it was easy to use with TortoiseSVN but since I'm on my Mac I use Mercurial for my files. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is there anything like developer's manual for ConTeXt?
On Tue, Mar 17, 2009 at 2:55 AM, Wei-Wei Guo wwgu...@gmail.com wrote: Hi everyone, Hi Wei-Wei, Please enjoy what's underneath and give yourself a second chance to reconsider your point of view... After fighting with ConTeXt one month, Those who live are those who fight. - Victor Hugo I find it's too difficult. The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn. - Alvin Toffler Anyone who stops learning is old, whether at twenty or eighty. - Henry Ford Learning is a treasure that will follow its owner everywhere. - Chinese Proverb I have two years experience of LaTeX. How about acquiring a two year experience, and more, in ConTeXt ? ;O) I never thought ConTeXt could be so difficult. There are two ways of meeting difficulties: You alter the difficulties or you alter yourself to meet them. - Phyllis Bottome Using ConTeXt is like climbing a steep mountain, every step need extensive searching, reading, and asking. I've learned that everyone wants to live on top of the mountain, but all the happiness and growth occurs while you're climbing it. - Unknown When you reach the top, keep climbing. - Unknown Sorry for the useless complain. From my own experience, amongst others, in this mailing list... Be your guest. :O) I'm stuck by so many problems. I never believed I wouldn't make it - and perhaps that's why I've always found work. I've always stuck at everything I've ever done. I absolutely won't give up. - Amanda Holden I might be lack of the basic knowledge of ConTeXt. Could someone tell me where I can find manuals or papers that describe the logic of ConTeXt design and basics of ConTeXt programming. http://wiki.contextgarden.net/Main_Page Getting Started and Documentation sections. Thanks in advance. Best wishes, Wei-Wei Two others for the road... If you're not failing every now and again, it's a sign you're not doing anything very innovative. - Woody Allen Keep on beginning and failing. Each time you fail, start all over again, and you will grow stronger until you have accomplished a purpose - not the one you began with perhaps, but one you'll be glad to remember. - Ann Sullivan Hope this helps, Alan ___ 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] new beta
On Tue, Mar 17, 2009 at 11:49 AM, Hans Hagen pra...@wxs.nl wrote: Hi, In the process of a major cleanup and code split I uploaded a beta. Some important changes are: - initialization code is ready for upcoming luatex - language files have been cleaned up - core-table stuff is renamed to tabl-table stuff - several changes in file names and splits of files - for those using helpers, in mkiv now syst-aux is the place to look what are helpers ? - some non used files removed - some speedup of helper macros (only in mkiv) what are helper macros useful for ? On Taco and my machine test docs come out right but there might be problems left (no tricky new things so solvable fast). Hans ___ 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] font switching questions
Ahoi, Following a previous discussion, I've been advised to try to avoid \switchtobodyfont and use \definedfont or \definefont instead. (1) What's the difference between \definefont and \definedfont ? (2) In the underneath example... (2a) how to implement \define(d)font for font switching ? (2b) how to define \myFontHook ? Thanks, Alan \usemodule[t-lettrine] \usetypescriptfile[tps_arial] \usetypescript[arial] \definetypeface[myFont][arial] \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman] \definetypeface[myOtherFont][timesnewroman] \def\myFontSize{12pt} \def\myOtherFontSize{20pt} \setupbodyfont[myFont,\myFontSize] \setuphead[chapter][style={\switchtobodyfont[myOtherFont,\myOtherFontSize]}] \starttext \chapter{Chapter One} %\lettrine[FontHook={\myFontHook}]{T}{hus}, I came to the conclusion that the designer of a new \lettrine{T}{hus}, I came to the conclusion that the designer of a new system must not only be the implementer and first large-- scale user; the designer should also write the first user manual. \stoptext ___ 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] horoffset singlesided/doublesided
On Sun, Mar 15, 2009 at 9:49 PM, Alan Stone software.list.1e...@gmail.comwrote: Hi, \showframe \setuplayout[width=.65\paperwidth,hoffset=1cm,margin=0cm] \setuphead[chapter][page=right] typo: horoffset, instead of hoffset Alan ___ 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] horoffset singlesided/doublesided
Hi, \showframe \setuplayout[width=.65\paperwidth,hoffset=1cm,margin=0cm] \setuphead[chapter][page=right] %\setuppagenumbering[alternative=singlesided] % horoffset_ss.pdf \setuppagenumbering[alternative=doublesided] % horoffset_ds.pdf \starttext \dorecurse{2}{\chapter{Chapter #1}\dorecurse{8}{\input knuth}} \stoptext For - horoffset_ds.pdf and - horoffset_ss.pdf how do you define horoffset so that for the - odd pages the layout |horoffset|...|text|...| is - even pages the layout|...|text|...|horoffset| is Alan horoffset_ds.pdf Description: Adobe PDF document horoffset_ss.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What does \c! means?
On Sat, Mar 14, 2009 at 5:32 AM, Wei-Wei Guo wwgu...@gmail.com wrote: Dear all, I'm reading the source file of t-bib. I find there are lots of '\c!', '\s!', and '\v!'. What do they mean? I searched in wiki, TeXBook, ConTeXt manual, TeX impatient, and mail list. Those commands appear some times, but no explanation. http://archive.contextgarden.net/message/20080629.104105.40e28a70.el.html Another question is related the following codes from Taco (thank you, Taco). There are tokens like '\??pb @l...@`. What does it mean? Could you tell me, to get deep understanding, what to read or which part to read in TeXBook or some other manuals. I don't know what to search to find related topics. \unprotect \def\lang#1% {\def\biblanguage{#1}% \ifcsname \??pb @l...@#1\endcsname \expanded{\mainlanguage[\getvalue{\??pb @l...@#1}]}% \expanded{\language[\getvalue{\??pb @l...@#1}]}% \fi \ignorespaces} \protect Best wishes, Wei-Wei ___ 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] paragraph question (the return :O)
Why this error (source: see attachment) ? chapter: 1 Chapter 1 ! Extra \fi. argument \fi One line. \doCountLines ...arlines \space L)\fi \endgroup #1 \par l.35 Thanks, Alan On Tue, Mar 10, 2009 at 6:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2009 um 18:14 schrieb Alan Stone: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. What is it about it that it's a bad idea ? Who knows, it could work or fail in a few cases. I apologize for my ignorance, I'm still confused with this one (see attachments)... Why? (step 3: ...) is typeset one first paragraph too far. \def\doCountLines#1\par{% \begingroup \setbox\scratchbox\vbox{#1\par}% \getnoflines{\htdp\scratchbox}% \global\parlines=\noflines\relax % (step 2: P\space\the\parnumber, \the\parlines\space L) \ifnum \parlines = 1 (step 3: P\space \the\parnumber, \the\parlines\space L)% \fi \endgroup#1\par} Wolfgang countlines3.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] paragraph question (the return :O)
Thanks Wolfgang. Digging into some TeX books to understand how and why these fixes work... Alan On Tue, Mar 10, 2009 at 6:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2009 um 18:14 schrieb Alan Stone: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. What is it about it that it's a bad idea ? Who knows, it could work or fail in a few cases. I apologize for my ignorance, I'm still confused with this one (see attachments)... Why? (step 3: ...) is typeset one first paragraph too far. \def\doCountLines#1\par{% \begingroup \setbox\scratchbox\vbox{#1\par}% \getnoflines{\htdp\scratchbox}% \global\parlines=\noflines\relax % (step 2: P\space\the\parnumber, \the\parlines\space L) \ifnum \parlines = 1 (step 3: P\space \the\parnumber, \the\parlines\space L)% \fi \endgroup#1\par} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] titles question
With \setuphead[section][number=yes/no] how do you test whether what's being typeset is in a section or not ? Using \determineheadnumber[section] \currentheadnumber is only relevant when number=yes. -- Alan ___ 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] paragraph question (the return :O)
Hi, Re: files in attachment Why is step 3 typeset in chapter 2's first paragraph instead of chapter 1's first paragraph and how to correct ? -- Alan countlines.tex Description: TeX document countlines.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] paragraph question (the return :O)
On Tue, Mar 10, 2009 at 4:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? but here is a fixed version of your macros. You should always take care to keep scratch counters/dimenens/... local. \def\doCountLines#1\par{% \begingroup \setbox\scratchbox\vbox{#1\par}% \getnoflines{\htdp\scratchbox}% \global\parlines=\number\numexpr\noflines (step 2: P\space\the\parnumber, \the\parlines\space L)\relax \ifnum \parlines = 1 (step 3: P\space \the\parnumber, \the\parlines\space L)% \fi \endgroup#1\par} \def\CountLines{% \global\parnumber=0 \EveryPar{% \advance\parnumber by 1 % (step 1: P\space\the\parnumber, \the\parlines\space L) \ifnum \parnumber = 1 \expandafter\doCountLines \fi}} I apologize for my ignorance, I'm still confused with this one (see attachments)... \def\doCountLines#1\par{% \begingroup \setbox\scratchbox\vbox{#1\par}% \getnoflines{\htdp\scratchbox}% \global\parlines=\number\numexpr\noflines % (step 2: P\space\the\parnumber, \the\parlines\space L) \ifnum \parlines = 1 (step 3: P\space \the\parnumber, \the\parlines\space L)% \fi \endgroup#1\par} \def\CountLines{% \global\parnumber=0 \EveryPar{% \advance\parnumber by 1 % (step 1: P\space\the\parnumber, \the\parlines\space L) \ifnum \parnumber = 1 \expandafter\doCountLines \fi}} Wolfgang countlines2.tex Description: TeX document countlines2.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] paragraph question (the return :O)
On Tue, Mar 10, 2009 at 5:46 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2009 um 17:35 schrieb Alan Stone: On Tue, Mar 10, 2009 at 4:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. What is it about it that it's a bad idea ? I apologize for my ignorance, I'm still confused with this one (see attachments)... Why? code: \ifnum \parlines = 1 (step 3: P\space \the\parnumber, \the\parlines\space L)% \fi output: 2 Chapter 2 (step 3: P 1, 3 L)Thus, I came to the... (step 3: ...) is typeset one first paragraph too far. Alan ___ 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] paragraph question
Another idea... How do you make this line counter work ? \newcount\parnumber \newcount\linenumber \def\myCounters{% \EveryPar{% \advance\parnumber by 1 (P\the\parnumber) \EveryLine{% % (L\the\prevgraf)}} \advance\linenumber by 1 (L\the\linenumber)} \linenumber=0\relax} \parnumber=0\relax} \setuphead[chapter][page=,after={\myCounters}] \starttext \chapter{Chapter 0} Only one line. \dorecurse{2}{\chapter{Chapter #1}\input knuth} \stoptext Alan ___ 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] paragraph question
On Fri, Mar 6, 2009 at 3:05 PM, Hans Hagen pra...@wxs.nl wrote: [...] \startlinenumbering \input tufte \stoplinenumbering Ok, my question was a bit ambiguous... I was not looking to number lines, but to count lines using EveryLine within EveryPar, aka the paragraph counter \parnumber in the provided code. Alan ___ 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] paragraph question
How do you invoke a command at the end of a paragraph ? Alan ___ 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] paragraph question
How do you invoke a command at the end of a paragraph ? there is no hook for that (apart from adding a \endofpar command or whatever to every paragraph From TeX for the Impatient... --- \prevgraf [ number parameter ] In horizontal mode, this parameter specifies the number of lines in the paragraph so far; in vertical mode, it specifies the number of lines in the previous paragraph. --- After giving it some further thought and with reference to specifies the number of lines in the paragraph so far, I don't need to know the paragraph's number of lines but whether its number of lines = 1 or not. Alan ___ 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] paragraph question
Thanks Wolfgang, however I'm looking for a solution without adding additional commands to the text source. Requires to switch to the LuaTeX list ? Alan On Thu, Mar 5, 2009 at 2:44 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 14:25 schrieb Alan Stone: After giving it some further thought and with reference to specifies the number of lines in the paragraph so far, I don't need to know the paragraph's number of lines but whether its number of lines = 1 or not. You can test whether the last paragraph had 1 or more lines and make your decision dependent on the result but this can be done only after the paragraph ist finished. \def\paragraphlines {\blank % Finish the last paragraph \ifnum\prevgraf=1 What I want.\else Too many lines.\fi \blank} \starttext \dorecurse{30}{text }\paragraphlines \dorecurse{10}{text }\paragraphlines \dorecurse{50}{text }\paragraphlines \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Alan ___ 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] paragraph question
On Thu, Mar 5, 2009 at 5:09 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Thanks Wolfgang, however I'm looking for a solution without adding additional commands to the text source. Requires to switch to the LuaTeX list ? that does not help you as taco and i are on both lists i can imagine that mkiv at some point privides something but it needs way more thinking (we have this end of par problem since ages) if only because what you see as end of par might actually be just before the final skips that ends a par something everyendpar is on our todo list but later in the luatex project Hans Ok. In the meantime, an idea - for what it's worth... Would it be possible to somehow, in the typesetting process, dummy typeset the first paragraph of each chapter (in memory or in a dummy output file) to determine whether its number of lines = 1 or 1, or determine its total number of lines, and work from there ? Alan ___ 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] paragraph question
How do you access the first paragraph of each chapter ? ... to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? Alan On Tue, Mar 3, 2009 at 12:49 PM, Alan Stone software.list.1e...@gmail.com wrote: Hi, How do you access the first paragraph of each chapter ? I guess with... \setuphead[chapter][after=\PlayWithFirstParagraph] \def\PlayWithFirstParagraph... How to fill in the dots ? Alan ___ 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] paragraph question
On Wed, Mar 4, 2009 at 5:33 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: How do you access the first paragraph of each chapter ? to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? there is support for positional info ... depending on the problem To set \setuplettrine[Lines=1] if chapter's first paragraph number of lines = 1. that might help (set two positions and calculate the difference); no time now to explain details ___ 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] paragraph question
Hi, How do you access the first paragraph of each chapter ? I guess with... \setuphead[chapter][after=\PlayWithFirstParagraph] \def\PlayWithFirstParagraph... How to fill in the dots ? Alan ___ 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] t-lettrine question
Hi, Thanks a lot to Taco for the very handy lettrine module. How do you make it automatically drop cap the first word of each chapter ? -- Alan ___ 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] t-lettrine question
On Mon, Mar 2, 2009 at 12:13 PM, Taco Hoekwater t...@elvenkind.com wrote: Alan Stone wrote: Hi, Thanks a lot to Taco for the very handy lettrine module. How do you make it automatically drop cap the first word of each chapter ? I don't think you can. How about cooking up something with \setuphead[chapter][after=...] to apply \lettrine to the first word or letter of the first paragraph ? So far for the idea. For the implementation I'm clueless... Alan 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can't compile LuaTeX beta 0.35.0 (on OS X)
On Wed, Feb 25, 2009 at 12:15 PM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: It compiles normally here (10.5.6, Intel). Hasn't Mojca added the binary to the minimals? We really should cut her bonus at the end of the year :-) Mojca, if I may, a precious tip regarding your end of year bonus... Do what bankers do these days. For goodness sake, don't call it a bonus but a reward or give it some some other fancy name so nobody will notice or mind. Ump... ;O) Alan ___ 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] \usemodule question
Doesn't \usemodule issue a search in parent directories when the module is not found in the working directory ? \usemodule[t-lettrine] \starttext \lettrine{A}{bc} defgh \stoptext When putting t-lettrine.tex in the same directory as the above test file it works, when putting it in the parent directory it leads to... context.cmd lettritest This is luaTeX, Version snapshot-0.31.3-2008122922 (lettritest.tex ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.2.2 int: english/english system : cont-new loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (C:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (C:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys.rme loaded (C:/context/tex/texmf-context/tex/context/user/cont-sys.rme (C:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (C:/context/tex/texmf-context/tex/context/base/type-siz.tex) (C:/context/tex/texmf-context/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : pdftex loaded language : language en is active system : lettritest.top loaded (lettritest.top) system : module t-lettrine not found systems: begin file lettritest at line 3 ! Undefined control sequence. l.5 \lettrine {A}{bc} defgh -- Alan ___ 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] \usemodule question
Did put t-lettrine.tex in C:\context\tex\texmf Didn't work. kpsewhich --expand-var $TEXMF {C:/context/tex/texmf-project,C:/context/tex/texmf-fonts,C:/context/tex/texmf-local,C:/context/tex/texmf-mswin,C:/context/tex/texmf-context,C:/context/tex/texmf-extra,!!C:/context/tex/texmf} READY luatools.cmd --expand-var TEXMF {C:/context/tex/texmf-project,C:/context/tex/texmf-fonts,C:/context/tex/texmf-local,C:/context/tex/texmf-mswin,C:/context/tex/texmf-context,C:/context/tex/texmf-extra,!!C:/context/tex/texmf} READY kpsewhich t-lettrine.tex READY luatools.cmd --locate t-lettrine.tex READY Alan On Thu, Feb 26, 2009 at 12:11 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 26.02.2009 um 11:55 schrieb Alan Stone: Doesn't \usemodule issue a search in parent directories when the module is not found in the working directory ? No, only current dir or TeX tree. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] slower access to ConTeXt generated pdfs in Windows Vista
It was an Adobe Reader issue. This helped eliminating the nagging window... Cancel preparing untagged document for reading http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=2478 Alan On Tue, Feb 24, 2009 at 10:34 PM, Alan Stone software.list.1e...@gmail.comwrote: On Tue, Feb 24, 2009 at 2:23 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: It's a portable with Intel Core Duo CPU P8400 2.26 GHz, 4Gb memory. hm, then rendering shoul dbe ok; maybe there is something special with your documents Wouldn't know what's so special about them: picture(s), text, some interactive elements, Windows ttf fonts. As it didn't occur when openening the pdf's in Windows XP and Linux, it has something to do with Vista. Alan ___ 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] slower access to ConTeXt generated pdfs in Windows Vista
It's a portable with Intel Core Duo CPU P8400 2.26 GHz, 4Gb memory. Alan On Tue, Feb 24, 2009 at 12:30 AM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: When opening ConTeXt generated pdf's in Windows Vista, a message window pops up saying something as (translated to english): - title: preparation of document contents - message: please wait while the contents of your document is being prepared + progress bar page x of total pages This doesn't show up in Windows XP or Linux. The embedded fonts are ttf fonts like arial/tahoma/verdana/times new roman, Any idea to what that's related and how to disable it/have it run in the background (if possible) because it slows access to reading the pdf. hm, i use vista and have never seen such problems, maybe your machine has not that much mem? Hans ___ 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] slower access to ConTeXt generated pdfs in Windows Vista
On Tue, Feb 24, 2009 at 2:23 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: It's a portable with Intel Core Duo CPU P8400 2.26 GHz, 4Gb memory. hm, then rendering shoul dbe ok; maybe there is something special with your documents Wouldn't know what's so special about them: picture(s), text, some interactive elements, Windows ttf fonts. As it didn't occur when openening the pdf's in Windows XP and Linux, it has something to do with Vista. Alan ___ 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] (Lua)TeX runs
Hello, Where can I find a description of what happens between (Lua)TeX runs ? Thanks, Alan ___ 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] (Lua)TeX runs
On Mon, Feb 23, 2009 at 3:58 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Hello, Where can I find a description of what happens between (Lua)TeX runs ? in mtx-context.lua Euh... I meant: in english. ;O) Alan ___ 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] reducing compile time
- does using \doifundefined{myMacro}{...} shorten tex runs/compile time ? - what are the features to avoid for shortest compile times ? -- Alan ___ 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] slower access to ConTeXt generated pdfs in Windows Vista
When opening ConTeXt generated pdf's in Windows Vista, a message window pops up saying something as (translated to english): - title: preparation of document contents - message: please wait while the contents of your document is being prepared + progress bar page x of total pages This doesn't show up in Windows XP or Linux. The embedded fonts are ttf fonts like arial/tahoma/verdana/times new roman, ... Any idea to what that's related and how to disable it/have it run in the background (if possible) because it slows access to reading the pdf. -- Alan ___ 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] reducing compile time
On Mon, Feb 23, 2009 at 6:54 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 23.02.2009 um 18:16 schrieb Alan Stone: - does using \doifundefined{myMacro}{...} shorten tex runs/compile time ? In which way? As I don't know/understand what happens between (Lua)TeX runs, to keep macro definitions in memory. - what are the features to avoid for shortest compile times ? Depends on your document and what do you want. My question was intended in a generic way, aka if you use - these features ... expect longer or significant longer compile times, or - these features ... generate the longest compile times. To give you a better answer speak in complete sentences. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] reducing compile time
On Mon, Feb 23, 2009 at 8:57 PM, Alan Stone software.list.1e...@gmail.comwrote: On Mon, Feb 23, 2009 at 6:54 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 23.02.2009 um 18:16 schrieb Alan Stone: - does using \doifundefined{myMacro}{...} shorten tex runs/compile time ? In which way? As I don't know/understand what happens between (Lua)TeX runs, to keep macro definitions in memory. Correction: to avoid spending time redefining macros in case their definitions are kept in memory between Lua(TeX) runs. - what are the features to avoid for shortest compile times ? Depends on your document and what do you want. My question was intended in a generic way, aka if you use - these features ... expect longer or significant longer compile times, or - these features ... generate the longest compile times. To give you a better answer speak in complete sentences. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] strange fontswitching error
Thanks Hans. This works, except... \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman] \usetypescriptfile[tps_verdana] \usetypescript[verdana] \def\myBodyFontSize{14pt} \def\myHeadFontSize{14pt} \setupbodyfont[verdana,\myBodyFontSize] \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myHeadFontSize]}] \starttext \chapter{First Chapter} \input knuth \stoptext (1) with for example - bodyfont = verdana, head font = timesnewroman (or the reverse) bodyfont size = 12pt, headfont size 12 pt = pdf is fine bodyfont size = 13pt, headfont size 13 pt = chapter head is blank bodyfont size = 14pt, headfont size 14 pt = chapter head is blank (2) what to use instead of \definetypeface[myFont][...] to be able to write \setupbodyfont[myFont,...] and/or \switchtobodyfont[myFont,...] ? Alan On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Hi, BF = body font HF = head font A = arial T = times new roman V = verdana OT = 12 = 12pt OF = 14 = 14pt See comments in fontswitch.tex In attachment... - fontswitch.tex: minimal example - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts - fontswitch.log for BFT14 + HFV14 - font error ( same with BFA14 + HFV14 ) - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with BFA14 + HFV14 ) After testing different font(switching) combinations... - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated pdf fine - BFV14 + HFV14 compiles and prints the generated pdf fine - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf fine Qué passa ? you use undefined typefaces; in mkii we default to an empty fontclass which in turn will trigger default fallbacks (i.e. the main bodyfont has no fontclass) while in mkiv we default to the 'modern' fontclass; i'm still not sure if it will be kept this way but if so, i'll make a fallback again (this time to a default fontclass) % \usetypescriptfile[tps_arial] \usetypescript[arial] \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman] \usetypescriptfile[tps_verdana] \usetypescript[verdana] \def\myFontSizeOT{12pt} \def\myFontSizeOF{19pt} % \setupbodyfont[arial,\myFontSizeOT] % \setupbodyfont[timesnewroman,\myFontSizeOT] \setupbodyfont[verdana, \myFontSizeOT] % \setupbodyfont[arial,\myFontSizeOF] % \setupbodyfont[timesnewroman,\myFontSizeOF] % \setupbodyfont[verdana, \myFontSizeOF] % \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOT]}] % \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOT]}] % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOT]}] \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOF]}] % \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOF]}] % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOF]}] \starttext \chapter{First Chapter} \input knuth - 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 ___ -- Alan ___ 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] strange fontswitching error
On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Hi, BF = body font HF = head font A = arial T = times new roman V = verdana OT = 12 = 12pt OF = 14 = 14pt See comments in fontswitch.tex In attachment... - fontswitch.tex: minimal example - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts - fontswitch.log for BFT14 + HFV14 - font error ( same with BFA14 + HFV14 ) - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with BFA14 + HFV14 ) After testing different font(switching) combinations... - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated pdf fine - BFV14 + HFV14 compiles and prints the generated pdf fine - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf fine Qué passa ? you use undefined typefaces; in mkii we default to an empty fontclass which in turn will trigger default fallbacks (i.e. the main bodyfont has no fontclass) while in mkiv we default to the 'modern' fontclass; i'm still not sure if it will be kept this way but if so, i'll make a fallback again (this time to a default fontclass) At first I didn't understand a thing about your answer, however after digging a bit further and finding out that when replacing 14pt with 14.4 pt ( re: \showbodyfontenvironment table ) it works again. Guess I now understand what fallbacksmeans. :O) For future reference... http://en.wikipedia.org/wiki/Typeface http://en.wikipedia.org/wiki/Fallback_font Alan % \usetypescriptfile[tps_arial] \usetypescript[arial] \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman] \usetypescriptfile[tps_verdana] \usetypescript[verdana] \def\myFontSizeOT{12pt} \def\myFontSizeOF{19pt} % \setupbodyfont[arial,\myFontSizeOT] % \setupbodyfont[timesnewroman,\myFontSizeOT] \setupbodyfont[verdana, \myFontSizeOT] % \setupbodyfont[arial,\myFontSizeOF] % \setupbodyfont[timesnewroman,\myFontSizeOF] % \setupbodyfont[verdana, \myFontSizeOF] % \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOT]}] % \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOT]}] % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOT]}] \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOF]}] % \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOF]}] % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOF]}] \starttext \chapter{First Chapter} \input knuth ___ 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] Inverted exclamation / question marks
On Thu, Feb 19, 2009 at 12:42 AM, Pau vim.u...@googlemail.com wrote: Can you please try this? \language[es] \mainlanguage[es] \enableregime[utf-8] \starttext ¡Hola! ¿Me ves bien? \stoptext Works fine over here Pau context.cmd spanish ( on Windows XP SP3 Home) This is luaTeX, Version snapshot-0.31.3-2008122922 (spanish.tex ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.2.2 int: english/english Alan --- Surprise, surprise --- Banker Logic: The More You Screw Up, The More You Get Paid... CEOs Caught Scheming On Tape http://www.youtube.com/watch?v=zwbE-y2Rx6I or http://www.liveleak.com/view?i=f95_1234826309 --- spanish.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC question
On Mon, Feb 16, 2009 at 11:28 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 16.02.2009 um 19:22 schrieb Alan Stone: How do you get the chapter number in front of the chapter heading in the TOC, in the following example with \setuphead[chapter][number=no] ? \setuphead[chapter][% % number=yes] number=no] With number=no the current section is no longer written to the utility file and there is no way to get it in the toc. What you can do is to enable section numbering but remove it from the output. \setuphead [chapter] [numbercommand=\gobbleoneargument, distance=0pt] Great ! With \setuphead[alternative=middle] there's still an empty/blank space above the chapter head though (where the chapter number is located when leaving out the numbercommand)... \showframe \setuplist[chapter][% alternative=b, criterium=chapter] \setuphead[chapter][% alternative=middle, number=yes, numbercommand=\gobbleoneargument, distance=0pt] \starttext \placecontent[% level=chapter, alternative=b] \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}} \stoptext Alan Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TOC question
On Tue, Feb 17, 2009 at 10:29 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 17.02.2009 um 09:44 schrieb Alan Stone: With number=no the current section is no longer written to the utility file and there is no way to get it in the toc. What you can do is to enable section numbering but remove it from the output. \setuphead [chapter] [numbercommand=\gobbleoneargument, distance=0pt] Great ! With \setuphead[alternative=middle] there's still an empty/blank space above the chapter head though (where the chapter number is located when leaving out the numbercommand)... \setuphead[chapter][% alternative=middle, number=yes, numbercommand=\gobbleoneargument, distance=0pt] Then don't use it, 'align=middle' should work. \setuphead [chapter] [numbercommand=\gobbleoneargument, distance=0pt, align=middle] Though undocumented, it works. Thanks. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TOC question
Hi, How do you get the chapter number in front of the chapter heading in the TOC, in the following example with \setuphead[chapter][number=no] ? \setuplist[chapter][% alternative=b, numbercommand={\headnumber[chapter]},% this has no effect % criterium=local] criterium=chapter] \setuphead[chapter][% % number=yes] number=no] \starttext \placecontent[% level=chapter, % criterium=chapter, alternative=b] \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}} \stoptext -- Best, Alan ___ 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] chapter page question
On Sun, Feb 15, 2009 at 11:04 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: You can format the text in \definetext. \startsetups header:chapter:middle \startcolor[red] \it Chapter page \stopcolor \stopsetups \definetext[chapter][header][\setups{chapter:header:middle}] Das ist ubersupercool ! :O) Thanks, Alan Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] chapter page question
Hi, What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. -- Best, Alan ___ 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] chapter page question
On Sat, Feb 14, 2009 at 11:57 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 11:46 schrieb Alan Stone: What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. Why and for what do you need this information? To put different text in the margin/edge top/header/... whether a page is a chapter page or not. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter page question
Ahaaa... thanks for clearing up the mist. So that makes... \definetext[text for header/text/footer area][header/text/footer][edge/margin/text][left][right] What are arguments 6 and 7 for ? Alan On Sat, Feb 14, 2009 at 2:40 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 14:14 schrieb Alan Stone: \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] % The \definetext command works like \setup(header/footer/...)texts and % has 3–7 arguments, the first argument is a keyword (you can use whatever % you want, the second is the location of the text and all other arguments % are reseved for the content. from what I understand... - the location is limited to the text header/footer = what about margin/edge top/header/footer/bottom ? You can place text in the header, footer and text area: \definetext[text for header area][header][...] \definetext[text for text area] [text] [...] \definetext[text for footer area][footer][...] \setuphead [...] [header=text for header area, text=text for text area, fotter=text for header area] You can also control where the text in this area should appear: \definetext[text for header area][header][...] % centered text in the text column \definetext[text for header area][header][...][...] % left and right text in the text column \definetext[text for header area][header][text] [...][...] % left and right text in the text column \definetext[text for header area][header][margin][...][...] % left and right margin in the text column \definetext[text for header area][header][edge] [...][...] % left and right edge in the text column - all other arguments are reserved for content = for which content and where ? if i put \definetext[chapter][header][chapter page][x1][x2][x3][x4] the chapter page header is replaced by right page !? Your setting is ignored because with all seven argument the third one has to be either text, margin or edge. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter page question
So it seems, although there's also \setuptop and \setupbottom, that definetext doesn't accept top and bottom. Any idea why that's so (samewise for setuphead which doesn't accept top and bottom arguments either, according to the manual) ? Alan On Sat, Feb 14, 2009 at 3:47 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 15:33 schrieb Alan Stone: Ahaaa... thanks for clearing up the mist. So that makes... \definetext[text for header/text/footer area][header/text/footer][edge/margin/text][left][right] What are arguments 6 and 7 for ? To set different texts for left pages. Seldom needed because in a doublesided document a chapter start normally at a right page. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter page question
The underneath example works with \def\myHeader{\iftuut chapter\else high\fi} How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}} ? ( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} ) \showframe \newif\iftuut %\tuuttrue \tuutfalse \setuppagenumbering[location=footer] \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] \def\myHeader{\doifmodelse{a}{chapter}{high}} %\def\myHeader{\iftuut chapter\else high\fi} \setuphead [chapter] % [header=chapter] % [header=high] [header=\myHeader] \starttext \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}} \stoptext --- ! Undefined control sequence. \myHeader -\doifmodelse {a}{chapter}{high} \doifvaluesomething ...inga {\csname #1\endcsname }\ifx \!!stringa \empty \e... argument ...ething {\??ko \v!chapter \c!header } {\setuplayouttext [\v!hea... \firstoftwoarguments #1#2-#1 argument ...BB {\v!chapter }\v!header \c!header \dohandlepagebreakBB {\v!c... \firstofoneargument #1-#1 ... l.23 ...apter #1}\dorecurse{20}{\input knuth\par}} --- Alan ___ 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] chapter page question
Unfortunately, it doesn't resolve the problem... ! Undefined control sequence. \cleanuplabel #1-\begingroup \let : \lettercolon \xdef \cleanlabel {#1}\endg... \docheckformode #1#2#3-\cleanuplabel {#3} \protect \checkedmodefalse \rawpro... \myHeader -\doifmodeelse {a} {chapter}{high} \doifvaluesomething ...inga {\csname #1\endcsname }\ifx \!!stringa \empty \e... argument ...ething {\??ko \v!chapter \c!header } {\setuplayouttext [\v!hea... \firstoftwoarguments #1#2-#1 ... l.23 ...apter #1}\dorecurse{20}{\input knuth\par}} ? context.cmd --modes=a test Alan On Sat, Feb 14, 2009 at 7:28 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 19:17 schrieb Alan Stone: The underneath example works with \def\myHeader{\iftuut chapter\else high\fi} How do you make it work with\def\myHeader{\doifmodelse{a}{chapter}{high}} ? ( without resorting to \doifmodeelse{a}{\tuuttrue}{\tuutfalse} ) [...] ! Undefined control sequence. \myHeader -\doifmodelse \doifmodeelse (a 'e' is missing in the command) Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] chapter page question
I also would like to be able to choose a different font and/or fontsize (\switchtobodyfont[...]), style and/or color (\color[...]) for chapter pages' header area (margin/edge/text) and non-chapter pages. Hence, I guess... back to my initial question. Alan On Sat, Feb 14, 2009 at 1:23 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.02.2009 um 12:57 schrieb Alan Stone: What's the way to test whether a page is a (start of a new) chapter page ? Didn't find it onoffline. Why and for what do you need this information? To put different text in the margin/edge top/header/... whether a page is a chapter page or not. \setupheadertexts[\doifoddpageelse{right page}{left page}] \definetext[chapter][header][chapter page] % The \definetext command works like \setup(header/footer/...)texts and % has 3–7 arguments, the first argument is a keyword (you can use whatever % you want, the second is the location of the text and all other arguments % are reseved for the content. \setuphead [chapter] [header=chapter] \starttext \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] centering fit question
Hello, In the underneath example, the only way I found to have everything horizontally and vertically centered in the text and margin header, as well as fit into the margin header, is as follows: \setuplayout[margin=3cm] \showframe \def\myText{% % \hfill some text \hfill} %\starthiding \framed[% width=\textwidth, height=\headerheight, align=middle, top=\vss, bottom=\vss, frame=off] {some text}} %\stophiding \def\myMarginText{% % \hfill this is some margin text \hfill} %\starthiding \framed[% width=\marginwidth, height=\headerheight, align=middle, top=\vss, bottom=\vss, frame=off] {this is some longer margin text}} %\stophiding \setuppagenumbering[location=footer] %\setupheader[% % before=\vss, % after=\vss] \setupheadertexts[text] [\myText] [\myText] \setupheadertexts[margin] [\myMarginText] [\myMarginText] \starttext test \stoptext What's the way to get the same result without using \framed and without making the margin wider ? Uncommenting what's commented in the code above centers everything ok, but the margin text doesn't fit. Thanks. -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home ___ 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] centering fit question
On Fri, Feb 13, 2009 at 8:21 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.02.2009 um 16:03 schrieb Alan Stone: Hello, In the underneath example, the only way I found to have everything horizontally and vertically centered in the text and margin header, as well as fit into the margin header, is as follows: [..] What's the way to get the same result without using \framed and without making the margin wider ? Uncommenting what's commented in the code above centers everything ok, but the margin text doesn't fit. You text is too long and you need a vertical box to break the along lines. \setuplayout[margin=3cm] %\showframe \def\myText {\hfill some text \hfill} \def\myMarginText {\hbox{$\vcenter{\vbox{\raggedcenter this is some margin text}}$}} \def\myMarginText {\framed [location=middle, align=middle, width=\hsize, frame=off] {this is some margin text}} Thanks Wolfgang. I don't understanf the use of location=middle though... \starttext \framed[% location=middle, align=middle, height=5cm, width=\hsize, frame=on] {some text} \framed[% align=middle, height=5cm, width=\hsize, frame=on] {some text} \stoptext \setuppagenumbering[location=footer] \setupheader [before=\vss, after=\vss] \setupheadertexts [text] [\myText] [\myText] \setupheadertexts [margin] [\myMarginText] [\myMarginText] \starttext test \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \doif(not)empty(else)
Hi, Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ? \def\ISay{} %\def\ISay{Boe!} \starttext \doifemptyelse{\ISay}{I say sht}{I say \ISay} \blank \doif{\ISay}{}{I say sht} \blank \doifnot{\ISay}{}{I say \ISay} \stoptext -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home ___ 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] setuphead question
Hello, In the example below... %\def\myCommand#1#2{} \def\myCommand#1#2{#1 #2} %\def\myCommand{} \setuphead[chapter] [number=yes, align=middle, % anyotherparameter=whatever, command=\myCommand] %command=] \starttext \startfrontmatter %\placecontent \completecontent \stopfrontmatter \startbodymatter \chapter{chapter one} \dorecurse{5}{\input tufte\par} \chapter{chapter two} \dorecurse{5}{\input douglas\par} \stopbodymatter \stoptext ... how do you define myCommand so \setuphead[chapter] [(any other parameter settings), command=\myCommand, (any other parameter settings)] is equal to \setuphead[chapter] [(any other parameter settings), command=, (any other parameter settings)] i.e. with any other parameter settings remaining active. In the example above, with align=middle and - \def\myCommand#1#2{} the ToC and chapter heads are blank - \def\myCommand#1#2{#1 #2} the ToC and chapter head alignment is lost - \def\myCommand{} the ToC and chapter head alignment is lost Thanks, Alan ___ 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] Dimensions
On Mon, Jan 26, 2009 at 9:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 26.01.2009 um 20:12 schrieb Alan BRASLAU: The syntax of \dimexpr and \numexpr is subtle and mysterious. For example, \framed[width=.61\textwidth,height=\dimexpr.61\textwidth*1486/1200\relax]{} works, but I never understood the limitations. How about an entry on the wiki? \dimexpr and \numexpr are explaines in the e-tex manual. ... which you'll find here: http://www.ntg.nl/maps/20/38.pdf Best, Alan The only important thing for \dimexpr is to write the dimen value as first value after the \dimexpr command and then the numeric values. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [Fwd: PV126: typographic programming course info (fwd)]
Hi, Just in case... has this nevertheless been recorded ? If not, is there another way to access this course ? Thanks, Alan On Mon, Dec 1, 2008 at 12:09 PM, Yue Wang yuleo...@gmail.com wrote: On Mon, Dec 1, 2008 at 5:22 PM, Hans Hagen pra...@wxs.nl wrote: Yue Wang wrote: Great. will the courses be recorded and posted on web? not that i know; so you have to be there in person -) well, I wish I could, but it's too far away... And I think all the context fans are looking forward to attend that lecture --- so, if we can record it, then everyone will benefit (just like the MIT's 6.001 courses) ^_^ Hans ___ 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] replacing words by underlines
Hi, In the underneath example, how do you get each word replaced by an underline ? Or, if not possible, underlined word groups with correct underline breaks for multi-line phrases. \def\UnderlineA#1% {\underbars{#1}} \def\UnderlineB#1% {\underbars{\phantom{#1}}} %{\underbar{\phantom{#1}}} \definetextbackground[underline][% location=text, alternative=1, background=, frame=off] \def\UnderlineC{% \groupedcommand {\starttextbackground[underline]} {\stoptextbackground}} \starttext Thus, I came to \UnderlineA{the conclusion} that the designer of a new system \UnderlineA{must not only be the implementer and first} large--scale user; the designer should also write the first user manual. Thus, I came to \UnderlineB{the conclusion} that the designer of a new system \UnderlineB{must not only be the implementer and first} large--scale user; the designer should also write the first user manual. Thus, I came to \UnderlineC{the conclusion} that the designer of a new system \UnderlineC{must not only be the implementer and first} large--scale user; the designer should also write the first user manual. \stoptext Thanks, Alan ___ 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] replacing words by underlines
Mein Hut ab für den Künstler :O) Alan On Sat, Jan 24, 2009 at 8:07 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 24.01.2009 um 19:00 schrieb Alan Stone: Hi, In the underneath example, how do you get each word replaced by an underline ? Or, if not possible, underlined word groups with correct underline breaks for multi-line phrases. \def\doUnderlineD#1% {\bgroup \setbox\scratchbox\hbox{#1}% \underbar{\hskip\wd\scratchbox}\space \egroup} \def\UnderlineD#1% {\processseparatedlist[#1][ ]\doUnderlineD\removeunwantedspaces} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] number of lines ?
Hi, Is there a command which returns the number of lines for a given portion of text ? -- Best, Alan ___ 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] number of lines ?
On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone software.list.1e...@gmail.com wrote: Hi, Is there a command which returns the number of lines for a given portion of text ? \starttext \setbox\scratchbox\vbox{\input knuth\par} \getnoflines\htdp\scratchbox \getnoflines{\htdp\scratchbox} % this works Your text has \noflines\ lines. or: Your text has \noflines lines. \stoptext \scratchingmyhair... ;O) ! Missing number, treated as zero. to be read again l l.7 Your text has \noflines\ l ines. Alan -- Best, Alan * TeX engine = LuaTeX *ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home ___ 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] number of lines ?
Try: Your text has {\the\noflines} lines. Your text has \the\noflines\ lines. % works also Thanks. -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home ___ 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] number of lines ?
On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone software.list.1e...@gmail.comwrote: Try: Your text has {\the\noflines} lines. Your text has \the\noflines\ lines. % works also Thanks. How do you substract/add a number from/to \noflines ? I tried \thinrules[n=\advance\the\noflines by -2] \thinrules[n=\advance\noflines by -2] \thinrules[n={\advance\the\noflines by -2}] \thinrules[n={\advance\noflines by -2}] neither works. -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home ___ 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] number of lines ?
How do you make the attached example work (see comments at the beginning of the file) ? {Thus, I came to the conclusion that the designer of a new system mus\ETC. ! Paragraph ended before \makelines was complete. to be read again \par l.22 ? Alan On Thu, Jan 22, 2009 at 3:46 PM, Otared Kavian ota...@gmail.com wrote: On 22 janv. 09, at 15:39, Alan Stone wrote: On Thu, Jan 22, 2009 at 12:22 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: On Thu, Jan 22, 2009 at 12:02 PM, Alan Stone software.list.1e...@gmail.com wrote: Hi, Is there a command which returns the number of lines for a given portion of text ? \starttext \setbox\scratchbox\vbox{\input knuth\par} \getnoflines\htdp\scratchbox \getnoflines{\htdp\scratchbox} % this works Your text has \noflines\ lines. or: Your text has \noflines lines. Try: Your text has {\the\noflines} lines. Best regards: OK makelines.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] number of lines ?
Thanks a lot Wolfgang the Wise Wizard of TeX. :O) Alan On Thu, Jan 22, 2009 at 7:53 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 22.01.2009 um 19:35 schrieb Alan Stone: How do you make the attached example work (see comments at the beginning of the file) ? \long\def\makelines#1{% ...} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home ___ 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] number of lines ?
On Thu, Jan 22, 2009 at 5:54 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 22.01.2009 um 17:20 schrieb Alan Stone: On Thu, Jan 22, 2009 at 3:54 PM, Alan Stone software.list.1e...@gmail.com wrote: Try: Your text has {\the\noflines} lines. Your text has \the\noflines\ lines. % works also Thanks. How do you substract/add a number from/to \noflines ? I tried \thinrules[n=\advance\the\noflines by -2] \thinrules[n=\advance\noflines by -2] \thinrules[n={\advance\the\noflines by -2}] \thinrules[n={\advance\noflines by -2}] \thinrules[n=\number\numexpr\noflines-2\relax] And how do you make a division of \number\numexpr\noflines-2, for ex. by 2 ? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ctx files
What tool do you use to validate ctx files ? On Fri, Dec 19, 2008 at 6:01 PM, Alan STONE software.list.1e...@gmail.comwrote: Has there been any progress regarding the issues/inquiries of this thread ? If none, what is/are the alternative(s) ? -- Best, Alan ___ 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] line spacing in frame with centered text
Thanks a lot for the clarification Wolfgang. I guess I was still playing with this kind of major flawed thinking coming from WYSIWYG wordprocessors where isn't concerned thinking about these technical aspects (what's underneath), instead type/edit as characters appear on screen in real time, then when switching to typesetting systems extrapolate and expect things to work in the same way. I'll digg into the manuals' corresponding chapters to get more familiar with these technicalities and let them sink in. Best, Alan On Sun, Jan 4, 2009 at 8:54 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 04.01.2009 um 20:30 schrieb Alan STONE: On Sun, Jan 4, 2009 at 6:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 04.01.2009 um 18:26 schrieb Alan STONE: \starttext \setbox\scratchbox\hbox{\switchtobodyfont[38pt]Text In A Frame} \the\htdp\scratchbox \stoptext From this example I conclude TeX does not do what you tell it to do. I must be missing something... ? What do you not understand in my example? From what I understand of it: asked 38pt, output 26.18pt The 26.18pt are only the height of the sample text, not each character has the height of the font size which includes the height and depth. You can see here the output is correct and only characters with large height and depth match the given fontsize. \starttext \setbox\scratchbox\hbox{\switchtobodyfont[38pt](} \the\htdp\scratchbox % 37.45pt \stoptext I show you in another example why you value for the interlinespace is to small for characters with depth. \starttext \vbox {\switchtobodyfont[38pt] \setupinterlinespace[line=30pt] \lineskiplimit-\maxdimen Big text\crlf written in\crlf three rows\par} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___