Re: [NTG-context] context meeting

2008-08-28 Thread Giuseppe Bilotta
Wednesday, August 27, 2008 Hans Hagen wrote:

 Hi,

 I really enjoyed myself at last weeks's meeting. Mojca and friends have
 done a great job. In addition to a filled up program we had a wonderful
 day going around Slovenia (incredibly silent outside the facilities and
 a sky full of stars, something impossible in nl), terrific bonfires,

This ConTeXt meeting has been for me a really wonderful
chance to get back in the loop of the TeX world in general
and the ConTeXt world in particular. My most grateful thanks
go to the organizers (and the participants!) for the the
wonderful week spent in Slovenia.

 I probably forget a few things

You mean, like, git?

8-D

-- 
Giuseppe Oblomov Bilotta



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] installing MKIV

2007-08-11 Thread Giuseppe Bilotta
Friday, August 10, 2007 Taco Hoekwater wrote:

 Giuseppe Bilotta wrote:

 Actually, /usr/bin/luatex --luaonly could be used as
 shebang. It doesn't work on all systems, but it should work
 on most modern installations.

 Yes, but #!/usr/bin/env luatex --luaonly is much less portable, and
 tex-related binaries are hardly ever in fixed locations.

Oh right, env. Well, it works on my system even with env,
but I know, I'm just lucky :)

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [ot] \relax

2007-08-10 Thread Giuseppe Bilotta
Friday, August 10, 2007 luigi scarso wrote:

 Martina was born on thursday,August 09 2007 (09/08/07).
 Mum and  baby are allright, daddy  a bit blurred, as the photo says .

Congratulazioni! :) Ora comincia il bello ...

Congratulations! :) Now the fun starts ...

-- 
Giuseppe Oblomov Bilotta




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Boxed items don't like sidefloats

2007-08-02 Thread Giuseppe Bilotta
Wednesday, August 1, 2007 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

 This is a very good thing. I have big hopes up for it. Also,
 as part of my ?getting back into the loop?, do you think
 there's some where/some how I can give a hand?

 well, mplib ... apart from going megapost (your speciality) 3d will be
 added and since you're the mathemagician who can think in 6 dimensions ...

Ah, this is something I can more probably involve my
university with. While my advisor doesn't care much about
TeX per se, numerical things are much more of its taste.

-- 
Giuseppe Oblomov Bilotta




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Boxed items don't like sidefloats

2007-08-01 Thread Giuseppe Bilotta
Wednesday, August 1, 2007 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

 You know, seeing how streams work made me think about an
 extension I was considering for Alpeh: \pageboxnumber, being
 255 by default but which could be changed at runtime,
 choosing which box was used to build the MVL. I originally
 thought about it because my mathematically aesthetical sense
 complained that box 255 had to be used in e-TeX and
 Omega/Aleph as well (the last box number in each system made
 more sense), but now that I see your streams idea I think it
 would have been a useful addition.

 this will become configurable in luatex

Ah, good to know.

 (Oh yes, I should really get back to Aleph. I see that
 luatex builds on that too. I must say that I'm glad to see
 that the project has been taken over when I disappeared
 without a trace :P)

 well, luatex renders aleph kind of obsolete -)

Yeah, I got that impression :)

 also, luatex has pdf output (also for aleph stuff)

This is a very good thing. I have big hopes up for it. Also,
as part of my “getting back into the loop”, do you think
there's some where/some how I can give a hand?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Boxed items don't like sidefloats

2007-07-31 Thread Giuseppe Bilotta
Hello all,

here's a test document:


\setuppagenumbering[alternative=doublesided]

\newbox\testbox

\starttext

\setbox\testbox\vbox{%
\placefigure[outer,none,fit]{}{%
  \framed[width=.2\hsize,height=.2\hsize,offset=none]{}%
}%

\startitemize
\item some test
\item \input knuth
\item \input tufte
\stopitemize
}

\box\testbox

\page

\setbox\testbox\vbox{%
\placefigure[outer,none,fit]{}{%
  \framed[width=.2\hsize,height=.2\hsize,offset=none]{}%
}%

\startitemize
\item some test
\item \input knuth
\item \input tufte
\stopitemize
}


\box\testbox
\stoptext


As you may notice, items think the placefigure refers to all
of them, so that if a particular item is bigger than the
figure height, it will wrap correctly around the
(inexistent) box, otherwise it will just side it.

Interesting, the same thing does *not* happen when not going
through a box, but typesetting things directly in the page.
However, for my application I need to typeset the sidefloat
and the itemization in a box, so I hit the bug ...

Suggestions?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Linetable height (actually, depth) bug

2007-07-31 Thread Giuseppe Bilotta
Sunday, July 29, 2007 Hans Hagen wrote:

 Giuseppe Bilotta wrote:
 Hello all,
 
 as I mentioned in the 'framing a linetable' thread, there is
 a bug in the stable (march '07) version of ConTeXt
 concerning the linetable *depth*.
 
 Example file:
 
 \setupcolors[state=start]
 
 \starttext
 \setuplinetable[r][2][height=30pt,background=color,backgroundcolor=blue]
 \startlinetable
 \BR \BC one \EC \BC two \EC \ER
 \BR \BC three \EC \BC four \EC \ER
 \stoplinetable
 more text
 \stoptext
 
 
 more text will appear in the blue area of the second line,
 instead of after the linetable, because the depth of the
 table lines are smashed to be one strutdepth in
 \flushlinetableparts

 can you test with the version from the beta if this problem is still there?

I just tried with

ConTeXt  ver: 2007.07.29 22:06 MKII  fmt: 2007.7.31  int: english/english

and I get the same problem.

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Boxed items don't like sidefloats

2007-07-31 Thread Giuseppe Bilotta
Tuesday, July 31, 2007 Wolfgang Schuster wrote:

 you can use ConTeXt's stream mechanism.

 \setuppagenumbering[alternative=doublesided]

 \usemodule[streams]
 \definestreamlayer[giuseppe][width=\textwidth]

 \newbox\giuseppe

 \starttext

 \startstreamlayer[giuseppe]
 \placefigure
   [outer,none,fit]
   {}
   {\framed[width=.2\hsize,height=.2\hsize,offset=none]{}}

 \startitemize
 \item some test
 \item \input knuth
 \item \input tufte
 \stopitemize
 \stopstreamlayer

 \vbox{\placestreamlayer[giuseppe]}

 \stoptext

Ah, excellent, it works perfectly, thanks a lot! Of course,
I'm still curious about the reason why a standard vbox
wouldn't do it ...

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Boxed items don't like sidefloats

2007-07-31 Thread Giuseppe Bilotta
Tuesday, July 31, 2007 Wolfgang Schuster wrote:

 you can use ConTeXt's stream mechanism.

 \setuppagenumbering[alternative=doublesided]

 \usemodule[streams]
 \definestreamlayer[giuseppe][width=\textwidth]

I've noticed that specifying width= in the streamlayer
definition is not enough to force the stream width. If the
width is different from the textwidth, I have to use
something like

\startsetups streamlayer:giuseppe:settings
  \overloadtextwidth\gbwidth
\stopsetups

I would have expected

\definestreamlayer[giuseppe][width=\gbwidth]

to handle this automatically though.

-- 
Giuseppe Oblomov Bilotta


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Boxed items don't like sidefloats

2007-07-31 Thread Giuseppe Bilotta
Tuesday, July 31, 2007 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

 Ah, excellent, it works perfectly, thanks a lot! Of course,
 I'm still curious about the reason why a standard vbox
 wouldn't do it ...

 sidefloats hook into the output routine and that does ot work in a box;

Makes sense.

 streams intercept the page stream (nasty but neat); expect more of that
 kind of stuff

You know, seeing how streams work made me think about an
extension I was considering for Alpeh: \pageboxnumber, being
255 by default but which could be changed at runtime,
choosing which box was used to build the MVL. I originally
thought about it because my mathematically aesthetical sense
complained that box 255 had to be used in e-TeX and
Omega/Aleph as well (the last box number in each system made
more sense), but now that I see your streams idea I think it
would have been a useful addition.

(Oh yes, I should really get back to Aleph. I see that
luatex builds on that too. I must say that I'm glad to see
that the project has been taken over when I disappeared
without a trace :P)

-- 
Giuseppe Oblomov Bilotta


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Non-printing macro disturbs line justification.

2007-07-29 Thread Giuseppe Bilotta
Saturday, July 28, 2007 John R. Culleton wrote:

 I did a big project in Context and becuse I wanted to use the special
 features of eplain's interface to makeindex I wrote my own indexing
 macro. Every place I inserted a call to this macro extra space
 appeared at that point.  Here is my macro:

 \def\sidx#1{\write\ind{\\indexentry{#1}{\the\pageno}}}

 I had to retreat to the regular Context indexing tag.  Can someone
 spot the flaw in my definition?

Don't know if it's significant, but what if you use \slash
instead of \\ ?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Vertical align inside a frame?

2007-07-28 Thread Giuseppe Bilotta
Saturday, July 28, 2007 Thomas A. Schmitz wrote:

 Are you maybe looking for p. 254 of cont-eni.pdf?

Oh yes! top and bottom. Thanks a lot!

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Vertical align inside a frame?

2007-07-28 Thread Giuseppe Bilotta
Saturday, July 28, 2007 Patrick Gundlach wrote:

 Hi Giuseppe,

 the location= of the inner frame as desired. Am I missing
 something obvious?

 I don't think so, this was an example from Hans:

 \framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging}
 \framed[width=2cm,align=middle,location=depth]  {location\\equals\\depth}
 \framed[width=2cm,align=middle,location=height] {location\\equals\\height}
 B}

[snip]

Yeah, this is what I was thinking too. But as Thomas pointed
out, top and bottom can be used to tune the internal
vertical alignment.

 PS: welcome back!

Thanks :)

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Framing a linetable?

2007-07-28 Thread Giuseppe Bilotta
Tuesday, July 24, 2007 Hans Hagen wrote:

 Giuseppe Bilotta wrote:
 Hello all,
 
 is it possible to put a frame around a linetable?

 you mean the whole table?

 probably a matter of hooks; linetables work page-wise which may
 complicate things a bit so it has to be applied piecewise

I've been experimenting with this a little.

Putting the whole linetable inside a frame doesn't work
because of the \nointerlinelineskip in

\ifdim\topskipgap=\zeropoint\else¶
  \verticalstrut\nobreak\kern-\struttotal\kern-\parskip\nobreak\nointerlineskip 
% fix topskip¶
\fi¶

in \flushlinetableparts -- if I comment out this section of
the code, the table gets placed, but the frame is somewhat
short.

This is in fact a bug in linetables which I noticed before,
even though it didn't affect me until recently: if the last
line in a table is a \vtop (\linetablemode is 0) with more
than one line of text, the flattening of its depth in
\flushlinetableparts

\dp\tablebox\linetablepart\strutdepth

causes the text after the table to appear *in* the table
itself.

