Re: [NTG-context] mp file not compiling
Aditya Mahajan wrote: > To check this, I created a texexec.bat file in my current directory so > that it calls texmfstart texexec.pl and everything works fine now. > > Thus, for the time being, I have changed my texexec.bat to call > texexec.pl. To use newtexexec, makempx should be changed to call > > texexec --batch --once --nomp --dvi >^^ This addition makes sense anyways, just be on the safe side regarding local configuration files. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Float caption feature request
Johannes Graumann wrote: > Hello, > > In LaTeX (don't remember whether this is generic or specific to one of the > packages I used to use), the 'caption' command for floats came along this > way: > > \caption[optional short version]{Caption} > > If one uses the 'optional short version' bit, the Table of Figures/Tables > present the short version rather than the whole caption (which in my case > is long paragraphs and makes the TOF/TOT unpractical). I would very much > like to have that functionality in context. Perhaps \nomarking works in captions as well (have not checked). Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] installation problem
Karsten Heymann wrote: > > Does someone have an idea what causes the problem? > I believe this a bug that was present for a few days in one of the earlier releases in april (and fixed). Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] installation problem
Hi Taco, Taco Hoekwater wrote: > Karsten Heymann wrote: >> Does someone have an idea what causes the problem? >> > > I believe this a bug that was present for a few days > in one of the earlier releases in april (and fixed). okay, I'll ask them to download again. Thanks, Karsten -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Itemize head symbol
On Fri, 5 May 2006 01:37:45 -0400 (EDT), Aditya Mahajan <[EMAIL PROTECTED]> wrote: >> Yes, that's it. I wondered if it was possible a to specify a different >> symbol for a head, something like this: >> >> \startitemize[n][headstyle=bold] >> \head Default head symbol (here a number)\par Body >> \head Default head symbol again\par Body >> \symhead{U} The head symbol is U\par Body >^^^ > > How about \headsym{U} Ah yes, it works! So, it exists. Thanks! Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt + MetaUML
Renaud AUBIN wrote: > > Hi Hans, > > The example with clearboxes's crash: this is probably due to the fact that clearboxes hooks into endfig \setupoutput[pdftex] \starttext \startMPinclusions input boxes; \stopMPinclusions \startuseMPgraphic{my_uml_figure} input metauml; Class.A("Point") ("+x: int", "+y: int") (); Class.B("Circle") ("radius: int") ("+getRadius(): int", "+setRadius(r: int):void"); topToBottom(45)(A, B); drawObjects(A, B); clink(aggregationUni)(A, B); \stopuseMPgraphic \placefigure[here]{none}{\useMPgraphic{my_uml_figure}} \stoptext this only works when in boxes.mp, we have: extra_beginfig := extra_beginfig & "boxjoin();save pic_,sproc_,pproc_;def clearboxes=enddef;"; extra_endfig := extra_endfig & " clearboxes"; (space added before clearboxes in string) (maybe i should clean up boxes.mp and preload that in metafun if only i know what it's meant for) i suggest that you contact the author of metauml: - rename the util_* files into metauml_util_* in order to prevent clashes with other util_* files - load all files into the main file, so that you get rid of the redundant file reads (loading quits when the files are already loaded,but best do some testing before they are input) - provide a metauml_preload.mp file that preloads e.g. boxes.mp so that you can do \startMPinclusions input metauml_preload; \stopMPinclusions \startuseMPgraphic{my_uml_figure} input metauml; \stopuseMPgraphic - provide "load_metauml" that loads once only, so that you can do \startMPinclusions input metauml_preload; \stopMPinclusions \startuseMPgraphic{my_uml_figure} load_metauml; \stopuseMPgraphic \startuseMPgraphic{my_second_uml_figure} load_metauml; \stopuseMPgraphic and get only one load when you collect graphics instead of runtime processing Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Description nesting
Hello, Is there a way to nest some descriptions, where the nested descriptions respect the enclosing indentation? Funnily the wiki speaks about the subject (http://wiki.contextgarden.net/Description) but doesn't give any solution (btw, the given solution to have several paragraphs in a description looks obsolete since \start \stop works pretty well). Here is an example that I would like to see working: \definedescription[descr][ headstyle=bold,style=normal,align=left,location=hanging, width=broad,margin=1cm] \setupwhitespace[medium] \starttext \startdescr{Para} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. This is another paragraph under the "Para" item. \startdescr{SubPara1} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. \stopdescr \startdescr{SubPara2} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. \stopdescr \stopdescr \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] installation problem
Karsten Heymann wrote: > Hello, > > my customer has tried to install the current context minimal > installation (following my instructions :-/) and is running into the > following problem (I currently don't have more information but can ask for): > a more recent version will work better Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Float caption feature request
Johannes Graumann wrote: > Hello, > > In LaTeX (don't remember whether this is generic or specific to one of the > packages I used to use), the 'caption' command for floats came along this > way: > > \caption[optional short version]{Caption} > we use [] for references, and once users want one alternative, they may want another one as well, so best cook up a generic mechanism > If one uses the 'optional short version' bit, the Table of Figures/Tables > present the short version rather than the whole caption (which in my case > is long paragraphs and makes the TOF/TOT unpractical). I would very much > like to have that functionality in context. > > Thanks for any hints on how to achieve this. Poking around in the source did > not lead this newbie to a starting point ... > something \def\MyCaption{\firstoftwoarguments} ...\MyCaption{bla}{more bla} or better, wrapped in a feature: \unprotect % let's reuse this one in selectors (from syst-ext) \def\dofilterfromstr#1#2% max n {\ifcase#1\or \ifcase#2\or \strippedcsname\firstofoneargument \else \strippedcsname\gobbleoneargument \fi \or \ifcase#2\or \strippedcsname\firstoftwoarguments \or \strippedcsname\secondoftwoarguments \else \strippedcsname\gobbletwoarguments \fi \or \ifcase#2\or \strippedcsname\firstofthreearguments \or \strippedcsname\secondofthreearguments \or \strippedcsname\thirdofthreearguments \else \strippedcsname\gobblethreearguments \fi \or \ifcase#2\or \strippedcsname\firstoffourarguments \or \strippedcsname\secondoffourarguments \or \strippedcsname\thirdoffourarguments \or \strippedcsname\fourthoffourarguments \else \strippedcsname\gobblefourarguments \fi \or \ifcase#2\or \strippedcsname\firstoffivearguments \or \strippedcsname\secondoffivearguments \or \strippedcsname\thirdoffivearguments \or \strippedcsname\fourthoffivearguments \or \strippedcsname\fifthoffivearguments \else \strippedcsname\gobblefivearguments \fi \fi} \def\filterfromvalue#1#2#3% value max n [EMAIL PROTECTED]@EAEAEA\csname % we use the fact that an [EMAIL PROTECTED] % undefined cs has become \relax \strippedcsname\gobbleoneargument % which we then gobble here \else \dofilterfromstr{#2}{#3}% \fi \endcsname\csname#1\endcsname} \def\filterfromnext#1#2% max n {..}{..}{..}{..} {\csname\dofilterfromstr{#1}{#2}\endcsname} % new, selectors \definesystemvariable{sx} \def\defineselector{\dodoubleargument\dodefineselector} \def\setupselector {\dodoubleargument\dosetupselector} \def\dodefineselector[#1][#2]{\getparameters[\??sx#1][\c!max=2,\c!n=1,#2]} \def\dosetupselector [#1][#2]{\getparameters[\??sx#1][#2]} \unexpanded\def\select#1% {\filterfromnext {\executeifdefined{\??sx#1\c!max}1} {\executeifdefined{\??sx#1\c!n }1}} \defineselector[caption][max=2,n=1] \start \setupselector[caption][n=1] \placelist[figure][criterium=all] \stop \starttext \placefigure {\select{caption}{zapf}{\input zapf \relax}} {} \stoptext i'll add selectors to the core Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec
On 5/4/06, Hans Hagen <[EMAIL PROTECTED]> wrote: Hi,I'd like to make the ruby version of texexec the default. Are there anystrong objections to this?Also, i'd like the stubs to run texmfstart as launcher. For that purpose i'll add a /scripts/context/stubs/[mswin|unix] path with the default stubs that one can copy to some bin path HansFine by me. I've been using the ruby for it seems like forever.Steve -- Steve Grathwohl || Digital Content DeveloperDuke University Press Journals || +1 919 687 3634 905 W Main St || Durham, NC 27701 USA[EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec
Nice, I don't have to use texmfstart newtexexec.rb my_doc anymore (and don't have to think to make a stub !!! ;) ) What about the perl script for the future ? Hans Hagen a écrit : >Hi, > >I'd like to make the ruby version of texexec the default. Are there any >strong objections to this? > >Also, i'd like the stubs to run texmfstart as launcher. For that purpose i'll >add a /scripts/context/stubs/[mswin|unix] path with the default stubs that one >can copy to some bin path > >Hans > >- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl >- > >___ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > > > > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec
On May 4, 2006, at 6:03 PM, Hans Hagen wrote: > I'd like to make the ruby version of texexec the default. Are there > any > strong objections to this? I think Ruby is now installed on enough machines out there. At this point, I have no objection to the switchover. Steve ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Advance in columnsets/columns?
Good evening. I've been very busy in the last year or so, so I haven't been able to follow up change in the ConTeXt. So I dare to ask: Was there some advance in columnsets and columns in the last year? (I haven't found any mail in the mail archive on this topic.) I typeset our church bulletin in the column layout, so I am especially interested in these matters: 1) If there is some automatic balancing of columnsets, that would allow me to stop the columnset at the middle of the page, balance it automatically (not manually, I know to do it manually, but it's bothering), and start a new columnset on the same page. (I know it's on the edge of TeX possibilities, or beyond perhaps. But Mr. Hagen is a real Wizard---he has already implemented many things that I thought are not possible in the TeX.) 2) Or, what would be satisfactory, if the float-placement mechanism of ordinary columns was improved, so that I would be able to put a float not only "here", or on the "top", but also in the "bottom" in the two columns layout. Many thanks for your kind answer. Your sincerely M.K. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Minion/Myriad
Good evening. I've found there are some nice Minion/Myriad fonts included in the Acrobat Reader 7.x for Linux, and that they include glyphs needed for the typesetting Czech. But I don't know how to handle .otf fonts. I know there are some huge manuals on this topic, but I'm really short of time. So I dare to ask one lazy question: Does anybody here have all the necessary files (typescripts, metrics, virtual fonts, .otf translated to .pfb etc)? Would he be so nice to zip and send it to me? (Perhaps with a sample file showing how to use it?) I'd be really thankful for that. (I know it's not a great reward.) Your sincerely lazy being short of time :-) Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MyWay doesn't agree
Aditya, I updated my Context and all is now well. Thanks. On May 4, 2006, at 5:31 PM, David Arnold wrote: > Aditya, > > This code: > > \starttext >\startformula \startalign[m=2,distance=5em] > \NC a_1 x + b_1 y \NC = c_1 \NC d_1 u + e_1 v \NC = f_1 \NR > \NC a_2 x + b_2 y \NC = c_2 \NC d_2 u + e_2 v \NC = f_2 \NR > \stopalign \stopformula > \stoptext > > Doesn't produce the result advertised in your MyWay. > > > David Arnold > College of the Redwoods > Mathematics Department > Eureka, CA 95501 > (707) 476-4222 > http://online.redwoods.edu/instruct/darnold/ > > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec
Renaud AUBIN wrote: > Nice, I don't have to use texmfstart newtexexec.rb my_doc anymore (and > don't have to think to make a stub !!! ;) ) > > What about the perl script for the future ? > > Hans it will stay around for a while Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Float caption feature request
The 'selector' feature sounds truly wonderfull! The code below doesn't compile yet for me though ... 1) '\protect' needs to be called after '{\executeifdefined{\??sx#1\c!n 1}}', no? 2) Even after changing that I run into the following error when compiling the example below: ! Missing { inserted. l.94 {\select{caption}{zapf}{\input zapf \relax}} Thank you for your help! Joh Hans Hagen wrote: > \unprotect > > % let's reuse this one in selectors (from syst-ext) > > \def\dofilterfromstr#1#2% max n > {\ifcase#1\or > \ifcase#2\or >\strippedcsname\firstofoneargument > \else >\strippedcsname\gobbleoneargument > \fi >\or > \ifcase#2\or >\strippedcsname\firstoftwoarguments > \or >\strippedcsname\secondoftwoarguments > \else >\strippedcsname\gobbletwoarguments > \fi >\or > \ifcase#2\or >\strippedcsname\firstofthreearguments > \or >\strippedcsname\secondofthreearguments > \or >\strippedcsname\thirdofthreearguments > \else >\strippedcsname\gobblethreearguments > \fi >\or > \ifcase#2\or >\strippedcsname\firstoffourarguments > \or >\strippedcsname\secondoffourarguments > \or >\strippedcsname\thirdoffourarguments > \or >\strippedcsname\fourthoffourarguments > \else >\strippedcsname\gobblefourarguments > \fi >\or > \ifcase#2\or >\strippedcsname\firstoffivearguments > \or >\strippedcsname\secondoffivearguments > \or >\strippedcsname\thirdoffivearguments > \or >\strippedcsname\fourthoffivearguments > \or >\strippedcsname\fifthoffivearguments > \else >\strippedcsname\gobblefivearguments > \fi >\fi} > > \def\filterfromvalue#1#2#3% value max n > [EMAIL PROTECTED]@EAEAEA\csname % we use the fact that an > [EMAIL PROTECTED] % undefined cs has become \relax >\strippedcsname\gobbleoneargument % which we then gobble here > \else >\dofilterfromstr{#2}{#3}% > \fi > \endcsname\csname#1\endcsname} > > \def\filterfromnext#1#2% max n {..}{..}{..}{..} > {\csname\dofilterfromstr{#1}{#2}\endcsname} > > % new, selectors > > \definesystemvariable{sx} > > \def\defineselector{\dodoubleargument\dodefineselector} > \def\setupselector {\dodoubleargument\dosetupselector} > > \def\dodefineselector[#1][#2]{\getparameters[\??sx#1][\c!max=2,\c!n=1,#2]} > \def\dosetupselector [#1][#2]{\getparameters[\??sx#1][#2]} > > \unexpanded\def\select#1% > {\filterfromnext > {\executeifdefined{\??sx#1\c!max}1} > {\executeifdefined{\??sx#1\c!n }1}} > > \defineselector[caption][max=2,n=1] > > \start > \setupselector[caption][n=1] > \placelist[figure][criterium=all] > \stop > > \starttext > > \placefigure > {\select{caption}{zapf}{\input zapf \relax}} > {} > > \stoptext > > i'll add selectors to the core > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] typing midaligned
Hello, such things are really easy and straightforward with LaTeX (parbox and minipage), but with ConTeXt I have still a lot of difficulties. This is what I do to align some typing in the middle: \starttext \input tufte \setuptyping[before=\vskip-\lineheight,after=\vskip-0.13\lineheight] \startalignment[middle] \dontleavehmode \framed[align=lohi,frame=off]{% \starttyping bla bla bla bla bla bla bla bla bla bla bla bla \stoptyping } \stopalignment \input tufte \stoptext The result is correct, but can't this be done much easier? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Footnotes lost in description terms
Hello, When some footnotes are put in description terms, their number appears in the terms but their text don't appear at the bottom of the page. Is it a known limitation? Here is an example: \definedescription[descr][ headstyle=bold,style=normal,align=left,location=hanging, width=broad,margin=1cm] \setupwhitespace[medium] \starttext Here is a footnote\footnote{In a simple paragraph}. \startdescr{This\footnote{A footnote} term contains\footnote{Another one} a footnote} This is a shorter item label, and some text\footnote{What about this?} that talks about it. The text is wrapped into a paragraph, with successive lines indented. \stopdescr \startdescr{This\footnote{More footnotes} term contains\footnote{Another again} a footnote} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. \stopdescr Here is a footnote\footnote{After the descriptions}. \stoptext Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Error message in texexec --make --all
Hi, I'd like to use the stand-alone-version of ConTeXt with Win2k, but it doesn't work: F:\isoimage\usr\local\context\demo>texexec --make --all f:/isoimage/usr/local/context/tex/texmf-local/scripts/context/ruby/newtexexec.rb:8:in `require': No such file to load -- base/switch (LoadError) from f:/isoimage/usr/local/context/tex/texmf-local/scripts/context/ruby/newtexexec.rb:8 but f:/isoimage/usr/local/context/tex/texmf-local/scripts/context/ruby/base/switch exists and contains the required file(s). What's wrong with my installation or batch-file? TIA, Stefan . ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Error message in texexec --make --all
Stefan Lagotzki wrote: > > What's wrong with my installation or batch-file? Like I told Karsten Heymann earlier today: I believe this a bug that was present for a few days in one of the earlier releases in april (and fixed). Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Float caption feature request
Taco Hoekwater wrote: > Perhaps \nomarking works in captions as well (have not checked). Sadly no. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Error message in texexec --make --all
On Fri, 5 May 2006, Stefan Lagotzki wrote: > Hi, > > I'd like to use the stand-alone-version of ConTeXt with Win2k, > but it doesn't work: > > F:\isoimage\usr\local\context\demo>texexec --make --all > f:/isoimage/usr/local/context/tex/texmf-local/scripts/context/ruby/newtexexec.rb:8:in > `require': No such file to load -- base/switch (LoadError) > from > f:/isoimage/usr/local/context/tex/texmf-local/scripts/context/ruby/newtexexec.rb:8 > > but > > f:/isoimage/usr/local/context/tex/texmf-local/scripts/context/ruby/base/switch > > exists and contains the required file(s). > > What's wrong with my installation or batch-file? Which ruby do you have (one-click installer or from cygwin)? Try setting RUBYLIB path variable to F:\isoimage\usr\local\context\tex\texmf-local\scripts\context\ruby Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Description nesting
On Fri, 5 May 2006, nico wrote: > Hello, > > Is there a way to nest some descriptions, where the nested descriptions > respect the enclosing indentation? > > Funnily the wiki speaks about the subject > (http://wiki.contextgarden.net/Description) but doesn't give any solution > (btw, the given solution to have several paragraphs in a description looks > obsolete since \start \stop works pretty well). > > Here is an example that I would like to see working: > > \definedescription[descr][ > headstyle=bold,style=normal,align=left,location=hanging, > width=broad,margin=1cm] Try, \definedescription[descr][ headstyle=bold,style=normal,align=left,location=hanging, width=broad,margin=2em, before=\doMySetup] \def\doMySetup{ \setupdescriptions[descr] [before=\startnarrower,after=\stopnarrower]} > > \setupwhitespace[medium] > > \starttext > > \startdescr{Para} > This is a shorter item label, and some text that talks about it. > The text is wrapped into a paragraph, with successive lines indented. > > This is another paragraph under the "Para" item. > > \startdescr{SubPara1} > This is a shorter item label, and some text that talks about it. > The text is wrapped into a paragraph, with successive lines indented. > \stopdescr > \startdescr{SubPara2} > This is a shorter item label, and some text that talks about it. > The text is wrapped into a paragraph, with successive lines indented. > \stopdescr > \stopdescr > > \stoptext -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Float caption feature request
Just disregard this post and have mercy on the deadline panicked ... Joh Johannes Graumann wrote: > The 'selector' feature sounds truly wonderfull! The code below doesn't > compile yet for me though ... > 1) '\protect' needs to be called after '{\executeifdefined{\??sx#1\c!n > 1}}', no? > 2) Even after changing that I run into the following error when compiling > the example below: > > ! Missing { inserted. > > > l.94 > {\select{caption}{zapf}{\input zapf \relax}} > > Thank you for your help! > > Joh > > Hans Hagen wrote: >> \unprotect >> >> % let's reuse this one in selectors (from syst-ext) >> >> \def\dofilterfromstr#1#2% max n >> {\ifcase#1\or >> \ifcase#2\or >>\strippedcsname\firstofoneargument >> \else >>\strippedcsname\gobbleoneargument >> \fi >>\or >> \ifcase#2\or >>\strippedcsname\firstoftwoarguments >> \or >>\strippedcsname\secondoftwoarguments >> \else >>\strippedcsname\gobbletwoarguments >> \fi >>\or >> \ifcase#2\or >>\strippedcsname\firstofthreearguments >> \or >>\strippedcsname\secondofthreearguments >> \or >>\strippedcsname\thirdofthreearguments >> \else >>\strippedcsname\gobblethreearguments >> \fi >>\or >> \ifcase#2\or >>\strippedcsname\firstoffourarguments >> \or >>\strippedcsname\secondoffourarguments >> \or >>\strippedcsname\thirdoffourarguments >> \or >>\strippedcsname\fourthoffourarguments >> \else >>\strippedcsname\gobblefourarguments >> \fi >>\or >> \ifcase#2\or >>\strippedcsname\firstoffivearguments >> \or >>\strippedcsname\secondoffivearguments >> \or >>\strippedcsname\thirdoffivearguments >> \or >>\strippedcsname\fourthoffivearguments >> \or >>\strippedcsname\fifthoffivearguments >> \else >>\strippedcsname\gobblefivearguments >> \fi >>\fi} >> >> \def\filterfromvalue#1#2#3% value max n >> [EMAIL PROTECTED]@EAEAEA\csname % we use the fact that an >> [EMAIL PROTECTED] % undefined cs has become \relax >>\strippedcsname\gobbleoneargument % which we then gobble here >> \else >>\dofilterfromstr{#2}{#3}% >> \fi >> \endcsname\csname#1\endcsname} >> >> \def\filterfromnext#1#2% max n {..}{..}{..}{..} >> {\csname\dofilterfromstr{#1}{#2}\endcsname} >> >> % new, selectors >> >> \definesystemvariable{sx} >> >> \def\defineselector{\dodoubleargument\dodefineselector} >> \def\setupselector {\dodoubleargument\dosetupselector} >> >> \def\dodefineselector[#1][#2]{\getparameters[\??sx#1][\c!max=2 \c!n=1,#2]} >> \def\dosetupselector [#1][#2]{\getparameters[\??sx#1][#2]} >> >> \unexpanded\def\select#1% >> {\filterfromnext >> {\executeifdefined{\??sx#1\c!max}1} >> {\executeifdefined{\??sx#1\c!n }1}} >> >> \defineselector[caption][max=2,n=1] >> >> \start >> \setupselector[caption][n=1] >> \placelist[figure][criterium=all] >> \stop >> >> \starttext >> >> \placefigure >> {\select{caption}{zapf}{\input zapf \relax}} >> {} >> >> \stoptext >> >> i'll add selectors to the core >> >> Hans >> >> - >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com >> | www.pragma-pod.nl >> - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Error message in texexec --make --all
Aditya Mahajan said: > Which ruby do you have (one-click installer or from cygwin)? Try > setting RUBYLIB path variable to > > F:\isoimage\usr\local\context\tex\texmf-local\scripts\context\ruby set RUBYLIB=/cygdrive/f/[my-texmf-tree]/scripts/context/ruby Thanks ;-) Stefan . ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] More on split TABLES: Numbering Scheme and other things
Hello, I'm using the split-TABLE patch below (send - how can it be different - by Hans) along with the also appended table definition (to read out XML code). I have two problems here: 1) as posted earlier, the page just before a split TABLE overflows on the bottom (see http://www.idyll.org:8081/JohSite/context/page-overflow-preceeding-a-split-table). 2) I also wonder whether the table numbering scheme this is producing may be changeable: instead of '1.1a', '1.2b' (currently for two parts of a split TABLE) the more intuitive '1.1a', '1.1b' Can anybody give me a helping hand for fixing this? Thanks, Joh Table definition: \defineXMLnested [table] { \defineXMLsave[floattitle] \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] \defineXMLsave[footer] } { \splitfloat { \expanded{% \placetable [\XMLpar{table}{location}{here}] [\XMLpar{table}{label}{unknown}] {\select{figurecaption}{\XMLflush{floattitle} {{\bf\XMLflush{floattitle}} \XMLflush{caption}}} %{\XMLflush{caption}} } } { \setupTABLE[row][1][topframe=on] \setupTABLE[row][last][bottomframe=on] \bTABLE[frame=off,split=repeat,splitmethod=b,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}] \bTABLEhead\XMLflush{header}\eTABLEhead \bTABLEbody\XMLflush{body}\eTABLEbody \bTABLEfoot\XMLflush{footer}\eTABLEfoot \eTABLE } } Split TABLE patch: % Fixing multipage table according to Hans Hagen: \unprotect % in core-ntb : we check the flag \def\splittblbox#1% {\ifinsidesplitfloat \donetrue \else\ifinsidefloat \donefalse \else \donetrue \fi\fi \ifdone \executeifdefined{splittblbox\tbltblsplitmethod}\splittblboxa{#1}% \else \notsplittblbox{#1}% \fi} % in page-flt : we add a flag \newif\ifinsidesplitfloat % will become chardef \def\dosplitfloat[#1]#2% nog dubbele refs {\ifinsidecolumns% tzt ook nog figuren splitten % not yet supported \else \bgroup \insidefloattrue \insidesplitfloattrue \getparameters[\??si][#1]% \resetnumber[\??si]% \def\floatcaptionsuffix{\convertednumber[\??si]}% \TABLEcaptionheight\@@silines\lineheight % brrr \simplifypagebreak % \page becomes \goodbreak \dowithnextbox {\forgetall \dontcomplain \doloop {\setbox2\vsplit\nextbox to \lineheight \setbox2\vbox{\unvbox2} \ifdim\ht2>\lineheight \incrementnumber[\??si]% \ifcase\rawnumber[\??si]\or \ifdim\nextboxht=\zeropoint \let\floatcaptionsuffix\empty \fi \fi \bgroup #2{\unvbox2} \egroup \ifdim\nextboxht>\zeropoint \page \decrementnumber[\floatcaptionnumber]% \fi \fi \ifdim\nextboxht>\zeropoint\else \expandafter\exitloop \fi}% \egroup} \vbox \fi} \protect % beware: you need to set the splitmethod to b (boxed split) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context