[NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?
Hello, I'm on Debian unstable and have the latest context sitting in my home directory's 'texmf'. The new ruby scripts confuse me to no end - I just don't understand how to make it works. Here is what works and what doesn't: 1) 'ruby ~/texmf/scripts/context/ruby/texexec.rb document.tex' works. 2) Made ~/texmf/scripts executable (recursively). 3) I have linked '~/texmf/scripts/context/ruby/texmfstart.rb' to '~/bin/texmfstart' (~/bin being in my path) and now calling 'texmfstart' gives me this: version : 1.8.6 - 2003/2006 - www.pragma-ade.com usage: texmfstart [switches] filename [optional arguments] switches : --verbose --report --browser --direct --execute --locate --iftouched --program --file --page --arguments --batch --edit --report --clear --make --lmake --wmake --path --stubpath --indirect --before --after --tree --autotree --environment --showenv example : texmfstart pstopdf.rb cow.eps texmfstart --locate examplex.rb texmfstart --execute examplex.rb texmfstart --browser examplap.pdf texmfstart showcase.pdf texmfstart --page=2 --file=showcase.pdf texmfstart --program=yourtex yourscript.rb arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart bin:xsltproc env:somepreset path:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres texmfstart texmfstart bin:scite kpse:texmf.cnf texmfstart --exec bin:scite *.tex texmfstart --edit texmf.cnf texmfstart --serve texmfstart --stubpath=/usr/local/bin [--make --remove] --verbose all texmfstart --stubpath=auto [--make --remove] all Seems to work to a first approximation. 4) I have also added '~/texmf/scripts/context/stubs/unix' to my path to make the stubs residing therein accessible on the command line. 'which texexec' now returns ~/texmf/scripts/context/stubs/unix/texexec Which seems right. Also added to the path '~/texmf/scripts/context/ruby'. 'which texexec.rb' now returns ~/texmf/scripts/context/ruby/texexec.rb However, just calling 'texexec document.tex' does not work - NOTHING happens, new prompt, no errors. Same thing with 'texmfstart texexec.rb document.tex' - which is the command the 'texexec'-stub actually calls. I'm at the end of my knowledge and intuition. Can anybody help circumventing the need for the monster 'ruby ~/texmf/scripts/context/ruby/texexec.rb document.tex'? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release
Hans Hagen wrote: \defineXMLenvironment [document] {\starttext} {\stoptext} \starttext \startXMLdata document/document \stopXMLdata \stoptext You catch my folly as usually. Thanks. While I get the solution above to work, the alternative 'ruby ~/texmf/scripts/context/ruby/texexec.rb --pdf --environments=PhD-Thesis ../XML/main.xml' doesn't. Error is: User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. Hints? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release
Hans, This ruby stuff has me confused to no end. I'm compiling this document (which compiled just fine with the last release - no changes since) with the following command: ruby ~/texmf/scripts/context/ruby/texexec.rb PhD-Thesis.tex For trying to figure out the version I do: ruby ~/texmf/scripts/context/ruby/texexec.rb --check And get TeXExec | current distribution: web2c TeXExec | context source date: unknown TeXExec | format path: TeXExec | start of analysis /home/balin/texmf/scripts/context/ruby/base/kpsefast.rb:659: command not found: texmfstart texexec --help /home/balin/texmf/scripts/context/ruby/base/kpsefast.rb:659: command not found: texmfstart texutil --help /home/balin/texmf/scripts/context/ruby/base/kpsefast.rb:659: command not found: texmfstart ctxtools --help TeXExec | end of analysis TeXExec | TeXExec | TeXExec | TeXExec | Which is mostly related to the UNIX stubs not working no? How do I now actually figure out what I'm running and whether it all got rebuild correctly? Thanks, Joh Hans Hagen wrote: Johannes Graumann wrote: Trouble with tex/context/base/cont-err.tex: system : cont-err loaded (/home/balin/texmf/tex/context/base/cont-err.tex Runaway argument? on Otten}] %C %C This module is part of the \CONTEXT\ macro||package \ETC. ! Paragraph ended before was complete. to be read again \par l.13 Can't find anything wrong though ... just to be sure, i use version 2006.05.09 23:03 i looks like you're ignoring comments how does the tex file look that you process? 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] new release
Hans, I linked texmfstart.rb to texmfstart in my local bin directory (which is in the path) and issued 'chmod -R +x ~/texmf/scripts'. If I call 'ruby ~/texmf/scripts/context/ruby/texexec.rb --check' now, I get this error free (but not informative) output: TeXExec | current distribution: web2c TeXExec | context source date: unknown TeXExec | format path: TeXExec | start of analysis TeXExec | end of analysis TeXExec | TeXExec | TeXExec | TeXExec | Any ideas what I might be doing wrong? Joh Hans Hagen wrote: Johannes Graumann wrote: Hans, This ruby stuff has me confused to no end. I'm compiling this document (which compiled just fine with the last release - no changes since) with the following command: ruby ~/texmf/scripts/context/ruby/texexec.rb PhD-Thesis.tex For trying to figure out the version I do: ruby ~/texmf/scripts/context/ruby/texexec.rb --check And get TeXExec | current distribution: web2c TeXExec | context source date: unknown TeXExec | format path: TeXExec | start of analysis /home/balin/texmf/scripts/context/ruby/base/kpsefast.rb:659: command not found: texmfstart texexec --help /home/balin/texmf/scripts/context/ruby/base/kpsefast.rb:659: command not found: texmfstart texutil --help /home/balin/texmf/scripts/context/ruby/base/kpsefast.rb:659: command not found: texmfstart ctxtools --help TeXExec | end of analysis TeXExec | TeXExec | TeXExec | TeXExec | Which is mostly related to the UNIX stubs not working no? cp texmfstart.rb samepathaspdftex/texmfstart chmod 755 samepathaspdftex/texmfstart How do I now actually figure out what I'm running and whether it all got rebuild correctly? so, no stub for texmfstart, just a copy (althoughj you may want to call it indirectly 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] new release
Taco Hoekwater wrote: This is the very top of cont-err.tex, the 'module header'. If that does not look broken, then probably the file that loads it does so while some really strange catcode settings are in effect. The most likely cause is that you have an invalid zip file or an error has occured during extraction. I went back and looked at the file - nothing obvious. I repeated my install from the pragma server ... no changes. The document in question compiled just fine before the update. If you cannot figure it out, try posting a few extra lines from the log, just before 'cont-err loaded'. I append the log region around the 'cont-err loaded' part. Thanks for any help, Joh chapter : - About this Document publications: warning: cite argument knuth:86 is unknown on 80 publications: warning: cite argument hagen:01 is unknown on 80 publications: warning: cite argument lamport:94 is unknown on 80 publications: warning: cite argument thanh:98 is unknown on 80 publications: warning: cite argument knuth:84 is unknown on 80 publications: warning: cite argument adobe:04 is unknown on 80 Overfull \hbox (4.7209pt too wide) in paragraph at lines 4--4 []\*modern12ptrmtf*: This doc-u-ment was type-set in Com-puter Mod-ern (Xxx xxx, ), us-ing ConT[]Xt \hbox(8.82599+3.0)x438.77812, glue set - 1.0 \kern-0.432 (left margin) \hbox(0.0+0.0)x0.0 \*modern12ptrmtf*: T \*modern12ptrmtf*: h \*modern12ptrmtf*: i etc. publications: warning: cite argument graumann:04 is unknown on 80 publications: warning: cite argument yergeau:04 is unknown on 80 section : - References ) structure : end of sectionblock backmatter [175.162] systems : end file PhD-Thesis at line 77 system : cont-err loaded (/home/balin/texmf/tex/context/base/cont-err.tex Runaway argument? on Otten}] %C %C This module is part of the \CONTEXT\ macro||package \ETC. ! Paragraph ended before was complete. to be read again \par l.13 ? s OK, entering \scrollmode... Overfull \hbox (42.98929pt too wide) in paragraph at lines 1--13 \*modern12ptrmtf*: Sys-tem Files, %D sub-ti-tle=Just A warn-ing, %D au-thor=Han s Ha-gen, %D date=\currentdate, \hbox(8.82599+3.0)x438.77812, glue set - 1.0 \*modern12ptrmtf*: S \*modern12ptrmtf*: y \*modern12ptrmtf*: s \discretionary .\*modern12ptrmtf*: - \*modern12ptrmtf*: t etc. ) Runaway argument? } \writeline \par \endinput ! File ended while scanning use of \xparseXMLelement. inserted text \par to be read again \relax \dodoreadfile ...\preprocesssuffix \or \fi \relax \the \everyafterreadfile \loadallsystemfiles ...ssage \m!systems 2{#1}}{#2} \else \def \doloadsystemfi... \finalend ...se \the \everybye \the \everygoodbye \global \everybye \emptyto... l.77 /document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new release
Trouble with tex/context/base/cont-err.tex: system : cont-err loaded (/home/balin/texmf/tex/context/base/cont-err.tex Runaway argument? on Otten}] %C %C This module is part of the \CONTEXT\ macro||package \ETC. ! Paragraph ended before was complete. to be read again \par l.13 Can't find anything wrong though ... Joh Hans Hagen wrote: Hi, Today i'll upload a new release. Highlights: - some fixes/extensions discussed the last few weeks - xetex support adapted to using xdvipdfmx - ctxtools --update which will update your local context - an update feature in scite (can be used a example for other editors) - an integrated mpto (more robust that the binary approach) (btw, use textext instead of btex .. etex when possible) Taco will undoubtely give mnore details later. Keep in mind that you need to change the stubs: - preferable use texmfstart to launch scripts - texmfstart itself can be stubbed if needed - there is a ../scripts/context/stubs path in the zip 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] White space around synonyms
Hans Hagen wrote: end lines in the definitions with % or use setups (spurious spaces) Tststs, can't see the forest for the trees ... spend hours with things like '\ignorespaces' and '\removeunwantedspaces' in various positions ... Thanks, Hans! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] White space around synonyms
Hello, please take a look at the output of the code appended. I'm plagued by incorrect white space around the output: to much before and after the expanded '\infull' and short versions. How to remedy that? Thanks ... it sure took me a while to find the '\executeifdefined' tidbit ... Joh % setup 'synonymes' list called 'abbreviations' \definesynonyms[abbreviation][abbreviations][\infull] % give out in the list the ones used \setupsynonyms[abbreviation][criterium=used] % abbreviations/ calls the completelist as a 'chapter' \defineXMLargument [abbreviations] {\expanded{\completelistofabbreviations}} % abbreviations are defined as follows \defineXMLenvironment [abbreviationdev] [key=] { \defineXMLsave[short] \defineXMLsave[full] } { \abbreviation [\XMLop{key}] {\XMLflush{short}} {\XMLflush{full}} } % abbreviations are recalled like this (short version is the default) \defineXMLargument [abbreviation] [key=,opt=short] { \doifelse{\XMLop{opt}}{full} {\infull{\XMLop{key}}} {\executeifdefined{\XMLop{key}}} } \starttext \startXMLdata abbreviationdev key=id shortshort/short fullfull description of ``short''/full /abbreviationdev abbreviations/ Blabla abbreviation key=id opt=short/. More blabla abbreviation key=id opt=full/. \stopXMLdata \stoptext ___ 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. to be read again 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] 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] 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. to be read again 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] 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
Re: [NTG-context] Part head centering and empty header
Hans Hagen wrote: This produces nothing. Fixing 'start' to 'stop' on the third to last line oeps doesn't change that. strange OKOK, a new day, more sleep thanks to sleeping son: works now and is (naturally) much cleaner than what I came up with. Thank you, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Synonyms and XML - HOWTO?
Mojca Miklavec wrote: [criterium=all] Thanks for the tip. Works now. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Synonyms and XML - HOWTO?
Rather than doing this dirtily and on the fly (as implied by the quoted code, I'd like to use synonyms in a more cleaner fashion: separate calling and definition. I have come up with the following code, but have two problems: 1) 'abb key=key opt=full/' just gives me '[key]' after defining 'abbreviation key=keyshortshortkey/shortfullslightly longer key/full/abbreviation'. 2) The '\XMLop{key}' should really be the result of that preceeded by a '\' to make the short version callable as a command. How to do that? Thanks for any help, Joh % setup 'synonymes' list called 'abbreviations' \definesynonyms[abbreviation][abbreviations][\infull] % give all out in the list \setupsynonyms[abbreviation][criterium=all] % abbreviations/ calls the completelist as a 'chapter' \defineXMLargument [abbreviations] {\completelistofabbreviations} % abbreviations are defined as follows \defineXMLenvironment [abbreviation] [key=] { \defineXMLsave[short] \defineXMLsave[full] } {\expanded{\abbreviation[\XMLop{key}]{\XMLflush{short}}{\XMLflush{full % abbreviations are recalled like this (short version is the default) \defineXMLargument [abb] [key=,opt=short] { \doifelse{\XMLop{opt}}{full} {\expanded{\infull{\XMLop{key {\XMLop{key}} } Johannes Graumann wrote: \definesynonyms[abbreviation][abbreviations][\infull] \defineXMLargument [abbrev] [short=,full=] {\expanded{\abbreviation{\XMLop{short}}{\XMLop{full \defineXMLargument [abbreviations] {\completelistofabbreviations} \starttext \startXMLdata abbreviations/ Blabla shortabbrev short=short full=slightly longer short/. \stopXMLdata \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Part head centering and empty header
Hans Hagen wrote: \defineXMLenvironment [appendices] {\directsetup{appendices:start}} {\directsetup{appendices:stop}} \startsetups appendices:start \startappendices \setuppagenumbering [ way=bytext, partnumber=no, conversion=numbers, location={header,right} ] \startstandardmakeup [ headerstate=empty, pagestate=start ] \framed [ width=\textwidth, frame=off ] { \switchtobodyfont[60pt,ss] \setupinterlinespace[line=2.8ex] Appendices \writetolist[part]{Appendices}{} } \stopstandardmakeup \stopsetups \startsetups appendices:start \stopappendices \stopsetups This produces nothing. Fixing 'start' to 'stop' on the third to last line doesn't change that. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] lb bar/Unicode 2114 symbol
Peter Rolf wrote: \def\lbbar% {% \raise.28em\hbox{--}% \kern-.535eml% \kern-.1emb% } but I'm underwhelmed by the thinness of the bar ... \hbox{\smash[w {\raise.545em\hbox{\blackrule[width=.45em,height=.6pt]}}% \kern-.035eml% \kern-.075emb}% still needs some fiddling ;) Thanks. Fiddled some more and am using this now (all type-specific measures): \def\lbbar% {% \hbox{% \smash[w]{% \raise.535em% \hbox{\blackrule[width=.45em,height=.04em]}% }% \kern-.035eml% \kern-.075emb% }% } Thank you for your help. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Page overflow just before Split TABLE
Hello (Hans especially ;0), I made split TABLEs work with the following patch from Hans below. Got it to work beautifully, but there's a major problem: the page just before the split table 'overflows' on the bottom (see http://www.idyll.org:8081/JohSite/context/page-overflow-preceeding-a-split-table). Any hints on how to remedy this are greatly appreciated ... Joh % 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
Re: [NTG-context] Part head centering and empty header
John R. Culleton wrote: I would take a different approach, with each part header (there can't be that many) enclosed in \startstandardmakeup and \stopstandardmakeup To get the part into the TOC there is a command to write an entry manually, with \writetolist. Thanks a lot for this comment. It solved my problem. I'm now using: \defineXMLenvironment [appendices] {% \startappendices \setuppagenumbering [% way=bytext,% partnumber=no,% conversion=numbers,% location={header,right}% ]% \startstandardmakeup [% headerstate=empty,% pagestate=start% ] \framed [% width=\textwidth,% frame=off,% ] {% \ss\switchtobodyfont[60pt]\setupinterlinespace[line=2.8ex] Appendices \writetolist[part]{Appendices}{} } \stopstandardmakeup } {\stopappendices} And it does exactly what I want. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Float caption feature request
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. Thanks for any hints on how to achieve this. Poking around in the source did not lead this newbie to a starting point ... Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] lb bar/Unicode 2114 symbol
Hello, I'm using the following encoding commands \usetypescript[modern-base][texnansi] \setupbodyfont[12pt,modern] and was wondering whether someone knows an elegant way to get the pound sign 'lb bar' (unicode #2114, html #8468;). My current hack looks like this: \def\lbbar% {% \raise.28em\hbox{--}% \kern-.535eml% \kern-.1emb% } but I'm underwhelmed by the thinness of the bar ... Thanks for any insights, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Synonyms and XML - HOWTO?
Hello, I'm trying to get the following to work: \definesynonyms[abbreviation][abbreviations][\infull] \defineXMLargument [abbrev] [short=,full=] {\expanded{\abbreviation{\XMLop{short}}{\XMLop{full \defineXMLargument [abbreviations] {\completelistofabbreviations} \starttext \startXMLdata abbreviations/ Blabla shortabbrev short=short full=slightly longer short/. \stopXMLdata \stoptext But I don't succeede: the synonym is not put out. Any ideas on what I'm screwing up? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Part and pagenumbers
Hello, Whe I use \part, the pagenumbers switch to 'partno.-reset_pageno.' Can somebody please point out to me how to just have my pre-'part' page numbering run on? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt 2006.04.27 released
The current release has version 2006.04.27, and it is on the wiki as http://wiki.contextgarden.net/Context_2006.04.27 Installation (texexec --make --all) yields this: context : ver: 2006.04.27 15:59 cont-en : ver: 2006.04.06 23:00 fmt: 2006.4.7 mes: english cont-nl : ver: 2006.04.06 23:00 fmt: 2006.4.7 mes: dutch Shouldn't cont-en and -nl be 2006.04.27 as well? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Part and pagenumbers
nico wrote: \setuppagenumbering[way=bytext,partnumber=no] Thanks! Got it working! Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Part head centering and empty header
Hello I have coded my 'Appendix' like so: \setuphead [part] [ header=empty, footer=empty, alternative=middle, placehead=yes, resetnumber=no, number=no, style={ \ss\switchtobodyfont[60pt]\setupinterlinespace[line=2.8ex] }, page=right ] \startappendices \setuppagenumbering[way=bytext,partnumber=no,conversion=numbers,location={header,right}] \framed [% height=\textheight,% frame=off,% ] { \part{Appendices} } {\stopappendices} Which gives me a nicely vertically and horizontally centered title. One problem remains though: I can't get rid of the page number. The framed '\setuphead[part]' commands concerning header and footer are being overruled and I can't figure out how to have an empty header for just the page containing the frame. Thanks for any hints, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Entries in \completelistoffigures - HOWTO?
Hello, I read out figures from my XML source by the following code: \defineXMLenvironment [figure] [width=\textwidth] [location=here] { \bgroup \defineXMLsave[floattitle] \defineXMLsave[caption] \defineXMLsave[graphic] } { \placefigure [\XMLpar{figure}{location}{}] [\XMLpar{figure}{label}{unknown}] {{\bf\XMLflush{floattitle}} \XMLflush{caption}} % {\externalfigure[\XMLflush{graphic}][width=\XMLval{figure:width {\XMLop{width}}{}]} {\externalfigure[\XMLflush{graphic}][width=\XMLpar{figure}{width}{}]} \egroup } My problem now is, that when calling '\defineXMLargument [listoffigures] {\completelistoffigures[criterium=text]}' I get figure numbers and pages, but no text. How can I show 'floattitle' in the TOF? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Split TABLE plea.
Hans Hagen wrote: \bTABLE[split=yes,splitmethod=b] you say split=split Me stupid! Thanks! Is there a way to switch caption repetition off and header repetition on? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Entries in \completelistoffigures - HOWTO?
Hans Hagen wrote: \expanded{% \placefigure [\XMLpar{figure}{location}{}] [\XMLpar{figure}{label}{unknown}] {{\bf\XMLflush{floattitle}} \XMLflush{caption}} } Thank you so much once again. Works now. I fail, however to grasp where to apply the '\expanded' with the full-page-figure/other-page-caption you helped me set up ... Can you enlighten me concerning that? Joh \definefloat[caption] \setupfloat[caption][location=right] \defineframedtext [captiontext] [width=\textwidth,style={{\smallbodyfont}\setupinterlinespace[line=2.8ex]},frame=off,topframe=on] \defineXMLenvironment [fpfigure] { \bgroup \defineXMLsave[floattitle] \defineXMLsave[caption] \defineXMLsave[graphic] } { \placefigure [page,none] [\XMLpar{figure}{label}{}] {} {\externalfigure[\XMLflush{graphic} [width=\textwidth,height=\textheight,factor=max]} \placecaption [bottom,none] {} {\startcaptiontext \placefloatcaption [figure] {{\bf\XMLflush{floattitle}} \XMLflush{caption}} \stopcaptiontext} \egroup } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Entries in \completelistoffigures - HOWTO?
Hans Hagen wrote: Johannes Graumann wrote: \expanded{% \placefigure [\XMLpar{figure}{location}{}] [\XMLpar{figure}{label}{unknown}] {{\bf\XMLflush{floattitle}} \XMLflush{caption}} } Some of my captions are REALLY long. So the TOF looks somewhat funny ... is there a way to restrict the entries to my 'floattitle'? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TABLE: 'distance' override?
After sleeping on this I realize that a more mechanistical answer to this may be more interesting. When coding a table in LaTeX with 'booktabs' as the one shown in http://www.idyll.org:8081/JohSite/context/table1.jpg/view, booktabs mainly provides the commands '\bottomrule' and '\toprule', creating the heavier start and end lines. The interrupted lines separating the table header from the table body are coded explicitly (with a command I'm not sure is even provided by 'booktabs'): '\cmidrule(r){1-1}\cmidrule(lr){2-2}\cmidrule(l {3-3}' for a three-columned table. Bottomline is that while with the distance solution in ConTeXt natural TABLEs the whole table is modified, a solution like this only modifies the horizontal line targeted - and that very flexible: the firs '\cmidrule' call anly shortens the rule on the right ('(r)'), the second one on both sides ('(lr)') and the last one on the left ('(l)'). In order to emulate my table style with TABLE there would be 4 things necessary: 1) possibility to have top- and bottomframe formated independently (different width - top heavy, bottom light; one continuous, one interrupted (see 2.)) 2) a new frame mode ('int'?) which interrupts a 'bottomframe=int' between table columns with an automatism recognizing whether this is the first or last column and only shortening the line on the right or left respectively. 3) Booktabs also provides an '\addlinespace' command for groupseparation ... see separation between first and second body line in http://www.idyll.org:8081/JohSite/context/table1.jpg/view 4) When defining tables in LaTeX, a definition like [EMAIL PROTECTED]@{}} yields horizontal lines terminating on the left and right flush with the table content and not reaching to a column separation border beyond that. If you wonder where I got all theses crazy ideas ;0): http://www.tug.org/tex-archive/info/german/tabsatz/tabsatz.pdf by Axel Reichert is the inspiring document (sorry - German only). I'm not asking for this to be implemented, but I believe ConTeXt would benefit from this. Joh Hans Hagen wrote: Johannes Graumann wrote: Hello, In my quest for tables similar to what the 'booktabs' package in LaTeX what does booktab do then 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] TABLE 'last line' tag?
nico wrote: On Thu, 20 Apr 2006 17:27:50 -0700, Johannes Graumann [EMAIL PROTECTED] wrote: nico wrote: Why don't you test if the attribute is set before applying it to the TR? You see the problem on the last row, but the fact is that you force the bottomframe clear for every row (which is dirty IMHO). It's not that easy, since the bottomframe - once set - is persistent ... so every row underneath my header (e.g.) will have 'bottomframe=on' set. No, the options are local to the current level where it is set. If bottomframe is on for one row, it won't set bottomframe to the next rows. In the following example, only two rows (the header and another one in the body) have local bottomframe on, and the last row bottomframe is done with table setup: The persistence issue is XML specific, I believe and therefore does not apply to your code example. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TABLE: 'distance' override?
Hans Hagen wrote: what does booktab do then Have a look at http://www.idyll.org:8081/JohSite/context/table1.jpg/view I write there: A table formated with the package 'booktabs' in LaTeX. Notice the heavier, continuous '\toprule' and '\bottomrule' as well as the lighter and interrupted lines seperating table-header and table body. Notice as well, that the table rules ar flush on the left and right with the table entries. I had emulated the continuous top- and bottomrule (while using 'distance' for the others) with a frame around the whole thing, but that prevents the table from being splitable ... I have not come across any ConTeXt solution yet making the rules on the left and right edge of the table flush with the Text. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TABLE 'last line' tag?
nico wrote: \defineXMLnested [tr] [bottomframe=,rulethickness=0.5pt] {\doifelse{\XMLop{bottomframe}}{}% {\expanded{\bTR}}% {\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}}} {\eTR} So much to learn, so little time. Thank you for this hint! Was hunting around in the XML example file for some XML specific switches and didn't get far ... this does it. Thank you. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TABLE 'last line' tag?
Hello, When formating tables the first row (top of the header) is easily formated by using for example: \setupTABLE[row][1][rulethickness=0.90pt,topframe=on] I was wondering whether there's an equivalent for specifically addressing the LAST row in a table? Something along the lines of \setupTABLE[row][last][rulethickness=0.90pt,topframe=on] \setupTABLE[row][-1][rulethickness=0.90pt,topframe=on]%python-like which both don't work ... Thanks for any hint, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TABLE: 'distance' override?
Hello, In my quest for tables similar to what the 'booktabs' package in LaTeX produces, I have run into a problem: something like '\bTABLE[distance=7.5pt]' will give me the sought for gaps in horizontal lines, but I have trouble implementing an uninterrupted topframe for the first and bottomframe for the last row. Is there any way of overriding the 'distance' parameter locally, so that for example the topframe of the first (header) row is uninterrupted, while the bottomframe comes with the 'distance' dictated gaps? For clarification see the attached file. While the gaps are desired for 'bottomframe' of the header row(s), the 'topframe' should be continuous. It would be even more marvelous if I could modify bottomframe- and topframe-rule thickness independently ... A recent proposal on this list to achieve the desired effect involved putting the whole table into a frame and displaying it's top- and bottomframe. However, that doesn't work for tables to be split over multiple pages and I'm hunting for the most generic of all mechanisms ... Thanks for any thoughts on this, Joh\setupcaption[table][location=top] % 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) \defineXMLnested [splittable] { \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] \defineXMLsave[footer] } { \splitfloat {\placetable[\XMLpar{table}{location}{here}][\XMLpar{table}{label}{unknown}]{\XMLflush{caption}}} { \setupTABLE[row][1][rulethickness=0.90pt,topframe=on] \setupTABLE[row][-1][rulethickness=0.90pt,bottomframe=on] \bTABLE[frame=off,split=repeat,splitmethod=b,distance=7.5pt,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}] \bTABLEhead\XMLflush{header}\eTABLEhead \bTABLEbody\XMLflush{body}\eTABLEbody \bTABLEfoot\XMLflush{footer}\eTABLEfoot \eTABLE } } \defineXMLnested [tr] [bottomframe=off,rulethickness=0.3pt] {\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}} {\eTR} \defineXMLnested [td] [rows=1,cols=1] {\expanded{\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}} {\par\eTD} \starttext \startXMLdata splittable caption F FF F F F F FF FF FFF FFF FF F FF FFF FF FF FFF FF FFF FFF F FFF F FF F F FF F FFF FFF F F FFF F FF F FFF FFF FFF F FF FF FFF F FFF FF F FFF FFF F FFF FF F. /caption header tr bottomframe=ontd rows=2YYY/tdtd cols=3YYY/tdtd rows=2YYY/tdtd rows=2YYY/tdtd rows=2YYY/td/trtr bottomframe=ontdYYY/tdtdYYY/tdtdYYY/td/tr /header body trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr
Re: [NTG-context] TABLE 'last line' tag?
nico wrote: Do you want to do this? \setupTABLE[row][last][rulethickness=0.90pt,bottomframe=on] Yes, that's what I want, but it doesn't work for me. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Sudden compilation-preventing font issue
I can't figure this out ... happily working on my project and all of a sudden I get this error upon texexecing: bodyfont: 12pt rm is loaded kpathsea: Running mktextfm ec-lmr12 mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ec-lmr12 This is METAFONT, Version 2.71828 (Web2C 7.5.4) kpathsea: Running mktexmf ec-lmr12 ! I can't find file `ec-lmr12'. * ...ljfour; mag:=1; nonstopmode; input ec-lmr12 Please type another input file name ! Emergency stop. * ...ljfour; mag:=1; nonstopmode; input ec-lmr12 Transcript written on mfput.log. grep: ec-lmr12.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ec-lmr12' failed to make ec-lmr12.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*12ptrmtf*=ec-lmr12 not loadable: Metric (TFM) file not found. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \ifskipfontchar... argument \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.1 % interface=en output=pdftex Does anybody have any clue as to what what I screwed up here? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Sudden compilation-preventing font issue
Something broke my lmodern installation on debian unstable ... reinstalling it fixed this. Joh Johannes Graumann wrote: I can't figure this out ... happily working on my project and all of a sudden I get this error upon texexecing: bodyfont: 12pt rm is loaded kpathsea: Running mktextfm ec-lmr12 mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ec-lmr12 This is METAFONT, Version 2.71828 (Web2C 7.5.4) kpathsea: Running mktexmf ec-lmr12 ! I can't find file `ec-lmr12'. * ...ljfour; mag:=1; nonstopmode; input ec-lmr12 Please type another input file name ! Emergency stop. * ...ljfour; mag:=1; nonstopmode; input ec-lmr12 Transcript written on mfput.log. grep: ec-lmr12.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ec-lmr12' failed to make ec-lmr12.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*12ptrmtf*=ec-lmr12 not loadable: Metric (TFM) file not found. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \ifskipfontchar... argument \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.1 % interface=en output=pdftex Does anybody have any clue as to what what I screwed up here? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TABLE 'last line' tag?
Figured out what's going on and would appreciate some advice on the issue: My actual code interprets XML and reads: \defineXMLnested [splittable] { \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] \defineXMLsave[footer] } { \splitfloat {\placetable[\XMLpar{table}{location}{here}][\XMLpar{table}{label {unknown}]{\XMLflush{caption}}} { \setupTABLE[row][1][rulethickness=0.30pt,topframe=on] \setupTABLE[row][last][rulethickness=0.30pt,bottomframe=on] \bTABLE[frame=off,split=repeat,splitmethod=b,distance=7.5pt,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}] \bTABLEhead\XMLflush{header}\eTABLEhead \bTABLEbody\XMLflush{body}\eTABLEbody \bTABLEfoot\XMLflush{footer}\eTABLEfoot \eTABLE } } \defineXMLnested [tr] [bottomframe=] {\expanded{\bTR[bottomframe=\XMLop{bottomframe}]}} {\eTR} What's happening here is that the the 'tr' bottomframe statement (which I need for formating) overrides the '\setupTABLE[row]' bit. Is there any way to make 'tr's bottomframe-statement be ineffectual in case of being the last raw? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TABLE 'last line' tag?
nico wrote: Why don't you test if the attribute is set before applying it to the TR? You see the problem on the last row, but the fact is that you force the bottomframe clear for every row (which is dirty IMHO). It's not that easy, since the bottomframe - once set - is persistent ... so every row underneath my header (e.g.) will have 'bottomframe=on' set. So if I set the bottomframe to separate header from body, I have to clear it from the next line (at least) in order to keep the body bottomframe free ... and than I run into trouble with the last row, which is body, but where I explicitly WANT the bottomframe. Am I not getting something here? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figure caption on different page?
nico wrote: [width=\textwidth,height=\textheight,factor=max] Thank you very much! Very convenient functionality! Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Multi-page table and lengthy caption
Hello, In my field lengthy table captions are common. The attached example shows two problems I have with the multi-page tabeling I made work with the help of the included patch from Hans: 1) the table splitting does not calculate the right height for the caption - the table is too long for the page. 2) captions of this caliber should only appear together with the first part of the table and should be replaced with 'continued' or nothing when appearing with further parts. I would greatly appreciate any advice on how to fix/achieve these two issues. Thanks, Joh \setupcaption[table][location=top] % 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) \defineXMLnested [splittable] { \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] \defineXMLsave[footer] } { \splitfloat {\placetable[\XMLpar{table}{location}{here}][\XMLpar{table}{label}{unknown}]{\XMLflush{caption}}} { \setupTABLE[row][1][rulethickness=0.90pt,topframe=on] \setupTABLE[row][-1][rulethickness=0.90pt,bottomframe=on] \bTABLE[frame=off,split=repeat,splitmethod=b,distance=7.5pt,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}] \bTABLEhead\XMLflush{header}\eTABLEhead \bTABLEbody\XMLflush{body}\eTABLEbody \bTABLEfoot\XMLflush{footer}\eTABLEfoot \eTABLE } } \defineXMLnested [tr] [bottomframe=off,rulethickness=0.3pt] {\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}} {\eTR} \defineXMLnested [td] [rows=1,cols=1] {\expanded{\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}} {\par\eTD} \starttext \startXMLdata splittable caption F FF F F F F FF FF FFF FFF FF F FF FFF FF FF FFF FF FFF FFF F FFF F FF F F FF F FFF FFF F F FFF F FF F FFF FFF FFF F FF FF FFF F FFF FF F FFF FFF F FFF FF F. /caption header tr bottomframe=ontd rows=2YYY/tdtd cols=3YYY/tdtd rows=2YYY/tdtd rows=2YYY/tdtd rows=2YYY/td/trtr bottomframe=ontdYYY/tdtdYYY/tdtdYYY/td/tr /header body trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr trtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/tdtdXXX/td/tr
Re: [NTG-context] Context Release 2006.04.12 is available
Hans Hagen wrote: i never tested that since one needs to load the ppchtex module as well \usemodule[chemic] Really? Just '\usemodule[nexcml]' makes in-line chemistry work just fine for me. Why would I need the ppchtex stuff? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XML floating figure and width.
Hello, My XML mapping rule for a floating figure looks (thanks to Hans' help) as follows: \defineXMLenvironment [figure] [width=] [location=here] { \bgroup \defineXMLsave[caption] \defineXMLsave[graphic] } { \placefigure [\XMLpar{figure}{location}{}] [\XMLpar{figure}{label}{unknown}] {\XMLflush{caption}} {\externalfigure[\XMLflush{graphic}][width=\XMLpar{figure}{width}{}}]} \egroup } I want to make it possible to call '\textwidth' from the XML code. 'figure width=\textwidth' does not work and does not make much sense when using the XML with something else but ConTeXt, so I want to implement a mapping of 'max' to '\textwidth'. I looked up some code Hans gave me for lists and came up with the following: \mapXMLvalue {figure:width} {max} {\textwidth} \defineXMLenvironment [figure] [width=] [location=here] { \bgroup \defineXMLsave[caption] \defineXMLsave[graphic] } { \placefigure [\XMLpar{figure}{location}{}] [\XMLpar{figure}{label}{unknown}] {\XMLflush{caption}} {\externalfigure[\XMLflush{graphic}][width=\XMLval{figure:width {\XMLop{width}}{}]} \egroup } This works great when saying 'figure width=max', but I loose the possibility of giving absolute values for 'width' - as in 'figure width=10cm'. Any hints on how to get the 'max' option while retaining compatibility with absolute values? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figure caption on different page?
Hans Hagen wrote: expertadvice ... /expertadvice Thank you. I have modified that code and it does what I want (see below). There is however one generalization issue: the line '\externalfigure[\XMLflush{graphic}][width=\textwidth]' should really be able to use scaling to '\textwidth' or \'textheight' depending on what fills the page better without overflowing it. Is there any way I can make ConTeXt check which one is better: 'width=\textwidth' or height='\textheight'? Thanks, Joh \definefloat[caption] \setupfloat[caption][location=right] \defineframedtext [captiontext] [width=\textwidth,style={{\smallbodyfont}\setupinterlinespace[line=2.8ex]},frame=off,topframe=on] \defineXMLenvironment [fpfigure] { \bgroup \defineXMLsave[caption] \defineXMLsave[graphic] } { \placefigure [page,none] [\XMLpar{figure}{label}{}] {} {\externalfigure[\XMLflush{graphic}][width=\textwidth]} \placecaption [bottom,none] {} {\startcaptiontext \placefloatcaption [figure] {\XMLflush{caption}} \stopcaptiontext} \egroup } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and Multipage table
Hans Hagen wrote: first of all, putting a \framed around it makes it unsplittable; best use the framed options that come with the floats Ok. second, there's a problem in signaling the splitter, which demands a patch Please excuse my ignorance: can I add these patches just to my *.ctx file or do I have to edit the actual distributed file? If the latter is true: is it (in the case of 'core-ntb') './tex/context/base/core-ntb.tex' or '/base/core-ntb.tex' that need to be edited? How about 'page-flt'? Do I have to edit './tex/context/base/page-flt.tex' or './base/page-flt.tex'? Do I have to call 'texexec --make' afterwards? Sorry for my novice-ness, Joh \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} % beware: you need to set the splitmethod to b (boxed split) \starttext \splitfloat {\placetable{test}} {\bTABLE[split=repeat,splitmethod=b] \dorecurse{100}{\bTR \bTD test \eTD \eTR} \eTABLE} \stoptext this whole splitting has to be revised (although a two way singaling is not that trivial here) 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] Chapter-wise bibliographies and multi-chapter citations
First of May. This is a real problem then ... Taco, I can't expect you to fix this ... but the info I need is: do you want to do this and if yes: what's a reasonable time frame. Will help me to decide whether to return to LaTeX immediately ... Thanks for your great work! Joh Taco Hoekwater wrote: Johannes Graumann wrote: I run into the problem, that shared citations (in this case 'garrels:96' and 'gavin:06' are only printed following the first '\placepublications' call and not the second. I'm collating multiple publications into a thesis and since they all deal with similar themes, there's a lot of overlap. My university requires chapter-specific complete bibliographies, so the status quo is bad for me. Unfortunately, this is not something I can fix quickly, because ConTeXt's list mechanism does not support it. I have to rewrite large parts of the module for this to work, and that takes time. When is your deadline? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Chapter-wise bibliographies and multi-chapter citations
Hello, First: I've put together a minimal example for this problem which can be found at http://www.johannesgraumann.net/copy_of_profession/bibprob/ Second: The problem ... When I declare chapterspecific bibliographies like so: \usemodule[bib] \setupbibtex[database={bibprob.bib}] \setuppublications[sorttype=bbl] \starttext \chapter{1} \cite[authoryear][garrels:96]\par \cite[authoryears][gavin:06] \section{References} \placepublications[criterium=chapter] \chapter{2} \cite[authoryear][garrels:96]\par \cite[authoryears][gavin:06]\par \cite[authoryear][giaever:02] \section{References} \placepublications[criterium=chapter] \stoptext I run into the problem, that shared citations (in this case 'garrels:96' and 'gavin:06' are only printed following the first '\placepublications' call and not the second. I'm collating multiple publications into a thesis and since they all deal with similar themes, there's a lot of overlap. My university requires chapter-specific complete bibliographies, so the status quo is bad for me. Thanks for any hints, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and chapter specific bibliographies
Taco Hoekwater wrote: Johannes Graumann wrote: \placepublications[criterium=chapter] at least, that works for me. Not here. What's happening now is: the references are being sorted by chapter, but then all appended after the first chapter. So no reference listings for chapters 2-x ... strange. I've tested with a normal tex file, so maybe this is an xml-related problem. Can you send me the actual input (again)? Taco, I'll send something as soon as I can discern a pattern to the failing ... not clear yet. One thing I noticed though is that (in the cases where there is a Bibliography printed (why? don't know) I get the following behavior: if a reference is cited in chapter A as well as Chapter B, it will NOT be included in the reference listing of chapter B. Any way around that? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] chapter with letters rather than numbers?
Hi, How would I use \setuphead[chapter] to have consecutive letters rather than numbers assigned to chapters (in my appendix)? Thanks for any hint, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with altest release and newcml
Hello, Sorry for reposting this, but I thought a more descriptive subject and a minimal example would be beneficial. After the latest update, which includes the new 'newcml' module, 'texexec --version' reports: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.6-2.2 (Web2C 7.5.5) context : ver: 2006.04.12 12:49 cont-en : ver: 2006.04.12 12:49 fmt: 2006.4.12 mes: english When trying to texexec the following file: \usemodule[newcml] \starttext Hello \stoptext I hit the following error: system : module newcml loaded (/home/balin/texmf/tex/context/base/x-newcml.tex loading : Context XML Macros (chem ml) ! Too many }'s. l.327 \let\stopchemical{} Can't find anything in '/home/balin/texmf/tex/context/base/x-newcml.tex' that looks suspicious to my novice eyes ... Thanks for any input, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] placetable style argument trouble.
Hello, Why is in \setupTABLE[frame=off,split=repeat,splitmethod=a,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}] the '\setupinterlinespace[line=2.8ex]' not honored (at least not with respect to the switched bodyfont)? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XML and Multipage table
Hello, Does anybody have an insight into why a table created with the following mapping rule for XML code does not present it's caption and is not split? Thanks Joh \defineXMLnested [table] {\bgroup \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] %\defineXMLnested[header]{\bTABLEhead} {\eTABLEhead} %\defineXMLnested[body] {\bTABLEbody} {\eTABLEbody} \placetable [\XMLpar{table}{location}{here}] [\XMLpar{table}{label}{unknown}] {\XMLflush{caption}} \bgroup \setupTABLE[frame=off,split=repeat,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}] \framed[frame=off,topframe=on,bottomframe=on,offset=none,rulethickness=0.75pt] \bgroup \bTABLE[distance=7.5pt] \bTABLEhead \XMLflush{header} \eTABLEhead \bTABLEbody \XMLflush{body} \eTABLEbody \bTABLEfoot\eTABLEfoot } {\eTABLE \egroup \egroup \egroup} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and chapter specific bibliographies
Taco Hoekwater wrote: Johannes Graumann wrote: Taco Hoekwater wrote: \placepublications[criterium=local] should work. Still struggling with this. Sorry, I had misunderstood \placelist's options. Make that \placepublications[criterium=chapter] at least, that works for me. Not here. What's happening now is: the references are being sorted by chapter, but then all appended after the first chapter. So no reference listings for chapters 2-x ... strange. I have fixed the other problem, and have already uploaded a new version to the modules section at contextgarden.net. It should automatically appear in the next context release as well. Thank you. When do you think the new release will happen? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and 'Table of Contents'
Hans Hagen wrote: is this working ok in the latest release? Yes Sir - was my stupidity to begin with ... had indenting set to '[medium]'. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Figure caption on different page?
Hello, Is it possible to place (for page sized figures) the caption on the next/previous page? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Strange t-bib behavior
Taco Hoekwater wrote: Johannes Graumann wrote: HOWEVER, the citation issue persists - no change! Can you send me an example (off-list)? My test files create no such problems. Cheers, Taco I learned from your last rant on attachments and posted it here ;0) http://www.idyll.org:8081/JohSite/copy_of_profession/bibprob/ Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and table interpretation
Hans, With your help, I got this to work: \defineXMLnested [table] { \bgroup \defineXMLsave[caption] \defineXMLsave[header] \defineXMLsave[body] } { \placetable [\XMLpar{table}{location}{here}] [\XMLpar{table}{label}{unknown}] {\XMLflush{caption}} { \ix\setupinterlinespace[reset,small] \framed[frame=off,topframe=on,bottomframe=on,offset=none,rulethickness=1pt] \bgroup \setupTABLE[frame=off,split=repeat,splitmethod=a] \expanded{\bTABLE[distance=10pt]\XMLflush{header}\XMLflush{body}}\eTABLE \egroup \x} \egroup } \defineXMLnested [tr] [bottomframe=off,rulethickness=0.3pt] {\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}} {\eTR} \defineXMLnested [td] [rows=1,cols=1] {\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]} {\eTD} But my endless quest for perfection would prefer something like \expanded{\bTABLE[distance=10pt]\bTABLEhead\XMLflush{header}\eTABLEhead\bTABLEbody\XMLflush{body}\eTABLEbody}\eTABLE , so I can read in a table like this AND have it spread over multiple pages: table label=Name caption Semething /caption header tr bottomframe=ontd rows=2Gene product/tdtd cols=3HPM tag/tdtd rows=2TAP tag/tdtd rows=2mod. TAP tag/tdtd rows=2Frequ. in ref. set/td/tr tr bottomframe=ontdExp.thinspace;1/tdtdExp.thinspace;2/tdtdExp.thinspace;3/td/tr /header body trtdGcn5p/tdtd41thinspace;(41)/tdtd25thinspace; (25)/tdtd65thinspace;(65)/tdtd19thinspace; (19)/tdtd21thinspace;(21)/tdtd4.55percent;/td/tr /body /table The error I get when trying this is: ! Argument of \dotripletestemptyx has an extra }. inserted text \par to be read again } \expanded ...long \xdef \@@expanded {\noexpand #1} \@@expanded \dogetgrouped ...ody \XMLflush {body}\eTABLEbody } \eTABLE \egroup \x } \egroup l.417 /table After searching the archives I was wondering whether the multipage aspect is doable at all with 'TABLE' and if yes how. Thanks for any further input, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Strange t-bib behavior
Thank you for your time. Joh Taco Hoekwater wrote: Johannes Graumann wrote: Taco Hoekwater wrote: Johannes Graumann wrote: HOWEVER, the citation issue persists - no change! Can you send me an example (off-list)? My test files create no such problems. Cheers, Taco I learned from your last rant on attachments and posted it here ;0) OK, verified the problem. Working on a fix will have to wait 'til tomorrow, though. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Strange t-bib behavior
Oh, could you please try to verify my 'lang'/'language' tag issue as well: just edit BibProb.bib and switch 'lang = en' to 'language = en' and see what happens. Does that work for you? Joh Taco Hoekwater wrote: Johannes Graumann wrote: Taco Hoekwater wrote: Johannes Graumann wrote: HOWEVER, the citation issue persists - no change! Can you send me an example (off-list)? My test files create no such problems. Cheers, Taco I learned from your last rant on attachments and posted it here ;0) OK, verified the problem. Working on a fix will have to wait 'til tomorrow, though. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Units and XML
Hans Hagen wrote: what you need is a full switch: style=smallbodyfont (or as command \smallbodyfont) \setupcaptions[style=smallbodyfont,width=\textwidth] did it. Thanks. ... wikify ... Thesis first than this ;0) How would I add singlespacedness to the command above? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Units and XML
Hans Hagen wrote: How would I add singlespacedness to the command above? i dunno what that is Serves me right ... coming up with my own lingo ... my document is doubly spaced (\setupinterlinespace[line=2\bodyfontsize]) and I was trying to get the float captions singly spaced. Have stuffed commands like '\setupinterlinespace[small]' (which I believe is the ConTeXt default) pretty much anywhere I can think of into '\setupcaptions[style=smallbodyfont,width=\textwidth]', but can't figure it out. Was hoping you could toss me another bone ... Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Strange t-bib behavior
Johannes Graumann wrote: Oh, could you please try to verify my 'lang'/'language' tag issue as well: just edit BibProb.bib and switch 'lang = en' to 'language = en' and see what happens. Does that work for you? Forget about this: after the upgrade to the most recent ConTeXt this problem is a thing of the past. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and table interpretation
Hans Hagen wrote: \defineXMLnested [tr] [bottomframe=off,rulethickness=0.3pt] {\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}} {\eTR} \defineXMLnested [td] [rows=1,cols=1] {\expanded{\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]}} {\eTD} \defineXMLnested [table] {\bgroup \defineXMLsave[caption] \defineXMLnested[header]{\bTABLEhead} {\eTABLEhead} \defineXMLnested[body] {\bTABLEbody} {\eTABLEbody} \placetable [\XMLpar{table}{location}{here}] [\XMLpar{table}{label}{unknown}] {\XMLflush{caption}} \bgroup \setupTABLE[frame=off,split=repeat,splitmethod=a] \ix\setupinterlinespace[reset,small] \framed [frame=off,topframe=on,bottomframe=on,offset=none,rulethickness=1pt] \bgroup \bTABLE[distance=10pt]} {\eTABLE \egroup \egroup \egroup} Great! No more errors! But with this solution the caption disappears ... strange. Also: breaking the table across pages doesn't work despite 'split=repeat,splitmethod=a' - do I have to call a split explicitly somewhere? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and chapter specific bibliographies
Taco Hoekwater wrote: \placepublications[criterium=local] should work. Still struggling with this. \usemodule[bib] \setupbibtex[database={../Bibliography/bibliography.bib,../Bibliography/verma04.bib}] \setuppublications[sorttype=bbl] \defineXMLenvironment [chapter] { \defineXMLargument [title] {\chapter} \defineXMLenvironment [content] {}{} } {\setupindenting[none]\section{References}\placepublications} leads to the first chapter carrying the references of ALL chapters in it's bibliography section. Adding '\placepublications[criterium=local]' results in total lack of reference listings - no bibliography ANYWHERE. Any idea how I may go about fixing this? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Units and XML
Hans Hagen wrote: newmmu is now newpml and works with newmml (the old and new methods cannot be used mixed because they use completely different internals [direct xml handling using stacks versus xml-tex expansion] system : module newpml not found system : module newmml not found system : module newcml not found Is the answer to '\usemodule[newpml,newmml,newcml]'. What am I doing wrong? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Table Esthetics (and XML)
nico wrote: \starttext ... \stoptext And so the aggressive newbie gets to eat his words .. ;0) Thank you. There is, however on feature missing in your example: [EMAIL PROTECTED]@{}} ^^^ ^^^ Will yield the horizontal lines aligned with the start/end of the table lines - no column spacing at the beginning and end of each row. Any pointers on how to emulate this with TABLE? Thanks again, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] xml table reading problem
Hans Hagen wrote: { } Thanks ... blush ... Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] xml table reading problem
Hans, Thank you once more, but I'm just to green for this ... \defineXMLnested [table] { \bgroup \defineXMLsave[caption] \defineXMLsave[content] } { \placetable [\XMLpar{table}{location}{here}] [\XMLpar{table}{label}{unknown}] {\XMLflush{caption}} \ix \expanded{\bTABLE\XMLflush{content}}\eTABLE \x \egroup } Still gives me trouble: ! Missing { inserted. to be read again \edef \doifsomething #1-\edef \!!stringa {#1}\ifx \!!stringa \empty \expandafter ... \switchtobodyfont [#1]-\doifsomething {#1} {\doifdefinedelse {\??ft \normal... \dogetgrouped ...nown}] {\XMLflush {caption}} \ix \expanded {\bTABLE \XMLflu... l.417 /table ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Units and XML
Hans, Since you seem to be working on this: when using inline physml I noticed that physapplyunit/cn1/cncsymbolMicro/Gram/Per/Milli/Liter//csymbol/apply/phys when used in a figure caption formated like this: \setupcaptions[style=small,width=\textwidth] does not scale properly - it remains at 12pt, since \setupbodyfont[12pt,modern]. Joh Hans Hagen wrote: Johannes Graumann wrote: Hans Hagen wrote: newmmu is now newpml and works with newmml (the old and new methods cannot be used mixed because they use completely different internals [direct xml handling using stacks versus xml-tex expansion] system : module newpml not found system : module newmml not found system : module newcml not found Is the answer to '\usemodule[newpml,newmml,newcml]'. What am I doing wrong? newcml is in the making (not that hard, will do that asap) the other x-new* modules will be in the new current i'll upload (i saw that i'd forgotten to included them) 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] How to manipulate interlinespace in doubly spaced document?
Hi, My university requires doubly spaced Theses (b ... but hey - it get's a lot thicker ;0), so the preamble has: \setupinterlinespace[line=2\bodyfontsize] I'd like to typeset tables, figure/table captions and footnotes with normal spacing and have experimented with things like \setupcaptions[style=small,width=\textwidth,setuplinespace[small]] and \defineXMLnested [table] { \bgroup \defineXMLsave[caption] \defineXMLsave[content] } { \placetable [\XMLpar{table}{location}{here}] [\XMLpar{table}{label}{unknown}] {\XMLflush{caption}} {\ix\setupinterlinespace[reset,small] \expanded{\bTABLE\XMLflush{content}}\eTABLE \x} \egroup } But can get neither to work. Any insight into the right syntax is highly appreciated. Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XML and table interpretation
Why do these two things work: 1)\defineXMLnested [td] [rows=1,cols=1] {\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]} {\eTD} (in conjunction with 'trtd rows=2Gene product/tdtd cols=3HPM tag/tdtd rows=2TAP tag/tdtd rows=2mod. TAP tag/tdtd rows=2Frequ. in ref. set/td/tr') 2) \bTR[bottomframe=on,rulethickness=0.3pt]\bTD a \eTD\bTD b \eTD\bTD b \eTD\bTD c \eTD\eTR% But this doesn't? \defineXMLnested [tr] [bottomframe=off,rulethickness=0.3pt] {\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]} {\eTR} together with 'tr bottomframe=ontd rows=2Gene product/tdtd cols=3HPM tag/tdtd rows=2TAP tag/tdtd rows=2mod. TAP tag/tdtd rows=2Frequ. in ref. set/td/tr' Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and table interpretation
Thanks Hans, that did it. Do you ever sleep? Joh Hans Hagen wrote: Johannes Graumann wrote: Why do these two things work: 1)\defineXMLnested [td] [rows=1,cols=1] {\bTD[nr=\XMLop{rows},nc=\XMLop{cols}]} {\eTD} (in conjunction with 'trtd rows=2Gene product/tdtd cols=3HPM tag/tdtd rows=2TAP tag/tdtd rows=2mod. TAP tag/tdtd rows=2Frequ. in ref. set/td/tr') 2) \bTR[bottomframe=on,rulethickness=0.3pt]\bTD a \eTD\bTD b \eTD\bTD b \eTD\bTD c \eTD\eTR% But this doesn't? \defineXMLnested [tr] [bottomframe=off,rulethickness=0.3pt] {\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]} {\eTR} \expanded{\bTR[]} has to do with the fact that TABLE collects its info and therefore you need to freeze the settings together with 'tr bottomframe=ontd rows=2Gene product/tdtd cols=3HPM tag/tdtd rows=2TAP tag/tdtd rows=2mod. TAP tag/tdtd rows=2Frequ. in ref. set/td/tr' Thanks, Joh ___ 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] Strange t-bib behavior
Taco Hoekwater wrote: It runs fine here, so probably you have to update your context distribution. There were some changes so you need a fairly recent context. But first, try re-running bibtex. Taco, I tried again. See http://www.idyll.org:8081/JohSite/copy_of_profession/bibprob - same problem (and it persists in my xml master document). This was a complete restart and I have wiped the directory multiple times of all things not source (*.ctx,*.bib). I don't believe this is attributable to me not running an up-to-date ConTeXt, since I upgraded yesterday and 'texexec --version' says: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.6-2.2 (Web2C 7.5.5) context : ver: 2006.04.06 23:00 cont-en : ver: 2005.01.31 fmt: 2006.4.7 mes: english 'bibtex --version' gives me: BibTeX 0.99c (Web2C 7.5.4) kpathsea version 3.5.4 Copyright (C) 1997-2004 Oren Patashnik. Kpathsea is copyright (C) 1997-2004 Free Software Foundation, Inc. There is NO warranty. Redistribution of this software is covered by the terms of both the BibTeX copyright and the GNU General Public License. For more information about these matters, see the files named COPYING and the BibTeX source. Primary author of BibTeX: Oren Patashnik. Kpathsea written by Karl Berry and others. Is that possibly the problem? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XML and subscript
Hello, Aside from the revelation that I will have to leave my debian tetex and go with the newest ConTeXt install for the (relatively) heavy lifting I'm doing here, I will now post my accumulated end-of-day questions one by one ;0) Here's the first one: Why does this not work and what makes it work: \defineXMLgrouped [sub] \low Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Units and XML
Hello, Has anyone come up with a sense making way of coding units in XML and mapping them onto ConTeXt's 'units' module ... makes a knot in my brain ... Thnaks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XML and chapter specific bibliographies
Hello again, Taco had helped me working the following out: \usemodule[bib] \setupbibtex[database={../Bibliography/bibliography.bib}] \setuppublications[sorttype=bbl] \defineXMLenvironment [chapter] { \defineXMLargument [title] {\chapter} \defineXMLenvironment [content] {}{} } {\setupindenting[none]\section{References}\placepublications} Which works just the way I want it to for the first chapter BUT in the next one all citations from the first one are being included as well. Is there a mechanism to reset the bibliography after a chapter is processed? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Error while loading chemml
Hello, Loading the chemml module I get the following error: system : macros of module chemml loaded (/usr/share/texmf-tetex/tex/context/base/x-chemml.tex xml : loading module cml (/usr/share/texmf-tetex/tex/context/base/xtag-cml.tex ! Undefined control sequence. argument \c!variant =\v!a \xprocesscommaitem #1,#2-\if ,#1 ,[EMAIL PROTECTED] \xprocesscommaitem \else \if [EMAIL PROTECTED] \xdogetparameters #1]-\xprocesscommaitem #1,] ,[EMAIL PROTECTED]@ l.23 \setupCMLappearance [ion] [\c!variant=\v!a] I assume this will go away once I switch to the most recent ConTeXt? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and subscript
Hans Hagen wrote: \defineXMLargument [sub] \low Thanks, Hans! Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Error while loading chemml
Hans Hagen wrote: also grep for variant and make that alternative Fixed. If I come across desirable functionality I'll let you know. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Units and XML
physapplyunit/cn4/cncsymbolDegrees/Celsius//csymbol/apply/phys works with physml, but not with newmmu. Geee, looks like I'm starting to find things in the guts of this ;0) Joh P.S.: What's your favorite beer/drink? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Units and XML
Something else: How to define a custom unit (basepairs, bp) with physml/units? Joh Johannes Graumann wrote: physapplyunit/cn4/cncsymbolDegrees/Celsius//csymbol/apply/phys works with physml, but not with newmmu. Geee, looks like I'm starting to find things in the guts of this ;0) Joh P.S.: What's your favorite beer/drink? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] textmu non-italic?
Works now with the newest ConTeXt. Joh Johannes Graumann wrote: Peter, 'texnansi' didn't compile, but 'texansi' did ... however under \setupbodyfont[modern,12pt] \textmu still delivers an italicized version ... Peter Münster wrote: On Thu, 6 Apr 2006, Johannes Graumann wrote: \defineXMLentity[00B5] {\textmu} seems to deliver an italic mu when using the standard font. Is there a way to get a 'straight' one? I don't know about XML, but perhaps these two lines will help you: \usetypescript[modern-base][texnansi] \setupbodyfont[modern] See also http://context.literatesolutions.com/collector/2 Cheers, Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] More physml/units
physapplyunit/cn30/cncsymbolMinute//csymbol/apply/phys Does not work. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] More physml/units
Johannes Graumann wrote: physapplyunit/cn30/cncsymbolMinute//csymbol/apply/phys Does not work. Joh Additionally: while \textmu is non-italic thanks to hints from the list (\usetypescript[modern-base][texnansi] \ \setupbodyfont[12pt,modern]), when doing something like physapplyunit/cn30/cncsymbolMicro/Meter//csymbol/apply/phys the mu is italicized again ... how to remedy that? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Strange t-bib behavior
Hello, I attach an example file which produces strange citation behavior: while the single citations ('\cite[authoryears][cordingley:90]' or '\cite[authoryears][walker:94]') work perfectly allright, the dual citation ('\cite[authoryears][cordingley:90,walker:94]') is being screwed up: (Cordingley et al., 1990, Walker, 1994 and , ) Any ideas where the problem lies? Thanks, Joh error.tar.bz2 Description: BZip2 compressed data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] xml table reading problem
Hello, Derived from the 'figure' and 'table' examples in the XML example document, I came up with the following set of mapping rules for formating XML tables with ConTeXt. \defineXMLenvironment [table] { \bgroup \defineXMLpush[caption] \defineXMLpush[content] } { \placetable [\XMLpar{table}{location}{here}] [\XMLpar{table}{label}{unknown}] {\XMLpop{caption}} \ix \bTABLE \XMLpop{content} \eTABLE \x \egroup } \defineXMLnested [tr]\bTR\eTR \defineXMLnested [td]\bTD\eTD When compiling a file with this rule set, I get the following error: ! Missing { inserted. to be read again \edef \doifsomething #1-\edef \!!stringa {#1}\ifx \!!stringa \empty \expandafter ... \switchtobodyfont [#1]-\doifsomething {#1} {\doifdefinedelse {\??ft \normal... \XML:ele:/table ...nown}] {\XMLpop {caption}} \ix \bTABLE \XMLpop {content} ... l.437 /table When switching to scroll mode, the tables come out ok, but I'm unable to use \defineXMLenvironmentsave [textref] [name=] {} {\in{\XMLflush{textref}}[\XMLop{name}]} to refer to them ... Any input would be highly appreciated. On a side note: how do I, in a document with general '\setupinterlinespace[line=2\bodyfontsize]' switch to 'small' interlinespace for floatcaptions (and footnotes)? Tried '\setupcaptions[style={small \setupinterlinespace[small]},width=\textwidth]', but that doesn't work ... Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] More on XML and citations
Taco Hoekwater wrote: Taco, how would I define a new 'cite' alternative along the lines of 'authoryear'/'authoryears' that would result in 'Author et. al., 2004'? Easiest is by using a special macro breaking it up in two bits, like so: \def\mycite#1{\cite[author][#1], \cite[year][#1]} there is a way to create 'official' alternatives, but it is quite a bit more cumbersome. Thanks for that. The problem here is that I use XML as the text source and would like to be able to use 'authoryear', 'authoryears' as well as 'mycite' occasionally, which I switch to and from by the 'opt' option in e.g. 'cite id=hunt:86 opt=authoryear/'. If I understand your above proposal correctly, I would have to literally call '\mycite[hunt:86]' on the TeX level, and would have to abandon XML ... and thus the reason to switch from LaTeX to ConTeXt to begin with - and nobody would want that ;0) Could you - maybe - point me towards the more cumbersome 'official' solution? Thanks for your help, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] More on XML and citations
Taco Hoekwater wrote: Johannes Graumann wrote: Could you - maybe - point me towards the more cumbersome 'official' solution? See attached example. Cheers, taco Taco, With this preamble code \unprotect \def\bibauthoryearxref[#1]% {\ixbibauthoryear{#1}% {{\currentbibauthor}\bibalternative\c!inbetween \bibalternative\v!left{\currentbibyear}\bibalternative\v!right} {\bibalternative\c!pubsep{\currentbibauthor}\bibalternative\c!inbetween \bibalternative\v!left {\currentbibyear}\bibalternative\v!right} {\bibalternative\c!lastpubsep{\currentbibauthor}\bibalternative\c!inbetween \bibalternative\v!left {\currentbibyear}\bibalternative\v!right}} \setupcite [authoryearx] [\c!andtext={ and }, \c!otherstext={ et al.}, \c!pubsep={, }, \c!lastpubsep={ and }, \c!compress=\v!yes, \c!inbetween={, }, \c!left={}, \c!right={}] \protect I get the following error at compile time: ! Undefined control sequence. argument \c!andtext ={ and } \xprocesscommaitem #1,#2-\if ,#1 ,[EMAIL PROTECTED] \xprocesscommaitem \else \if [EMAIL PROTECTED] argument \c!andtext ={ and }, \c!otherstext ={ et al.}, \c!pubsep ={, }, \... \xdogetparameters #1]-\xprocesscommaitem #1 ,],[EMAIL PROTECTED]@ \next1 #1,-\dosetupcite {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... l.224 \c!right={}] What am I doing wrong? Outdated ContTeXt/bib module? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ConTeXt analogue to \usepackage{units}
Hello, Is there a ConTeXt analogue to the LaTeX package 'units', used for typesetting scientific units? I'm especially interested in the 'unitfrac' functionality of that package ... Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] textmu non-italic?
Hello, \defineXMLentity[00B5] {\textmu} seems to deliver an italic mu when using the standard font. Is there a way to get a 'straight' one? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] textmu non-italic?
Peter, 'texnansi' didn't compile, but 'texansi' did ... however under \setupbodyfont[modern,12pt] \textmu still delivers an italicized version ... Peter Münster wrote: On Thu, 6 Apr 2006, Johannes Graumann wrote: \defineXMLentity[00B5] {\textmu} seems to deliver an italic mu when using the standard font. Is there a way to get a 'straight' one? I don't know about XML, but perhaps these two lines will help you: \usetypescript[modern-base][texnansi] \setupbodyfont[modern] See also http://context.literatesolutions.com/collector/2 Cheers, Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] textmu non-italic?
Hmmm, now that you are writhing this ... as a normal user I had a write access issue there, but as root I get with my tetex installation the output below - any ideas? Joh kpathsea: Running mktextfm texnansi-lmr10 mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input texnansi-lmr10 This is METAFONT, Version 2.71828 (Web2C 7.5.4) kpathsea: Running mktexmf texnansi-lmr10 ! I can't find file `texnansi-lmr10'. * ...; mag:=1; nonstopmode; input texnansi-lmr10 Please type another input file name ! Emergency stop. * ...; mag:=1; nonstopmode; input texnansi-lmr10 Transcript written on mfput.log. grep: texnansi-lmr10.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input texnansi-lmr10' failed to make texnansi-lmr10.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*modern12ptrmtf*:=texnansi-lmr10 at 12.0pt not loadable: Metric (TFM) f ile not found. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... argument \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.19 \setupbodyfont[12pt,modern] % 10pt is the minimum ... ? Hans Hagen wrote: Johannes Graumann wrote: Peter, 'texnansi' didn't compile, but 'texansi' did ... however under \setupbodyfont[modern,12pt] \textmu still delivers an italicized version ... hm, texnansi is the name, so the fact that something texansi runs means that it is ignored 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] More on XML and citations
Hans Hagen wrote: however, best is not to mix tex this way with xml H ... will heed that advice then ... as a remedy: Taco, how would I define a new 'cite' alternative along the lines of 'authoryear'/'authoryears' that would result in 'Author et. al., 2004'? Thanks for any hint, Joh pgp2BhaGnDLoC.pgp Description: PGP signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XML element strip?
Hello, I have a strange question. While working with XML and ConTeXt, I have run into the TeXnic problem of the interpretation of line breaks. What I would prefer to do for code clarity sake are things like the following: list item Something /item item else /item /list This is however screwed up by TeXs line break interpretation, forcing me to format the input like so: list itemSomething/item itemelse/item /list The question now is: is there any way to tell context to strip trailing whitespaces/line breaks from XML nodes? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] More on XML and citations
Hello again, I have a matching rule for cite commands that look as follows: cite id=hunt:86 opt=authoryear/ The rule is this (kudoos to Taco): \defineXMLargument [cite] {\expanded{\cite[\XMLpar{cite}{opt}{}][\XMLpar{cite}{id}{}]}} Sometimes I would like to have the '(Hunt et. al., 1986)' produced by above combination to look like '(see e.g. Hunt et. al., 1986)'. Taco pointed out in response to a question to list that I could do that by handing a 'left={(see e.g. }' to the cite command, however I fail to be able to do that. A XML node like this cite id=hunt:86 opt=authoryear,left={(see e.g.}/ results on compilation with above rule in the following error: ! Missing \endcsname inserted. to be read again \leftargument \XML:ent:tex-leftbrace ...ace \else \leftargument \fi argument ...r,left=\getXMLentity {tex-leftbrace} see e.g.\getXMLentity {tex... \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded \docite ...on [\csname @@pv#2compress\endcsname ]} [ \v!yes =\bibcitecompre... \XML:ele:cite/ ...}{opt}{}][\XMLpar {cite}{id}{}]} {} l.112 ...nt:86 opt=authoryear,left={see e.g.}/ ) changed the field dramat... Can anybody help me out with this? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Cite module: APA citation proposals
Hello, I'm using Tacos cite module with the default APA style. I'm a biochemist and the majority of my cited sources derives from www.pubmed.org, which I import into BibTeX via pybliographic. I have some slight problems with the formating as provided by the database and was wondering whether it's possible to fix them ... 1) Titles from PubMed always end with a '.'. Since the cite module (at least the version with Tetex in Debian unstable) does not check for the presence of a '.', but just appends one, I end up with 2 '.'s after the title when using a unmanipulated *.bib file. Would it be possible to include a check for that into the module? 2) Pybliographic also delivers the article language in a 'language' field and not in the 'lang' field the cite module expects, which terminates compilation with an unmanipulated *.bib file. Would it be possible to make the module more promiscuous in this respect? Thanks for any consideration of these minor, but inconvenient, points, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML element strip?
As always: thanks to the Wiz! Joh Hans Hagen wrote: Johannes Graumann wrote: Hello, I have a strange question. While working with XML and ConTeXt, I have run into the TeXnic problem of the interpretation of line breaks. What I would prefer to do for code clarity sake are things like the following: list item Something /item item else /item /list This is however screwed up by TeXs line break interpretation, forcing me to format the input like so: list itemSomething/item itemelse/item /list The question now is: is there any way to tell context to strip trailing whitespaces/line breaks from XML nodes? \defineXMLenvironment [item] {...\ignorespaces} {\removeunwantedspaces ...} - 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] XML and references
Hans, When this is done, I will have to make a trip to Zwolle and buy you a beer! Thank you once again! Joh Hans Hagen wrote: Johannes Graumann wrote: Hello all, I'm trying to interpret something like section label=intro:mixtureprob titleThe problem of the complex protein mixture/title content ref name=intro:mixtureprob/ /content /section With the follwing mapping rules and am failing: \defineXMLenvironment [section] { \defineXMLargument [title] [\XMLpar{section}{label}{}] wrong argument, should be [name=] {\section} \defineXMLenvironment [content] {}{} } {} \defineXMLargument [ref] {\textreference[\XMLpar{ref}{name}{}]} wrong command \textreference should be \in I would appreciate any insight into my folly ... Thanks, Joh \defineXMLenvironment [section] {\setups{section:define}} {} \startsetups section:define \defineXMLargument [title] [label=] {\expanded{\section[\XMLpar{section}{label}{}]}} \defineXMLprocess [content] \stopsetups \defineXMLenvironmentsave [pageref] [name=] {} {\at{\XMLflush{pageref}}[\XMLop{name}]} \defineXMLenvironmentsave [textref] [name=] {} {\in{\XMLflush{textref}}[\XMLop{name}]} \starttext \startXMLdata section label=intro:mixtureprob titleThe problem of the complex protein mixture/title content pageref name=intro:mixtureprob/ textref name=intro:mixtureprob/ pageref name=intro:mixtureprobpage/pageref textref name=intro:mixtureprobchapter/textref /content /section \stopXMLdata \stoptext - 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