Re: [NTG-context] Stange error with \definepalet
Am 10.04.2011 um 00:22 schrieb Aditya Mahajan: > Hi, > > \definepalet > [test] > [one=red, > two=blue, > ] > > \normalend > > gives > > ]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone \ETC. > ! File ended while scanning use of \dodododefinepalet. > > while > > \definepalet > [test] > [one=red, > two=blue] > > \normalend > > compiles correctly. Shouldn't the both be equal? \definepalet use it’s own code to parse assignments which can’t handle empty entries like \getparameters, your first example is therefore wrong. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Typesetting url's in ConTeXt?
On Sun, 10 Apr 2011, Alasdair McAndrew wrote: There's a wiki page all about typesetting url's, but I can't seem to get them to work. All I want to do is to display a url in a typewriter font, for document printing - I don't need a live link. What I want is for the output to be similar to that provided by LaTeX's url package, so that, for example: \url{https://This_is_a_url.html} would be appropriately typeset, including all such ascii characters as underscores. What's the canonical way to do this? \hyphenatedurl{} Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Typesetting url's in ConTeXt?
There's a wiki page all about typesetting url's, but I can't seem to get them to work. All I want to do is to display a url in a typewriter font, for document printing - I don't need a live link. What I want is for the output to be similar to that provided by LaTeX's url package, so that, for example: \url{https://This_is_a_url.html} would be appropriately typeset, including all such ascii characters as underscores. What's the canonical way to do this? Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Stange error with \definepalet
Hi, \definepalet [test] [one=red, two=blue, ] \normalend gives ]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone \ETC. ! File ended while scanning use of \dodododefinepalet. while \definepalet [test] [one=red, two=blue] \normalend compiles correctly. Shouldn't the both be equal? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)
On Sat, Apr 9, 2011 at 10:11 PM, Aditya Mahajan wrote: > On Sat, 9 Apr 2011, Henning Hraban Ramm wrote: > > >> Am 2011-04-09 um 22:26 schrieb James Fisher: >> >> I want to define 'inside' and 'outside' margins (i.e. left and right >>> pages are symmetrical, not the same). Reading the document >>> 'co-pagedesign.pdf', ConTeXt talks about 'left' and 'right' margins (and >>> other measurements). At first I thought this must be either a >>> 'representative' left or right page (the diagram on page 3 doesn't say >>> which), but experimenting suggests that there really is no concept of left >>> and right pages here (despite the incredible detail that the document goes >>> into on arranging pages etc which must understand this). >>> >>> In short this is a basic requirement. How do I solve it? >>> >> >> As stated on http://wiki.contextgarden.net/Layout : >> "You define always a right page; if you use a double page layout 'right' >> and 'left' values are mirrored on a left page." >> > > A concerete example: > > \setuplayout >[backspace=5cm, > cutspace=2cm, > leftmargin=4cm, > rightmargin=1cm, > width=middle] > > \setuppagenumbering[alternative=doublesided] > > \showframe > > \starttext > \dorecurse{8}{Page \recurselevel \page} > \stoptext Aha, so this works -- thanks Aditya. Although it seems strange that this is hidden under 'page numbering' which (I would say) is nothing to do with page margins! James ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)
On Sat, 9 Apr 2011, Henning Hraban Ramm wrote: Am 2011-04-09 um 22:26 schrieb James Fisher: I want to define 'inside' and 'outside' margins (i.e. left and right pages are symmetrical, not the same). Reading the document 'co-pagedesign.pdf', ConTeXt talks about 'left' and 'right' margins (and other measurements). At first I thought this must be either a 'representative' left or right page (the diagram on page 3 doesn't say which), but experimenting suggests that there really is no concept of left and right pages here (despite the incredible detail that the document goes into on arranging pages etc which must understand this). In short this is a basic requirement. How do I solve it? As stated on http://wiki.contextgarden.net/Layout : "You define always a right page; if you use a double page layout 'right' and 'left' values are mirrored on a left page." A concerete example: \setuplayout [backspace=5cm, cutspace=2cm, leftmargin=4cm, rightmargin=1cm, width=middle] \setuppagenumbering[alternative=doublesided] \showframe \starttext \dorecurse{8}{Page \recurselevel \page} \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)
Am 2011-04-09 um 22:26 schrieb James Fisher: I want to define 'inside' and 'outside' margins (i.e. left and right pages are symmetrical, not the same). Reading the document 'co- pagedesign.pdf', ConTeXt talks about 'left' and 'right' margins (and other measurements). At first I thought this must be either a 'representative' left or right page (the diagram on page 3 doesn't say which), but experimenting suggests that there really is no concept of left and right pages here (despite the incredible detail that the document goes into on arranging pages etc which must understand this). In short this is a basic requirement. How do I solve it? As stated on http://wiki.contextgarden.net/Layout : "You define always a right page; if you use a double page layout 'right' and 'left' values are mirrored on a left page." Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)
Hi Otared, Thanks. Two problems here: - the \inoutermargin and \ininnermargin commands add text to the margins. I can set it to no text, but I don't see why they would be necessary to define inner and outer margin size. - the location=doublesided looks like what I was looking for, but it doesn't affect anything! (Nor does duplex.) Every page still has the same margins irrespective of whether they're even or odd. James On Sat, Apr 9, 2011 at 9:34 PM, Otared Kavian wrote: > Hi James, > > You can use >\inoutermargin{some marginal note} > and >\ininnermargin{some marginal note} > Then when you use >\setuplayout[location=doublesided] > at the beginning of your file, the above two commands should give you what > you seem to be wanting. > > Best regards: OK > > On 9 avr. 2011, at 22:26, James Fisher wrote: > > > I want to define 'inside' and 'outside' margins (i.e. left and right > pages are symmetrical, not the same). Reading the document > 'co-pagedesign.pdf', ConTeXt talks about 'left' and 'right' margins (and > other measurements). At first I thought this must be either a > 'representative' left or right page (the diagram on page 3 doesn't say > which), but experimenting suggests that there really is no concept of left > and right pages here (despite the incredible detail that the document goes > into on arranging pages etc which must understand this). > > > > In short this is a basic requirement. How do I solve it? > > > > > > James > > > ___ > > If your question is of interest to others as well, please add an entry to > the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)
Hi James, You can use \inoutermargin{some marginal note} and \ininnermargin{some marginal note} Then when you use \setuplayout[location=doublesided] at the beginning of your file, the above two commands should give you what you seem to be wanting. Best regards: OK On 9 avr. 2011, at 22:26, James Fisher wrote: > I want to define 'inside' and 'outside' margins (i.e. left and right pages > are symmetrical, not the same). Reading the document 'co-pagedesign.pdf', > ConTeXt talks about 'left' and 'right' margins (and other measurements). At > first I thought this must be either a 'representative' left or right page > (the diagram on page 3 doesn't say which), but experimenting suggests that > there really is no concept of left and right pages here (despite the > incredible detail that the document goes into on arranging pages etc which > must understand this). > > In short this is a basic requirement. How do I solve it? > > > James > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] inside and outside margins (vs. 'left' and 'right' margins)
I want to define 'inside' and 'outside' margins (i.e. left and right pages are symmetrical, not the same). Reading the document 'co-pagedesign.pdf', ConTeXt talks about 'left' and 'right' margins (and other measurements). At first I thought this must be either a 'representative' left or right page (the diagram on page 3 doesn't say which), but experimenting suggests that there really is no concept of left and right pages here (despite the incredible detail that the document goes into on arranging pages etc which must understand this). In short this is a basic requirement. How do I solve it? James ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wiki: MkIV vs. MkII
Hi, > So I seems to me to be good: > > - to provide both compilation engines, MkII and MkIV, > > - to provide a attribute, e.g. or mark="iv"> or something like this to force the specified Ctx to compile. We are planning to think about considering to install MKIV on the garden server. But this will take some time. We are currently in the progress of handling the ownership / server to other people and machines, and after that new things may come. If there are some able system administrators with enough spare time, we could possibly combine efforts. Patrick :) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] section headings
With the following code I get 1. Teil foo § 1 1 bar i baz but I need 1. Teil foo § 1 A. bar I. baz I cannot get the needed information from the wiki and the documentation. \def\PartNo#1{#1.\,Teil} \def\ChapterNo#1{§ \headnumber[part] \determineheadnumber[chapter]\currentheadnumber} \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber} \setuphead[part][number=yes,after=\blank,numbercommand=\PartNo, style={\tfc\ss\bf},placehead=yes] \setuphead[chapter][before=\blank,after=\blank,conversion=Characters, numbercommand=\ChapterNo, continue=yes,style={\tfb\ss\bf}] \setuphead[section][conversion=Romannumerals, numbercommand=\SectionNo,style={\tfb\ss\bf}] \starttext \part{foo} \chapter{bar} \section{baz} \stoptext Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setupindenting[no] does not reset indentation for items
I have the following code: \starttext {\bf\em default} paragrap1 paragrap2 paragrap3 \startitemize \item paragrap1 paragrap2 paragrap3 \stopitemize \setupindenting[yes,medium] {\bf\em after setupindenting[yes,medium]} paragrap1 paragrap2 paragrap3 \startitemize \item paragrap1 paragrap2 paragrap3 \stopitemize \setupindenting[no] {\bf\em after setupindenting[no]} paragrap1 paragrap2 paragrap3 \startitemize \item paragrap1 paragrap2 paragrap3 \stopitemize \stoptext I would expect the default and setupindentation[no] to do the same. But it does not. By the last one normal text is not indented anymore, but the items still are. Is this a bug, or a feature? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___