Re: [NTG-context] linenotes/footnotes
On Apr 23, 2006, at 7:24 PM, Hans Hagen wrote:i'll post an update with support for notedefinitions in such text notesHans OK, just tested, and I'm not sure if I'm misunderstanding something or if this is still a bug: the notes themselves are now typeset the way I expected (thanks!), but the note references are typeset in the margin, all on top of each other.Thanks, and bestThomas___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraphs indented from line 2 on
Hans Hagen wrote: > Karsten Heymann wrote: >> Great, works like a charm! By the way: What's the benefit of >> \definestartstop over \def\start..., \def\stop...? > looks nicer and is configurable (style,color etc) So it doesn't insert a extra level ouf grouping or the like -- fine to know. 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] paragraphs indented from line 2 on
Hans Hagen wrote: > \setuphead[section][indentnext=first] Oh, I should have known that by now ... Thanks Hans, I'll add it to the wiki. 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] ConTeXt + asymptote
> To integrate asymptote to ConTeXt, what is needed (from the ConTeXt > pov I mean) ? I'm curious about that too. I'm just going through my asymptote diffs (against v0.99) for it to work with plain TeX, and I'm not sure any of my changes will make it easier to integrate with ConTeXt the way MP is integrated. It's depressing how wedded asymptote is to LaTeX, and maybe it's impossible to get it all out (e.g. it uses \minipage and \fontsize). -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Table width trouble
On Sun, 23 Apr 2006 18:28:20 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote: > nico wrote: >> Hello, >> >> I come back with that damn table test case. With release 2006.04.22: >> [...] >> >> > \long\def\dohandleTBLcellA#1#2[#3]#4% Thanks, it does it. Another torture case: when column widths are partially defined, it can give a weird result (here the last column has almost disppeared). Since it's a limit case, I don't know if it's worth being fixed. \bTABLE[frame=on] \setupTABLE[c][2][width=3em] \setupTABLE[c][3][width=3em] \bTR \bTD[nc=2] A \eTD\bTD x \eTD \bTD[nc=2] B \eTD \eTR \bTR \bTD X \eTD \bTD[nc=3] C \eTD \bTD x \eTD \eTR \bTR \bTD[nc=2] D \eTD \bTD x \eTD \bTD[nc=2] E \eTD \eTR \eTABLE Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt + asymptote
Hans Hagen a écrit : i meant the 'hard coded parts' but then, i must admit that i never saw any real asymptote code -) Hans Since asymptote uses gs to generate eps or pdf output, I wander if the generated code can be used by ConTeXt... To integrate asymptote to ConTeXt, what is needed (from the ConTeXt pov I mean) ? I ask that because I don't know ConTeXt internals well... What's the integration scheme for a MPgraphic for example ? (I know that ConTeXt finally use a .mp and a .mpx) I assume after reading a .log that a ps file is needed... but it seems that a "font name mngt" is needed too... Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] update
Hi, i'll upload a version that - supports some more TABLE width situations (earlier patch) - fixes the background problem (please test) - hopefully fixes the n=0 footnote problems - fixes a seldom occuring secction head problem (years old) for practical purposes this is a current and not a beta (i need to generate minimals for a project tomorrow) 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 + asymptote
Renaud AUBIN wrote: > Hans Hagen a écrit : >> no, what is needed is an isolation of the tex part, so that the macro >> package has/can to implement certain 'features'; otherwise it's >> unmaintainable >> >> Hans >> > euh... The isolation of the tex part is performed for LaTeX with > inlinetex option... (an eps file without any text + a tex file) > Isn't this kind of isolation sufficient ? i meant the 'hard coded parts' but then, i must admit that i never saw any real asymptote code -) 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] textbackground exceeds its scope
Aditya Mahajan wrote: > Thank you. This takes care of it. > i adapted the textbackground macros as well as the mp code to catch the border case (this whole background stuff is rather tricky code) 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] textbackground exceeds its scope
On Sun, 23 Apr 2006, Hans Hagen wrote: > Aditya Mahajan wrote: >> Hi, >> >> I have encountered a really strange bug in textbackground. >> Occasionally, textbackground colors the whole page instead of just the >> text between \starttextbackground and \stoptextbackground. This >> happens only when I am using module mag-01 and have >> \setuptyping[style=\ttx\setupinterlinespace] set. >> Attached is the minimal example that I could make. >> >> Tested with beta >> ConTeXt ver: 2006.04.18 22:36 fmt: 2006.4.23 int: english mes: >> english >> >> For this test, ConTeXt ver: 2006.04.10 20:04 fmt: 2006.4.23 does >> not give any problem, but similar problem occurs at some other place. >> If it is important, I can try to make a minimal file to reproduce the >> problem with latest stable release. > there is a dangling line of the background due to a break > > \def\ShowExample > {\startexample > \nobreak > \typebuffer > \stopexample > \getbuffer} Thank you. This takes care of it. 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] textbackground exceeds its scope
Aditya Mahajan wrote: > Hi, > > I have encountered a really strange bug in textbackground. > Occasionally, textbackground colors the whole page instead of just the > text between \starttextbackground and \stoptextbackground. This > happens only when I am using module mag-01 and have > \setuptyping[style=\ttx\setupinterlinespace] set. > Attached is the minimal example that I could make. > > Tested with beta > ConTeXt ver: 2006.04.18 22:36 fmt: 2006.4.23 int: english mes: > english > > For this test, ConTeXt ver: 2006.04.10 20:04 fmt: 2006.4.23 does > not give any problem, but similar problem occurs at some other place. > If it is important, I can try to make a minimal file to reproduce the > problem with latest stable release. there is a dangling line of the background due to a break \def\ShowExample {\startexample \nobreak \typebuffer \stopexample \getbuffer} - 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 + asymptote
Hans Hagen a écrit : no, what is needed is an isolation of the tex part, so that the macro package has/can to implement certain 'features'; otherwise it's unmaintainable Hans euh... The isolation of the tex part is performed for LaTeX with inlinetex option... (an eps file without any text + a tex file) Isn't this kind of isolation sufficient ? Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt + asymptote
Renaud AUBIN wrote: > asy -inlinetex results in: > - an eps graphics > - latex code to use (I've not checked but seems) with asymptote.sty > > So, we can maybe imagine an -inlinecontext option to add asymptote > support in context (???) no, what is needed is an isolation of the tex part, so that the macro package has/can to implement certain 'features'; otherwise it's unmaintainable 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 + asymptote
asy -inlinetex results in: - an eps graphics - latex code to use (I've not checked but seems) with asymptote.sty So, we can maybe imagine an -inlinecontext option to add asymptote support in context (???) Hans Hagen a écrit : Renaud AUBIN wrote: Ok, but how to deal with asymptote like with metapost. For example, if I produce a pdf with asymptote (with embed fonts) and use this pdf into my ConTeXt document with the same fonts... Is the fonts included twice ? I assume that this is the case... Maybe it could be interesting to "integrate" asymptote. I don't know how hard it is at all... It's only an idea... it depends, if asymptote outputs a parsable format ... 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] TABLE: 'distance' override?
Johannes Graumann wrote: > 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 > but that's a typical example of a \begintable ... \endtable kind of table (a quick hack into TABLE is to use backgrounds drawn by mp (which is what we do when we need to make real fancy ones with shaded and colors and whatever) 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: 'distance' override?
Johannes Graumann wrote: > 1) possibility to have top- and bottomframe formated independently > (different width - top heavy, bottom light; one continuous, one interrupted > (see 2.)) > maybe in the future, when we have a bigger tex (would slow down the core \framed to much and as a result many other aspects of context) 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] textbackground exceeds its scope
Hi, I have encountered a really strange bug in textbackground. Occasionally, textbackground colors the whole page instead of just the text between \starttextbackground and \stoptextbackground. This happens only when I am using module mag-01 and have \setuptyping[style=\ttx\setupinterlinespace] set. Attached is the minimal example that I could make. Tested with beta ConTeXt ver: 2006.04.18 22:36 fmt: 2006.4.23 int: english mes: english For this test, ConTeXt ver: 2006.04.10 20:04 fmt: 2006.4.23 does not give any problem, but similar problem occurs at some other place. If it is important, I can try to make a minimal file to reproduce the problem with latest stable release. Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 test.tex Description: Binary data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Putting things over a figure
nico wrote: > Hello, > > I need a mechanism with which I can put several things (text, image) at a > precise position over a figure. The position is expressed in percentage > (x,y) of the figure dimensions. The lower-left corner is (0,0). > > I did the following that works for my own needs, but maybe a higher level > interface (layer?) could do the same. Any comment or improvement is > i'd go for layers > welcome. > > > \newdimen\overfigwd > \newdimen\overfight > > % Put the figure and define the x/y percentage factor for the calspairs. > \def\startoverfig >{\dodoubleempty\dostartoverfig} > > \def\dostartoverfig[#1][#2]% >{\bgroup > \setbox\scratchbox\hbox{\externalfigure[#1][#2]}% > \overfigwd=\wd\scratchbox > \overfight=\ht\scratchbox > \setuppositioning[unit=pt, > xfactor=\withoutpt\the\dimexpr(\overfigwd/100), > yfactor=\withoutpt\the\dimexpr(\overfight/100)]% > \startpositioning > \position(0,0){\box\scratchbox}} > > \def\stopoverfig >{\stoppositioning\egroup} > > % Put (centered) at the position (x%,y%) on the figure. > % The lower-left corner is (0,0) > \def\calspair(#1,#2)#3% >{\setbox0\hbox{#3}% > \position[xoffset=\dimexpr(-\wd0/2), > yoffset=\dimexpr(-\ht0/2)](#1,{\numexpr(100-#2)}){#3}} > > %% > > \setupcolors[state=start] > > \starttext > > \startoverfig[duck-small] >\calspair(0,0){A} >\calspair(100,100){B} > \stopoverfig > > \startoverfig[duck-small][width=4cm,frame=on] >\calspair(0,0){A} >\calspair(100,100){B} >\calspair(50,50){\framed[background=color,backgroundcolor=green]{Hello}} > \stopoverfig > > \startoverfig[unknown] >\calspair(30,0){A} >\calspair(100,100){B} > \stopoverfig > > \stoptext > > Regards, > BG > ___ > 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] paragraphs indented from line 2 on
Karsten Heymann wrote: > Hans Hagen wrote: > >> \definestartstop >> [exdent] >> [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, >>after=\stopnarrower] >> > > \setuphead[section][indentnext=first] > Can you make the following work too? Adding \indenting[yes] to before= > doesn't help. > > \startexdent > \section{Test} > \input tufte \endgraf > \input tufte \endgraf > \stopexdent > > \stoptext > > Yours, > Karsten > > > > ___ > 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] paragraphs indented from line 2 on
Karsten Heymann wrote: >> \definestartstop >> [exdent] >> [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, >>after=\stopnarrower] >> > > Great, works like a charm! By the way: What's the benefit of > \definestartstop over \def\start..., \def\stop...? > looks nicer and is configurable (style,color etc) - 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] Putting things over a figure
Hello, I need a mechanism with which I can put several things (text, image) at a precise position over a figure. The position is expressed in percentage (x,y) of the figure dimensions. The lower-left corner is (0,0). I did the following that works for my own needs, but maybe a higher level interface (layer?) could do the same. Any comment or improvement is welcome. \newdimen\overfigwd \newdimen\overfight % Put the figure and define the x/y percentage factor for the calspairs. \def\startoverfig {\dodoubleempty\dostartoverfig} \def\dostartoverfig[#1][#2]% {\bgroup \setbox\scratchbox\hbox{\externalfigure[#1][#2]}% \overfigwd=\wd\scratchbox \overfight=\ht\scratchbox \setuppositioning[unit=pt, xfactor=\withoutpt\the\dimexpr(\overfigwd/100), yfactor=\withoutpt\the\dimexpr(\overfight/100)]% \startpositioning \position(0,0){\box\scratchbox}} \def\stopoverfig {\stoppositioning\egroup} % Put (centered) at the position (x%,y%) on the figure. % The lower-left corner is (0,0) \def\calspair(#1,#2)#3% {\setbox0\hbox{#3}% \position[xoffset=\dimexpr(-\wd0/2), yoffset=\dimexpr(-\ht0/2)](#1,{\numexpr(100-#2)}){#3}} %% \setupcolors[state=start] \starttext \startoverfig[duck-small] \calspair(0,0){A} \calspair(100,100){B} \stopoverfig \startoverfig[duck-small][width=4cm,frame=on] \calspair(0,0){A} \calspair(100,100){B} \calspair(50,50){\framed[background=color,backgroundcolor=green]{Hello}} \stopoverfig \startoverfig[unknown] \calspair(30,0){A} \calspair(100,100){B} \stopoverfig \stoptext Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraphs indented from line 2 on
Hans Hagen wrote: > \definestartstop > [exdent] > [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, >after=\stopnarrower] Can you make the following work too? Adding \indenting[yes] to before= doesn't help. \startexdent \section{Test} \input tufte \endgraf \input tufte \endgraf \stopexdent \stoptext 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] paragraphs indented from line 2 on
Hans Hagen wrote: > Karsten Heymann wrote: >> what's the context'ish way of creating a start-stop environment in >> which each paragraph is indented from the 2nd line on? > \definestartstop > [exdent] > [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, >after=\stopnarrower] Great, works like a charm! By the way: What's the benefit of \definestartstop over \def\start..., \def\stop...? > wikifyable instantly. 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] 2c considerations about win installer
(Hans, I wasn't saying you *have* to do it : I'm already impressed by your actual amount of work, it's enough for me :-) ) Best -a- On 23 Apr 2006, at 18:12, Hans Hagen wrote: > andrea valle wrote: >>> It's staightforward to install standolne-ConTeXt, but not for >>> beginners and those having almost no knowledge about computers. An >>> installation .exe would be warmly welcome. >>> >>> >> >> Thanks Mojca, that's exactly what I was thinking. >> >> > i can make an ino base installer once i have > > - a faster machine with also more disk space > - a faster outgoing line (currently 8000/1000) > > 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 > > Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] linenotes/footnotes
Thomas A. Schmitz wrote: > On Apr 22, 2006, at 12:17 PM, Hans Hagen wrote: > > >> hm, can you send me your (small) test file? >> >> (make sure that at place time the same settings apply ! so either >> use \setupnote or also provide the setting sto \place... >> >> Hans >> > Actually, I'm reusing an old testfile you sent some time ago: > i'll post an update with support for notedefinitions in such text notes 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] Feature request: Creating tables from (tab-separated) values
Hi, Here is a quick hack that converts csv to commalist values. Perhaps it helpful for someone. Documentation blurb: This module parses CSV data (somewhat) safely. After \def\dataline{a,,\j,a",a\j a",t{f},",",,"a""b"} \convertcsvdata\dataline\to \myascii \message{\meaning\myascii} output is: macro:->{a},{},{\j },{a"},{a\j a"},{t{f}},{,},{"},{a"b} The result is detokenized, like would be with \type{\convertargument}. Therefore, you will need to run \type{\scantokens} over the list items if the CVS data was actually \TeX{} code. Cheers, Taco t-asciidata.tex Description: TeX document ___ 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] Feature request: Creating tables from (tab-separated) values
On Sun, 23 Apr 2006, Mojca Miklavec wrote: > Stupid me! I forgot about the following trick > \uccode`.=`, > \WORD{3.14} Great! Could you also get aligncharacter=yes working, that would be nice! 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] 2c considerations about win installer
Mojca Miklavec wrote: > > MikTeX developer doesn't listen too much to requests from ConTeXt > users (although he does a marvellous job with MikTeX otherwise and has > enough of other things to do). But if I don't count the troubles > connected with not-so-good-support for ConTeXt in MikTeX, it stil > remains one of the easiest ways to install and update it. > supporting miktex is not so much a problem but i cannot get multiple trees working (config is not flexible enough, more or less hard coded paths and so) if i drown in free time i'll have a further look (newtexexec already should be better) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Table width trouble
nico wrote: > Hello, > > I come back with that damn table test case. With release 2006.04.22: > > - it works fine when the column width is passed as table option, > - it's wrong when the width is passed via a column setup only, > - it works ok when both table and column option are passed, and it's the > column option that is used (which is the expected behaviour). > - it's ok when no width specified at all. > > \starttext > > \startbuffer > \bTR \bTD[nc=2] A \eTD\bTD x \eTD \bTD[nc=2] B \eTD \eTR > \bTR \bTD X \eTD \bTD[nc=3] C \eTD \bTD x \eTD \eTR > \bTR \bTD[nc=2] D \eTD \bTD x \eTD \bTD[nc=2] E \eTD \eTR > \stopbuffer > > % ok > \bTABLE[frame=on,width=3em] > \getbuffer > \eTABLE > > % nok, messy table > \bTABLE[frame=on] > \setupTABLE[c][each][width=3em] > \getbuffer > \eTABLE > > % ok, width=3em for each column > \bTABLE[frame=on,width=0.1pt] > \setupTABLE[c][each][width=3em] > \getbuffer > \eTABLE > > % ok > \bTABLE[frame=on] > \getbuffer > \eTABLE > > \stoptext > > \long\def\dohandleTBLcellA#1#2[#3]#4% {\bgroup \setupTBLcell{#1}{#2}% \setbox\scratchbox\hbox {\scratchdimen\tbltbldistance\relax \ifdim\scratchdimen>\gettbldis{#2}\relax \settbldis{#2}{\the\scratchdimen}% \fi \localframed [\@@tbl\@@tbl] [#3,\c!background=,\c!frame=\v!off]% 25% faster {\bTBLCELL\TBLcharalign{#2}{#4}\eTBLCELL\inTBLcell{#1}{#2}}}% \scratchdimen\gettblwid\colTBL\relax \ifdim\wd\scratchbox>\scratchdimen \ifsqueezeTBLspan \ifautosqueezeTBLspan \doifinsetelse\tbltblwidth{\v!fit,\v!fixed,\v!broad,\v!local} \donetrue \donefalse \else \donetrue \fi \ifdone \ifnum0\number\gettblcol{#1}{#2}>1\relax \settblspn\colTBL \fi \fi \fi \doifelsetblspn\colTBL \donothing {\ifdim\gettblwid\colTBL<\wd\scratchbox \settblwid\colTBL{\the\wd\scratchbox}% \fi}% auto set \fi \let\rowTBLx\rowTBL\increment\rowTBLx \scratchdimen\gettblhei\rowTBLx\relax \ifdim\ht\scratchbox<\scratchdimen \settblhei\rowTBLx{\the\ht\scratchbox}% auto set \fi \settblht{#1}{#2}{\the\ht\scratchbox}% \settblwd{#1}{#2}{\the\wd\scratchbox}% \ifautoTBLcheckwidth \ifdim\wd\scratchbox<.75\hsize \ifdim\ht\scratchbox>2\openlineheight % honor width since this \scratchdimen\gettblaut\colTBL\relax % can be a figure or so \ifdim\scratchdimen=\zeropoint % side effect: when width is set to 0pt, % we can force a span that fits the sum of spans widths \settblaut\colTBL{\the\scratchdimen}% \else\ifdim\wd\scratchbox>\scratchdimen % unless span \settblaut\colTBL{\the\wd\scratchbox}% % to be translated \writestatus\m!TABLE {no auto width in (\number#1,\number#2)\space\the\wd\scratchbox/\the\hsize}% \fi\fi \fi \fi \fi \setbox2\null \wd2\wd\scratchbox \ht2\ht\scratchbox \dp2\dp\scratchbox \box2 \egroup} - 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] paragraphs indented from line 2 on
Karsten Heymann wrote: > Hello, > > what's the context'ish way of creating a start-stop environment in which > each paragraph is indented from the 2nd line on? As in > > % > \startIndented > As with all computer languages, ConTeXt is much easier to use when one > has good documentation. > > The official ConTeXt manual is a good place to start; this section > provides a complement to it, with alternate explanations and examples > for a number of key subjects, updates describing more recent additions > to ConTeXt, and detailed solutions to some tricky problems. > \stopIndented > % > > becomes > > % > As with all computer languages, ConTeXt is much easier to use when one >has good documentation. > The official ConTeXt manual is a good place to start; this section >provides a complement to it, with alternate explanations and examples >for a number of key subjects, updates describing more recent >additions to ConTeXt, and detailed solutions to some tricky problems. > % > > Yours, > Karsten > \starttext \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after=\stopnarrower] \startexdent \input tufte \endgraf \input tufte \endgraf \stopexdent \stoptext wikifyable 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] 2c considerations about win installer
andrea valle wrote: >> It's staightforward to install standolne-ConTeXt, but not for >> beginners and those having almost no knowledge about computers. An >> installation .exe would be warmly welcome. >> >> > > Thanks Mojca, that's exactly what I was thinking. > > i can make an ino base installer once i have - a faster machine with also more disk space - a faster outgoing line (currently 8000/1000) 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] paragraphs indented from line 2 on
Hello, what's the context'ish way of creating a start-stop environment in which each paragraph is indented from the 2nd line on? As in % \startIndented As with all computer languages, ConTeXt is much easier to use when one has good documentation. The official ConTeXt manual is a good place to start; this section provides a complement to it, with alternate explanations and examples for a number of key subjects, updates describing more recent additions to ConTeXt, and detailed solutions to some tricky problems. \stopIndented % becomes % As with all computer languages, ConTeXt is much easier to use when one has good documentation. The official ConTeXt manual is a good place to start; this section provides a complement to it, with alternate explanations and examples for a number of key subjects, updates describing more recent additions to ConTeXt, and detailed solutions to some tricky problems. % 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] mode=*dvi does not work
� wrote: > Hello, > it seems that the *dvi-mode is never set: > > \starttext > Test: > \doifmode{*dvi}{Output is DVI.} > \doifmode{*pdf}{Output is PDF.} > \stoptext > you can add: \setjobsuffix{dvi} to spec-dvi.tex - 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] 2c considerations about win installer
> > It's staightforward to install standolne-ConTeXt, but not for > beginners and those having almost no knowledge about computers. An > installation .exe would be warmly welcome. > Thanks Mojca, that's exactly what I was thinking. Best -a- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more manuals
Nikolai Weibull wrote: > On 4/11/06, Hans Hagen <[EMAIL PROTECTED]> wrote: > > >> enattab >> > > I must say that natural tables have come a long way and seem more > capable than our other table-implementations now, even without the new > features you hint at. > but for 'just text' tabulate produces better results (spacing and so) and they also break nicer over pages 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 manuals
Geert Stappers wrote: > Add a URL to a "I uploaded" > >> enattab >> eppchtex >> this concerned manuals in the cvs repository, not to the pragma site (and was mainly meant for those currently playing with new TABLE features); sorry for the noise > What do the documents document? > Please provide a (short) description of the manuals. > there are descriptions on the web site and in the show-* files (i could add the xml files that hold the descriptions to the distribution so that whoever wants to can generate whatever needed from them e.g. on the wiki) 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] Feature request: Creating tables from (tab-separated) values
On 4/22/06, Peter Münster wrote: > On Sat, 22 Apr 2006, Mojca Miklavec wrote: > > > - [with luaTeX in mind] calculating sums of rows & columns & other > > Excel-like calculations & references accross tables ;) - well, that > > one wasn't meant seriously. > > Hello Mojca, > should be possible even without luaTeX: > > \input realcalc % can be found on CTAN Thanks for the pointer! I've never used this one so far. > \def\SumFF{0} > \def\SumEUR{0} > > \def\AddEUR#1{\Radd\SumEUR\SumEUR{#1}% > \Rmul\R{#1}{6.55957}\Radd\R\R{0.005}\Rtrunc\R2\R > \Radd\SumFF\SumFF\R \bTR \bTD\eTD \bTD#1\eTD \expanded{\bTD\R\eTD} \eTR} > > \def\PrintSums{\bTR \bTD Sums: \eTD > \bTD\Rtrunc\SumEUR2\SumEUR \SumEUR\eTD > \bTD\Rtrunc\SumFF2\SumFF \SumFF \eTD \eTR} > > \starttext > \setupTABLE[r][each][align=flushright] > \setupTABLE[r][1][align=middle] > \bTABLE > \bTR \bTH\eTH \bTH Euro \eTH \bTH FF \eTH \eTR > \AddEUR{1.23} > \AddEUR{2.34} > \AddEUR{45.67} > \PrintSums > \eTABLE > \stoptext > > With LaTeX, you can even replace the . by a , : Stupid me! I forgot about the following trick \uccode`.=`, \WORD{3.14} (It can be surely done without using \WORD, but that was the easiest way to recall it from another evil example that Hans sent me some time ago.) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mode=*dvi does not work
Hello, it seems that the *dvi-mode is never set: \starttext Test: \doifmode{*dvi}{Output is DVI.} \doifmode{*pdf}{Output is PDF.} \stoptext 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] more manuals
On 4/23/06, Geert Stappers wrote: > On Tue, Apr 11, 2006 at 11:08:33PM +0200, Hans Hagen wrote: > > Hi, > > Hello, > > > > > I uploaded > > Mmm, uploaded to where ? The sources are here: svn://ctx.pragma-ade.nl/manuals http://context.aanhet.net/svn/manuals/examples/ The PDF versions of manuals are accesible from http://www.pragma-ade.com/overview.htm, not from download. http://www.pragma-ade.com/general/manuals/eppchtex.pdf http://www.pragma-ade.com/general/manuals/enattab.pdf (although I don't find the link to it) > I did visit http://www.pragma-ade.com/download-1.htm > and clicked 6 (six) times on 'next' > > I also did visit http://www.pragma-ade.com/document-1.htm > where I clicked on 'all manuals' which did bring me > to http://www.pragma-ade.com/show-man-1.htm. > Seeing the "page 1 of 42" made me loose my appetite. > > Writing this E-mail inspired me to manaully change the URL > to http://www.pragma-ade.com/show-man-42.htm > but still not the fresh uploaded manuals. > > In other words: > > Add a URL to a "I uploaded" > > > > enattab > > eppchtex > > What do the documents document? They're both old manuals, I think that Hans only uploaded the sources. enattab is about natural tables (http://wiki.contextgarden.net/Tables_Overview) and eppchtex about PPCHTeX, chemistry module for drawing formulas. > Please provide a (short) description of the manuals. Now that you've found the manuals, please contribute to http://wiki.contextgarden.net/Official_ConTeXt_Documentation ;) > > esp the nattab manual needs some updating (new features) so if you run > > into a missing aspect ... > > ... > > I think that is another example of > > * you mean what I mean > * smart people will find their way, normal people can follow them > * I have no time to communicate, your help is welcome > * Well, I would say vice versa: Hans invests enormous amount of time into implementing most evil user requests. If he "forgot" to mention the URL, that was surely not intentional. People following the mailing list did already heard about the svn repository with the sources of the manual, but I agree that it's impossible to follow the mailing list unless ConTeXt is your hobby. Mojca > > Hans > > This E-mail is written with the best intensions, > but it can be read as offencesive. > In that case: Shoot the messenger and return to bisness as usual > > > Cheers > Geert Stappers ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more manuals
On 4/11/06, Hans Hagen <[EMAIL PROTECTED]> wrote: > enattab I must say that natural tables have come a long way and seem more capable than our other table-implementations now, even without the new features you hint at. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more manuals
On Tue, Apr 11, 2006 at 11:08:33PM +0200, Hans Hagen wrote: > Hi, Hello, > > I uploaded Mmm, uploaded to where ? I did visit http://www.pragma-ade.com/download-1.htm and clicked 6 (six) times on 'next' I also did visit http://www.pragma-ade.com/document-1.htm where I clicked on 'all manuals' which did bring me to http://www.pragma-ade.com/show-man-1.htm. Seeing the "page 1 of 42" made me loose my appetite. Writing this E-mail inspired me to manaully change the URL to http://www.pragma-ade.com/show-man-42.htm but still not the fresh uploaded manuals. In other words: Add a URL to a "I uploaded" > enattab > eppchtex What do the documents document? Please provide a (short) description of the manuals. > esp the nattab manual needs some updating (new features) so if you run > into a missing aspect ... ... I think that is another example of * you mean what I mean * smart people will find their way, normal people can follow them * I have no time to communicate, your help is welcome * > Hans This E-mail is written with the best intensions, but it can be read as offencesive. In that case: Shoot the messenger and return to bisness as usual Cheers Geert Stappers signature.asc Description: Digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context