Re: [NTG-context] another \startcolumns and grid layout issue
Hans Hagen wrote: i'll send you a patch, works great, thank's a lot! we need to make a column test suite ... I'll happily post any detected problem to the list :) Yours, Karsten signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] floats spanning columns?
Hello Hans, Hans Hagen wrote: well, you can't blame knuth for that one ... the problem is that the graphix is oved to a next page already but that page has no content [patch] Seems to work very nice, too :) Yours, Karsten -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multiple columns inside \framed
Mojca Miklavec wrote: On 4/13/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, I would like to typeset two columns of names inside one frame (centered horizontally). \startcolumns inside \framed doesn't work; is there any simple alternative? \startsimplecolumns[n=2,distance=0pt]#3\stopsimplecolumns Don't you think that you have taken the word simple to literally? ;) (This returned me back the hope that some hidden and undocumented features like \startsimplethesis \writesimplethesis exist in the ConTeXt core ;) \def\simplethesis {\setupsystem[random=1234] \title{\fakewords{3}{4}} \placelist[chapter,section] \dorecurse{6} {\chapter{\fakewords{5}{10}} \dorecurse{5} {\section{\fakewords{2}{5}} \dorecurse{2} {\dorecurse{3}{\fakewords{100}{200}\endgraf} \placefigure {\fakewords{8}{15}} {\fakefigure{5cm}{3cm}{10cm}{5cm}} \dorecurse{2}{\fakewords{100}{200}\endgraf} \starttext \simplethesis \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
Re: [NTG-context] \bigr bracket missing in antykwa
Aditya Mahajan wrote: Hi, \bigr\} does not give me anything while using antykwa fonts. \big\} also does not work. \right\} works correctly. Is there something missing in the typescripts? I have no idea on how fonts work, so can not debug the problem. \usetypescript [antykwa-torunska][ec] \setupbodyfont[antykwa, 11pt] \starttext $\bigl\{ a \bigr\}$ \blank $\big\{ a \big\}$ \blank $\left\{ a \right\}$ \blank \stoptext ConTeXt ver: 2006.04.07 11:24 fmt: 2006.4.9 int: english mes: english No warning message is generated in the log file. i remember that mojca looked into the polish fonts and math and detected some problems (and communicated it to the authors) 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] Inconsistent behaviour of placefigure[left] for math and text
Aditya Mahajan wrote: Hi, When I use \placefigure[left] with some test, the text wraps around the figure. But if the paragraph, contains some formula, it does not wrap even after the figure is complete. How can I prevent such a behaviour. Example \startbuffer[figure] \placefigure [left] {}{} \stopbuffer \startbuffer[test] \dorecurse{3}{\input knuth} \stopbuffer \startbuffer[mathtest] \dorecurse{3}{ This is a dummy paragraph to support a little bit of math to show the trouble with placefigure \startformula a = b \stopformula This is a dummy paragraph to support a little bit of math to show the trouble with placefigure This is a dummy paragraph to support a little bit of math to show the trouble with placefigure} \stopbuffer \starttext \getbuffer[figure] \getbuffer[test] \page \getbuffer[figure] \getbuffer[mathtest] \stoptext add empty lines around the \start\stop pair (somehow display does not go well with the parshape (i must discuss this with taco) 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] Inconsistent behaviour of placefigure[left] for math and text
Hans Hagen wrote: Aditya Mahajan wrote: Hi, When I use \placefigure[left] with some test, the text wraps around the figure. But if the paragraph, contains some formula, it does not wrap even after the figure is complete. How can I prevent such a behaviour. btw, can you make three (or more) examples: (yes|nocheck|text) with left/bottom/fallback placement for the testsuits (see other threads) 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] placefigure feature request ?
Sanjoy Mahajan wrote: [code for text key] \setupfloats[numbering=text] I included the code for numbering=text, to make the tex file below. Sadly, the figures are numbered 3-1-2 (i.e. as if numbering=nocheck were given). I also tried the context live and got the same order. Am I doing something silly? also redefine: \def\redofloatorder#1% {\doifnotinset\@@bknumbering{\v!nocheck,\v!text} {\doglobal\increment\nofplacedfloats\relax \gettwopassdata\s!float \iftwopassdatafound \doifnot\composedsectionnumber\twopassdata {\edef\oldcomposedsectionnumber{\composedsectionnumber}% \xdef\composedsectionnumber{\twopassdata}% \showmessage\m!floatblocks1{\nofplacedfloats,#1 \oldcomposedsectionnumber,\composedsectionnumber}}% \fi}} and the text options works as expected -Sanjoy == % first a new key \startconstantsdutch english germanczech italian romanian french fallback: terugval fallback fallback fallback fallback fallback fallback \stopconstants % use that key \unprotect \long\def\dofloat#1#2#3#4% {\dosetfloatbox{#1}{#2}{#3}{#4}% \doifelsevaluenothing{\??fl#4\c!criterium} {\dogetfloatbox{#1}\empty} {\ifdim\wd\floatbox\getvalue{\??fl#4\c!criterium}\relax \postcenterfloatbox{\wd\floatbox}% else we get left aligned %dogetfloatbox{#1}\v!here% see details/pascal \dogetfloatbox{#1}{\executeifdefined{\??fl#4\c!fallback}\v!here}% PATCHED \else \dogetfloatbox{#1}\empty \fi}} % pass the new location (will be done differently, hack \def\dogetfloatbox#1#2% {\ifvisible \doifelsenothing{#2} {\getfromcommalist[#1][1]% [EMAIL PROTECTED]:\to\floatmethod [EMAIL PROTECTED] \commalistelement\at:\to\floatcolumn [EMAIL PROTECTED] \floatcolumn\at*\to\floatrow [EMAIL PROTECTED] % todo: nog algemeen otr \ifx\OTRSETsetpreferedcolumnslot\undefined\else \OTRSETsetpreferedcolumnslot\floatcolumn\floatrow \fi} {\let\floatcolumn\empty \let\floatrow\empty \edef\floatmethod{#2}}% \doifundefined{\string\floatmethod\floatmethod} {\let\floatmethod\v!here}% \getvalue{\string\floatmethod\floatmethod}[\floatmethod,#1]% PATCHED \fi} \def\dofloatreference {\doifnot\@@bknumbering\v!text {\doglobal\increment\numberedfloat \doifelse\@@bknumbering\v!text % alternative to yes|page {\let\next\immediatewriteutilitycommand} {\let\next\writeutilitycommand}% \expanded{\next {\noexpand\twopassentry {\s!float}% {\numberedfloat}% {\composedsectionnumber} \protect \setupfloats[numbering=text] % we use the marginwidth as criterium \setupfloat[figure][criterium=\marginwidth,fallback=bottom] \starttext \placefigure[bottom]{1}{} \input tufte \placefigure[left]{2}{} \input tufte \placefigure[left]{3}{\framed[width=.9\marginwidth]{}} \input tufte \stoptext == ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - 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] \doifdefinedelse and \write
� wrote: Hello, with the following test-file I expect the output: Yes No But the output is: edef @@lycurrentstate{myTestbla}No edef @@lycurrentstate{myTestblub}No Where does this come from, and how could I get it right please? \def\myMacro#1{\doifdefinedelse{myTest#1}{Yes}{No}} \def\myTestfile{\jobname-test.tmp} \def\myTestbla{just a test} \starttext \immediate\write18{echo \myMacro{bla} \myMacro{blub} \myTestfile} \typefile{\myTestfile} \stoptext Greetings, Peter \def\myMacro#1{\ifundefined{myTest#1}Yes\else No\fi} (see definition of \doifdefinedelse: it does some clever things in order to handle messy #1's) 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] ?context-mathml-directive times symbol yes? not working
Louis Springer wrote: I have a simple formula where I would like to use the times symbol and the directive does not appear to be working. Am I doing something wrong here? \usemodule[MathML] \useXMLfilter[mml,mmp,mmc] % basic mathml/presentational/content \starttext \startXMLdata ?context-mathml-directive times symbol yes? formula math applyeq/ ci c /ci apply times/ ci s /ci ci f /ci /apply /apply /math /formula \stopXMLdata \stoptext Using a setup also appears to be ineffective, e.g. \setupMMLappearance[times][symbol=yes] change this in xtag-mmc: \def\MMLcTIMES#1#2#3\empty {\setMMLcreset{\MMLcfunctionlist,\MMLcconstructlist}% \doifelse\@@MMLtimesauto\v!no {\let\@@MMLtimes@@symbol\@@MMLtimessymbol} {\doifelseXMLRneighbors{cn}{#3} {\let\@@MMLtimes@@symbol\v!yes} {\let\@@MMLtimes@@symbol\@@MMLtimessymbol}}% \doifelse\@@MMLtimes@@symbol\v!yes {\encapsulateXMLR{}{\times}{}{#3\empty}} {\doifelse\@@MMLtimes@@symbol{dot} {\encapsulateXMLR{}{\cdot}{}{#3\empty}} {#3\empty}}} however, better si to use \usemodule[newmml] % soon thsi will be the default \usemodule[MathML] ^^ mathml \useXMLfilter[mml,mmp,mmc] % basic mathml/presentational/content this is then not needed! (the mathml module does this) -- - 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] 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