So I commented out the depth smashing, and the frame now has
the correct size.

There is one more thing missing, though, and it's the fact
that the table is typeset halfway to the right of the frame,
as if a large indentation was placed before each line. If I
manage to squeeze out this last bug, I can frame the table
automatically which will be a great advantage for me.

-- 
Giuseppe Oblomov Bilotta


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Linetable height (actually, depth) bug

2007-07-28 Thread Giuseppe Bilotta
Hello all,

as I mentioned in the 'framing a linetable' thread, there is
a bug in the stable (march '07) version of ConTeXt
concerning the linetable *depth*.

Example file:

\setupcolors[state=start]

\starttext
\setuplinetable[r][2][height=30pt,background=color,backgroundcolor=blue]
\startlinetable
\BR \BC one \EC \BC two \EC \ER
\BR \BC three \EC \BC four \EC \ER
\stoplinetable
more text
\stoptext


more text will appear in the blue area of the second line,
instead of after the linetable, because the depth of the
table lines are smashed to be one strutdepth in
\flushlinetableparts

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Vertical align inside a frame?

2007-07-27 Thread Giuseppe Bilotta
Hello all,

how do I tell ConTeXt that I want the frame content to be
top, bottom or middle aligned? I found no way to specify
*vertical* alignment except by nesting frames and specifying
the location= of the inner frame as desired. Am I missing
something obvious?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] factor=fit images don't fit

2007-07-24 Thread Giuseppe Bilotta
Monday, July 23, 2007 luigi scarso wrote:

 the fit assumes operating on a page not in a box; an alternative is:

 \framed[width=5cm,height4cm]
   
 {\externalfigure[mill.png][maxwidth=4cm,maxheight=5cm,width=10cm]}

 i.e. setting the maximum values

 hmm,
 \frame can be slow.
 Maybe something like \vbox to4cm{\hsize=5cm ..} ?

Well, I'm already in a frame so it's not a problem.

--
Giuseppe Oblomov Bilotta


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setupheader: leftstyle rightstyle

2007-07-24 Thread Giuseppe Bilotta
Sunday, July 22, 2007 Mojca Miklavec wrote:

 However, there seems to be a little bug. This works perfectly well for
 section (\getmarking[section]), but for chapter the chapter labels
 seem to be erased after the first appearance.

Do you have a \page[even] in between? I've found that the
markings of the last section get cleared when an empty page
is inserted. See also my thread “Section marking forgotten
on next even page?”

-- 
Giuseppe Oblomov Bilotta  

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] factor=fit images don't fit

2007-07-24 Thread Giuseppe Bilotta
Sunday, July 22, 2007 Hans Hagen wrote:

 the fit assumes operating on a page not in a box;

Ah, didn't know that. I couldn't even tell from the sources,
since it uses enclosing box dimensions and not page or paper
sizes. I suspect the logic is broken at the page level too
though, let me explain why.

Currently, if I understand the code correctly, factor=fit
expands the figure to have its major direction fit, while
factor=max expands the figure to have its minor direction
fit.

Instead, the behavior I would expect from fit (resp. max) is
for the *expansion ratio* to be the minimum (resp. maximum)
of the expansion ratios in the two directions (not the sizes
in those directions, but the ratio between the sizes of the
figure and the container). The difference is noticeable when
the container and contained have different aspect ratios.

Consider for example a 20x30mm figure in a 50x150mm page
(strange numbers, just used to show what I mean): with the
current code, using 'fit' would consider the largest
dimension (30) and thus calculate a factor of 150/30 = 5,
but this gives us an image which is 100x150mm, i.e. an image
that doesn't fit! Whereas, if we computed the ratios 50/20 =
2.5 and 150/30 = 5, we would know that the ratio to be
picked was 2.5 in 'fit' and 5 in 'max'.

Or I misintepreting the meaning of 'fit' and 'max'?

  an alternative is:

 \framed[width=5cm,height4cm]
   
 {\externalfigure[mill.png][maxwidth=4cm,maxheight=5cm,width=10cm]}

 i.e. setting the maximum values

I hadn't thought about using width and maxwidth (and
maxheight) at the same time, thanks. Of course, I'd rather
have 'fit' and 'max' usable in boxes :)

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Typo in xtag-pre.tex

2007-07-24 Thread Giuseppe Bilotta
Hello all,

