* What happened with sectionworld? @ 2009-04-28 17:42 Henning Hraban Ramm 2009-04-28 18:53 ` Wolfgang Schuster 0 siblings, 1 reply; 36+ messages in thread From: Henning Hraban Ramm @ 2009-04-28 17:42 UTC (permalink / raw) To: mailing ConTeXt users list for \setupsectionworld is unknown in latest beta (at least since some betas before). Can I replace it with some other command? Here is some code using sectionworlds, that Wolfgang wrote for me in 2008, same as in http://wiki.contextgarden.net/Proceedings_style % with help from Wolfgang Schuster, 2008-04-15 % start WS \unprotect \resetvalue{\??sw\v!chapter} \startsetups chapter:list \def\\{{\nomarking{\unskip\nolist\crlf}}} \doiftextelse{\sectionworldparameter\c!author} {\expanded{\writetolist[\v!chapter] {\sectionworldparameter\c!author:\space \sectionworldparameter\c!text}{}}} {\expanded{\writetolist[\v!chapter] {\sectionworldparameter\c!text}{}}} \def\ChapterAuthor{% \doiftextelse% {\sectionworldparameter\c!author}% {\rm\tf\sectionworldparameter\c!author\crlf\vskip0.25em} {}% } \def\ChapterTitle{{\ss\bfb\sectionworldparameter\c!text}} \def\ChapterSubTitle{% \doiftextelse% {\sectionworldparameter\c!subtitle}% {\crlf\vskip0.2em\ss\bf\sectionworldparameter\c!subtitle}% {}% } \stopsetups \setupsectionworld [chapter] [setups={chapter:list}, author=] \def\ChapterCommand#1#2% {\vbox{\ChapterAuthor\ChapterTitle\ChapterSubTitle}} \let\ChapterAuthor\relax \let\ChapterTitle\relax \let\ChapterSubTitle\relax \protect % stop WS 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-28 17:42 What happened with sectionworld? Henning Hraban Ramm @ 2009-04-28 18:53 ` Wolfgang Schuster 2009-04-28 21:25 ` Henning Hraban Ramm 2009-04-29 13:53 ` Mohamed Bana 0 siblings, 2 replies; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-28 18:53 UTC (permalink / raw) To: mailing list for ConTeXt users Am 28.04.2009 um 19:42 schrieb Henning Hraban Ramm: > \setupsectionworld is unknown in latest beta (at least since some > betas before). removed from mkiv a *long* time ago, there is now \startchapter etc. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-28 18:53 ` Wolfgang Schuster @ 2009-04-28 21:25 ` Henning Hraban Ramm 2009-04-29 8:24 ` Hans Hagen 2009-04-29 13:53 ` Mohamed Bana 1 sibling, 1 reply; 36+ messages in thread From: Henning Hraban Ramm @ 2009-04-28 21:25 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2009-04-28 um 20:53 schrieb Wolfgang Schuster: >> \setupsectionworld is unknown in latest beta (at least since some >> betas before). > > removed from mkiv a *long* time ago, there is now \startchapter etc. Long time in ConTeXt means less than a year... In 2008-08 Hans still wrote he wouldn't know if he would extend the sectionworld in MkIV. The discussion about \startsection ... \stopsection was in 2007! I don't understand how to use \startchapter[]{} ... \stopchapter for my needs. Could you give me a hint what to look for? I couldn't find \startchapter in the garden, and \startsection leads to \startsectionblockenvironment (strc-sbe.tex, core-sec.tex) \startsectionworld (core-swd.tex, doesn't mention it's not for MkIV) \startsection (m-cweb.tex) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-28 21:25 ` Henning Hraban Ramm @ 2009-04-29 8:24 ` Hans Hagen 2009-04-29 10:24 ` Wolfgang Schuster 0 siblings, 1 reply; 36+ messages in thread From: Hans Hagen @ 2009-04-29 8:24 UTC (permalink / raw) To: mailing list for ConTeXt users Henning Hraban Ramm wrote: > Am 2009-04-28 um 20:53 schrieb Wolfgang Schuster: > >>> \setupsectionworld is unknown in latest beta (at least since some >>> betas before). >> >> removed from mkiv a *long* time ago, there is now \startchapter etc. > > > Long time in ConTeXt means less than a year... > In 2008-08 Hans still wrote he wouldn't know if he would extend the > sectionworld in MkIV. > > The discussion about \startsection ... \stopsection was in 2007! > > I don't understand how to use \startchapter[]{} ... \stopchapter for my > needs. \startchapter[title=,reference=,bookmark=,...][optional user data] \stopchapter ----------------------------------------------------------------- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 8:24 ` Hans Hagen @ 2009-04-29 10:24 ` Wolfgang Schuster 2009-04-29 12:35 ` R. Bastian 2009-04-29 13:12 ` Hans Hagen 0 siblings, 2 replies; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 10:24 UTC (permalink / raw) To: mailing list for ConTeXt users Am 29.04.2009 um 10:24 schrieb Hans Hagen: >> I don't understand how to use \startchapter[]{} ... \stopchapter >> for my needs. > > \startchapter[title=,reference=,bookmark=,...][optional user data] is optional data in keyval form or normal text and who to use own values for author, date etc. in titles (which was possible in sectionworld) 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 10:24 ` Wolfgang Schuster @ 2009-04-29 12:35 ` R. Bastian 2009-04-29 12:54 ` Wolfgang Schuster 2009-04-29 13:12 ` Hans Hagen 1 sibling, 1 reply; 36+ messages in thread From: R. Bastian @ 2009-04-29 12:35 UTC (permalink / raw) To: ntg-context On Wed, 29 Apr 2009 12:24:01 +0200 Wolfgang Schuster <schuster.wolfgang@googlemail.com> scribit: > > Am 29.04.2009 um 10:24 schrieb Hans Hagen: > > >> I don't understand how to use \startchapter[]{} ... \stopchapter > >> for my needs. > > > > \startchapter[title=,reference=,bookmark=,...][optional user data] > > is optional data in keyval form or normal text and who to use > own values for author, date etc. in titles (which was possible > in sectionworld) > > Wolfgang > The \startchapter does not exist in my MinimalContex installation, but I hope one can include it. Anyway: which is the best method to get the list of all params one can give to \startSOMETHING (in this case \startchapter and the meanings of this params (some are obvious : title= ..., but not all). ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 12:35 ` R. Bastian @ 2009-04-29 12:54 ` Wolfgang Schuster 2009-04-29 15:07 ` Idris Samawi Hamid ادريس سماوي حامد 0 siblings, 1 reply; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 12:54 UTC (permalink / raw) To: mailing list for ConTeXt users Am 29.04.2009 um 14:35 schrieb R. Bastian: > The \startchapter does not exist in my MinimalContex installation, but > I hope one can include it. I dream from a world where people can whether they use MkII or MkIV and what's the date of their ConTeXt version. > Anyway: which is the best method to get the list of all params > one can give to \startSOMETHING (in this case \startchapter and > the meanings of this params (some are obvious : title= ..., but not > all). http://pragma-ade.nl/show-man-10.htm 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 12:54 ` Wolfgang Schuster @ 2009-04-29 15:07 ` Idris Samawi Hamid ادريس سماوي حامد 2009-04-29 15:43 ` R. Bastian 2009-04-29 18:14 ` What happened with sectionworld? Wolfgang Schuster 0 siblings, 2 replies; 36+ messages in thread From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-04-29 15:07 UTC (permalink / raw) To: mailing list for ConTeXt users Hi Wolfgang, On Wed, 29 Apr 2009 06:54:50 -0600, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote: >> Anyway: which is the best method to get the list of all params >> one can give to \startSOMETHING (in this case \startchapter and >> the meanings of this params (some are obvious : title= ..., but not >> all). > > http://pragma-ade.nl/show-man-10.htm I did not see the ne sectioning there... Anyway \startchapter[title=,reference=,bookmark=,...][optional user data] Could you [or someone] give a couple of example of how to use [optional user data] Also, where in the base files does this stuff get defined? I could not find it. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 15:07 ` Idris Samawi Hamid ادريس سماوي حامد @ 2009-04-29 15:43 ` R. Bastian 2009-04-29 15:55 ` luigi scarso 2009-04-29 15:57 ` footnote numbers size in heads Horacio Suarez 2009-04-29 18:14 ` What happened with sectionworld? Wolfgang Schuster 1 sibling, 2 replies; 36+ messages in thread From: R. Bastian @ 2009-04-29 15:43 UTC (permalink / raw) To: ntg-context On Wed, 29 Apr 2009 09:07:53 -0600 Idris Samawi Hamid ادريس سماوي حامد <ishamid@colostate.edu> scribit: > Hi Wolfgang, > > On Wed, 29 Apr 2009 06:54:50 -0600, Wolfgang Schuster > <schuster.wolfgang@googlemail.com> wrote: > > >> Anyway: which is the best method to get the list of all params > >> one can give to \startSOMETHING (in this case \startchapter and > >> the meanings of this params (some are obvious : title= ..., but not > >> all). > > > > http://pragma-ade.nl/show-man-10.htm > > I did not see the ne sectioning there... Anyway > > \startchapter[title=,reference=,bookmark=,...][optional user data] > > Could you [or someone] give a couple of example of how to use > > [optional user data] > > Also, where in the base files does this stuff get defined? I could not > find it. > > Best wishes > Idris > > -- > Professor Idris Samawi Hamid, Editor-in-Chief > International Journal of Shi`i Studies > Department of Philosophy > Colorado State University > Fort Collins, CO 80523 May be that ConTeXt is not a 'context free language' ;-) than it will be difficult to express something in a BNF grammar http://en.wikipedia.org/wiki/Backus-Naur_form. But if (ConTeXt == formal_language), it should be possible to develop TEXT, NUMBER, DIMENSION, REFERENCE, etc and also to add examples for "[optional user data]". rb > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 15:43 ` R. Bastian @ 2009-04-29 15:55 ` luigi scarso 2009-04-29 16:46 ` R. Bastian 2009-04-29 15:57 ` footnote numbers size in heads Horacio Suarez 1 sibling, 1 reply; 36+ messages in thread From: luigi scarso @ 2009-04-29 15:55 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 678 bytes --] > > > May be that ConTeXt is not a 'context free language' ;-) > than it will be difficult to express something in a BNF grammar > http://en.wikipedia.org/wiki/Backus-Naur_form. > hmm. Context is a macro package in TeX language which is Turing Complete. > But if (ConTeXt == formal_language), it should be possible to > develop TEXT, NUMBER, DIMENSION, REFERENCE, etc > and also to add examples for "[optional user data]". > hmm I'm not sure that ConTeXt == TeX (but it seems YES) , I'm nor sure that TeX is a context free language too, in the sense that I never see a BNF grammar of TeX . I suspect that TeX is not a cfl . Anyway, lpeg can make the thing easier -- luigi [-- Attachment #1.2: Type: text/html, Size: 1203 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 15:55 ` luigi scarso @ 2009-04-29 16:46 ` R. Bastian 2009-04-29 18:00 ` luigi scarso 0 siblings, 1 reply; 36+ messages in thread From: R. Bastian @ 2009-04-29 16:46 UTC (permalink / raw) To: ntg-context On Wed, 29 Apr 2009 17:55:05 +0200 luigi scarso <luigi.scarso@gmail.com> scribit: > > > > > > May be that ConTeXt is not a 'context free language' ;-) > > than it will be difficult to express something in a BNF grammar > > http://en.wikipedia.org/wiki/Backus-Naur_form. > > > hmm. > Context is a macro package in TeX language which is Turing Complete. > > > > But if (ConTeXt == formal_language), it should be possible to > > develop TEXT, NUMBER, DIMENSION, REFERENCE, etc > > and also to add examples for "[optional user data]". > > > hmm > I'm not sure that ConTeXt == TeX (but it seems YES) , > I'm nor sure that TeX is a context free language too, > in the sense that I never see a BNF grammar of TeX . (chap.24-26 of the Texbook are embryos of a grammar, but they are not usable like the grammar of Pascal or Python) > I suspect that TeX is not a cfl . > > Anyway, > lpeg can make the thing easier > > -- > luigi I think that something user-friendly could be do in a cooperative wiki (in the between, i found http://texshow.contextgarden.net/) beginning with CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SOURCE TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT and so on. ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 16:46 ` R. Bastian @ 2009-04-29 18:00 ` luigi scarso 2009-04-29 21:16 ` R. Bastian 0 siblings, 1 reply; 36+ messages in thread From: luigi scarso @ 2009-04-29 18:00 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2053 bytes --] On Wed, Apr 29, 2009 at 6:46 PM, R. Bastian <rbastian@free.fr> wrote: > On Wed, 29 Apr 2009 17:55:05 +0200 > luigi scarso <luigi.scarso@gmail.com> scribit: > > > > > > > > > > May be that ConTeXt is not a 'context free language' ;-) > > > than it will be difficult to express something in a BNF grammar > > > http://en.wikipedia.org/wiki/Backus-Naur_form. > > > > > hmm. > > Context is a macro package in TeX language which is Turing Complete. > > > > > > > But if (ConTeXt == formal_language), it should be possible to > > > develop TEXT, NUMBER, DIMENSION, REFERENCE, etc > > > and also to add examples for "[optional user data]". > > > > > hmm > > I'm not sure that ConTeXt == TeX (but it seems YES) , > > I'm nor sure that TeX is a context free language too, > > in the sense that I never see a BNF grammar of TeX . > (chap.24-26 of the Texbook are embryos of a grammar, but they are not > usable > like the grammar of Pascal or Python) > > I suspect that TeX is not a cfl . > > > > Anyway, > > lpeg can make the thing easier > > > > -- > > luigi > > > I think that something user-friendly could be do in a cooperative wiki (in > the between, i found > http://texshow.contextgarden.net/) beginning with > > CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SOURCE > TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT > > and so on. > Consider that one can always make some dirty tricks in PREAMBLE to render useless "\starttext" or "\stoptext" To be general, i think MY_CONTEXT_SOURCE ::= MACRO* END For example , let's try $>context test where test.tex ::="\end" or test.tex ::="FOO\end" Are there any errors ? No Is test.tex in {CONTEXT_SOURCE } ? No Is test.tex in {MY_CONTEXT_SOURCE} Yes so MY_CONTEXT_SOURCE includes CONTEXT_SOURCE (of course test.tex ::="\end""\starttext""\stoptext" is also in {CONTEXT_SOURCE } ) I think that a bnf or lpeg grammar is really useful for a sort of standard-ConTeXt or minimal-ConTeXt or light-ConTeXt ie a ConTeXt to use as "reference" but can be a bit hard to define -- luigi [-- Attachment #1.2: Type: text/html, Size: 3219 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 18:00 ` luigi scarso @ 2009-04-29 21:16 ` R. Bastian 2009-04-29 21:24 ` BNF grammar for ConTeXt (was: What happened with sectionworld?) Wolfgang Schuster 0 siblings, 1 reply; 36+ messages in thread From: R. Bastian @ 2009-04-29 21:16 UTC (permalink / raw) To: ntg-context On Wed, 29 Apr 2009 20:00:07 +0200 luigi scarso <luigi.scarso@gmail.com> scribit: > On Wed, Apr 29, 2009 at 6:46 PM, R. Bastian <rbastian@free.fr> wrote: > > > On Wed, 29 Apr 2009 17:55:05 +0200 > > luigi scarso <luigi.scarso@gmail.com> scribit: > > > > > > > > > > > > > > May be that ConTeXt is not a 'context free language' ;-) > > > > than it will be difficult to express something in a BNF grammar > > > > http://en.wikipedia.org/wiki/Backus-Naur_form. > > > > > > > hmm. > > > Context is a macro package in TeX language which is Turing Complete. > > > > > > > > > > But if (ConTeXt == formal_language), it should be possible to > > > > develop TEXT, NUMBER, DIMENSION, REFERENCE, etc > > > > and also to add examples for "[optional user data]". > > > > > > > hmm > > > I'm not sure that ConTeXt == TeX (but it seems YES) , > > > I'm nor sure that TeX is a context free language too, > > > in the sense that I never see a BNF grammar of TeX . > > (chap.24-26 of the Texbook are embryos of a grammar, but they are not > > usable > > like the grammar of Pascal or Python) > > > I suspect that TeX is not a cfl . > > > > > > Anyway, > > > lpeg can make the thing easier > > > > > > -- > > > luigi > > > > > > > > I think that something user-friendly could be do in a cooperative wiki (in > > the between, i found > > http://texshow.contextgarden.net/) beginning with > > > > CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SOURCE > > TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT > > > > and so on. > > > Consider that one can always make some dirty tricks in PREAMBLE to render > useless > "\starttext" > or "\stoptext" > > To be general, i think > MY_CONTEXT_SOURCE ::= MACRO* END > > For example , let's try > $>context test > where > test.tex ::="\end" > or > test.tex ::="FOO\end" > > Are there any errors ? No > Is test.tex in {CONTEXT_SOURCE } ? No > Is test.tex in {MY_CONTEXT_SOURCE} Yes > so MY_CONTEXT_SOURCE includes CONTEXT_SOURCE > (of course > test.tex ::="\end""\starttext""\stoptext" is also in {CONTEXT_SOURCE } > ) I dont understand the sense of "\end\starttext" (I am simply seeking a layout system which works better than Latex). > > I think that a bnf or lpeg grammar is really useful for a sort of > standard-ConTeXt > or minimal-ConTeXt or light-ConTeXt > ie a ConTeXt to use as "reference" Exactly what I need : standard, minimal and light > but can be a bit hard to define > > -- > luigi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* BNF grammar for ConTeXt (was: What happened with sectionworld?) 2009-04-29 21:16 ` R. Bastian @ 2009-04-29 21:24 ` Wolfgang Schuster 2009-04-30 7:48 ` luigi scarso 0 siblings, 1 reply; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 21:24 UTC (permalink / raw) To: mailing list for ConTeXt users Am 29.04.2009 um 23:16 schrieb R. Bastian: >> I think that a bnf or lpeg grammar is really useful for a sort of >> standard-ConTeXt >> or minimal-ConTeXt or light-ConTeXt >> ie a ConTeXt to use as "reference" > > Exactly what I need : standard, minimal and light How could a BNF grammar help to learn ConTeXt, it did not explain what a environment do and where is the advantage to ConTeXt's own command explanations with the information which arguments are optional and what keys and values a command takes. In a recent MkIV you even have the option to enable a key-val-checkers which mention invalid keys on the terminal. I have no problems to be corrected when I'm wrong or missing something. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: BNF grammar for ConTeXt (was: What happened with sectionworld?) 2009-04-29 21:24 ` BNF grammar for ConTeXt (was: What happened with sectionworld?) Wolfgang Schuster @ 2009-04-30 7:48 ` luigi scarso 2009-04-30 8:16 ` R. Bastian 0 siblings, 1 reply; 36+ messages in thread From: luigi scarso @ 2009-04-30 7:48 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1162 bytes --] R. Bastian: > CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SOURCE >>> TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT >> >> luigi: > To be general, i think >> MY_CONTEXT_SOURCE ::= MACRO* END >> > R. Bastian: > I dont understand the sense of "\end\starttext" sense==semantic "\end""\starttext" is a valid string for a hypothetical bnf grammar of ContTeXt which is not valid for your bnf ; "\end""\starttext""\stoptext" is in your bnf grammar and has the same semantic of "\end""\starttext" . The point is : a bnf for Context can be hard to define luigi: think that a bnf or lpeg grammar is really useful for a sort of >> standard-ConTeXt >> or minimal-ConTeXt or light-ConTeXt >> ie a ConTeXt to use as "reference" >> > R. Bastian: > Exactly what I need : standard, minimal and light > Exactly what can be hard to define and capture in a bnf . wolfgang > > How could a BNF grammar help to learn ConTeXt, a bnf can help to build a syntax checker, a highlighter etc. Actually the only way to say that you have a valid ConTeXt string is running context on that string . The semantic is another story. -- luigi [-- Attachment #1.2: Type: text/html, Size: 2923 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: BNF grammar for ConTeXt (was: What happened with sectionworld?) 2009-04-30 7:48 ` luigi scarso @ 2009-04-30 8:16 ` R. Bastian 2009-04-30 8:57 ` luigi scarso 0 siblings, 1 reply; 36+ messages in thread From: R. Bastian @ 2009-04-30 8:16 UTC (permalink / raw) To: ntg-context On Thu, 30 Apr 2009 09:48:40 +0200 luigi scarso <luigi.scarso@gmail.com> scribit: > R. Bastian: > > > CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SOURCE > >>> TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT > >> > >> luigi: > > > To be general, i think > >> MY_CONTEXT_SOURCE ::= MACRO* END > >> > > > R. Bastian: > > > I dont understand the sense of "\end\starttext" > > sense==semantic > > "\end""\starttext" is a valid string for a hypothetical bnf grammar of > ContTeXt > which is not valid for your bnf ; > "\end""\starttext""\stoptext" is in your bnf grammar > and has the same semantic of "\end""\starttext" . > > The point is : a bnf for Context can be hard to define > > > luigi: > > think that a bnf or lpeg grammar is really useful for a sort of > >> standard-ConTeXt > >> or minimal-ConTeXt or light-ConTeXt > >> ie a ConTeXt to use as "reference" > >> > > > R. Bastian: > > > Exactly what I need : standard, minimal and light > > > > Exactly what can be hard to define and capture in a bnf . > > wolfgang > > > > > How could a BNF grammar help to learn ConTeXt, > > a bnf can help to build a syntax checker, a highlighter etc. > Actually the only way to say that you have a valid ConTeXt string > is running context on that string . > > The semantic is another story. OK - but isn't it not worth to try it ? > > -- > luigi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: BNF grammar for ConTeXt (was: What happened with sectionworld?) 2009-04-30 8:16 ` R. Bastian @ 2009-04-30 8:57 ` luigi scarso 2009-04-30 10:05 ` R. Bastian 0 siblings, 1 reply; 36+ messages in thread From: luigi scarso @ 2009-04-30 8:57 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2032 bytes --] On Thu, Apr 30, 2009 at 10:16 AM, R. Bastian <rbastian@free.fr> wrote: > On Thu, 30 Apr 2009 09:48:40 +0200 > luigi scarso <luigi.scarso@gmail.com> scribit: > > > R. Bastian: > > > > > CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | > CONTEXT_SOURCE > > >>> TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT > > >> > > >> luigi: > > > > > To be general, i think > > >> MY_CONTEXT_SOURCE ::= MACRO* END > > >> > > > > > R. Bastian: > > > > > I dont understand the sense of "\end\starttext" > > > > sense==semantic > > > > "\end""\starttext" is a valid string for a hypothetical bnf grammar of > > ContTeXt > > which is not valid for your bnf ; > > "\end""\starttext""\stoptext" is in your bnf grammar > > and has the same semantic of "\end""\starttext" . > > > > The point is : a bnf for Context can be hard to define > > > > > > luigi: > > > > think that a bnf or lpeg grammar is really useful for a sort of > > >> standard-ConTeXt > > >> or minimal-ConTeXt or light-ConTeXt > > >> ie a ConTeXt to use as "reference" > > >> > > > > > R. Bastian: > > > > > Exactly what I need : standard, minimal and light > > > > > > > Exactly what can be hard to define and capture in a bnf . > > > > wolfgang > > > > > > > > How could a BNF grammar help to learn ConTeXt, > > > > a bnf can help to build a syntax checker, a highlighter etc. > > Actually the only way to say that you have a valid ConTeXt string > > is running context on that string . > > > > The semantic is another story. > > OK - but isn't it not worth to try it ? > sure, and I encourage you to go on and possibly write something x next eurotex. My suggestions to start : 1) define a **simple but significative** domain ,ie "this grammar is for subset of ConTeXt language dedicated to variable-data pdf forms" 2) make a bnf grammar spec 3) build a parser lex/yacc for 2) 4) make a lpeg grammar 5) user lpeg inside context for 3) PS it was just a coincidence , but for other reasons I have found this link http://martinfowler.com/dslwip/ -- luigi [-- Attachment #1.2: Type: text/html, Size: 3028 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: BNF grammar for ConTeXt (was: What happened with sectionworld?) 2009-04-30 8:57 ` luigi scarso @ 2009-04-30 10:05 ` R. Bastian 2009-04-30 10:12 ` luigi scarso 0 siblings, 1 reply; 36+ messages in thread From: R. Bastian @ 2009-04-30 10:05 UTC (permalink / raw) To: ntg-context On Thu, 30 Apr 2009 10:57:04 +0200 luigi scarso <luigi.scarso@gmail.com> scribit: > On Thu, Apr 30, 2009 at 10:16 AM, R. Bastian <rbastian@free.fr> wrote: > > > On Thu, 30 Apr 2009 09:48:40 +0200 > > luigi scarso <luigi.scarso@gmail.com> scribit: > > > > > R. Bastian: > > > > > > > CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | > > CONTEXT_SOURCE > > > >>> TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT > > > >> > > > >> luigi: > > > > > > > To be general, i think > > > >> MY_CONTEXT_SOURCE ::= MACRO* END > > > >> > > > > > > > R. Bastian: > > > > > > > I dont understand the sense of "\end\starttext" > > > > > > sense==semantic > > > > > > "\end""\starttext" is a valid string for a hypothetical bnf grammar of > > > ContTeXt > > > which is not valid for your bnf ; > > > "\end""\starttext""\stoptext" is in your bnf grammar > > > and has the same semantic of "\end""\starttext" . > > > > > > The point is : a bnf for Context can be hard to define > > > > > > > > > luigi: > > > > > > think that a bnf or lpeg grammar is really useful for a sort of > > > >> standard-ConTeXt > > > >> or minimal-ConTeXt or light-ConTeXt > > > >> ie a ConTeXt to use as "reference" > > > >> > > > > > > > R. Bastian: > > > > > > > Exactly what I need : standard, minimal and light > > > > > > > > > > Exactly what can be hard to define and capture in a bnf . > > > > > > wolfgang > > > > > > > > > > > How could a BNF grammar help to learn ConTeXt, > > > > > > a bnf can help to build a syntax checker, a highlighter etc. > > > Actually the only way to say that you have a valid ConTeXt string > > > is running context on that string . > > > > > > The semantic is another story. > > > > OK - but isn't it not worth to try it ? > > > sure, and I encourage you to go on and possibly write something x next > eurotex. > > My suggestions to start : > 1) define a **simple but significative** domain ,ie "this grammar is for > subset of ConTeXt language dedicated to variable-data pdf forms" yes > 2) make a bnf grammar spec yes > 3) build a parser lex/yacc for 2) later > 4) make a lpeg grammar > 5) user lpeg inside context for 3) > > PS > it was just a coincidence , but for other reasons I have found this link > http://martinfowler.com/dslwip/ > > -- > luigi I think a wiki would be a better forum than this mailing-list ? ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: BNF grammar for ConTeXt (was: What happened with sectionworld?) 2009-04-30 10:05 ` R. Bastian @ 2009-04-30 10:12 ` luigi scarso 2009-04-30 20:03 ` R. Bastian 0 siblings, 1 reply; 36+ messages in thread From: luigi scarso @ 2009-04-30 10:12 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 555 bytes --] > > > > My suggestions to start : > > 1) define a **simple but significative** domain ,ie "this grammar is for > > subset of ConTeXt language dedicated to variable-data pdf forms" > > yes > > > 2) make a bnf grammar spec > > yes > > > 3) build a parser lex/yacc for 2) > > later > why ? There is no difference between 2 and 3 I think a wiki would be a better forum than this mailing-list ? > hmm "this" mailing-list is ok for this kind of discussions "a wiki" is wiki.contextgarden.net and you should put your results in your personal page -- luigi [-- Attachment #1.2: Type: text/html, Size: 1213 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: BNF grammar for ConTeXt (was: What happened with sectionworld?) 2009-04-30 10:12 ` luigi scarso @ 2009-04-30 20:03 ` R. Bastian 0 siblings, 0 replies; 36+ messages in thread From: R. Bastian @ 2009-04-30 20:03 UTC (permalink / raw) To: ntg-context On Thu, 30 Apr 2009 12:12:10 +0200 luigi scarso <luigi.scarso@gmail.com> scribit: > > > > > > > My suggestions to start : > > > 1) define a **simple but significative** domain ,ie "this grammar is for > > > subset of ConTeXt language dedicated to variable-data pdf forms" > > > > yes > > > > > 2) make a bnf grammar spec > > > > yes > > > > > 3) build a parser lex/yacc for 2) > > > > later > > > why ? There is no difference between 2 and 3 True, but I think that the aim of such a BNF-grammar is to help in a concise way the newbie and tell him _what_ can be made and _when_ {\it in quel tempo}. (In fact, I dont like lex/yacc because it seems not a good idea to intervene on the generated code). > >> I think a wiki would be a better forum than this mailing-list ? > > > hmm > "this" mailing-list is ok for this kind of discussions > "a wiki" is wiki.contextgarden.net > and you should put your results in your personal page > > > -- > luigi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* footnote numbers size in heads 2009-04-29 15:43 ` R. Bastian 2009-04-29 15:55 ` luigi scarso @ 2009-04-29 15:57 ` Horacio Suarez 2009-04-29 21:17 ` Wolfgang Schuster 1 sibling, 1 reply; 36+ messages in thread From: Horacio Suarez @ 2009-04-29 15:57 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 691 bytes --] Hello all: using defaults setings, footnote numbers size in heads are too big. I usually use \chapter{Capitulo 1\switchtobodyfont[9]\footnote{texto del footnote}\switchtobodyfont[11]} and works fine. But if I have a chapter head with a footnote in the middle: \chapter{Capitulo 1\switchtobodyfont[9]\footnote{texto del footnote}\switchtobodyfont[11] continua el titulo} the result is not correct. How can I fix this? tahnkyou in adavance. -------------------- Horacio Suarez _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx [-- Attachment #1.2: Type: text/html, Size: 905 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: footnote numbers size in heads 2009-04-29 15:57 ` footnote numbers size in heads Horacio Suarez @ 2009-04-29 21:17 ` Wolfgang Schuster 0 siblings, 0 replies; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 21:17 UTC (permalink / raw) To: mailing list for ConTeXt users Hi, please repost your question (with a working example -> \starttext ... \stoptext) in a new thread and don't hijack other threads for your question, the messages are hard to find. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 15:07 ` Idris Samawi Hamid ادريس سماوي حامد 2009-04-29 15:43 ` R. Bastian @ 2009-04-29 18:14 ` Wolfgang Schuster 2009-04-29 18:23 ` Idris Samawi Hamid ادريس سماوي حامد 1 sibling, 1 reply; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 18:14 UTC (permalink / raw) To: mailing list for ConTeXt users Am 29.04.2009 um 17:07 schrieb Idris Samawi Hamid ادريس سماوي حامد: > Hi Wolfgang, > > On Wed, 29 Apr 2009 06:54:50 -0600, Wolfgang Schuster <schuster.wolfgang@googlemail.com > > wrote: > >>> Anyway: which is the best method to get the list of all params >>> one can give to \startSOMETHING (in this case \startchapter and >>> the meanings of this params (some are obvious : title= ..., but >>> not all). >> >> http://pragma-ade.nl/show-man-10.htm > > I did not see the ne sectioning there... Anyway You're welcome to add missing command to cont-en.xml > \startchapter[title=,reference=,bookmark=,...][optional user data] > > Could you [or someone] give a couple of example of how to use > > [optional user data] > > Also, where in the base files does this stuff get defined? I could > not find it. strc-sec.tex start/stop commands are created with \definehead automatically 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 18:14 ` What happened with sectionworld? Wolfgang Schuster @ 2009-04-29 18:23 ` Idris Samawi Hamid ادريس سماوي حامد 2009-04-29 18:27 ` Hans Hagen 2009-04-29 18:31 ` Wolfgang Schuster 0 siblings, 2 replies; 36+ messages in thread From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-04-29 18:23 UTC (permalink / raw) To: mailing list for ConTeXt users On Wed, 29 Apr 2009 12:14:38 -0600, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote: >> \startchapter[title=,reference=,bookmark=,...][optional user data] >> >> Could you [or someone] give a couple of example of how to use >> >> [optional user data] >> >> Also, where in the base files does this stuff get defined? I could not >> find it. > > strc-sec.tex > > start/stop commands are created with \definehead automatically ok, thnx! OTOH, I did not see any illustrative examples of the use of [optional user data] :-) Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 18:23 ` Idris Samawi Hamid ادريس سماوي حامد @ 2009-04-29 18:27 ` Hans Hagen 2009-04-29 18:31 ` Wolfgang Schuster 1 sibling, 0 replies; 36+ messages in thread From: Hans Hagen @ 2009-04-29 18:27 UTC (permalink / raw) To: mailing list for ConTeXt users Idris Samawi Hamid ادريس سماوي حامد wrote: > On Wed, 29 Apr 2009 12:14:38 -0600, Wolfgang Schuster > <schuster.wolfgang@googlemail.com> wrote: > >>> \startchapter[title=,reference=,bookmark=,...][optional user data] >>> >>> Could you [or someone] give a couple of example of how to use >>> >>> [optional user data] >>> >>> Also, where in the base files does this stuff get defined? I could >>> not find it. >> >> strc-sec.tex >> >> start/stop commands are created with \definehead automatically > > ok, thnx! OTOH, I did not see any illustrative examples of the use of > [optional user data] > > :-) of course not .. its; new -) ----------------------------------------------------------------- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 18:23 ` Idris Samawi Hamid ادريس سماوي حامد 2009-04-29 18:27 ` Hans Hagen @ 2009-04-29 18:31 ` Wolfgang Schuster 2009-04-29 18:34 ` Wolfgang Schuster 2009-04-29 18:40 ` Idris Samawi Hamid ادريس سماوي حامد 1 sibling, 2 replies; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 18:31 UTC (permalink / raw) To: mailing list for ConTeXt users Am 29.04.2009 um 20:23 schrieb Idris Samawi Hamid ادريس سماوي حامد: > ok, thnx! OTOH, I did not see any illustrative examples of the use of > [optional user data] \setuphead[title][align=middle,command=\TitleCommand] \define[2]\TitleCommand {\startframedtext[frame=off,width=\hsize,align=middle] #2\hairline \structureuservalue{author}\hfill\structureuservalue{date} \stopframedtext} \starttext \startchapter[title={How to make Idris happy?},reference={sec:happy}] [author={Wolfgang Schuster},date=\currentdate] It's not as hard you think, just show him a few nice things and he is happy. See \in{section}[sec:happy] at \at{page}[sec:happy]. \stopchapter \stoptext Are you now happy? 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 18:31 ` Wolfgang Schuster @ 2009-04-29 18:34 ` Wolfgang Schuster 2009-04-29 18:40 ` Idris Samawi Hamid ادريس سماوي حامد 1 sibling, 0 replies; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 18:34 UTC (permalink / raw) To: mailing list for ConTeXt users > Am 29.04.2009 um 20:23 schrieb Idris Samawi Hamid ادريس > سماوي حامد: > >> ok, thnx! OTOH, I did not see any illustrative examples of the use of >> [optional user data] > > \setuphead[title][align=middle,command=\TitleCommand] \setuphead[chapter][align=middle,command=\TitleCommand] > \define[2]\TitleCommand > {\startframedtext[frame=off,width=\hsize,align=middle] > #2\hairline > \structureuservalue{author}\hfill\structureuservalue{date} > \stopframedtext} > > \starttext > > \startchapter[title={How to make Idris happy?},reference={sec:happy}] > [author={Wolfgang Schuster},date=\currentdate] > > It's not as hard you think, just show him a few nice things and he > is happy. > > See \in{section}[sec:happy] at \at{page}[sec:happy]. > > \stopchapter > > \stoptext > > Are you now happy? 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 18:31 ` Wolfgang Schuster 2009-04-29 18:34 ` Wolfgang Schuster @ 2009-04-29 18:40 ` Idris Samawi Hamid ادريس سماوي حامد 1 sibling, 0 replies; 36+ messages in thread From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-04-29 18:40 UTC (permalink / raw) To: mailing list for ConTeXt users On Wed, 29 Apr 2009 12:31:27 -0600, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote: > > Am 29.04.2009 um 20:23 schrieb Idris Samawi Hamid ادريس سماوي حامد: > >> ok, thnx! OTOH, I did not see any illustrative examples of the use of >> [optional user data] > > \setuphead[title][align=middle,command=\TitleCommand] > > \define[2]\TitleCommand > {\startframedtext[frame=off,width=\hsize,align=middle] > #2\hairline > \structureuservalue{author}\hfill\structureuservalue{date} > \stopframedtext} > > \starttext > > \startchapter[title={How to make Idris happy?},reference={sec:happy}] > [author={Wolfgang Schuster},date=\currentdate] > > It's not as hard you think, just show him a few nice things and he is > happy. > > See \in{section}[sec:happy] at \at{page}[sec:happy]. > > \stopchapter > > \stoptext > > Are you now happy? Indeed I am :D Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 10:24 ` Wolfgang Schuster 2009-04-29 12:35 ` R. Bastian @ 2009-04-29 13:12 ` Hans Hagen 1 sibling, 0 replies; 36+ messages in thread From: Hans Hagen @ 2009-04-29 13:12 UTC (permalink / raw) To: mailing list for ConTeXt users Wolfgang Schuster wrote: > > Am 29.04.2009 um 10:24 schrieb Hans Hagen: > >>> I don't understand how to use \startchapter[]{} ... \stopchapter for >>> my needs. >> >> \startchapter[title=,reference=,bookmark=,...][optional user data] > > is optional data in keyval form or normal text and who to use > own values for author, date etc. in titles (which was possible > in sectionworld) key = value with \structureuservalue{key}, unless it's broken -) the info travels with the list data as well so eventually it will be accessible everywhere ----------------------------------------------------------------- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-28 18:53 ` Wolfgang Schuster 2009-04-28 21:25 ` Henning Hraban Ramm @ 2009-04-29 13:53 ` Mohamed Bana 2009-04-29 15:11 ` Henning Hraban Ramm 1 sibling, 1 reply; 36+ messages in thread From: Mohamed Bana @ 2009-04-29 13:53 UTC (permalink / raw) To: mailing list for ConTeXt users Would it be possible to go through a deprecation phase? E.g., allow \section hello world to compile, but prompt the user to acknowledge that it's going to be replaced with \section{hello world} in future versions. On 28/04/2009 19:53, Wolfgang Schuster wrote: > > Am 28.04.2009 um 19:42 schrieb Henning Hraban Ramm: > >> \setupsectionworld is unknown in latest beta (at least since some >> betas before). > > removed from mkiv a *long* time ago, there is now \startchapter etc. > > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 13:53 ` Mohamed Bana @ 2009-04-29 15:11 ` Henning Hraban Ramm 2009-04-29 21:07 ` Wolfgang Schuster 0 siblings, 1 reply; 36+ messages in thread From: Henning Hraban Ramm @ 2009-04-29 15:11 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2009-04-29 um 15:53 schrieb Mohamed Bana: > Would it be possible to go through a deprecation phase? E.g., allow > > \section hello world > > to compile, but prompt the user to acknowledge that it's going to be > replaced with \section{hello world} in future versions. Please don't mix your concern about structurals without braces into this thread, would you please? Or is it the same topic? I agree that it would be nice to know if commands disappear. I try to understand here, how to redo my chapter setup that once worked using sectionworld commands. At the moment I get no output for the chapter title at all. My input reads: \Titel{Author}{Title}{Subtitle} The output as chapter title should become like: \vbox{ {\rm\tf Author\crlf} {\ss\bfb Title\crlf} {\ss\bf Subtitle} } In the table of contents I need: Author: Title \hfill pagenumber So, using \startchapter, I define \Titel like this: \def\Titel#1#2#3{\startchapter[title={#2},bookmark={#2}] [author={#1},subtitle={#3}]} I guess, even \startchapter should obey to \setuphead[chapter]: \setuphead[chapter][ header=high, incrementnumber=no, command=\ChapterCommand, page=yes, number=no, align={flushleft,nothyphenated,verytolerant}, style=,] Therefore I define (i.e. Wolfgang defined) \ChapterCommand like: \def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle \ChapterSubTitle}} While \ChapterAuthor cum suis is defined in a setup. Now, what's the replacement for: \setupsectionworld[chapter][setups={chapter:list},author=] I tried to adapt Wolfgang's code to Hans' sparse hints: \unprotect \resetvalue{\??sw\v!chapter} \startsetups chapter:list \doiftextelse{\structureuservalue{author}} {\expanded{\writetolist[\v!chapter] {\structureuservalue{author}:\space \structurevalue{title}}{}}} {\expanded{\writetolist[\v!chapter] {\structurevalue{title}}{}}} \def\ChapterAuthor{% \doiftextelse% {\structureuservalue{author}}% {\rm\tf\structureuservalue{author}\crlf\vskip0.25em} {}% } \def\ChapterTitle{{\ss\bfb\structurevalue{title}}} \def\ChapterSubTitle{% \doiftextelse% {\structureuservalue{subtitle}}% {\crlf\vskip0.2em\ss\bf\structureuservalue{subtitle}}% {}% } \stopsetups \def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle \ChapterSubTitle}} % why is/was this needed? \let\ChapterAuthor\relax \let\ChapterTitle\relax \let\ChapterSubTitle\relax \protect (The original code is still in http://wiki.contextgarden.net/Proceedings_style) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 15:11 ` Henning Hraban Ramm @ 2009-04-29 21:07 ` Wolfgang Schuster 2009-04-30 15:40 ` Henning Hraban Ramm 0 siblings, 1 reply; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-29 21:07 UTC (permalink / raw) To: mailing list for ConTeXt users Am 29.04.2009 um 17:11 schrieb Henning Hraban Ramm: > I try to understand here, how to redo my chapter setup that once > worked using sectionworld commands. > At the moment I get no output for the chapter title at all. > > My input reads: > > \Titel{Author}{Title}{Subtitle} You never needed the sectionworld command for your own header command, this solution is cleaner and works with mkii and mkiv. \setuphead [chapter] [header=high, incrementnumber=no, command=\ChapterCommand, page=yes, number=no, align={flushleft,nothyphenated,verytolerant}, style=] \setuphead [title] [command=, style=\tfc] \define\ChapterAuthor {\doiftext{\theChapterAuthor} {\rm\tf\theChapterAuthor\crlf\vskip0.25em}} \define\ChapterTitle {{\ss\bfb\theChapterTitle}} \define\ChapterSubTitle {\doiftext{\theChapterSubTitle} {\crlf\vskip0.2em\ss\bf\theChapterSubTitle}} \define[2]\ChapterCommand {\doiftextelse{\theChapterAuthor} {\expanded{\writetolist[chapter]{}{\theChapterAuthor: \theChapterTitle}}} {\expanded{\writetolist[chapter]{}{\theChapterTitle}}}% \vbox{\ChapterAuthor\ChapterTitle\ChapterSubTitle}} \let\theChapterAuthor \relax \let\theChapterTitle \relax \let\theChapterSubTitle\relax \define[3]\Titel {\def\theChapterAuthor {#1}% \def\theChapterTitle {#2}% \def\theChapterSubTitle{#3}% \chapter{}} \starttext \completecontent \Titel{Author}{Title}{Subtitle} \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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-29 21:07 ` Wolfgang Schuster @ 2009-04-30 15:40 ` Henning Hraban Ramm 2009-04-30 17:06 ` Wolfgang Schuster 0 siblings, 1 reply; 36+ messages in thread From: Henning Hraban Ramm @ 2009-04-30 15:40 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2009-04-29 um 23:07 schrieb Wolfgang Schuster: > You never needed the sectionworld command for your own header command, > this solution is cleaner and works with mkii and mkiv. Thank you! That's nearly exactly what I wanted to achieve! So I asked the wrong question, stupid newbie error... But I wonder why you suggested the complicated solution one year before... I'll update http://wiki.contextgarden.net/Proceedings_style as soon as I get my other problems sorted out. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-30 15:40 ` Henning Hraban Ramm @ 2009-04-30 17:06 ` Wolfgang Schuster 2009-04-30 18:33 ` Henning Hraban Ramm 0 siblings, 1 reply; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-30 17:06 UTC (permalink / raw) To: mailing list for ConTeXt users Am 30.04.2009 um 17:40 schrieb Henning Hraban Ramm: > Am 2009-04-29 um 23:07 schrieb Wolfgang Schuster: >> You never needed the sectionworld command for your own header >> command, >> this solution is cleaner and works with mkii and mkiv. > > Thank you! That's nearly exactly what I wanted to achieve! > So I asked the wrong question, stupid newbie error... > But I wonder why you suggested the complicated solution one year > before... I presented you a solution with sectionworld headers, the \Title command was AFAIR your invention (which you never mentioned before). 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-30 17:06 ` Wolfgang Schuster @ 2009-04-30 18:33 ` Henning Hraban Ramm 2009-04-30 18:46 ` Wolfgang Schuster 0 siblings, 1 reply; 36+ messages in thread From: Henning Hraban Ramm @ 2009-04-30 18:33 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2009-04-30 um 19:06 schrieb Wolfgang Schuster: >>> You never needed the sectionworld command for your own header >>> command, >>> this solution is cleaner and works with mkii and mkiv. >> >> Thank you! That's nearly exactly what I wanted to achieve! >> So I asked the wrong question, stupid newbie error... >> But I wonder why you suggested the complicated solution one year >> before... > > I presented you a solution with sectionworld headers, the \Title > command > was AFAIR your invention (which you never mentioned before). That one indeed (that was easy...), but the whole sectionworld stuff was yours, as documented in http://wiki.contextgarden.net/Proceedings_style (see %start/stop WS; there \Titel is called \MyChapter) I still don't understand what the (additional?) problem was that you solved with that solution. Apparently we needed to tinker with the chapter counter. What part of your recent solutions wasn't possible one year before? \define[#] ? (At least I didn't know that one.) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: What happened with sectionworld? 2009-04-30 18:33 ` Henning Hraban Ramm @ 2009-04-30 18:46 ` Wolfgang Schuster 0 siblings, 0 replies; 36+ messages in thread From: Wolfgang Schuster @ 2009-04-30 18:46 UTC (permalink / raw) To: mailing list for ConTeXt users Am 30.04.2009 um 20:33 schrieb Henning Hraban Ramm: > Am 2009-04-30 um 19:06 schrieb Wolfgang Schuster: >> I presented you a solution with sectionworld headers, the \Title >> command >> was AFAIR your invention (which you never mentioned before). > > That one indeed (that was easy...), but the whole sectionworld stuff > was yours, as documented in http://wiki.contextgarden.net/Proceedings_style > (see %start/stop WS; there \Titel is called \MyChapter) > > I still don't understand what the (additional?) problem was that you > solved with that solution. > Apparently we needed to tinker with the chapter counter. why the counter (can't remember)? > What part of your recent solutions wasn't possible one year before? > \define[#] ? (At least I didn't know that one.) Nothing but you where looking for method to set the author and a subtitle and sectionworld was perfect suited for this with his key-val-syntax while your own \MyChapter changed everything because I could have used a different method than I needed for sectionworld. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 36+ messages in thread
end of thread, other threads:[~2009-04-30 20:03 UTC | newest] Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-04-28 17:42 What happened with sectionworld? Henning Hraban Ramm 2009-04-28 18:53 ` Wolfgang Schuster 2009-04-28 21:25 ` Henning Hraban Ramm 2009-04-29 8:24 ` Hans Hagen 2009-04-29 10:24 ` Wolfgang Schuster 2009-04-29 12:35 ` R. Bastian 2009-04-29 12:54 ` Wolfgang Schuster 2009-04-29 15:07 ` Idris Samawi Hamid ادريس سماوي حامد 2009-04-29 15:43 ` R. Bastian 2009-04-29 15:55 ` luigi scarso 2009-04-29 16:46 ` R. Bastian 2009-04-29 18:00 ` luigi scarso 2009-04-29 21:16 ` R. Bastian 2009-04-29 21:24 ` BNF grammar for ConTeXt (was: What happened with sectionworld?) Wolfgang Schuster 2009-04-30 7:48 ` luigi scarso 2009-04-30 8:16 ` R. Bastian 2009-04-30 8:57 ` luigi scarso 2009-04-30 10:05 ` R. Bastian 2009-04-30 10:12 ` luigi scarso 2009-04-30 20:03 ` R. Bastian 2009-04-29 15:57 ` footnote numbers size in heads Horacio Suarez 2009-04-29 21:17 ` Wolfgang Schuster 2009-04-29 18:14 ` What happened with sectionworld? Wolfgang Schuster 2009-04-29 18:23 ` Idris Samawi Hamid ادريس سماوي حامد 2009-04-29 18:27 ` Hans Hagen 2009-04-29 18:31 ` Wolfgang Schuster 2009-04-29 18:34 ` Wolfgang Schuster 2009-04-29 18:40 ` Idris Samawi Hamid ادريس سماوي حامد 2009-04-29 13:12 ` Hans Hagen 2009-04-29 13:53 ` Mohamed Bana 2009-04-29 15:11 ` Henning Hraban Ramm 2009-04-29 21:07 ` Wolfgang Schuster 2009-04-30 15:40 ` Henning Hraban Ramm 2009-04-30 17:06 ` Wolfgang Schuster 2009-04-30 18:33 ` Henning Hraban Ramm 2009-04-30 18:46 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).