Re: [NTG-context] Chapter-wise bibliographies and multi-chapter citations

2006-04-17 Thread Hans Hagen
Taco Hoekwater wrote:
 Johannes Graumann wrote:
   
 First of May. This is a real problem then ... Taco, I can't expect you to
 fix this ... but the info I need is: do you want to do this and if yes:
 what's a reasonable time frame. 
 

 Friday.
   
what exactly is needed ... repeated toc entries or so? 

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] What would you call the core TeX-commands

2006-04-17 Thread Hans Hagen
Nikolai Weibull wrote:
 If you had to name the core TeX-commands something, what would it be?

 Suggestions so far:

 initex:
   As initex is the command used to create TeX formats and only
 contains the core TeX-commands

 coretex:
   As they are the core TeX-commands

 The reason I ask is because I've written the new
 core-TeX-syntax-definition for Vim and I'd like to get the name right.
   
the commands defined in cont-en.xml are core commands; quite some commands in 
syst-gen, syst-ext, syst-new and supp-box are also 'frozen' 

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] slithering captions

2006-04-17 Thread Hans Hagen
Sanjoy Mahajan wrote:
 So the first step in doing the placement automatically is to get the
 width of the figure.  Assuming that I've done

   \useexternalfigure[fig_a][f-1.pdf]

 is there an easy way to get fig_a's dimensions?  After using the figure,
 e.g. with

   \placefigure[margin][]{some caption}{\externalfigure[fig_a]}
   
\getfiguredimensions[...] % same args as \externalfigure

after that you have

\figureheight
\figurewidth

 And, but this is trying to do too much at once, the next problem is that
 margin caption below the widest figures (case 3 above) shouldn't overlap
 other floats in the margin and also shouldn't count toward the figure's
 height in the text block.  But maybe that's done automatically -- I'll
 make some experiments.
   
limit the caption widths - maxwidth

best use closed floats and set their characteristics (see details.pdf)

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] Defining hyphenation sites that will not produce a dash?

2006-04-17 Thread Hans Hagen
Johannes Graumann wrote:
 Hello

 My ConTeXted XML document contains a number of constructs like this

 pRSthinspace;403endash;mathmn9/mnmotimes;/mo/mathMyc/TEV/iURA3/i/TEV/Hissub8/sub

 (molecular genetical plasmid/genotype deinitions - in case you wonder ;0).

 This predictably produces line break/hyphenation trouble. I'm already using
 a mapping rule like this

 \defineXMLargument  [hyph]{\-}

 but I was wondering whether there's an analogue that won't produce a
 hypneation-dash if the manually defined hyphenation site is used.

 Thanks for any hint,
   
\starttext

\usemodule[newmml]

\defineXMLsingular[bp]{|\empty|}

\hsize5cm

\startXMLdata
pRSthinspace;403endash;mathmn9/mnmotimes;/mo/mathMyc/TEV/iURA3/ibp//TEV/Hissub8/sub
\stopXMLdata

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to restrict completecontent?

2006-04-17 Thread Hans Hagen
Johannes Graumann wrote:
 Hello,

 How can I achieve that only sections and up show up in my table of contents?

   
\placelist[chapter,section][criterium=text]


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chapter-wise bibliographies and multi-chapter citations

2006-04-17 Thread Taco Hoekwater
Hans Hagen wrote:
 Taco Hoekwater wrote:
 
Johannes Graumann wrote:
  

First of May. This is a real problem then ... Taco, I can't expect you to
fix this ... but the info I need is: do you want to do this and if yes:
what's a reasonable time frame. 


Friday.
  
 
 what exactly is needed ... repeated toc entries or so? 

More like surpressed toc entries, but I wil rewrite that part
completely. My solution with \definelist[pubs] was not the
best possible one anyway. I'll switch to writing normal
references to the tui.

Cheers, taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] What would you call the core TeX-commands

2006-04-17 Thread Taco Hoekwater
Hans Hagen wrote:
 Nikolai Weibull wrote:
 
If you had to name the core TeX-commands something, what would it be?

the normal word is primitives. If that can't be done, using initex
make most sense. We often use the word 'core' to refer to ConTeXts
macro commands (as Hans said already).

Cheers, Taoc
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to restrict completecontent?

2006-04-17 Thread Johannes Graumann
Hans Hagen wrote:

 \placelist[chapter,section][criterium=text]