[EMAIL PROTECTED]:/usr/share/texmf/tex/context/base$ grep letterhar *
xtag-pre.tex:\defineXMLentities [tex-hat]{\letterhar}{\^{}}
[EMAIL PROTECTED]:/usr/share/texmf/tex/context/base$ grep letterhat *
cont-new.tex:   \let\normalsuper\letterhat
cont-new.tex:  {\let\normalsuper\letterhat
syst-chr.tex:.catcode `.^ 12 .xdef .letterhat B.string^E
xtag-ini.tex:\letcatcodecommand\xmlcatcodesr `\^ \letterhat
xtag-map.tex:   \defineXMLentity[tex-hat]\letterhat
xtag-raw.tex:\defineXMLentity [tex-hat]{\letterhat}
xtag-run.tex:   .catcode`.^=.@@active .let^.letterhat

I suspect xtag-pre should read letterha*t* and not
letterha*r* ...

Should these kind of bugs be reported to the bugtracker too,
or maybe just there?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Framing a linetable?

2007-07-24 Thread Giuseppe Bilotta
Hello all,

is it possible to put a frame around a linetable?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Linetable columns with natural width

2007-07-24 Thread Giuseppe Bilotta
Hello all,

I really like linetables, but there's one thing I'm having
problems with: setting its column to have a 'natural' width
depending on maximum content width, and letting ConTeXt
calculate this automatically. Is it possible?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] factor=fit images don't fit

2007-07-22 Thread Giuseppe Bilotta
Saturday, July 21, 2007 Brian R. Landy wrote:

 Hi,

 What version of ConTeXt are you using?  I just noticed a difference a
 few days ago between the version installed by TeXLive 2007 and the
 April 2007 release (tested locally  through contextgarden) placing
 an image into a natural table, using factor=max.  I'll post an
 example in a separate thread shortly.

According to the log:

ConTeXt  ver: 2007.04.17 12:51 MKII  fmt: 2007.7.17  int: english/english

It's the one shipped with Debian.

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] factor=fit images don't fit

2007-07-20 Thread Giuseppe Bilotta
Friday, July 20, 2007 Giuseppe Bilotta wrote:

 Hello all,

 I have to place a number of images into some given-size
 frames in a layer. The images should be scaled
 proportionally to fit into the frame. The code I'm working
 with is:

 \defineframed[framedimg][
   frame=on,framecolor=elux,
   background=color,
   backgroundcolor=white,
   width=\wdfig,
   height=\htfigone,
   offset=overlay,
 ]

 \setlayer[figs][voffset=\nextfigvoff]{%
   \framedimg{%
 \externalfigure[#1][
   factor=fit,
   % maxwidth=\wdfig,
   % maxheight=\htfigone,
   % frame=on,
 ]%
   }%
 }%

 where \wdfig, \htfigone are the frame size and \nextfigvoff
 is the vertical offset which must be placed. I've tried
 factor=fit, factor=max, but in both cases I get images which
 cross the boundaries of the frame, mostly in the horizontal
 direction. If I add the maxwidth/maxheight specification,
 images don't get scaled at all.

 I would expect factor=fit to scale the image in such a way
 that the biggest direction fits into the enclosing box,
 while factor=max would scale the image in such a way that
 the smallest direction fits into the enclosing box. Instead,
 in both cases the vertical direction is being fitted, with
 no apparent consideration for the horizontal direction.

 What am I doing wrong and what should I do to fix it?

Ok, I've tried studying the source and I really think that
the way factor scaling is computed is wrong. However, the
fix is nontrivial, and a somewhat thorough checking should
be implemented, with earlier check for the factor value
(fit, max, broad), since the logic selecting which dimension
to scale depends on the kind of scaling.

Anyway, I've found a temporary solutin to my problem by
using a very large value of scale=, coupled with appropriate
maxwidth and maxheight values.

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] factor=fit images don't fit

2007-07-19 Thread Giuseppe Bilotta
Hello all,

I have to place a number of images into some given-size
frames in a layer. The images should be scaled
proportionally to fit into the frame. The code I'm working
with is:

\defineframed[framedimg][
  frame=on,framecolor=elux,
  background=color,
  backgroundcolor=white,
  width=\wdfig,
  height=\htfigone,
  offset=overlay,
]

\setlayer[figs][voffset=\nextfigvoff]{%
  \framedimg{%
\externalfigure[#1][
  factor=fit,
  % maxwidth=\wdfig,
  % maxheight=\htfigone,
  % frame=on,
]%
  }%
}%

where \wdfig, \htfigone are the frame size and \nextfigvoff
is the vertical offset which must be placed. I've tried
factor=fit, factor=max, but in both cases I get images which
cross the boundaries of the frame, mostly in the horizontal
direction. If I add the maxwidth/maxheight specification,
images don't get scaled at all.

I would expect factor=fit to scale the image in such a way
that the biggest direction fits into the enclosing box,
while factor=max would scale the image in such a way that
the smallest direction fits into the enclosing box. Instead,
in both cases the vertical direction is being fitted, with
no apparent consideration for the horizontal direction.

What am I doing wrong and what should I do to fix it?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Symmetrical layer positioning?

2007-07-17 Thread Giuseppe Bilotta
Tuesday, July 17, 2007 Wolfgang Schuster wrote:

 2007/7/17, Giuseppe Bilotta [EMAIL PROTECTED]:

 Apparently, I mistook what the doublesided option does for
 layers. I've currently solved the problem in the following
 way:

 \definelayer[test][doublesided=yes]

 \setlayer[test][odd][..,..=..,..]{content}

 \setlayer[test][even][..,..=..,..]{content}

Indeed, but if I want both sides to always have the same
content, I need to double-code every content insertion, or
write a macro to do that for me. It just moves the trickery
somewhere else :)

My expectation was that when \setlayer is used without
specification on a doublesided layer, it would set the
content for both sides. Alternatively, a way to specify
(even via presets) a position which is page-parity dependent
would be a good thing.

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Symmetrical layer positioning?

2007-07-16 Thread Giuseppe Bilotta
Hello all,

is there a secret power switch to tell ConTeXt that a
particular layer has different positioning depending on
wether it's on a left or right page?

I can of course do it manually, either by changing the layer
position on each page or by using two layers instead of one,
but I wanted to know if there was a more straightforward way
that I was missing.

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Symmetrical layer positioning?

2007-07-16 Thread Giuseppe Bilotta
Monday, July 16, 2007 Aditya Mahajan wrote:

 On Mon, 16 Jul 2007, Giuseppe Bilotta wrote:

 Hello all,

 is there a secret power switch to tell ConTeXt that a
 particular layer has different positioning depending on
 wether it's on a left or right page?

 You can possible use setups and use \doifoddpageelse to set the
 layers. See

 http://archive.contextgarden.net/thread/20061102.171506.2fa793e2.en.html

Thanks a lot. I don't know if using presets is actually
going to reduce the coding, though.

In the mean time, I've found that layers have a doublesided
option. This apparently allows you to override the
left/right settings of a layer, so I tried

\definelayer[title][
  x=\dimexpr\backspace+\wdall-\wdtit,
  y=\topspace,
  width=\wdtit,
  height=\httit,
  state=repeat,
  doublesided=true,
]

\setuplayer[lefttitle][
  x=\backspace,
]

\definelayer[desc][
  x=\backspace,
  y=\topspace,
  width=\wddesc,
  height=\htdesc,
  state=repeat,
  doublesided=true,
]

\setuplayer[leftdesc][
  x=\dimexpr\backspace+\wdall-\wddesc,
]

\definelayer[figs][
  x=\dimexpr\backspace+\wdall-\wdfig,
  y=\dimexpr\topspace+\makeupheight-\htfig,
  width=\wdfig,
  height=\htfig,
]

\setuplayer[leftfigs][
  x=\backspace,
]

\setupbackgrounds[page][background={color,title,desc,figs},backgroundcolor=elux-ultralight]


However, the 'main' setup is always used, the left one is
never used. Am I doing something wrong?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Symmetrical layer positioning?

2007-07-16 Thread Giuseppe Bilotta
Monday, July 16, 2007 Giuseppe Bilotta wrote:

 Monday, July 16, 2007 Aditya Mahajan wrote:

 On Mon, 16 Jul 2007, Giuseppe Bilotta wrote:

 Hello all,

 is there a secret power switch to tell ConTeXt that a
 particular layer has different positioning depending on
 wether it's on a left or right page?

 You can possible use setups and use \doifoddpageelse to set the
 layers. See

 http://archive.contextgarden.net/thread/20061102.171506.2fa793e2.en.html

 Thanks a lot. I don't know if using presets is actually
 going to reduce the coding, though.

 In the mean time, I've found that layers have a doublesided
 option. This apparently allows you to override the
 left/right settings of a layer, so I tried

 \definelayer[title][
   x=\dimexpr\backspace+\wdall-\wdtit,
   y=\topspace,
   width=\wdtit,
   height=\httit,
   state=repeat,
   doublesided=true,
 ]

 \setuplayer[lefttitle][
   x=\backspace,
 ]

 \definelayer[desc][
   x=\backspace,
   y=\topspace,
   width=\wddesc,
   height=\htdesc,
   state=repeat,
   doublesided=true,
 ]

 \setuplayer[leftdesc][
   x=\dimexpr\backspace+\wdall-\wddesc,
 ]

 \definelayer[figs][
   x=\dimexpr\backspace+\wdall-\wdfig,
   y=\dimexpr\topspace+\makeupheight-\htfig,
   width=\wdfig,
   height=\htfig,
 ]

 \setuplayer[leftfigs][
   x=\backspace,
 ]

 \setupbackgrounds[page][background={color,title,desc,figs},backgroundcolor=elux-ultralight]


 However, the 'main' setup is always used, the left one is
 never used. Am I doing something wrong?

Apparently, I mistook what the doublesided option does for
layers. I've currently solved the problem in the following
way:

\unexpanded\def\titlexpos{%
  \ifodd\realpageno\dimexpr\wdinside+\wdall-\wdtit\else\wdinside\fi
}

\definelayer[title][
  x=\titlexpos,
  y=\topspace,
  width=\wdtit,
  height=\httit,
]

\unexpanded\def\descxpos{%
  \ifodd\realpageno\wdinside\else\dimexpr\wdinside+\wdall-\wddesc\fi
}

\definelayer[desc][
  x=\descxpos,
  y=\topspace,
  width=\wddesc,
  height=\htdesc,
]

\unexpanded\def\figsxpos{%
  \ifodd\realpageno\dimexpr\backspace+\wdall-\wdfig\else\wdinside\fi
}

\definelayer[figs][
  x=\figsxpos,
  y=\dimexpr\topspace+\makeupheight-\htfig,
  width=\wdfig,
  height=\htfig,
]

\setupbackgrounds[page][background={color,title,desc,figs},backgroundcolor=elux-ultralight]


However, this solution doesn't strike me as particularly
elegant. I've seen in page-lyr.tex that support for
left/right layers is currently in progress, but if I read
the code correctly it just creates three layers (name,
leftname, rightname) and they have to be filled
individually. It would be nice to have a simpler interface
to repeated layers with position recalculated on each page.

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Layers in ConTeXt

2007-07-15 Thread Giuseppe Bilotta
Saturday, July 14, 2007 Aditya Mahajan wrote:

 On Fri, 13 Jul 2007, Giuseppe Bilotta wrote:

 Hello all,

 Welcome back Giuseppe. I had benifitted a lot from your efforts of
 improving the math support in ConTeXt. Had it not been for the amsl
 module, I might have never switched to ConTeXt and would have missed a
 lot of fun.

Thanks :) I really hope I'll be able to get back at ConTeXt
development and/or other contributions to the TeX world.

 This is how I would do it. Not sure if this is the best way. Use
 tokens to keep track of the current information that should go to the
 layer, and repeat the layer on each page.

 \newtoks\testtoks

 \definelayer[test]
  [ width=\paperwidth,
   height=\paperheight,
  ]

 \startsetups make:test
 \setlayer[test][x=5cm,y=3cm]{\framed[align=normal,width=5cm]{\the\testtoks}}
 \stopsetups

 \setupbackgrounds[page][setups=make:test,background=test]

An interesting approach. I really need to learn to use
setups.

In the end, as the layout specifications got defined more
accurately, it turns out the number and position of the
layer elements is much less flexible than I originally
thought, so I don't need this approach anymore, but I'll
keep it in mind for future needs.

One thing that I've noticed with repeating layers is that
they appear also on 'empty' pages (as in those left by
forcing an even or odd page). Is it possible to suppress
then in those cases? Do the blank pages left by these
commands have a particular setup that can be tweaked?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Linetables ROW alignment

2007-07-14 Thread Giuseppe Bilotta
Hello all again,

I'm using linetables, because despite their lack of
documentation they've been rather easy to set up to achieve
the effects I needed (colors, alignment, etc).

I have a small problem with the title row though, because I
would like its entries to be all typeset centered (whereas
the rest of columns has them partly left and partly right
aligned) but apparently there is no (easy) way to override
alignment in a single row. In particular,

\setuplinetable[r][1][align=middle]

doesn't work, even though all other specifications (color,
background, style) work as expected.

I think that if a row alignment is required, it should be
applied and take precedente over column alignment. Any
suggestions?

-- 
Giuseppe Oblomov Bilotta

P.S. Looking at core-ltb.tex I've found that \BH and \EH are
mapped to \linetableBR and \linetableER. Is this
intentional, or a cut-n-paste error? The way it is now,
\linetableBH and \linetableEH are never triggered ...

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Section marking forgotten on next even page?

2007-07-14 Thread Giuseppe Bilotta
Hello all,

why does \page[even] reset the section marks? Shouldn't this
feature be configurable by the user?

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Layers in ConTeXt

2007-07-13 Thread Giuseppe Bilotta
Hello all,

I have a couple of questions concerning the use of layers in
ConTeXt. I'm working with Luigi Scarso on a layout which is
characterized by some fixed-position elements surrounding
the actual main body of text.

For the fixed-position elements, I'm using layers. However,
my ConTeXt is a little rusty[*], so there are a couple of
things which I need hints for.

The first one is very simple: is there a way to 'fix' the
layer's content until they change? I've currently set them
as page backgrounds, but their content gets reset on each
new page.

The second question is slightly more complex: is there a way
to add contents to a layer, rather than replacing the
current layer content? Something like a macro

\addtolayer[layername][hoffset=whatever(optional)]{additional content}

Thanks in advance,

-- 
Giuseppe Oblomov Bilotta

P.S. To prove that it's really me, I'll signal two minor
typos in the context source:

core-tab.tex:88:%D   {inintable, ifsplittables}

(first should be ifintable), and

page-lyr.tex:81:  \c!x=\zeropoint,\c!y=\zeropoint,\c!position=\v!no,
page-lyr.tex:87:  \c!location=rb,\c!position=\v!no,\c!page=,

position=no is set twice in the same setup.

[*] I've been out of the loop for a couple of years, the
University has sucked up most of my time. I was never too
happy with it, and I'm planning on a comeback :D

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Giuseppe Bilotta
Friday, July 13, 2007 Peter Rolf wrote:

 Hi Guiseppe,

 welcome back ;)

Thanks :) (btw, it's gIUseppe :D)

 Giuseppe Bilotta schrieb:
 The first one is very simple: is there a way to 'fix' the
 layer's content until they change? I've currently set them
 as page backgrounds, but their content gets reset on each
 new page.
 use a collector (Details, p.75) instead; I have no experience with them,
 but setup should be the same as for layer.

 % - - - - -
 \definecollector[foo][state=repeat]

 \starttext
 \switchtobodyfont[32pt]

 \setcollector[foo]{\strut eat more...}
 \flushcollector[foo]

 \page[yes]

 \setcollector[foo][hoffset=6cm]{\strut poppler}
 \flushcollector[foo]

 \stoptext
 % - - - - -

Excellent, thanks.

BTW, just to show how out of the loop I am, where can I get
the Details manual? :D

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Giuseppe Bilotta
Friday, July 13, 2007 Peter Rolf wrote:

 Giuseppe Bilotta schrieb:
 The first one is very simple: is there a way to 'fix' the
 layer's content until they change? I've currently set them
 as page backgrounds, but their content gets reset on each
 new page.
 use a collector (Details, p.75) instead; I have no experience with them,
 but setup should be the same as for layer.
 
 % - - - - -
 \definecollector[foo][state=repeat]

 Excellent, thanks.
 
 BTW, just to show how out of the loop I am, where can I get
 the Details manual? :D
 
 http://www.pragma-ade.com/general/manuals/details.pdf

Oh yeah thanks. I'll be able to get a few more tricks from
that.

I've found that [state=repeat] works for layers too. I
wonder if there are any technical differences between them
...

-- 
Giuseppe Oblomov Bilotta

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Nath bug?

2006-01-22 Thread Giuseppe Bilotta
Thursday, January 12, 2006 Aditya Mahajan wrote:

 The following does not work? Everything is fine if I replace the nath
 module with amsl. Any suggestions on how to make this work.


 \usemodule[nath]
 \starttext
 \startalign
   a = \underbrace{b}_{c} \\
 c = d
 \stopalign
 \stoptext

Sorry for the very late reply. Yes, the ConTeXt nath module
doesn't support this form of alignment. I would say 'yet',
but the hack of the original LaTeX module to adapt it to
ConTeXt has hit the limit of my expertise in both LaTeX and
ConTeXt.

I think the time has come to bring up the topic with Hans
and turn nath into a specification ('define these new
commands that behave this way') to be reimplemented from
scratch in a more ConTeXtish way, keeping in my that the
general idea behind the workings of the nath revolution can
be maintained since they are format-independent.

Hans, do you think you have time to dedicate to this
subject?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] pushed text in description

2005-12-30 Thread Giuseppe Bilotta
Thursday, December 29, 2005 Taco Hoekwater wrote:

 You latex example does what I *thought* \txt did.
 My guess is Hans misunderstood Giuseppe a bit, and Giuseppe never
 really tested the code, because what happens now is a bit nonsensical.

It's true, I never got around to testing the code, since in
rewriting the text I didn't need it anymore :)

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] No partial contents for parts after the first

2005-11-28 Thread Giuseppe Bilotta
Monday, November 28, 2005 Hans Hagen wrote:

 sure, but i need a small test file -)

\setuphead[part][placehead=yes,resetnumber=no]

\starttext

\part{Part one}

\placecontent

\chapter{One}

\section{One-one}

\chapter{Two}

\section{Two-one}

\part{Part two}

\placecontent

\chapter{Three}

\chapter{Four}

\section{Four-one}

\stoptext




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


Re[2]: [NTG-context] No partial contents for parts after the first

2005-11-26 Thread Giuseppe Bilotta
Friday, November 25, 2005 Giuseppe Bilotta wrote:

 Thursday, November 24, 2005 Giuseppe Bilotta wrote:

 I'm using the latest ConTeXt reported here, and I'm noticing
 that partial contents for the second, third etc part are not
 available. I have a bunch of files each of which goes like

 \part{some part}

 Some text (not always)

 \placecontent

 \chapter{some chapter}

 Each of this file is \input from the master file. However,
 only in the first part you actually see the (part-specific)
 content: every other part reports

 system  : part,chapter,section,subsection not found/processed


 The setup for the contents is as follows:

 \setupcombinedlist[content]
   [interaction=all,
partnumber=no,
alternative=c,
level=subsection]

 \setuphead[part][alternative=middle,placehead=yes,resetnumber=no]

 The problem is the 'resetnumber': if I take that off,
 everything works perfectly.

 I've been debugging this, and the reason for the thing not
 coming up for parts after the first is that when
 resetnumber=no the current level is not properly detected:
 in one case you get

 \currentlevel -:1

 in the other

 \currentlevel -:2:2:4:2

 Which is obviously wrong. Indeed, the problem is here:

 \listentry{part}{1}{1}{Introduction}{2::1:0:0:0:0:0:0::7}{8}
 \listentry{chapter}{2}{1}{Presentation}{2::1:1:0:0:0:0:0::8}{9}
 \listentry{section}{3}{1.1}{History and
 motivation}{2::1:1:1:0:0:0:0::8}{9}
 \listentry{chapter}{11}{2}{The
 basics}{2::1:2:0:0:0:0:0::12}{13}
 \listentry{section}{12}{2.1}{Notation}{2::1:2:1:0:0:0:0::12}{13}
 (more stuff)
 \listentry{subsection}{78}{2.4.2}{Scaling the
 coordinate system}{2::1:2:4:2:0:0:0::31}{32}
 \listentry{part}{79}{2}{Mathematical
 tools}{2::2:2:4:2:0:0:0::34}{35}
 \listentry{chapter}{82}{3}{Bézier cubic
 analysis}{2::2:3:0:0:0:0:0::35}{36}

 OOOPSIE! Since resetnumber=no, the listentry keeps the old
 settings for chapter, section  the like. This is obviously
 wrong. Even if the number is not reset, the sectionformat
 *must* be reset, since at the beginning of the new
 higher section(level) you are not in the previous one
 anymore. So for example when starting a new part (with
 resetnumber=no), and until
 the first chapter of the new part is started we are in
 chapter 0 for that part, not in chapter
 'last-chapter-from-previous-part'.

 Can this be fixed?


Ok, I came up with a solution that seems to work:

\def\definesection[#1]%
  {\doifundefined{\??se#1}
 {\doifelsenothing\firstsection
{\def\firstsection{#1}%
 \setevalue{\??se#1\c!before}{\v!text}%
 \setevalue{\??se\v!text\c!after}{#1}}
{\setevalue{\??se\commalistelement\c!after}{#1}%
 \setevalue{\??se#1\c!before}{\lastsection}%
 \setevalue{\??se\lastsection\c!after}{#1}}%
  \advance\nofsections \plusone
  \setevalue{\??se#1\c!level}{\the\nofsections}%
  \letvalue{\??se#1\c!after}\empty
  \setvalue{\e!next#1}{\@@nextsectionnumber{#1}}%
  \setvalue{#1\c!number}{\@@longsectionnumber{#1}}%
  \setvalue{#1\s!format}{\@@longformatnumber{#1}}%
  \setevalue{\??by#1}{#1}%
  \setevalue{\??by\v!by#1}{#1}%
  \makecounter{\??se#1}%
  \makecounter{\??se lastvalueof#1}% GB
  \edef\lastsection{#1}%
  \setvalue{\??sk#1}{#1}%
  \letvalue{\??se#1\c!marking}\empty
  \setupsection[#1][\c!previousnumber=\v!yes]}}%

% New command preserves the value of the next sectionlevel
% when resetnumber=no

\def\checkpreservevalueafter#1%
  {\ifnum\getvalue{\??se#1\c!level}\the\nofsections
 \edef\preservedsection{\getvalue{\??se#1\c!after}}%
 \ifconditional\@@resetsubheadnumbers
   \setcounter{\??se lastvalueof\preservedsection}%
  {0}%
 \else
   \setcounter{\??se lastvalueof\preservedsection}%
  {\countervalue{\??se\preservedsection}}%
 \fi
   \fi}

\def\@@setsectionnumber#1#2%
  {\letgvalueempty{\??se#1\s!start}% signal i.p.v. boolean
   \setcounter{\??se#1}{#2}%
   \checkpreservevalueafter{#1}
   \resetsectioncounters{#1}
   \checkpagecounter}

\def\@@nextsectionnumber#1%
  {\letgvalueempty{\??se#1\s!start}% signal i.p.v. boolean
   \ifnum\countervalue{\??se lastvalueof#1}\zerocount
 \setcounter{\??se#1}{\countervalue{\??se lastvalueof#1}}
 \setcounter{\??se lastvalueof#1}{0}
   \fi
   \pluscounter{\??se#1}%
   \checkpreservevalueafter{#1}
   \resetsectioncounters{#1}
   \checkpagecounter}

This has been tested in a fairly complex document (some
levels with resetnumber=no, some with the usual resetnumber;
sectionblocks etc). It works, and fixes the placecontent not
working. Will this go into mainline?

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
Hello, I would like to achieve this kind of typographical
effect: two text blocks, one of them aligned to the left
margin, the other with left-aligned text but with the right
margin at the right margin of the page.

I can obtain each of them with for example the following:

\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right]

Now, I want them to be at the same height. However, using
things like placesidebyside or even just \startlepi ...
\stoplepi \startrepi ... \stoprepi  doesn't work.

Any suggestions?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Hans Hagen wrote:

 depends a bit on the usage; the following shows you a few tricks

 \defineframedtext
   [gb]
   [align=raggedright,
width=.5\textwidth,
offset=0pt,
frame=off,
before=,
after=]

 \startbuffer[left]
 \startgb[none]
 \input tufte
 \stopgb
 \stopbuffer

 \startbuffer[right]
 \startgb[none]
 \input zapf
 \stopgb
 \stopbuffer

 \starttext

 \input tufte

 \definepairedbox[gb][location={right,top}]

 \startbaselinecorrection
 \placepairedbox[gb]
   {\getbuffer[left]}
   {\getbuffer[right]}
 \stopbaselinecorrection

 \input zapf

 \stoptext

Oh, interesting this pairedbox thing (it's undocumented,
though). I was hoping to be able to do it like this:

\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right]
\definepairedbox[epi][location={right,top}]

\placepairedbox[epi]
{\startlepi
{\bf Coordinatore}\par
prof. F.~Nicolosi
\stoplepi}
{\startrepi
{\bf Tutor}\par
prof. G.~Russo
\stoprepi}

But it won't work because the second box (repi) gets placed
with its LEFT margin on the right margin of the page,
whereas I needed to be with its right margin at the right
margin of the page. I think the problem is that, from what I
get by reading the source, in paired boxes are not treated
equally.

Basically, the rpbolem seems to be that the width of the
lepi framed text is not the 'natural width' of the text,
despite the width=fit command ... why is this so?

-- 
Giuseppe Oblomov Bilotta


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


Re[2]: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Hans Hagen wrote:

 \def\dodostopframedtext#1#2% % no \baselinecorrection, see faq docs
   {\endgraf
\removelastskip
\doifvalue{\??kd#1\c!depthcorrection}\v!on % local and global
  {\forgetall
   \vskip-\struttotal
   \verticalstrut
   \egroup
   \forgetall
   \vskip-\lineheight
   % will be an option, not default
   % \setbaselinecorrections
   % \donegbotbaselinecorrection
   \verticalstrut}
\stopboxedcontent
\stopcolor
\egroup
\doif{#2}\v!none\insidefloattrue % new
   
 \doif{\framedtextparameter{#1}\c!location}\v!none\insidefloattrue
 % 
 newer
\ifinsidefloat
  \box\framebox
\else
 
 \doplacement[\??kd#1][\c!depthcorrection=\v!off]{\box\framebox}%
\fi
\egroup}

Hm, strange, I patched core-rul and redumped the format, but
location=none still doesn't work. However, \startlepi[none]
does, so I'll go by this for the time being, thanks.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
For what it's worth, I'm now using the following:


\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=none]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=none]
\definepairedbox[lrepi][location={right,top}]

\noindent
\startlepi[none]
\obeylines
{\bf Coordinatore}
prof. F.~Nicolosi
\stoplepi\hfill\startrepi[none]
\obeylines
{\bf Tutor}
prof. G.~Russo
\stoprepi

The [none] spec is required until the location=none
specification is fixed :)

TeX does complain about underfull boxes, but the output is
just what I need.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Empty page at the end of the document

2005-11-25 Thread Giuseppe Bilotta
I'm having a totally blank page at the end of the document.
The document has a page number, but nothing is on it.

I remember this being a known bug when front/body/backmatter
was used ... is there a known fix?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Empty page at the end of the document

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Hans Hagen wrote:

 beware, if you you nil the page commands, you may need to make sure
 yourself that the pagebreaks between section blocks are forced at the
 right moment in order to reset for instance marks (used in running
 headers);

 think of:

 end of frontpart (no page break)
 some changes to header settings
 begin of bodypart (no page break)
 start of chapter (forcingpage break)

 versus

 end of frontpart (page break)
 some changes to header settings
 begin of bodypart (redundant page break)
 start of chapter (forcing (redundant) page break)

 in the first case, the header may be wrong on the last page of the
 frontpart because it is set before the page break forced by the chapter

 so, the suggested settings are perfectly ok but don't blame me for sync
 problems -)

Yeah, that's the reason why I only used [page=] only on the
last sectionblock.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] No partial contents for parts after the first

2005-11-25 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Giuseppe Bilotta wrote:

 I'm using the latest ConTeXt reported here, and I'm noticing
 that partial contents for the second, third etc part are not
 available. I have a bunch of files each of which goes like

 \part{some part}

 Some text (not always)

 \placecontent

 \chapter{some chapter}

 Each of this file is \input from the master file. However,
 only in the first part you actually see the (part-specific)
 content: every other part reports

 system  : part,chapter,section,subsection not found/processed


 The setup for the contents is as follows:

 \setupcombinedlist[content]
   [interaction=all,
partnumber=no,
alternative=c,
level=subsection]

 \setuphead[part][alternative=middle,placehead=yes,resetnumber=no]

 The problem is the 'resetnumber': if I take that off,
 everything works perfectly.

Can somebody please look into this? It's the last thing I
need to print my thesis ...

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Empty page at the end of the document

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Tobias Burnus wrote:

 Hi,

 Hans Hagen wrote:
 beware, if you you nil the page commands, you may need to make sure
 yourself that the pagebreaks between section blocks are forced at the
 right moment in order to reset for instance marks (used in running
 headers);

 end of frontpart (page break)
 some changes to header settings
 begin of bodypart (redundant page break)
 start of chapter (forcing (redundant) page break)

 in the first case, the header may be wrong on the last page of the
 frontpart because it is set before the page break forced by the chapter
 Well, somehow reading this above, it sounds different than I get by the
 current settings:

 \starttext
 setupheadertexts[FontMatter]
 \startfrontmatter \chapter{One}\chapter{Two} \stopfrontmatter
 \setupheadertexts[BodyMatter]
 \startbodymatter \chapter{Three} \stopbodymatter
 \stoptext

 Gives [One] [Two] [Three] [empty page].
 Reading above I'd expect: [One] [Two][Three] or [One][Two][empty
 page][Three].
 I actually want to have [One][Two][Three].

 If I now set page=, then I get [One][Two][Three], but on page [Two] is
 the wrong header.
 What is the proper way of doing so? Or: Why is there a page(break) added
 _after_ the matter and not - like \chapter{} - a pagebreak before?

 Tobias

I think the problem lies in the fact that there is one
page= setting that is used both in the \startsectionblock
*and* in the \endsectionblock. Maybe it would be better to
have a pagebefore/pageafter thing, with the default being
pagebefore=yes,pageafter=no.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Hans Hagen wrote:

 Hi,

 Something like this?

Yes, that's a good start :) however, I would leave the
option to have both the symbol and the text, exactly as if
it was run-in \head (i.e. with the actual item test
following the \head text on the same line). However, you ma
want to have this as an option to \head ... maybe it can
already be achieved with an appropriate afterhead?


 (PS. I cannot send mail to your address, it bounces, do you have an
 alternative one?)

Hm, which address is bouncing? bigfoot is long dead, use
the one I'm sending this from.


-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Taco Hoekwater wrote:

 Hans Hagen wrote:
 Giuseppe Bilotta wrote:
 
 Yes, that's a good start :) however, I would leave the
 option to have both the symbol and the text, exactly as if
 it was run-in \head (i.e. with the actual item test
 following the \head text on the same line). However, you ma
 want to have this as an option to \head ... maybe it can
 already be achieved with an appropriate afterhead?
  

 
 so you want
 
 1.  somethingbold  whatever text follows in running font
 
 2.  somethingelsebold  whatever othertext follows in running font

 That would be quite simple, like so:

\def\itemplus{\dosingleempty\doitemplus}
\def\doitemplus[#1]#2{\item[#1] {\bf #2}}

For example (where \bf is \someconfigurablecommand).

However, I find it really 'funny' that there are n different
methods to create items in an enumeration ... should these
be rather enumeration options, so that you can use the same
source code and just chang the stuff in \setup/\staritemize
to achieve the different effects?

This is why I was thinking of using \head, still, for
example.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] No partial contents for parts after the first

2005-11-24 Thread Giuseppe Bilotta
I'm using the latest ConTeXt reported here, and I'm noticing
that partial contents for the second, third etc part are not
available. I have a bunch of files each of which goes like

\part{some part}

Some text (not always)

\placecontent

\chapter{some chapter}

Each of this file is \input from the master file. However,
only in the first part you actually see the (part-specific)
content: every other part reports

system  : part,chapter,section,subsection not found/processed


The setup for the contents is as follows:

\setupcombinedlist[content]
  [interaction=all,
   partnumber=no,
   alternative=c,
   level=subsection]

\setuphead[part][alternative=middle,placehead=yes,resetnumber=no]

The problem is the 'resetnumber': if I take that off,
everything works perfectly.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] interline space?

2005-11-24 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Hans Hagen wrote:

 Charles Doherty wrote:


 On 23 Nov 2005, at 08:55, Giuseppe Bilotta wrote:

 How do I get a double-spaced document?
 \setupinterlinespace[big] seems to do nothing ...

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


 Giuseppe,

 I used this for my daughter's thesis recently.

 \setupinterlinespace[line=1.8\bodyfontsize] %change 1.8 to whatever
 \setupwhitespace[big]

 default is 2.8ex (.72/.28 ratio), so gb may try 5.6ex

But why doesn't \setupinterlinespace work? Or am I using the
wrong syntax?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

(PS. I cannot send mail to your address, it bounces, do you have an
alternative one?)



Hm, which address is bouncing? bigfoot is long dead, use
the one I'm sending this from.

  

 I get:

 When trying to deliver your message, the mail server at controller-1 
 encountered
 problems with the following addresses:

 For [EMAIL PROTECTED], Site (iol.it/193.70.193.95)
 said: 504 controller-1: Helo command rejected: need
 fully-qualified hostname

Looks like your sending program or ISP doesn't provide a
fully qualified hostname, but rather something like
[EMAIL PROTECTED] or something.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Taco Hoekwater wrote:

 Giuseppe Bilotta wrote:
 However, I find it really 'funny' that there are n different
 methods to create items in an enumeration ... should these
 be rather enumeration options, so that you can use the same
 source code and just chang the stuff in \setup/\staritemize
 to achieve the different effects?
 
 This is why I was thinking of using \head, still, for
 example.

 Ah, I see. So instead of just the

 \setupitemize[symbol=]

 have something more like

 \setupitemize[textcommand=,
   numbercommand=,
   command=]

 as for heads and such?

Or maybe something as simple as texthead=yes :)

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] interline space?

2005-11-24 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Hans Hagen wrote:

 \def\setuprelativeinterlinespace[#1]%
   {\processallactionsinset % \regelwit = dummy !
  [#1]
  [  \v!on=\oninterlineskip,
\v!off=\offinterlineskip,
  \v!reset=\setfontparameters,% just \setstrut, test first
   
 \s!unknown=\assignvalue{#1}\regelwit{1.00}{1.25}{1.50}%
\spacing\regelwit]}

 now, (apart from \regelwit being dutch), this value is used nowhere
 else, so this setting will not be seen afterwards

 in this respect it's not a bug but just a
 characteristics; however, it 
 would make sense to let it carry over, so ...

 i have to think about it

It setupinterlinespace does nothing, why is it present at
all? Can we get this fixed by the end of the week? It would
be nice if I could use it in my thesis.

Maybe also allow some numerical factor which would be a
percentage of the amount ConTeXt would choose by default? So
that

\setupinterlinespace[fraction=1] (default)
fraction = .5 (half *bleah*)
fraction = 1.6 (would give what is usually intended as
doublespace

etc.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Hans Hagen wrote:

 this is a variant of taco's posted solution:

[snip]

 so, this way you can hook in a command that is executed after the symbol
 placement

I like it! (Ok, I won't use it this time because in the mean
time I reworked the text to use \head, with the benefit of
some extra lines which in a PhD thesis are always welcome
:))

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

Thursday, November 24, 2005 Hans Hagen wrote:

  

this is a variant of taco's posted solution:



[snip]

  

so, this way you can hook in a command that is executed after the symbol
placement



I like it! (Ok, I won't use it this time because in the mean
time I reworked the text to use \head, with the benefit of
some extra lines which in a PhD thesis are always welcome
:))

  

 anyway, i posted an update at:

   www.pragma-ade.com/temp/cont-tmf.zip

 this one has

 - the interline patch
 - the itemize extensions
 - vit's columnset mark stuff (yet imperfect but ..)

 it's in /temp because i want it tested first -)

Will I ever be able to thank you enough? :)

Setting up the interline space works, thank you very much.

(A minor nitpick: AFAIK standard typographical rules require
footnotes to be single-spaced even when the text is
doublespaced. Can we have an interlinespace= option for
footnotes (and all other forms of non-mainline text)? Also,
while the lists are not double-spaced (good!) the index
(register) is. I think it shouldn't be.)

(Also: for miktex you should set UseEnginePath to *false*;
and kpsewhich does not use --engine= under miktex, at all.)

I think that to rollout my thesis the only thing that needs
a fix is the (local) \placecontent not working when
resetnumber=no (see appropriate email)

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] interline space?

2005-11-23 Thread Giuseppe Bilotta
How do I get a double-spaced document?
\setupinterlinespace[big] seems to do nothing ...

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


[NTG-context] A blank entry in the bibliography

2005-11-23 Thread Giuseppe Bilotta
I'm seeing a blank entry in the bibliography. However,
since it's not referenced in the text, I can't tell which
one is it. Some debug options to find out?

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] New bib module beta

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Taco Hoekwater wrote:

 Hi,

 I've created a new beta of the bib module, and uploaded it to my
 server. You can get it here:

http://tex.aanhet.net/bib/m-bib-beta-20051123.zip

- bibl-ams.tex: AMS style (from Giuseppe)

 * renamed citation type 'number' to 'serial'

Except in bibl-ams :)

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] New bib module beta

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Taco Hoekwater wrote:

 Hi,

 I've created a new beta of the bib module, and uploaded it to my
 server. You can get it here:

http://tex.aanhet.net/bib/m-bib-beta-20051123.zip


\setupheadtext[it][\biblistname=Bibliografia]

-- 
Giuseppe Oblomov Bilotta


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


Re: [NTG-context] New bib module beta

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Taco Hoekwater wrote:

 Hi,

 I've created a new beta of the bib module, and uploaded it to my
 server. You can get it here:

http://tex.aanhet.net/bib/m-bib-beta-20051123.zip

Hm. criterium=all doesn't seem to work anymore, regardless
of whether I place it in \setuppublications or
\placepublications.

Also, I'm using alternative=ams and the numbers past 10
stick to the text. I also notice that they are left-aligned,
and not right-aligned. How can I fix these things?

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Indenting totally disappeared?

2005-11-23 Thread Giuseppe Bilotta
Since I upgraded my ConTeXt, even doubling the

\setupindenting[medium,next]

fails to give me any paragraph indentation.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Halfway between itemizations and descriptions

2005-11-23 Thread Giuseppe Bilotta
Hello,

does ConTeXt have something which is halfway between
itemizations and descriptions? I have a small set of
properties that should be enumerated together. Right now I'm
doing it by defining a \description and then doing

\desc{something} stuff \par
\desc{something else} other stuff \par
etc

However, this is an overall cumbersome syntax, especially
for the result I would like to obtain.

using \startitemize ...\stopitemize with \sym{something}
\sym{something else} comes *very* close to what I would like
but I can't seem to find a way to prevent the \sym text to
wade into the actualt text of the description.

Suggestions?

-- 
Giuseppe Oblomov Bilotta


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


Re[2]: [NTG-context] Halfway between itemizations and descriptions

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

Hello,

does ConTeXt have something which is halfway between
itemizations and descriptions? I have a small set of
properties that should be enumerated together. Right now I'm
doing it by defining a \description and then doing

\desc{something} stuff \par
\desc{something else} other stuff \par
etc
  

 \startdesc {something}  \stopdesc

 is an alternative syntax

Yeah, I know, but it's still clumsy.

However, this is an overall cumbersome syntax, especially
for the result I would like to obtain.

using \startitemize ...\stopitemize with \sym{something}
\sym{something else} comes *very* close to what I would like
but I can't seem to find a way to prevent the \sym text to
wade into the actualt text of the description.

Suggestions?
  

 you want more space for the sym?

 \startitemize[5*broad]
 \item {word} 
 \item {another} 
 \stopitemize

 (if needed, you can define an itemgroup with a default wider left margin)

No please this is horrible. I would like the item/desc/head
to 'run in' the text. I guess I'll have to use the \startdesc stuff :\

-- 
Giuseppe Oblomov Bilotta

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


Re[3]: [NTG-context] Halfway between itemizations and descriptions

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Giuseppe Bilotta wrote:

 Wednesday, November 23, 2005 Hans Hagen wrote:

 you want more space for the sym?

 \startitemize[5*broad]
 \item {word} 
 \item {another} 
 \stopitemize

 (if needed, you can define an itemgroup with a default wider left margin)

 No please this is horrible. I would like the item/desc/head
 to 'run in' the text. I guess I'll have to use the \startdesc stuff :\

To be precise: the effect I'm looking for is one which could
be obtained by \head commands in \start/\stopitemize, if we
could have the heads run-in with the text.

-- 
Giuseppe Oblomov Bilotta


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


[NTG-context] [BIB] nocite / criterium=all

2005-11-21 Thread Giuseppe Bilotta
Small problem with bibtex. I have (in a document different
from the one I mentioned before)

\setupbibtex[database={mrabbrev,bilotta}]
\setuppublications[alternative=ams,criterium=all]

but when I do

\placepublications[criterium=all]

I get nothing. If I \cite[something], that something gets
included. How am I supposed to place all the publications
without citing anything?

BTW, you may also want to introduce the \nocite command,
which adds something to the publications list without
actually citing it in the text. If you want, you can make it
support the \nocite[*] syntax to hiddenly cite everything.

-- 
Giuseppe Oblomov Bilotta

P.S. This is rather urgent ...

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


Re[2]: [NTG-context] Floats page?

2005-11-21 Thread Giuseppe Bilotta
Monday, November 21, 2005 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

How do I tell ConTeXt that I don't mind if the pages are
totally filled by floats (two, three, as many as fit) even
if there is no text whatsoever?

  

 \setupfloats
   [ntop=100]

Doesn't help.

\appendix{Test results}
\setupfloats[ntop=100]
\dorecurse{8}{\input tests/curves-\recurselevel.tex
\page
}

Each file that gets included have some 8 'tables' like the
following:

\placetable[here][approx-1-0.11269]{Results for curve 1, radius 0.11269}
{\centerline{\startcombination[1*2]{\scantokens{
\setuptable[bodyfont=8pt]
\starttable[|l|l|r|ra.o0|l|ra.o0|l|ra.o0|l|ra.o0|l|ra.o0|l|]
\HL
\NC\ReFormat[Bc]{Method}%
\NC\ReFormat[Bc]{Options}%
\NC\ReFormat[Bc]{Iterations}%
\NC\use4\ReFormat[Bc]{Lambdas}%
\NC\use2\ReFormat[Bc]{Error}%
\NC\use2\ReFormat[Bc]{Error\%}%
\NC\use2\ReFormat[Bc]{$L^2$}%
\SR
\HL
\CL[lightred]\MR
\NC Kinch\NC \NC 0\NC 0\NC 98005\NC 1\NC 09034\NC 0\NC 01891\NC 16\NC 
78059\NC0\NC 59899\NC\MR
\NC Legendre\NC direct, 16 samples\NC 9\NC 0\NC 98275\NC 1\NC 1018\NC 0\NC 
00871\NC 7\NC 7328\NC0\NC 33727\NC\MR
\NC Legendre\NC Kinch, 16 samples\NC 10\NC 0\NC 98275\NC 1\NC 1018\NC 0\NC 
00871\NC 7\NC 7328\NC0\NC 33727\NC\MR
\NC Jacobi (1,1)\NC direct, 16 samples\NC 10\NC 0\NC 98359\NC 1\NC 10323\NC 
0\NC 00768\NC 6\NC 81577\NC0\NC 34516\NC\MR
\CL[lightgreen]\MR
\NC Jacobi (1,1)\NC Kinch, 16 samples\NC 10\NC 0\NC 98359\NC 1\NC 10323\NC 0\NC 
00768\NC 6\NC 81577\NC0\NC 34516\NC\MR
\NC Jacobi (2,2)\NC direct, 16 samples\NC 9\NC 0\NC 98329\NC 1\NC 10202\NC 0\NC 
00874\NC 7\NC 75774\NC0\NC 34391\NC\MR
\NC Jacobi (2,2)\NC Kinch, 16 samples\NC 9\NC 0\NC 98329\NC 1\NC 10202\NC 0\NC 
00874\NC 7\NC 75774\NC0\NC 34391\NC\MR
\NC Chebyshev\NC direct, 16 samples\NC 9\NC 0\NC 98243\NC 1\NC 10117\NC 0\NC 
00919\NC 8\NC 15498\NC0\NC 33874\NC\MR
\NC Chebyshev\NC Kinch, 16 samples\NC 10\NC 0\NC 98243\NC 1\NC 10117\NC 0\NC 
00919\NC 8\NC 15498\NC0\NC 33874\NC\MR
\NC Grid\NC direct, 3 scans\NC 70\NC 0\NC 98382\NC 1\NC 10435\NC 0\NC 00703\NC 
6\NC 24151\NC0\NC 35264\NC\MR
\CL[lightblue]\MR
\NC Grid\NC direct, 5 scans\NC 60\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 0069\NC 
6\NC 12706\NC0\NC 34982\NC\MR
\NC Nelder-Mead\NC direct, to 0\NC 132\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 
0069\NC 6\NC 12706\NC0\NC 34982\NC\MR
\NC Nelder-Mead\NC direct, to 2\NC 108\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 
0069\NC 6\NC 12706\NC0\NC 34982\NC\MR
\NC Nelder-Mead\NC Kinch/Legendre\NC 94\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 
0069\NC 6\NC 12706\NC0\NC 34982\NC\MR
\HL
\stoptable
}}{}
{\externalfigure[tests/curves-1.1]}{}%
\stopcombination}}

Sometimes, two table+figure combo would fit in one page, but they
are still put in separate pages. Also, the first page has
the appendix title but nothing is inserted, not even the
first float.

Suggestions?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] AMS-style bibliography?

2005-11-20 Thread Giuseppe Bilotta
Sunday, November 20, 2005 Taco Hoekwater wrote:

 Bug will be fixed in the next release, and I've added your
 file, thanks.

Cool. Can we please have it released before my deadline? ;)

-- 
Giuseppe Oblomov Bilotta


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


[NTG-context] Floats page?

2005-11-19 Thread Giuseppe Bilotta
How do I tell ConTeXt that I don't mind if the pages are
totally filled by floats (two, three, as many as fit) even
if there is no text whatsoever?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] AMS-style bibliography?

2005-11-19 Thread Giuseppe Bilotta
Saturday, November 19, 2005 Taco Hoekwater wrote:

 Giuseppe Bilotta wrote:
 Is there a pre-rolled bibliography style that looks follows
 the AMS specs?

 Probably not, but point me to the AMS specs. I also
 have a numbered style planned, c.f. plain.bst,
 and a style for the ntg's Maps.

 There are now 4 bibl-XXX files in the zip, all with bad
 names:

 bibl-apa: APA bibliography style
 bibl-apa-de : APA bibliography style (german)
 bibl-aps: APS bibliography style
 bibl-ssa: SSA-like (by David Wooten)

 I simply do not have any idea what those acronyms stand for
 (except APS, which is the American Physical Society, I believe).

 Anybody: if you have created other that you want to
 share, send them to me and I will add the file to the
 bib module distribution.

Ok, I'm hacking on somethings whose final result is going to
be very close to the things I get with AMS in LaTeX. The
only thing I'm having problem with is putting the brackets
around the numbers in the bibliograpy ... more on this
later.

 (BTW, when trying out various alternatives=
 I found that only aps works, all of the others bomb
 complaining extra # marks. I'm using a September 2005
 version of t-bib ... do I need to upgrade?)

 The very latest t-bib is here:

http:/tex.aanhet.net/bib/m-bib-beta-20051008.zip

 but it has a known problem with # marks. ;-)

I'll give it a shot :)

-- 
Giuseppe Oblomov Bilotta



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


Re[2]: [NTG-context] AMS-style bibliography?

2005-11-19 Thread Giuseppe Bilotta
Saturday, November 19, 2005 Taco Hoekwater wrote:

 Giuseppe Bilotta wrote:
 Is there a pre-rolled bibliography style that looks follows
 the AMS specs?

 Probably not, but point me to the AMS specs. I also
 have a numbered style planned, c.f. plain.bst,
 and a style for the ntg's Maps.

 There are now 4 bibl-XXX files in the zip, all with bad
 names:

 bibl-apa: APA bibliography style
 bibl-apa-de : APA bibliography style (german)
 bibl-aps: APS bibliography style
 bibl-ssa: SSA-like (by David Wooten)

Please find attached my first go at an AMS-like style. Can
you tell me why the pub list shows without brackets? This is
the code I have in my doc.

\setupbibtex[database={mrabbrev,bezier,texmf,curves}]
\setuppublications[alternative=ams]
\setuppublications[
   refcommand=num,
   numbering=yes,
   sorttype=cite,
   criterium=all,
   %numbercommand=\bibalignednumber,
]

...

\let\POSTSCRIPT\PS
\let\systemsuppliedtitle\chapter
\completepublications

-- 
Giuseppe Oblomov Bilotta


bibl-ams.tex
Description: Binary data
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] [BIB] Command names in author

2005-11-18 Thread Giuseppe Bilotta
The following

@article{frechet,
  author = M. {Fr\'echet},
  title = {Sur quelques points du calcul fonctionel},
  journal = Rendiconti Circ. Mat. Palermo,
  volume = 22,
  year = 1906,
  pages = 1--74
}


produces an incorrect entry in the bbl file:

\startpublication[k=frechet,t=article,
a={{{Fr\'echet}}},y=1906,
n=25,s={Fr\}06]
\artauthor[]{M.}[M.]{}{{Fr\'echet}}
\pubyear{1906}
\arttitle{Sur quelques points du calcul fonctionel}
\journal{Rendiconti Circ. Mat. Palermo}
\volume{22}
\pages{1--74}
\stoppublication

The defective s= key blows .bbl parsing.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] AMS-style bibliography?

2005-11-18 Thread Giuseppe Bilotta
Is there a pre-rolled bibliography style that looks follows
the AMS specs?

(BTW, when trying out various alternatives=
I found that only aps works, all of the others bomb
complaining extra # marks. I'm using a September 2005
version of t-bib ... do I need to upgrade?)



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


[NTG-context] URLs and online contents with BibTeX in ConTeXt

2005-11-16 Thread Giuseppe Bilotta
What is the preferred way to insert URLs and references to online
contents with the bibtex module for ConTeXt?

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Drawing oriented paths in MetaFun

2005-11-16 Thread Giuseppe Bilotta
Does MetaFun provide some macro to draw oriented paths? I
would like it to basically add a small arrow *in the middle*
of the path? Such a macro

draworiented somepath somespecs ;

would have to act like

drawarrow firsthalf(somepath) somespecs ;
draw secondhalf(somepath) somespecs ;

Is it available already, or should I roll my own?

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] Drawing oriented paths in MetaFun

2005-11-16 Thread Giuseppe Bilotta
Wednesday, November 16, 2005 Giuseppe Bilotta wrote:

 Does MetaFun provide some macro to draw oriented paths? I
 would like it to basically add a small arrow *in the middle*
 of the path? Such a macro

 draworiented somepath somespecs ;

 would have to act like

 drawarrow firsthalf(somepath) somespecs ;
 draw secondhalf(somepath) somespecs ;

 Is it available already, or should I roll my own?


Hm. I came up with

def draworiented expr c =
  path _c_ ; _c_ := c ;
  do_draworiented
enddef ;

def do_draworiented text t =
  draw _c_ t ;
  drawarrow subpath(0, length(_c_)/2) of _c_ ;
enddef;
 
which works, although I have to do

draworiented (reverse p1)

Is there an easy way to have it work with

draworiented reverse p1 ?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Drawing oriented paths in MetaFun

2005-11-16 Thread Giuseppe Bilotta
Wednesday, November 16, 2005 Giuseppe Bilotta wrote:

 Wednesday, November 16, 2005 Giuseppe Bilotta wrote:

 Does MetaFun provide some macro to draw oriented paths? I
 would like it to basically add a small arrow *in the middle*
 of the path? Such a macro

 draworiented somepath somespecs ;

 would have to act like

 drawarrow firsthalf(somepath) somespecs ;
 draw secondhalf(somepath) somespecs ;

 Is it available already, or should I roll my own?


 Hm. I came up with

 def draworiented expr c =
   path _c_ ; _c_ := c ;
   do_draworiented
 enddef ;

 def do_draworiented text t =
   draw _c_ t ;
   drawarrow subpath(0, length(_c_)/2) of _c_ ;
 enddef;
 
 which works, although I have to do

 draworiented (reverse p1)

 Is there an easy way to have it work with

 draworiented reverse p1 ?


Oh sorry it works ... however, it traces half of the curve
twice. So I came up with the next:

def draworiented expr c =
  path _c_ ; _c_ := c ;
  do_draworiented
enddef ;

def do_draworiented text t =
  drawarrow subpath(0, length(_c_)/2) of _c_ t ;
  draw subpath(length(_c_)/2, length(_c_)) of _c_ t ;
enddef;
 
This still isn't perfect, but it works. It needs a little
tuning so that the arrow is more centered, and of course it
could be improved to put the arrow at any arbitrary point on
the path.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] Context 2005.11.15 Released

2005-11-15 Thread Giuseppe Bilotta
Tuesday, November 15, 2005 Taco Hoekwater wrote:

*  New functionality: indentnext=auto
   Blank lines in the source are taken into account when
   indextnext=auto is in effect.
   A really short example of usage would be:

   \setupindenting[small,yes]
   \setupformulas[indentnext=auto]
   \starttext
   \startformula a = b\stopformula

   \input tufte % blank line = with indentation

   \startformula a = b\stopformula
   \input tufte % no blank line = no indentation

   \stoptext

YOH!

Hans, I love you, will you marry me? ;)

(BTW, I'm wondering if auto should be the default
indentnext setting for the displays? Or would that be
pressing too much? :))

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Context 2005.11.15 Released

2005-11-15 Thread Giuseppe Bilotta
Tuesday, November 15, 2005 Hans Hagen wrote:

Hans, I love you, will you marry me? ;)
  
 well, sending me a copy of your thesis once it's finished would be a
 good start -)

That's really not a problem :)

(BTW, I'm wondering if auto should be the default
indentnext setting for the displays? Or would that be
pressing too much? :))
  
 indeed too much a compatibility issue

 i was thinking of a module or so: m-indent (or s-indent) or maybe a more
 generic module with setups (m-setups), so that one can say:

 \setups[auto-indent]

 an alternative is to change (in the several
 \setupcommands) the yes/no's 
 into something autoyes and autono which will default to yes/auto no/auto
 depending on the global setting of yes/auto

Uh ... yes, I think something like

\setupformulas[indentnext=default|yes|no|auto]
\setupitemgroup[indentnext=default|yes|no|auto]

etc

and then

\setups[indentnext=yes|no|auto]

?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] indentnext question

2005-11-14 Thread Giuseppe Bilotta
Monday, November 14, 2005 Hans Hagen wrote:

 not 'anymore', more 'not as you expected' -)

 this feature is not supported at the specific item group level, only for
 all itemgroups (took me a while to see that one, after entering
 panic-bug mode);

BTW, could you please consider adding the indentnext=auto
option to all places that support indentnext? This is a very
simple patch I already offered in the list, see for example
http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01739.html
http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01744.html

Of course it needs to be updated to new code. It's an
important for those of us that (like me) have displayed
material that terminates the paragraph, and displayed
material that doesn't (displayed material = itemgroups,
formulas, quotations etc). In this case, the blank
lines/\pars after the displayed material are significant,
since they tell if the subsequent text is still part of the
previous paragraph or not.

Can you please consider it for inclusion in the main tree?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Not resetting chapter number on new part

2005-11-14 Thread Giuseppe Bilotta
Friday, November 11, 2005 Taco Hoekwater wrote:

 Giuseppe Bilotta wrote:
 I would like the latter to be numbered 2, not 1. I can of
 course do this by hacking \part, but I would like to know if
 there is a way to prevent number reset (something like
 resetchapter=no).
 

 It looks like

\setuphead[part][resetnumber=no]

 maybe does what you want?

*SMACK* Oh yes of course thanks :)

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Bug / feature request tracking

2005-11-08 Thread Giuseppe Bilotta
Monday, November 7, 2005 Thomas A. Schmitz wrote:

 4. and a feature request: it would be good to have some formatting
 options like LaTeX makeidx offers:
 \index{keyword|textit} will  
 produce a page-number in italics in the register. That would be
 immensely useful to produce a structured index.

I have the following, in my PhD thesis

\setupindex[pagestyle=normal]
\setupregister[index][def][pagestyle=bold]
\def\indexdefinition#1{\index[def::]{#1}}
\def\defterm#1{\leavevmode{\indexdefinition{#1}\it#1}}
\def\deftermx#1#2{\leavevmode{\processcommalist[#2]\indexdefinition\it#1}}
\def\useterm#1{\leavevmode{\index{#1}#1}}
\def\usetermx#1#2{\leavevmode{\processcommalist[#2]\index#1}}


the 'def' is an index 'class', which can be formatted
differently from the others. I use it to makr the definition
of a term (the other commands are just shorthands :)). You
can set up as many classes as you want and format each of
them as you wish. Much better than the LaTeX way :) More
details in the manual.

-- 
Giuseppe Oblomov Bilotta

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


Re[6]: [NTG-context] Insufficient symbol fonts error

2005-10-31 Thread Giuseppe Bilotta
Monday, October 31, 2005 Alan Bowen wrote:

 Giuseppe—

 Thanks for the tip about \high. That works (and looks cleaner in the
 source file too). But

 \grk{\overbar{\grk{kj}} Kull'hnhc  d\high{\tfx\grk{ou}} med'eonta
 ka`i Arkad'ihc polum'hlou}

 still chokes on \overbar and returns the “insufficient symbol fonts”
 error.

