Re[2]: [NTG-context] Page-breakable framed text
Thursday, February 26, 2004 Hans Hagen wrote: At 16:41 25/02/2004, you wrote: Hi! Is there a way to produce a page-breakable framed text? I've already spent several hours on this and still can't find the solution. Or, may be there's a better way to achieve the effect, shown in the sample? see details.pdf: (nested) backgrounds that can be whatever graphic you want But watch out, they gobble footnotes ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Can itemize calculate optimal label widths?
Hans Hagen wrote: At 10:18 20/02/2004, you wrote: Hi all! Is there a possiblity to have itemize calculate the optimal label width itself? I have an itemize that has rather different labels, e.g.: \startitemize \sym{1.} An item \sym{2.} Another item \sym{103 a.} An item with a very broad label \stopitemize In this example the label 103 a. flows into the item text. It would be great if itemize would automatically use a label width that fits the broadest label. for the moment use: \startitemize[2*broad] and remind me in a few couple of weeks (months); it's on my mental to-do list (not that hard to implement probably) Hans Ok - thanks for the reply. Is there a (TeX-)dimension for the label width available? In other words: by which amount is the current text area narrowed after an item has started? --Stefan ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \doifnextcharelse problem
At 17:38 26/02/2004, you wrote: which case the first character in the body of the command is checked \doifnextcharelse[... which thus fails but in some manner eats it (even tricky indeed (will think about it) go the etex way: \definecomplexorsimpleempty\startbnfgrammar \long\def\complexstartbnfgrammar[#1]#2\stopbnfgrammar {\bgroup% \global\firstruletrue% \global\newruletrue% \global\donerulefalse% \setupbnfgrammar[#1]% \setcatcodes% \starttable[|r|c|l|]\scantokens{#2}\LR\stoptable \egroup} beware, use \def\BNFsomecommand to avoid future nameclashes; also, no % are needed after a \cs: \long\def\complexstartbnfgrammar[#1]#2\stopbnfgrammar {\bgroup \global\firstruletrue \global\newruletrue \global\donerulefalse \setupbnfgrammar[#1]% \setcatcodes \starttable[|r|c|l|]\scantokens{#2}\LR\stoptable \egroup} I assume that you know that \setcatcodes is an internal command Hans ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \doifnextcharelse problem
* Hans Hagen [EMAIL PROTECTED] [Feb 26, 2004 19:10]: go the etex way: great! thanks, that worked. no % are needed after a \cs: hm, OK. This is a good reason why it would be good to have a tex programming reference, so that one'd know when it's necessary and when it's not. I assume that you know that \setcatcodes is an internal command yeah, I saw it somewhere. I figured that it was a good name though and that I'd use it too. I figured that the \unprotect deal with the nameclash. Am I, in fact, overruling the internal one now? If so, how should one avoid cases like this? Should I have all my module's commands CamelCased? Also, is there some repository of CONTEXT modules out there? I can't find a reference on pragma-ade.com nor ntg.nl, but maybe I've missed it. Anyway, thanks Hans for such a quick and thorough response, and also for a great typesetting environment; TeX has never been easier, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Page-breakable framed text
At 15:22 26/02/2004, you wrote: But watch out, they gobble footnotes ... hm, i seldom use them, so i didn't notice, so i need to implement forbidden areas ... since you didn't mention it before i assume that it has a low priority -) Hans ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] horoffset
Hello all, well, I figured it out myself in the meantime: \setuplayout[horoffset=-0.4cm] to correct the printing area of my laserprinter. But this is not possible for doublesided documents, made with \setuppagenumbering [alternative=doublesided], does not work correct, but \setuplayout [horoffset=-0.4cm] \setuppagenumbering [alternative={singlesided,doublesided}] does. Offset direction is now the same on every page. BTW, can I use texexec to correct the printing area? It works at least with pdf-files: texexec --pdfarrange --paperoffset=-0.4cm file.pdf Greetings Thomas Lohmann ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context