So much cleaner now ;0)! Thanks!

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XML entity definition for '~'?

2006-04-17 Thread Johannes Graumann
Hello,

Is there a predefined XML entity for '~' (unstrechable space) in the latest
ConTeXt? 'ensp;' Doesn't work.

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML entity definition for '~'?

2006-04-17 Thread Johannes Graumann
Johannes Graumann wrote:

 Is there a predefined XML entity for '~' (unstrechable space) in the
 latest ConTeXt? 'ensp;' Doesn't work.

'nbsp;'

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Table column width on spanned cells

2006-04-17 Thread Hans Hagen
nico wrote:
 Hello,

 In the following example using the nc option, the 3 middle columns don't  
 fit the width option. It seems that the table tries to fit to the page  
 width instead.

 \starttext

 \bTABLE[frame=on,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

 \stoptext
   
there is probably a good reason for that (but forgot what), 

\squeezeTBLspanfalse 

will give you a different result; a possible patch is: 

\newif\ifautosqueezeTBLspan \autosqueezeTBLspantrue % NEW 

\long\def\dohandleTBLcellA#1#2[#3]#4%
  {\setbox\scratchbox\hbox
 {\setupTBLcell{#1}{#2}%
  \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
   \doifelsevalue{\@@tbl*sq}\v!no
 \donefalse
 {\ifautosqueezeTBLspan
\doifdimensionelse\tbltblwidth\donefalse\donetrue
  \else
\donetrue
  \fi}%
   \ifdone
 \ifnum0\number\gettblcol{#1}{#2}1\relax \settblspn\colTBL \fi
   \fi
 \fi
 \doifelsetblspn\colTBL
   \donothing{\settblwid\colTBL{\the\wd\scratchbox}}% 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\scratchbox2\openlineheight
  
 \scratchdimen\gettblaut\colTBL\relax 
 \ifdim\scratchdimen=\zeropoint
   \settblaut\colTBL{\the\scratchdimen}%
 \else\ifdim\wd\scratchbox\scratchdimen
   \settblaut\colTBL{\the\wd\scratchbox}%
 \fi\fi
   \fi
 \fi
   \fi
   \setbox2\null
   \wd2\wd\scratchbox \ht2\ht\scratchbox \dp2\dp\scratchbox
   \box2}

but i'm not sure if it will not break other situations, so please do some harsh 
testing 

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] What would you call the core TeX-commands

2006-04-17 Thread Hans Hagen
Nikolai Weibull wrote:
 On 4/17/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
   
 Hans Hagen wrote:
 
 Nikolai Weibull wrote:
   

   
 If you had to name the core TeX-commands something, what would it be?
 

   
 the normal word is primitives. If that can't be done, using initex
 make most sense. We often use the word 'core' to refer to ConTeXts
 macro commands (as Hans said already).
 

 What I meant was, the commands defined in the TeX-executable itself,
 i.e., stuff like \def, \global, 

 I think that initex makes the most sense considering the options.
   
ctxtools can list them (e.g. --sciteinterface gives several classes of 
primitives, macros, etc) 

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] \bigr bracket missing in antykwa

2006-04-17 Thread Hans Hagen
Mojca Miklavec wrote:
 Hans Hagen wrote:
   
 Mojca Miklavec wrote:
 
 On 4/14/06, Hans Hagen wrote:

   
 Aditya Mahajan wrote:

 
 Hi,
   \bigr\} does not give me anything while using  antykwa fonts. \big\}
 also does not work. \right\} works correctly. Is there something
 missing in the typescripts? I have no idea on how fonts work, so can
 not debug the problem.

 \usetypescript
[antykwa-torunska][ec]

 \setupbodyfont[antykwa, 11pt]

 \starttext
 $\bigl\{ a \bigr\}$ \blank
 $\big\{ a \big\}$ \blank
 $\left\{ a \right\}$ \blank
 \stoptext

   
 afaik the antikwa cum suis use the normal tex encoding but i may be
 wrong ...

 is the character in the font?
 

 I don't notice any empty slots (unless the mistake lies in rm-antt: I
 don't know how this one is supposed to look like), but the following
 example fails in LaTeX too, so perhaps the problem really lies in the
 font, but where???

 \documentclass{article}
 \usepackage[math]{anttor}

 \begin{document}
 \def\x#1{\left\{#1\left\}\vbox to #1pt{}\right.\right.}
 $$\x{9.16}\x{9.17}$$
 \end{document}

 Almost equivalent counterpart in ConTeXt:

 \usetypescript[antykwa-torunska][ec]
 \setupbodyfont[antykwa]

 \starttext

 \def\x#1{\left\{#1\left\}\vbox to #1\bodyfontsize{}\right.\right.}
 \startformula
 \x{0.8088}\x{0.8089}\x{0.916}\x{0.917}
 \stopformula

 \loadmapfile[antt.map]
   