First of all, I notice you are having quite a few \grk in
there, unless that's a typo for $...$. Have you tried
\overline instead of \overbar?

-- 
Giuseppe Oblomov Bilotta


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


Re: [NTG-context] Insufficient symbol fonts error

2005-10-30 Thread Giuseppe Bilotta
Sunday, October 30, 2005 Alan Bowen wrote:

 I am getting some puzzling errors when I try to use the Greek fonts
 in math formulae (to represent Greek numerals as written in mss.)

 In a short file, both
 \overbar{\grk{kj}} and
 $\overline{\hbox{\grk{kj}}}$
 work as expected, even when they occur in Greek text.

 But in a long, complicated file with lots of Greek etc. and  the same
 environment file, I get

 ! Math formula deleted: Insufficient symbol fonts.

Are you using the amsl or nath modules?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Insufficient symbol fonts error

2005-10-30 Thread Giuseppe Bilotta
Sunday, October 30, 2005 Alan Bowen wrote:

 Giuseppe—

 I am not using either the amsl or the nath modules. Never had to
 before. (The file has compiled successfully in its current form, but
 that was about a week ago.)

 If I should be using one of these modules, which do you recommend?

Sorry, I wasn't suggesting you should use these modules :)
On the contrary, I just recently found a bug in them that gave an
error similar to the one you found, when using point sizes
over 12. Since I knew the fix for that I was hoping it was
your problem, but sadly it isn't.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Insufficient symbol fonts error

