[NTG-context] TABLE 'last line' tag?

2006-04-20 Thread Johannes Graumann
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

[NTG-context] TABLE: 'distance' override?

2006-04-20 Thread Johannes Graumann
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

Re: [NTG-context] TABLE 'last line' tag?

2006-04-20 Thread nico
On Wed, 19 Apr 2006 22:55:23 -0700, Johannes Graumann [EMAIL PROTECTED] wrote: 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

[NTG-context] Document Structuring

2006-04-20 Thread Renaud AUBIN
Hi all, I have a document with the following structure: \starttext \startstandardmakeup \maketitle \stopstandardmakeup \setupheadertexts[][{\sl \getmarking[chapter]}] \startfrontmatter \setuppagenumbering[conversion=romannumerals] \setuppagenumber[number=1] \chapter{Table des

Re: [NTG-context] Document Structuring

2006-04-20 Thread nico
On Thu, 20 Apr 2006 08:34:44 +0200, Renaud AUBIN [EMAIL PROTECTED] wrote: Hi all, I have a document with the following structure: [...] The normal behavior of this structure is for each part to reinit pages, chapters and figures numbering. My questions are: 1. How to change this behavior

Re: [NTG-context] help needed with difficult document structure

2006-04-20 Thread Taco Hoekwater
Karsten Heymann wrote: I cannot expect a ready-to-run solution, but any hints or best context practices would be highly appreciated! In ConTeXt you can define alternative heads and tocs quite easily, but the actual setup depends (of course) on the structure of your input files. Here are

Re: [NTG-context] generating formats with newtexexec

2006-04-20 Thread Taco Hoekwater
Thomas A. Schmitz wrote: I'm having a slight problem with generating the formats when I use newtexexec. texmfstart newtexexec --make --all Try texmfstart newtexexec --verbose --make --all It should report something like at the end TeXExec | texformat: 20/04/2006 09:23:30

Re: [NTG-context] generating formats with newtexexec

2006-04-20 Thread Hans Hagen
Thomas A. Schmitz wrote: I'm having a slight problem with generating the formats when I use newtexexec. texmfstart newtexexec --make --all I get the expected output without any errors, e.g.: ConTeXt ver: 2006.04.18 22:36 fmt: 2006.4.19 int: english mes: english Beginning to dump

Re: [NTG-context] No metapost compilation on files named file.001.tex

2006-04-20 Thread Hans Hagen
nico wrote: Hello, There's something wrong in using (old)texexec/metapost on an input file named file.001.tex (I guess that 001 could be any number): the mp graphic is not generated. If I change file.001.tex to file.tex, it works ok. I attach the test file used if it can be useful.

Re: [NTG-context] generating formats with newtexexec

2006-04-20 Thread Thomas A. Schmitz
Taco, Hans, ran it again with --verbose. What I get in the end is: TeXExec | tex engine path: .:/Users/tas/texmf/web2c//:!!/usr/local/ teTeX/share//share/texmf-local/web2c//:!!/usr/local/teTeX/share// share/texmf/web2c//:!!/usr/local/teTeX/share//share/texmf-dist/web2c// pdfetex TeXExec | mps

Re: [NTG-context] help needed with difficult document structure

2006-04-20 Thread Karsten Heymann
Hi Taco Taco Hoekwater wrote: In ConTeXt you can define alternative heads and tocs quite easily, but the actual setup depends (of course) on the structure of your input files. \setuplist [shortpart,shortchapter] [numbercommand=\gobbleoneargument,pagenumber=no] Thanks, that already

Re: [NTG-context] generating formats with newtexexec

2006-04-20 Thread Hans Hagen
Thomas A. Schmitz wrote: Taco, Hans, ran it again with --verbose. What I get in the end is: TeXExec | tex engine path: .:/Users/tas/texmf/web2c//:!!/usr/local/ teTeX/share//share/texmf-local/web2c//:!!/usr/local/teTeX/share//

[NTG-context] feature request: \everytrypass

2006-04-20 Thread Vit Zyka
Dear ConTeXters, I am counting occurence of some macro in the text. Problem is when this macro is inside \bTABLE (and may be somewhere else). Due to try passes the increment is counter is incremented more then once and the result is multiplied. It is possible to implement some \everytrypass

Re: [NTG-context] feature request: \everytrypass

2006-04-20 Thread Peter Rolf
Vit Zyka wrote: Dear ConTeXters, I am counting occurence of some macro in the text. Problem is when this macro is inside \bTABLE (and may be somewhere else). Due to try passes the increment is counter is incremented more then once and the result is multiplied. It is possible to

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Johan Sandblom
Thank you for this. I have written the following much more amateurish emacs lisp code in order to make it easier to enter natural tables and flowcharts. Perhaps someone may find it useful or can suggest improvements. I also added some keybindings for them. Johan (defun context-insert-nattab

[NTG-context] using headnumber

2006-04-20 Thread Thomas A. Schmitz
Hi, I have a counter which I want to be incremented after every \section command and reset after every odd \section (don't ask why...). So I tried this approach: \setuphead[section] [command={{{\determineheadnumber[section]} \ifodd{\currentheadnumber[section]}\resetSlideNumber

Re: [NTG-context] \=d in a table: weird behaviour

2006-04-20 Thread Mojca Miklavec
On 4/18/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, It seems that \= and table interact in a strange way in the following example: \starttable[|c|] \NC \=d \NC\NR \stoptable \=d alone works OK. I suggested to use $\rm\overline{d}$ to the one who asked me about it, so

Re: [NTG-context] TABLE 'last line' tag?

2006-04-20 Thread Johannes Graumann
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] General Float Placement Question

2006-04-20 Thread Randall Skelton
Hi all,Is it possible to combine placement attributes when specifying a floating figure or table?\placefloat[.1.][ref,..]{.2.}{.3.} .1. left right here top bottom inleft inright inmargin margin page opposite always force tall .2. text .3. text In my case, I'd like to ensure that figures in a

Re: [NTG-context] using headnumber

2006-04-20 Thread Peter Rolf
Hi Thomas, Thomas A. Schmitz wrote: Hi, I have a counter which I want to be incremented after every \section command and reset after every odd \section (don't ask why...). So I tried this approach: \setuphead[section] [command={{{\determineheadnumber[section]}

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Johan Sandblom
Strange that I did not run into these issues, I use GNU emacs as well, version 22.0.50.1, so presumably a difference in the versions. C-c C-f is not bound to TeX-font for me, which is odd. Sorry about the cell/cells issue, I renamed the function just before sending it. Of course it is ok to put it

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Sanjoy Mahajan
C-c C-f is not bound to TeX-font for me, which is odd. Maybe an earlier AUCTeX? I have 11.82 (from Debian testing/unstable). -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Sanjoy Mahajan
Great. Mojca suggested that I wikify my Emacs lisp. It's now at http://wiki.contextgarden.net/Text_editor. Following that method ('a method is a trick I use twice.' --Polya), I've put your elisp there too -- hope that's okay. I removed the (local-set-key $ 'start-context-math) so

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Johan Sandblom
Yes, I have 11.55. I will adopt your suggestion to avoid updating problems. Still, strange though, seems to be an old feature. Do you know a convenient way of finding where these bindings are defined? Perhaps it is a matter of order of precedence differing between the emacs versions. Johan

[NTG-context] itemize question

2006-04-20 Thread Peter Münster
Hello, is it normal, that the first margin=5em is not taken into account, but the with \setupitemize it works? Perhaps I misunderstand the second argument of \startitemize. \starttext \startitemize[packed][margin=5em] \item bla \item bla \stopitemize \setupitemize[margin=5em]

Re: [NTG-context] \synchronizeoutput does not help here...

2006-04-20 Thread Peter Münster
On Wed, 19 Apr 2006, Hans Hagen wrote: \starttext \section{bla} \subsection{bla} \startitemize \dorecurse{21}{\item bla} \stopitemize \placetable{a table}{\vbox to 8cm{bla}} \section{bla} \subsection{bla} \synchronizeoutput % this does not help here...

Re: [NTG-context] TABLE 'last line' tag?

2006-04-20 Thread Peter Rolf
Johannes Graumann wrote: nico wrote: Do you want to do this? \setupTABLE[row][last][rulethickness=0.90pt,bottomframe=on] \setupTABLE[r][last][] Use only the short forms (r=row and c=column) and it should work. I had to look in an old table, where I had the same problems (I guess).

Re: [NTG-context] using headnumber

2006-04-20 Thread Thomas A. Schmitz
Hi Peter, thanks for the help! The additional { must have been a fluke with copy/paste; wasn't in my file. By sheer stubbornness, I tried until I found something that works: command={{\determineheadnumber[section]}\ifodd\currentheadnumber \resetSlideNumber\incrementSlideNumber

[NTG-context] splitting table into columns

2006-04-20 Thread Peter Münster
Hello, how could I split a table into columns in a clean manner? To show, what I want, I prepared the following example file: - the first page is ok for me, you see just the issue mentioned in http://context.literatesolutions.com/collector/15 - the 5th page looks clean - the 6th page looks

[NTG-context] problem with \setupTABLE[c][odd][bottom=XX]

2006-04-20 Thread Peter Münster
Hello, as you already know, I use \setupTABLE[bottom=] to attach some tokens to a table-cell: \starttext \setupTABLE[c][odd][bottom=XX] \setupTABLE[c][even][bottom=YY] \bTABLE \bTR\bTD bla \eTD\bTD bla \eTD\bTR \eTABLE \stoptext But here, I get a second line with XX. How could I avoid this? TIA

[NTG-context] Convert Shell files to Batch files?

2006-04-20 Thread David Arnold
All, Anyone know how to convert these shell files to batch files for a PC? #! /bin/sh for fig in section*figs.tex; do echo Processing file $fig (first run); texexec $fig nul; echo Processing file $fig (second run); texexec $fig nul; done #! /bin/sh for figlib in figlibSection*.xml; do echo

Re: [NTG-context] TABLE 'last line' tag?

2006-04-20 Thread Peter Münster
On Thu, 20 Apr 2006, Johannes Graumann wrote: 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. Could you send a minimal example? This works here: \starttext \setupTABLE[frame=off]

Re: [NTG-context] TABLE 'last line' tag?

2006-04-20 Thread Taco Hoekwater
Peter Münster wrote: On Thu, 20 Apr 2006, Johannes Graumann wrote: 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. Could you send a minimal example? This works here: Same for me.

Re: [NTG-context] using headnumber

2006-04-20 Thread Sanjoy Mahajan
\determineheadnumber[section] Thanks for mentioning that command, which I'd been looking for. I couldn't quite get it to work, but reading the code near its definition helped me solve another problem. Each chapter has a section for exercises, and each exercise is a subsection with a short

Re: [NTG-context] using headnumber

2006-04-20 Thread Sanjoy Mahajan
So after \determineheadnumber[something], \currentheadnumber appears to have that value and doesn't take an argument. Thanks, that information answers the question I just sent to the list. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell,

Re: [NTG-context] problem with \setupTABLE[c][odd][bottom=XX]

2006-04-20 Thread Peter Münster
On Thu, 20 Apr 2006, Peter Münster wrote: as you already know, I use \setupTABLE[bottom=] to attach some tokens to a table-cell: \starttext \setupTABLE[c][odd][bottom=XX] \setupTABLE[c][even][bottom=YY] \bTABLE \bTR\bTD bla \eTD\bTD bla \eTD\bTR \eTABLE \stoptext But here, I get a

[NTG-context] Sudden compilation-preventing font issue

2006-04-20 Thread Johannes Graumann
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,

Re: [NTG-context] Sudden compilation-preventing font issue

2006-04-20 Thread Johannes Graumann
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

Re: [NTG-context] TABLE 'last line' tag?

2006-04-20 Thread Johannes Graumann
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

[NTG-context] syntax for numbercommand and \gobbleoneargument

2006-04-20 Thread Sanjoy Mahajan
This minimal file [case 1]: \setuphead[chapter][numbercommand={\gobbleoneargument} ] \starttext \chapter{One} \stoptext fails. Whereas if the first two lines are replaced by [case 2]: \setuphead[chapter][numbercommand={\gobbleoneargument}, ] or [case 3]:

Re: [NTG-context] No metapost compilation on files named file.001.tex

2006-04-20 Thread nico
nico wrote: Hello, There's something wrong in using (old)texexec/metapost on an input file named file.001.tex (I guess that 001 could be any number): the mp graphic is not generated. If I change file.001.tex to file.tex, it works ok. I attach the test file used if it can be useful. On

[NTG-context] colored, marginal chapter numbers

2006-04-20 Thread Sanjoy Mahajan
I get colored chapter text and numbers with: \setupcolors[state=start] \setuphead[chapter][color=blue] \starttext \chapter{One} \stoptext But if I drive the numbers into the left margin, they escape the blue paintbrush (but the text is still blue): \def\sectionnumber#1{\inleft{#1}}

Re: [NTG-context] colored, marginal chapter numbers

2006-04-20 Thread Miguel Queiros
[...] Is there a recommended way of doing this? I could put blue into the \sectionnumber command, but I'd prefer to specify the color only once (the numbercolor and color specifications were an attempt at overkill). Plus I'd like to understand what's going on. I can't test it right now,

Re: [NTG-context] colored, marginal chapter numbers

2006-04-20 Thread nico
On Thu, 20 Apr 2006 15:26:12 -0400, Sanjoy Mahajan [EMAIL PROTECTED] wrote: I get colored chapter text and numbers with: \setupcolors[state=start] \setuphead[chapter][color=blue] \starttext \chapter{One} \stoptext But if I drive the numbers into the left margin, they escape the blue

Re: [NTG-context] syntax for numbercommand and \gobbleoneargument

2006-04-20 Thread Peter Münster
On Thu, 20 Apr 2006, Sanjoy Mahajan wrote: This minimal file [case 1]: \setuphead[chapter][numbercommand={\gobbleoneargument} ] \starttext \chapter{One} \stoptext fails. Whereas if the first two lines are replaced by [case 2]: \setuphead[chapter][numbercommand={\gobbleoneargument},

Re: [NTG-context] \=d in a table: weird behaviour

2006-04-20 Thread Hans Hagen
Mojca Miklavec wrote: On 4/18/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, It seems that \= and table interact in a strange way in the following example: \starttable[|c|] \NC \=d \NC\NR \stoptable \=d alone works OK. I suggested to use $\rm\overline{d}$ to the one who

Re: [NTG-context] No metapost compilation on files named file.001.tex

2006-04-20 Thread Hans Hagen
nico wrote: nico wrote: Hello, There's something wrong in using (old)texexec/metapost on an input file named file.001.tex (I guess that 001 could be any number): the mp graphic is not generated. If I change file.001.tex to file.tex, it works ok. I attach the test file used if it can

Re: [NTG-context] colored, marginal chapter numbers

2006-04-20 Thread Sanjoy Mahajan
From:Miguel Queiros [EMAIL PROTECTED] \setupcolors[state=start] \setupheads[alternative=inmargin] \setuphead[chapter][color=blue] \starttext \chapter{One} \stoptext Thanks, that works great. Is there a recommended way of doing this? In ConTeXt the answer, I've found, is

Re: [NTG-context] colored, marginal chapter numbers

2006-04-20 Thread Sanjoy Mahajan
From:nico [EMAIL PROTECTED] What about this? \setuphead[chapter][numbercolor=blue,color=blue,alternative=inmargin] Thanks, that also works great. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

Re: [NTG-context] syntax for numbercommand and \gobbleoneargument

2006-04-20 Thread Sanjoy Mahajan
Thanks for the useful explanations. A newline is treated in general as a space, so you have unwanted space in case 1. Right, but what confused me was that I expected the closing brace in numbercommand={\gobbleoneargument} to bound what numbercommand was set to. If you really want a newline

Re: [NTG-context] using headnumber

2006-04-20 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi Peter, thanks for the help! The additional { must have been a fluke with copy/paste; wasn't in my file. By sheer stubbornness, I tried until I found something that works: command={{\determineheadnumber[section]}\ifodd\currentheadnumber

Re: [NTG-context] Convert Shell files to Batch files?

2006-04-20 Thread Hans Hagen
David Arnold wrote: All, Anyone know how to convert these shell files to batch files for a PC? #! /bin/sh for fig in section*figs.tex; do echo Processing file $fig (first run); texexec $fig nul; echo Processing file $fig (second run); texexec $fig nul; done why two runs? texexec

[NTG-context] Forbidden things in bookmarks

2006-04-20 Thread nico
Hello, The heading bookmarks don't accept some macros, like \copyright. In latex there's a handy feature that allows to define the text to put in the TOC and the text in the heading itself, like \chapter[Title in the TOC]{Actual Title in the doc}. Is it possible to do it in context? If not,

Re: [NTG-context] syntax for numbercommand and \gobbleoneargument

2006-04-20 Thread Hans Hagen
Sanjoy Mahajan wrote: This minimal file [case 1]: \setuphead[chapter][numbercommand={\gobbleoneargument} ] \starttext \chapter{One} \stoptext fails. Whereas if the first two lines are replaced by [case 2]: in this case the command is {\gobbleoneargument} and {\gobbleoneargument}

[NTG-context] [Fwd: problems with right bracket in Antykwa Torunska -- fixed]

2006-04-20 Thread Hans Hagen
updates of antikwa are available, see forwarded mail -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74

Re: [NTG-context] using headnumber

2006-04-20 Thread Thomas A. Schmitz
Fascinating, but... The slidenumber needs to be reset according to the criterion whether we're starting an odd or an even section. If anybody's wondering why I want such a bizarre setup: this is the manuscript of my course for the entire term. Every class consists of two lectures = two

Re: [NTG-context] feature request: \everytrypass

2006-04-20 Thread Hans Hagen
Vit Zyka wrote: Dear ConTeXters, I am counting occurence of some macro in the text. Problem is when this macro is inside \bTABLE (and may be somewhere else). Due to try passes the increment is counter is incremented more then once and the result is multiplied. \iftrialtypesetting ...

[NTG-context] footnotes in natural tables

2006-04-20 Thread Johan Sandblom
With the following file the footnotes are typeset on top of each other. What am I doing wrong? Johan \starttext \startlocalfootnotes[n=0, location={text, none}] \bTABLE \bTR \bTD Sinuit \eTD \bTD penicillin V \eTD \bTD amoxicillin, pivampicillin, cefalosporin\footnote[cef]{Ej

Re: [NTG-context] MathML to PDF conversion

2006-04-20 Thread Hans Hagen
Eugene A. Herman wrote: Pragma: I downloaded your free software that is supposed to enable me to convert my XML files (which include some MathML) to PDF. I cannot find any documentation on how to use these files to do the conversion. (I'm on a Debian Linux network.) Please just give me an

Re: [NTG-context] General Float Placement Question

2006-04-20 Thread Hans Hagen
Randall Skelton wrote: Hi all, Is it possible to combine placement attributes when specifying a floating figure or table? \placefloat[.1.][ref,..]{.2.}{.3.} .1. left right here top bottom inleft inright inmargin margin page opposite always force tall .2. text .3. text In my case, I'd

[NTG-context] 2c considerations about win installer

2006-04-20 Thread andrea valle
Dear all, I'm using conTeXt to create automatic documentation about sound classification. The idea is that starting from an html file collecting infos about sounds my program can generate some schematic images using R and POV-Ray and to create a conTeXt file including both images and textual

Re: [NTG-context] TABLE 'last line' tag?

2006-04-20 Thread Johannes Graumann
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