not needed -)
 \showfont[ex-anttr]

 \stoptext

   
well, i traced back the way this brace ends up in the pdf file and this 
is what i observe:

- the antt and cm ex tfm files have exactly the same values (although 
antt is 7 bit safe)
- so the problem must be in the map file and/or encoding
- and, surprise,

encantt-ex[
/parenleftbig
/parenrightbig
/bracketleftbig
/bracketrightbig
/floorleftbig
/floorrightbig
/ceilingleftbig
/ceilingrightbig
/braceleftbig
/.notdef
/angbracketleftbig

the bracerightbig is undefined here

i suspect that there is some bug in the scripts that generate these files so 
let's feed this back to jacko/janusz; you need to patch: 

antt-ex.enc
iwona.enc 
kurier.enc 

(maybe an intermediate patch in the tex live repository is ok for the moment) 

/braceleftbig
/bracerightbig 

the fonts themselves are ok 

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] Two Problems: Colored Chapter and Footnote positioning

2006-04-17 Thread Mojca Miklavec
On 4/18/06, Miguel Queiros wrote:

 The second problem has to do with the fact that in the
 attached file footnote-posicao.tex I changed the layout
 of the page, so that I could have a bigger right margin.
 The problem is that I would like to have the page number
 centered on the page and note on the new dimensions
 of the text area (don't know if I' been clear but I think
 you will understand if you look at the attached file).
 In fact I have a third problem that is the fact that the
 page number is repeated. I don't want to remove the
 line \setupfootertexts[][\setups{t_footer}] because I
 want the footer in 10pt.

This doesn't answer your original question, but why not
\setuppagenumbering[location={footer,right},style=\tfx]
instead of lengthy setups?
(Btw: you should better use \switchtobodyfont rather than
\setupbodyfont in case you need to change font size.)


The following solution might not be the most elegant one, but I use
similar approach for exact positioning:

\setuppagenumbering[location=]
\definelayer
[mypagenumber]
[width=\paperwidth,
 height=\paperheight]
\setupbackgrounds
[page]
[background=mypagenumber]
\setlayerframed
[mypagenumber]
[voffset=\dimexpr(\paperheight-\makeupheight-\footerheight),
 preset=leftbottom]
[width=\paperwidth,frame=off]
{\tfx\pagenumber}

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Two Problems: Colored Chapter and Footnote positioning

2006-04-17 Thread Miguel Queiros

 \bgroup
 \setuphead[chapter][color=darkblue]
 \chapter{Capitulo 1}
 \egroup
 
 or
 
 \start
 \setuphead[chapter][color=darkblue]
 \chapter{Capitulo 1}
 \stop

I'v tried both you solutions but I still get
an header on each chapter page. I even tested it
with \setuphead[chapter][header=empty] inside
\bgroup ... \egroup or \start ... \stop with
no luck.

I tested it with the following file...

\setupcolors[state=start]

\setuphead[chapter][header=empty]
\setupheadertexts[][chapter]

\starttext

\completecontent

% \bgroup
%\setuphead[chapter][color=darkblue]
%\setuphead[chapter][header=empty]
%\setuphead[chapter][color=darkblue]
%\chapter{Aumento de produtividade com macros}
%\egroup

\start
\setuphead[chapter][color=darkblue]
%\setuphead[chapter][header=empty]
\setupheadertexts[][chapter]
\chapter{Capitulo 1}
\stop

\page
teste

\chapter{Capitulo 2}

\page
teste

\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Correction to previous thread

2006-04-17 Thread Miguel Queiros
Hello,

On the previous thread I sent to the list
the subject was Two Problems: Colored 
Chapter and Footnote positioning. It should
be: Two Problems: Colored Chapter and FOOTER 
positioning , and not footnote... soory about
that.

Miguel Queirós


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context