2005-10-30 Thread Giuseppe Bilotta
Sunday, October 30, 2005 Alan Bowen wrote:

 Giuseppe—

 I inserted
 \usemodule[t-amsl]
 into the preamble and got the same error message:
  ! Math formula deleted: Insufficient symbol fonts.

 But, when I inserted
 \usemodule[t-nath]
 the error message was
  !TeX capacity exceeded, sorry [input stack size=5000]
 which seems much more promising.

 Assuming that increasing the input stack is possible and desirable,
 how do I do it?

Please disregardi this, and remove the two modules. Since it
seems the 'Missing symbol fonts' problem only happens with a
big document, try the usual 'divide and conquer method':
terminate your document right after the formula that gives
the error, and progressively comment out halves of the
preceding text until you manage to isolate the chunk of text
preceding the formula that generates the error.

Example: say that that from \starttext to \stoptext there
are 300 lines, and that the formula is at the last line.
Then you comment the first 150 lines and see if the error
occurs. If it doesn't happen, you uncomment the first 150
and comment the subsequent 150 (Except for the formula, of
course). This way you can tell which half causes the error.
In the uncommented half that causes the error you repeat the
process (75 lines at a time), then again and again until you
manage to focus around the shortest document that causes the
error.

-- 
Giuseppe Oblomov Bilotta

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


