[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] \bigr bracket missing in antykwa
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. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Inconsistent behaviour of placefigure[left] for math and text
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 Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bug with setupformulas and startalign?
On Thu, 13 Apr 2006, Aditya Mahajan wrote: > Is this a bug or am I missing something simple? > > \startmode[bug] > \setupformulas[align=right, leftmargin=3em] > \stopmode > > \starttext > \startformula \startalign > \NC a \NC= b \NR > \NC c \NC= d \NR > \stopalign \stopformula > \stoptext > Should have given more details. When I compile using --mode=bug, I get ! You can't use `\halign' in math mode. \aligneqalignno ->\prepareeqalignno \halign \ifcase \eqalignmode \or to \dis... \NC l.45 \NC a \NC= b \NR I am using ConTeXt ver: 2006.04.07 11:24 fmt: 2006.4.9 Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Bug with setupformulas and startalign?
Is this a bug or am I missing something simple? \startmode[bug] \setupformulas[align=right, leftmargin=3em] \stopmode \starttext \startformula \startalign \NC a \NC= b \NR \NC c \NC= d \NR \stopalign \stopformula \stoptext Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multiple columns inside \framed
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 ;) Hans, thanks a lot! It does exactly what I wanted. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] wrapping a long URL without added spaces
Again, thanks, Hans. Your help is very much appreciated. All best, Alan On Apr 13, 2006, at 9:00 AM, Hans Hagen wrote: > Alan Bowen wrote: >> Hans— >> >> The problem arises if one has >> >> [Campbell] >> [{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}] >> [] >> [{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/ >> 2002dp1.pdf}}] >> >> and then tries \from[Campbell] with \setupinteraction[state=start,] >> >> But I see now that I that I can get the desired wrapping using \goto >> rather than \hyphenatedurl and \from. >> > indeed, you do a double hyphenated url then >> Two questions >> >> • Which is preferred, \useURL or \useurl? >> > no prefered >> • Is there a “\setupgoto”? I need to make the typeface in the >> printed URL the same as that in the body text. >> > \setupurl > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 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
Re: [NTG-context] feature request: clipping option for externalfigure
On Wed, 12 Apr 2006, Hans Hagen wrote: > >> \ruledhbox{\clip{\useMPgraphic{test}}} > > > > of course, I've already tried \clip{\externalfigure[...][...]} but the > > figure disappears completely. \clip{\useMPgraphic{test}} disappears too. > > And now I see: it works for PDF output, so there is probably just an error > > in the dvi driver. > > > well, if you can find out what the problem is we can fix it (i dunno if > it's in dvips or in the special driver of context; maybe something > changes in dvips - which is probably only tested with latex -) Probably I won't be able to find out the details, but I can make some tests. I can already say, that dvips and xdvi behave the same: only white area instead of the figure. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] placefigure feature request ?
> [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? -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
Re: [NTG-context] wrapping a long URL without added spaces
Alan Bowen wrote: > Hans— > > The problem arises if one has > > [Campbell] > [{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}] > [] > [{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/ > 2002dp1.pdf}}] > > and then tries \from[Campbell] with \setupinteraction[state=start,] > > But I see now that I that I can get the desired wrapping using \goto > rather than \hyphenatedurl and \from. > indeed, you do a double hyphenated url then > Two questions > > • Which is preferred, \useURL or \useurl? > no prefered > • Is there a “\setupgoto”? I need to make the typeface in the > printed URL the same as that in the body text. > \setupurl 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] Frame around table
WN wrote: > Hi, > > I am trying to frame a horizontal itemized list like > > \framed[frame=on,height=2.1cm,width=16.4cm]{% > \startitemize[8,columns,four] > \item alleenstaand \item samenwonend/getrouwd \item eenoudergezin \item > kinderen/leeftijd > \stopitemize > } > > but the list does not come out right. > Should I be using overlays here ? I know the overlay basics a little > bit, but I don't > know how to setup a background for itemized lists. > this is tricky with frames since column soperatr in the mvl (main vertical list) and framed is a box; one can apply the new streams module \usemodule[streams] \definestreamlayer[whatever][width=12cm] \starttext \startstreamlayer[whatever] \startitemize[columns,two][after=] \item one \item two \item three \item four \stopitemize \stopstreamlayer \framed[strut=no,align=normal]{\placestreamlayer[whatever]\obeydepth} \ifx\starttextstreamlayer\undefined \else \starttextstreamlayer[whatever] \startitemize[columns,two] \item one \item two \item three \item four \stopitemize \stoptextstreamlayer \framed[strut=no]{\placetextstreamlayer[whatever]} \fi \stoptext the starttextstreamlayer macro is new -) 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] floats spanning columns?
Karsten Heymann wrote: > Hello Hans, > > Hans Hagen wrote: > >> if a float is too wide it will be moved around; wide floats spanning >> columns and text flowing around it is not one of the strong points of >> normal columns >> > > At least I didn't overlook something simple :) > > Is there any easy fix to prevent the "table" from disapperaring when I > uncomment the \input knuth? > > % -*- mode: context; coding: latin-9-unix; -*- > > \setuplayout [grid=yes] > > \definecolumnset[example] > \setupfloat[table][width=\makeupwidth] > > \starttext > \startcolumnset[example] > > \input knuth > %\input knuth > > \placetable{Tabelle} > \framed[width=\makeupwidth,height=4cm]{Hallo} > > \input knuth > > \input knuth > > \stopcolumnset > \stoptext > > 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 \unprotect \def\OTRSETflushleftovers {\OTRSETdoifcellelse{1}{1} {\bgroup \OTRSETcentergridcells \chardef\OTRSETbalancemethod\plusone \OTRSETreducegridbox \global\setbox\OTRfinalpagebox\OTRSETmakegridbox \global\ht\OTRfinalpagebox\textheight % signals output \OTRSETdofinaloutput \globallet\OTRSETbalht\zeropoint \egroup} {}} \def\stopcolumnset {\relax \ifnum\columnsetlevel=\plusone \endgraf % needed, else wrong vsize in one par case \global\chardef\OTRSETfinish\plusone % no, extra page \pagebreak % (test on pascal toc) \dostopcolumnset \egroup \global\notelimittrue % brrr, untested and fuzzy \setvsize \sethsize \ifvoid\OTRfinalpagebox\else % probably balanced \ifdim\ht\OTRfinalpagebox<\textheight \snaptogrid[\v!page]\hbox{\box\OTRfinalpagebox}% \else \box\OTRfinalpagebox \fi \fi \global\chardef\OTRSETfinish\zerocount \ifsomefloatwaiting \setvsize \pagebreak \setvsize \fi \OTRSETflushleftovers %% ADDED \else \egroup \fi \decrement\columnsetlevel\relax} \protect \setuplayout[grid=yes] \definecolumnset[example] \showgrid \starttext \startcolumnset[example] \input knuth \endgraf \input knuth \placetable {Tabelle} {\framed[width=\makeupwidth,height=4cm]{Hallo}} \input knuth \endgraf \input knuth \stopcolumnset \input knuth \endgraf \input knuth \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] alignment problems of units in table
Hello, thanks a lot! I will have a look at the wiki and try to add this (will be my first addition). Wolfgang Hans Hagen schrieb: > Wolfgang wrote: >> Hello >> >> I get the units always left aligned in my table while the rest gets the >> correct alignement. What do I do wrong? >> >> \starttable[|l|r|r|r|r|r|] >> \HL >> \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR >> \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC >> \Kilo \Gram \Per \Cubic \Meter \LR >> \HL >> \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR >> \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR >> \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR >> \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR >> \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR >> \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR >> \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR >> \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR >> \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR >> \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR >> \HL >> \NC \NC \NC \NC \NC average \NC 421.3 \SR >> \HL >> \stoptable >> > units act upon signals that they insert in the text, in this case (no > quantity given) you need to start the unit sequence using \Unit > > \NC \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter > \NC \Unit \Gram \NC > \Unit \Kilo \Gram \Per \Cubic \Meter \LR > > needs wikifying > > - > 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] wrapping a long URL without added spaces
Hans— The problem arises if one has [Campbell] [{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}] [] [{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/ 2002dp1.pdf}}] and then tries \from[Campbell] with \setupinteraction[state=start,] But I see now that I that I can get the desired wrapping using \goto rather than \hyphenatedurl and \from. Two questions • Which is preferred, \useURL or \useurl? • Is there a “\setupgoto”? I need to make the typeface in the printed URL the same as that in the body text. and thanks. Alan On Apr 13, 2006, at 7:29 AM, Hans Hagen wrote: > Alan Bowen wrote: >> I can wrap a long URL using \hyphenatedurl, but not without getting >> some unwanted spaces before the numerous �/�s in the URL. >> >> I expect that I have missed something elementary, again. Still, my >> efforts to avoid the spaces have thus far been unsuccessful, so any >> help would be gratefully received. >> >> My current setup is >> >> [Campbell] >> [{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}] >> [] >> [{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/ >> 2002dp1.pdf}}] >> >> I also have >> \setupinteraction[state=start,color=blue,style=rm] >> > can you be more specific ... > > \showframe > > \setupinteraction[state=start] > > \starttext > > \useurl > [Campbell] > [http://www.very.long.edu/very/very/long/url/2002dp1.pdf] > [] > [http://www.very.long.edu/very/very/long/url/2002dp1.pdf] > > \hsize2mm\goto{\url[Campbell]}[url(Campbell)] > > \stoptext > > i see no spaces > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Frame around table
Hi, I am trying to frame a horizontal itemized list like \framed[frame=on,height=2.1cm,width=16.4cm]{% \startitemize[8,columns,four] \item alleenstaand \item samenwonend/getrouwd \item eenoudergezin \item kinderen/leeftijd \stopitemize } but the list does not come out right. Should I be using overlays here ? I know the overlay basics a little bit, but I don't know how to setup a background for itemized lists. Thanks for your help. Wim ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] wrapping a long URL without added spaces
Taco— Many thanks for the diagnosis. That is a good start, but I guess that for now I will have to find another way get long interactive links into my docs. Best, Alan On Apr 12, 2006, at 8:45 AM, Taco Hoekwater wrote: > > > Alan Bowen wrote: >> Hi, Taco! >> >> Here is a minimal file that produces the problem. Note that if you >> comment out \setupinteraction[...], the problem goes away and the URL >> is wrapped nicely. > > Ok, here is the diagnosis: > > The \from command calls \dogotospace which in turn calls > \processisolatedwords, and at that point, \betweenisolatedwords > contains the actual space that is causing the problems. > > I am not sure how to fix this elegantly, though. > > Taco > ___ > 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] How to set pdf link target view to one columnwidth in twocolumn mode
josef dev wrote: > Dear All, > > I am wotking in a twocolumn document, I have the proper hyperlinks for > references but the problem is that I need the link target to be viewd > in full column width while when I click on any link it shows the link > target in the view that is set to "pdfview" option to hyperef package. > I have gone through the package documentation, there are several > possible ways to have the link target view like Fit-to-Width (FitH), > Fit-to-Height (FitV), Fit-to-Bounding Box Width (FitBH), > Fit-to-Bounding Box Height (FitBV), FitR that uses the current box and > several other but none serves to set the link target so that it views the > onecolumn text zoomed to fit to width instead of the entire two colmn > page. > I tried to use "\pdfdest fitr" instead of hypertarget but when I pass 4 > coordinates of link target box after "fitr" it just appears in pdf and > compiler automatically assigns some other values, how it calculates > that and how we can hack/adjust it as per our requirement. > (I used following syntax in place of hypertarget > "\pdfdest name (ID) fitr x1 y1 x2 y2", > where ID is link id, x1, y1, x2, y2 are link target > box coordinats) > Hope my query is clear still if somebody finds it confusing then > please feel free to ask further clarification. this is what article threads are for but since that's a rather fuzzy mechanism (not under complete control) you will never get a proper solution unless you start hooking target areas into hyperlinks (no real fun) since you use latex, any context based solution is of no use anyway 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] Changing page orientation - Landscape/Portrait
Miguel Queiros wrote: >>> \placetable{Just an example}{\externalfigure[teste.tmp]} >> This is what I call 'creative usage' of a feature :) >> Better use \getbuffer for this. > > I was using \externalfigure because I saw that on the manual, > and because I wanted to scale down the table to the width of the > page. :) > Sorry, my lack of knowledge :) > Can I do that with a buffer/table withou using \externalfigure ? > \placetable{Just an expample}{\scale[sx=2,sy=2]{\getbuffer[teste]}} but this is not so handy (only factors, no fixed dimensions). So your method is the best and easiest way to scale a table. This really makes me smile. Greets, Peter > I looked at the wiki and I should think about using > only natural tables as they seem to be much better... but > I'v had problems trying to get some multipage tables > to work... > > Thanks, > Miguel Queirós > > > ___ > 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] Figure caption on different page?
Johannes Graumann wrote: > Hello, > > Is it possible to place (for page sized figures) the caption on the > next/previous page? > \definefloat[caption] \setupfloat[caption][location=right] \defineframedtext [captiontext] [width=.5\textwidth] \setuppagenumbering[alternative=doublesided] \starttext test \page \placefigure [page,none] {} {\blackrule[width=\textwidth,height=\textheight]} \placecaption [bottom,none] {} {\startcaptiontext \placefloatcaption [figure] {\input tufte \relax} \stopcaptiontext} \dorecurse{10}{\input tufte \endgraf} \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] wrapping a long URL without added spaces
Alan Bowen wrote: > I can wrap a long URL using \hyphenatedurl, but not without getting > some unwanted spaces before the numerous �/�s in the URL. > > I expect that I have missed something elementary, again. Still, my > efforts to avoid the spaces have thus far been unsuccessful, so any > help would be gratefully received. > > My current setup is > > [Campbell] > [{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}] > [] > [{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/ > 2002dp1.pdf}}] > > I also have > \setupinteraction[state=start,color=blue,style=rm] > can you be more specific ... \showframe \setupinteraction[state=start] \starttext \useurl [Campbell] [http://www.very.long.edu/very/very/long/url/2002dp1.pdf] [] [http://www.very.long.edu/very/very/long/url/2002dp1.pdf] \hsize2mm\goto{\url[Campbell]}[url(Campbell)] \stoptext i see no spaces 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] alignment problems of units in table
Wolfgang wrote: > Hello > > I get the units always left aligned in my table while the rest gets the > correct alignement. What do I do wrong? > > \starttable[|l|r|r|r|r|r|] > \HL > \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR > \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC > \Kilo \Gram \Per \Cubic \Meter \LR > \HL > \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR > \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR > \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR > \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR > \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR > \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR > \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR > \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR > \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR > \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR > \HL > \NC \NC \NC \NC \NC average \NC 421.3 \SR > \HL > \stoptable > units act upon signals that they insert in the text, in this case (no quantity given) you need to start the unit sequence using \Unit \NC \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Gram \NC \Unit \Kilo \Gram \Per \Cubic \Meter \LR needs wikifying - 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] another \startcolumns and grid layout issue
Karsten Heymann wrote: > Hi, > > can someone explain me why the second "Test" gets out of grid: > > \setuplayout[grid=yes] > \showgrid > \setupcolumns[rule=on] > > \starttext > \startcolumns > One \crlf Two > \column > Three \crlf Four > \stopcolumns > > Test > > \blank > > \startcolumns > One \crlf Two with depth > \column > Three \crlf Four > \stopcolumns > > Test > > \stoptext > ah, the column mess (very tricky to get this right because it's hard to get implicit depth / height right i'll send you a patch, we need to make a column test suite ... 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] multiple columns inside \framed
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? (Otherwise I'll manually split the > content into two subframes.) > > I would appreciate any hints, > Mojca > > > \def\student#1#2{{#1 \sc#2}\par} > > % room number, number of students, students > \def\room#1#2#3{#1: > \framed[width=4.4cm,height=2cm]{% > \ifnum#2<4 #3\else > \startcolumns[n=2,distance=0pt]#3\stopcolumns > \startsimplecolumns[n=2,distance=0pt]#3\stopsimplecolumns - 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] multiple columns inside \framed
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? (Otherwise I'll manually split the content into two subframes.) I would appreciate any hints, Mojca \def\student#1#2{{#1 \sc#2}\par} % room number, number of students, students \def\room#1#2#3{#1: \framed[width=4.4cm,height=2cm]{% \ifnum#2<4 #3\else \startcolumns[n=2,distance=0pt]#3\stopcolumns \fi }\par } \starttext \room{1}{2}{% \student{Abc}{Def} \student{Abc}{Def} } \room{2}{5}{% \student{Abc}{Def} \student{Abc}{Def} \student{Abc}{Def} \student{Abc}{Def} \student{Abc}{Def} } \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] alignment problems of units in table
Hello I get the units always left aligned in my table while the rest gets the correct alignement. What do I do wrong? \starttable[|l|r|r|r|r|r|] \HL \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC \Kilo \Gram \Per \Cubic \Meter \LR \HL \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR \HL \NC \NC \NC \NC \NC average \NC 421.3 \SR \HL \stoptable Thanks Wolfgang texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded for mat=cont-en 2006.3.23) 13 APR 2006 11:44 context : ver: 2006.02.15 17:41 cont-en : ver: 2006.02.15 17:41 fmt: 2006.3.23 mes: english ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Changing page orientation - Landscape/Portrait
Miguel Queiros wrote: >>> \placetable{Just an example}{\externalfigure[teste.tmp]} >>> >> This is what I call 'creative usage' of a feature :) >> Better use \getbuffer for this. >> > > I was using \externalfigure because I saw that on the manual, > and because I wanted to scale down the table to the width of the > page. :) > > Can I do that with a buffer/table withou using \externalfigure ? > > I looked at the wiki and I should think about using > only natural tables as they seem to be much better... but > depends on the kind of table, in many situations tabulate is better (more text oriented); in most xml flows there is just the html approach to tables, and catching all in one kin dof table is impossible, if only because of typographical demands (unless one is willing to configure each detail) 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] XML and Multipage table
Johannes Graumann wrote: > 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} > first of all, putting a \framed around it makes it unsplittable; best use the framed options that come with the floats second, there's a problem in signaling the splitter, which demands a patch \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] placetable style argument trouble.
Johannes Graumann wrote: > 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)? > add a \par after your text i'm not sure if teh following patch will break other things \def\eTBLCELL {\ifhmode \delayedendstrut \par % added \else \par \ifdim\prevdepth<\zeropoint % =-1000pt ? \vskip-\strutdp \else \removebottomthings \fi \fi} - 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: >> this 'choose between locations' feature is kind of present but only >> with 'here' as fallback but it's trivial to make that configurable: >> > > I've been experimenting a bit with the code, and it is much appreciated. > > I added \unprotect..\protect and it compiled fine. The figure numbering > is the order in the source files, thanks to the numbering=nocheck; > reading down the page it is 3->1->2. Then I felt bold and commented out > the numbering=nocheck. It does one clockwise rotation of the numbers: > > \unprotect \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] subtle difference in some cases 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