Re[4]: [NTG-context] Insufficient symbol fonts error

2005-10-30 Thread Giuseppe Bilotta
Sunday, October 30, 2005 Alan Bowen wrote:

 Giuseppe—

 Actually, it can happen with a very short document too:

 \starttext
 \grk{\overbar{\grk{kj}} Kull'hnhc
 d$^{\hbox{\tfx\grk{ou}}}$ med'eonta  
 ka`i Arkad'ihc polum'hlou}

 \stoptext

 will produce the
  ! Math formula deleted: Insufficient symbol fonts error.

 To generalize: all my attempts to enter mathmode when the bodyfont is
 Greek (using one of the fonts in Thomas Schmitz’ Greek module) fail
 because of insufficient symbol fonts.

 I wonder if this bears of the fact that in this module the fonts have
 to be defined at every size used in the document. The relevant line
 in type-tasgreek is
 \definebodyfont
 [30pt,25pt,20pt,18pt,17.3pt,14.4pt,14pt,12pt,11pt,10.5pt,10.1pt,10pt,
 9pt,8pt,7pt,6pt,5pt,4pt]
 [rm]

 My environment file sets the body font size to 10.1 pt.

I'm not the font expert, but the problem seems to be that
math small text isn't being set (if I see it correctly,
you're using math mode to enter a superscript). I would
suggest you try \text instead of \hbox in the math part, and
even better try \hi{superscript text} or \super{superscript
text} for the superscript.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Please add Fraktur to the math fonts

2005-10-27 Thread Giuseppe Bilotta
The Fraktur fonts are missing from the standard math
definitions. Currently, I have this kind of hack in t-amsl:

\definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt] [mm] [mc=eufm10 sa 1]
\definebodyfont [8pt,7pt,6pt]  [mm] [mc=eufm7 sa 1]
\definebodyfont [5pt]  [mm] [mc=eufm5]

Basically, for what I can see, the problem is that mc= is
not defined in the default typescript files. Adding it would
be as simple as replicating the mi lines into mc lines, at
least for computer-modern  similar, since the actual font
used is the same.

Could this please be done for the official distribution?

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Par break/justification problem

2005-10-27 Thread Giuseppe Bilotta
I have a paragraph that is formed by two parts: these are
normally run together, except when the last line of the
first part ends at less than a certain amount max_amount
from the right margin. In this case, there should a
'seamless line break', i.e. a line break with the text still
fully justified to the right margin.

Example:

First part of the paragraph: second part is
run in and then the text continues.

Second example:

This is still the first part of the pagrah:
second part will now be put on the next line
but the last line of the first part should
be fully justified.

What kind of hskip/penalty/whatever combo should I put
between the first and last part for this to happen?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Smart \in

2005-10-09 Thread Giuseppe Bilotta
Saturday, October 8, 2005 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

Hello all,

I have a document which is split into separate \parts. I
would like the \in command ( friends) to automatically add
the part reference when cross-referencing across parts.

Example:



\part[part:one]{Part one}

\chapter[ch:one]{Chapter one}

\chapter[ch:two]{Chapter two}
As seen in \in chapter[ch:one]

\part[part:two]{Part two}

\chater[ch:2-1]{Chapter two}

As seen in \in chapter[ch:one]


The first \in would say chapter~1, the second chapter~1,
part~1.

  

 \setuphead[part][prefix=part]
 \setuphead[chapter][prefix=ch]

 \setuphead[chapter]prefix=+] % kind of automatic

 (actually, prefixes are blabla::whatever deep down in context)


Looks like I didn't make myself clear. I don't want the
label prefix to be automatic.

I want the reference to automatically add part ... (in the
text) when the current part is different from the part of
the referenced thing.

I see that the example was too verbose to be minimal
enough. Second go:


\starttext
\part{Part one}
\chapter[interest]{Chapter one}
\chapter{Chapter two}
As seen in \in chapter[interest]
\part{Part two}
\chapter{Chapter one of part two}
\chapter{Chapter two of part two}
As seen in \in chapter[interest]
\stoptext


If you compile this example, you'll see that both \in's
print the same output, but the second one is referring to
chapter 2 in part 1, and this is not clear (it seems it's
referring to chapter 1 in the same part), so it should add
, part 1 to make it clear.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Vowels with accent (teTeX - Linux)

2005-10-09 Thread Giuseppe Bilotta
Sunday, October 9, 2005 Jilani Khaldi wrote:

 \mainlanguage[italian]
 \setupbodyfont[12pt]
 \setuppapersize[A4]

\enableregime[il1] % il = iso-latin-1; change it
% based on the encoding you use in your editor

 \starttext
 perché, sarà, così, totò, più
 \stoptext

-- 
Giuseppe Oblomov Bilotta


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


[NTG-context] bib module: support \noopsort

2005-10-07 Thread Giuseppe Bilotta
Hello Taco,

would it be possible for your module to support the
\noopsort command you can find in some .bib files?
Basically, a key like

key = {\noopsort{value1}}value2

will print as value2 but be sorted under value1 (details in
the bibtex references?

For the time being I'm just putting a \let\noopsort\relax in
my document.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] bib module: support \noopsort

2005-10-07 Thread Giuseppe Bilotta
Friday, October 7, 2005 Taco Hoekwater wrote:

 Giuseppe Bilotta wrote:
 Hello Taco,
 
 would it be possible for your module to support the
 \noopsort command you can find in some .bib files?

 Sure, will do (new beta later today).

THanks.

 For the time being I'm just putting a \let\noopsort\relax in
 my document.

 That's wrong, I think. Should be \def\noopsort#1{}, yes?

Yes, of course.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Automatic next indent

2005-10-07 Thread Giuseppe Bilotta
Hello all, and Hans in particular:

Some time ago

http://www.mail-archive.com/ntg-context@ref.ntg.nl/msg01744.html

I had proposed a patch that added the auto value to
some commmon indentnext options. I would *really* this to be
taken into consideration.

Rationale: things like formulas, itemgroups and the like
(basically, everything that allows indentnext) are
displays. Displays are parts of the document that are
embedded in a paragraph but are put in display by
appropriate indenting  other tricks. Now, there are cases
in which the paragraph continues after the display, and
cases when it doesn't.

So for example


Some text in a paragraph, plus other text,
still in the same paragraph
   and a displayed thing
and a continuation of the same paragraph
with some more text and other text


would be different from


Some text in a paragraph, plus other text,
still in the same paragraph
   and a displayed thing

In a separate pragraph, we have some other text


Note that the two cases should be handled separately: in the
first case, I *don't* want any indentation nor any blank
line; in the second case, I might want either or both.

indentnext=auto would NOT put an indent in cases like this:


some paragraph
\startdisplayedmaterial
displayed stuff (formula or itemgroup or anything else)
\stopdisplayedmaterial
still same paragraph


but WOULD put an indent here


some paragraph
\startdisplayedmaterial
displayed stuff (formula or itemgroup or anything else)
\stopdisplayedmaterial

Different paragraph


Hans, can you please consider it for inclusion? The patch is
somewhat out of date, given the age, but the principle
should be obvious.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Smart \in

2005-10-07 Thread Giuseppe Bilotta
Hello all,

I have a document which is split into separate \parts. I
would like the \in command ( friends) to automatically add
the part reference when cross-referencing across parts.

Example:



\part[part:one]{Part one}

\chapter[ch:one]{Chapter one}

\chapter[ch:two]{Chapter two}
As seen in \in chapter[ch:one]

\part[part:two]{Part two}

\chater[ch:2-1]{Chapter two}

As seen in \in chapter[ch:one]


The first \in would say chapter~1, the second chapter~1,
part~1.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] \setupregister - \setupindex

2005-10-07 Thread Giuseppe Bilotta
I just noticed that \setupindex is not exactly the same as
\setupregister[index]; indeed, \setupindex does not allow
the syntax

\setupindex[form][options=values]

whereas

\setupregister[index][form][options=values]

is valid.

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] A particular form of index (register) coupling

2005-10-07 Thread Giuseppe Bilotta
Hello,

I have a register where all the entries appear once (and
only once) in a particular form (\index[def::]{entry}) but can appear any
number of times in the standard form (\index{entry}).

I would like the particular coupling to make all standard
form entries clickable and linking to the one and only
\index[def::]{entry}.

This could be of course generalized to some kind of
couplingcommand=\command#1#2 that is user-defineable ...

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] bib module: interaction (wish)

2005-10-07 Thread Giuseppe Bilotta
Hello all, and Taco in particular,

I'm a great fan of interaction, and I was wondering about
what kind of interaction the BibTeX module could support.

I'm thinking of two of them in particular. One of them is
the obvious link to list of references on click. However,
I'm also a great fan of balloons, so I was thinking of
something like a popup-on-hover showing the full reference,
thus sparing the need to go back-and-forth through the
document. (Can these things  be optimized so that the popup
is only stored once in the PDF?)

A potential problem would be with compressed citations, but
I guess that in this case making only the displayed numbers
active is the right solution.

-- 
Giuseppe Oblomov Bilotta


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


[NTG-context] Block of text with natrual width but right-aligned

2005-09-22 Thread Giuseppe Bilotta
I have a few lines that I need to push towards the right
maring. The lines should all have their natural width, and
be all left-aligned to the left of the block, but the block
itself should be right aligned. Like the following

  First line of text   |
  Second line of text  |
  One more line of text|


How do I achieve this?

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Block of text with natrual width but right-aligned

2005-09-22 Thread Giuseppe Bilotta
Thursday, September 22, 2005 Adam Lindsay wrote:

 Talking to myself...

 Adam Lindsay said this at Thu, 22 Sep 2005 11:22:18 +0100:

(I played with location= in \framedtext, but it didn't have the results
I expected.)
 (Silly mistake...)

 \defineframedtext[Giuseppe]
 [align=raggedright,width=fit,offset=0pt,
  frame=off,location=right]

 \startGiuseppe
 One line\\
 Two lines\\
 And a couple more
 \stopGiuseppe
 \input ward \par
 \startGiuseppe
 Here is\\
 another short text to demonstrate things.
 \stopGiuseppe

Thank you very much.

-- 
Giuseppe Oblomov Bilotta

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


  1   2   3   >