Re: [NTG-context] Cambria integral operator

2009-10-15 Thread Taco Hoekwater


Sebastian Sturm wrote:
 Hi all,
 
 I have been playing around a bit with the new ConTeXt Minimals and
 especially Cambria Math. I couldn't figure out, however, why the
 integral operator always comes out at about half the size of \sum or
 \prod. I couldn't find any relevant threads on the mailing list, but
 surely this is not the way it's supposed to be?

No, that is clearly not right. I will investigate and report back.

On the \widehat: it scales as far as the font allows it to. If that
is not wide enough, I guess you could send a bug report to Microsoft.

 Is there some list on the web showing what parts of math have been
 implemented, what still needs to be done (and, where someone with
 limited TeX knowledge could provide some assistance)?

No, not on the web. But there are only a few known MATH issues in the
core/mkiv that I know of:

* Latin Modern Math (and other old math font) virtual definitions are
  far from perfect (but that should not affect you, as you are using
  CambriaMath).
* There is no support for skewed (text-style, with a diagonal bar,
  like in the frac feature) fractions yet in luatex.
* The traditional TeX commands \atopwithdelims, \overwithdelims, and
  \abovewithdelims do not work properly because there is no matching
  MATH parameter at all.

The real problem though, is that we do not have massive math tests:
neither Hans nor me do any math typesetting in daily practise.

Best wishes,
Taco
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cambria integral operator

2009-10-15 Thread Taco Hoekwater


Taco Hoekwater wrote:
 
 Sebastian Sturm wrote:
 Hi all,

 I have been playing around a bit with the new ConTeXt Minimals and
 especially Cambria Math. I couldn't figure out, however, why the
 integral operator always comes out at about half the size of \sum or
 \prod. I couldn't find any relevant threads on the mailing list, but
 surely this is not the way it's supposed to be?
 
 No, that is clearly not right. I will investigate and report back.

This looks like another font bug, but it is one that maybe needs
patching in the mkiv core. The font defines DisplayOperatorMinHeight
to be 2500 units. The smallest integral that satifies that specification
has a total height of 2768 units (at 12pt fontsize, that is 16.3pt), the
smallest matching summation has a total height of 4056 units (22.9pt).

That is indeed way bigger, but the context output matches the MATH table
specification. But to prevent ugly output, it may be better to force the
DisplayOperatorMinHeight to 2800 (the next integral is 4405 units).

Hans, Aditya, WDYT?

Best wishes,
Taco


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cambria integral operator

2009-10-15 Thread Michail Vidiassov

Dear Taco,

On Thu, 15 Oct 2009, Taco Hoekwater wrote:


I have been playing around a bit with the new ConTeXt Minimals and
especially Cambria Math. I couldn't figure out, however, why the
integral operator always comes out at about half the size of \sum or
\prod.

No, that is clearly not right. I will investigate and report back.


This looks like another font bug, but it is one that maybe needs
patching in the mkiv core.
Hans, Aditya, WDYT?


While you are at it, may you take a second look at the integral limits 
placement, as it was already reported in


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


Sincerely, Michail
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Combining \sc and \em

2009-10-15 Thread Tim Wraight

Hi,

Under the latest beta (2009.10.02 13:14), it doesn't seem possible to  
access \SerifCapsSlanted by combining the \em and \sc font switches.  
The following test case demonstrates this:


---

\definefont [SlantyCaps][SerifCapsSlanted]
\starttext

{\em Italics works.} \par
{\sc Small caps works.} \par
{\em \sc But how do we combine them?} \par
{\SlantyCaps Except like this?}

\stoptext

---

A project I'm working on has certain words which always appear in  
smallcaps, and I'd like them to be italicised if the context demands  
it (no pun intended).


Greetings from London,
Tim




main.tex
Description: Binary data

 

main.pdf
Description: Adobe PDF document
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problem with \setupinterlinespace

2009-10-15 Thread luigi scarso
In this example interlines spaces look a bit strange to me
\starttext
\input knuth
\begingroup
\tfx\setupinterlinespace[reset]
\starttyping
function newCounter()
 local i = 0
 return function()
 i = i+1
 return i
end
end
c1 = newCounter()
print(c1()) -- 1
print(c1()) -- 2
c2 = newCounter()
print(c2()) -- 1
print(c1()) -- 3
print(c2()) -- 2
\stoptyping
\endgroup

\input tufte
\stoptext


Can someone confirm this ?

-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with \setupinterlinespace

2009-10-15 Thread Peter Rolf

luigi scarso schrieb:

In this example interlines spaces look a bit strange to me
\starttext
\input knuth
\begingroup
\tfx\setupinterlinespace[reset]
\starttyping
function newCounter()
 local i = 0
 return function()
 i = i+1
 return i
end
end
c1 = newCounter()
print(c1()) -- 1
print(c1()) -- 2
c2 = newCounter()
print(c2()) -- 1
print(c1()) -- 3
print(c2()) -- 2
\stoptyping
\endgroup

\input tufte
\stoptext


Can someone confirm this ?

  
yep! the third paragraph has wrong interlinespace here. but if you add a 
\par or an emtpy line after '\input knuth' things look ok here. bug or 
feature ;)


best wishes,  peter
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] obscure luatex error

2009-10-15 Thread Alan BRASLAU
In trying to compile a LARGE project (585 pages, 260 figures, 27 tables, 
indexing, bibliography, ...), I produce an obscure luatex error:

luatex: ../../../source/texk/web2c/luatexdir/tex/printing.c:266: print: 
Assertion `c  256' failed.
[329.327MTXrun | fatal error, no return code, message: luatex: execution 
interrupted

probably due to a floatblock or other buffer overflow, I suspect.  For if I 
remove about half of the chapters from the project, it will compile.

Latest minimals distribution:
ConTeXt  ver: 2009.10.02 13:14 MKIV  fmt: 2009.10.15  int: english/english
mkiv lua stats : luatex banner - this is luatex, version 
beta-0.43.0-2009081914 
I have tried both amd64 and i386, and both fail at the same point, so it is 
not a problem of (dynamic) memory allocation (there is more available on the 
first machine).

The full project compiles under mkii but systematically fails under mkiv.

Unfortunately, I cannot produce a minimal example...

Can someone suggest how I should proceed, such as any configuration file that 
can be tuned... ?

Thanks

Alan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with \setupinterlinespace

2009-10-15 Thread luigi scarso
What about this ?

\usemodule[maps]
\usemodule[visual]
\setupinteraction[state=start]
\setuplanguage[en]
\definecolumnsetspan[wide][n=2]
\def\Tfx{\tfx\setupinterlinespace[line=2.5ex]}

\starttext

\startArticle [Year=2009,
   Number=xx,
   Period=xx,
   Page=1,
   Title={foo},
   Author={Luigi Scarso}]

\input knuth

\blank

\begingroup
\Tfx
\input knuth\par
\starttyping
function newCounter()
 local i = 0
 return function()
 i = i+1
 return i
end
end
c1 = newCounter()
print(c1()) -- 1
print(c1()) -- 2
c2 = newCounter()
print(c2()) -- 1
print(c1()) -- 3
print(c2()) -- 2
\stoptyping
\input knuth\par
\endgroup

\blank

\input tufte \par
\stopArticle
\stoptext





-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] placefigure broken in mkiv?

2009-10-15 Thread Vyatcheslav Yatskovsky

Hello,

A document that was previously compiled successfully a few months ago, 
now throws an exception.


My code:
\placefigure
  [middle]
  {none}
  {\externalfigure[2009-05-26_200309s][width=0.9\textwidth]}

My result:
! Missing number, treated as zero.
to be read again
   \currentfloatattribute
\floatcaptionattribute ... \currentfloatattribute
  \fi \fi \fi
\docompletefloat ... \vbox \floatcaptionattribute
  
{\doifelsemainfloatbody \c...

argument ...at {figure}{}{middle}{none}\nextbox
  \else 
\docompletefloat {fi...

\thirdofthreearguments #1#2#3-#3

\xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi }
  \else 
\docompletefloat {#1...

...
l.22 ...[2009-05-26_200309s][width=0.9\textwidth]}

?

What it could mean?

Regards,
Vyatcheslav

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] obscure luatex error

2009-10-15 Thread Matthijs Kooijman
Hi,

 luatex: ../../../source/texk/web2c/luatexdir/tex/printing.c:266: print: 
 Assertion `c  256' failed.
 [329.327MTXrun | fatal error, no return code, message: luatex: execution 
 interrupted

A quick glance at the code, shows it's in the following part:

  /*
  An entire string is output by calling |print|. Note that if we are outputting
  the single standard ASCII character \.c, we could call |print(c)|, since
  |c=99| is the number of a single-character string, as explained above. But
  |print_char(c)| is quicker, so \TeX\ goes directly to the |print_char|
  routine when it knows that this is safe. (The present implementation
  assumes that it is always safe to print a visible ASCII character.)
  @^system dependencies@

  The first 256 entries above the 17th unicode plane are used for a
  special trick: when \TeX\ has to print items in that range, it will
  instead print the character that results from substracting 0x11
  from that value. This allows byte-oriented output to things like
  \.{\\specials} and \.{\\pdfliterals}. Todo: Perhaps it would be useful
  to do the same substraction while typesetting.
  */

  void print(integer s)
  {   /* prints string |s| */
  ...
  } else if (s = 0x11) {
  int c = s - 0x11;
  assert(c  256);
  print_char(c);
  } else {
  ...
  }

It seems the second comment block talks about the code in which the error
occurs. It also seems that this is either caused by some very high unicode
character that's printed, or some invalid (uninitialized?) value is passed to
print().

Do you think you could compile luatex with CFLAGS=-g, and run it in gdb to get
a backtrace? That might help to see where this comes from...

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cambria integral operator

2009-10-15 Thread Taco Hoekwater


Michail Vidiassov wrote:
 
 While you are at it, may you take a second look at the integral limits
 placement, as it was already reported in

I did a trick in commit #3066 just now: the C function var_delimiter()
(which is used for large operators as well as actual delimiters) now
ignores italic corrections for 'new math' fonts.

It certainly helps, the placement is now much better.

Best wishes,
Taco




___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] obscure luatex error

2009-10-15 Thread Taco Hoekwater


Matthijs Kooijman wrote:
 
 It seems the second comment block talks about the code in which the error
 occurs. It also seems that this is either caused by some very high unicode
 character that's printed, or some invalid (uninitialized?) value is passed to
 print().
 
 Do you think you could compile luatex with CFLAGS=-g, and run it in gdb to get
 a backtrace? That might help to see where this comes from...

Like Matthijs says, a backtrace is really needed to pinpoint this.
If you can not figure out how to do that, then perhaps sending me
(personally) the complete input in an archive is an option?

Best wishes,
Taco
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] obscure luatex error

2009-10-15 Thread luigi scarso
On Thu, Oct 15, 2009 at 4:09 PM, Matthijs Kooijman matth...@stdin.nl wrote:
 Hi,

 luatex: ../../../source/texk/web2c/luatexdir/tex/printing.c:266: print:
 Assertion `c  256' failed.
 [329.327MTXrun | fatal error, no return code, message: luatex: execution
 interrupted

 A quick glance at the code, shows it's in the following part:

  /*
  An entire string is output by calling |print|. Note that if we are outputting
  the single standard ASCII character \.c, we could call |print(c)|, since
  |c=99| is the number of a single-character string, as explained above. But
  |print_char(c)| is quicker, so \TeX\ goes directly to the |print_char|
  routine when it knows that this is safe. (The present implementation
  assumes that it is always safe to print a visible ASCII character.)
 �...@^system dependencies@

  The first 256 entries above the 17th unicode plane are used for a
  special trick: when \TeX\ has to print items in that range, it will
  instead print the character that results from substracting 0x11
  from that value. This allows byte-oriented output to things like
  \.{\\specials} and \.{\\pdfliterals}. Todo: Perhaps it would be useful
  to do the same substraction while typesetting.
  */

  void print(integer s)
  {                               /* prints string |s| */
  ...
              } else if (s = 0x11) {
                  int c = s - 0x11;
                  assert(c  256);
                  print_char(c);
              } else {
  ...
  }

 It seems the second comment block talks about the code in which the error
 occurs. It also seems that this is either caused by some very high unicode
 character that's printed, or some invalid (uninitialized?) value is passed to
 print().

 Do you think you could compile luatex with CFLAGS=-g, and run it in gdb to get
 a backtrace? That might help to see where this comes from...

changing
STRIP_LUATEX=TRUE
in
STRIP_LUATEX=FALSE
in build.sh isn't enough ?

-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] obscure luatex error

2009-10-15 Thread Alan BRASLAU
On Thursday 15 October 2009 16:36:01 luigi scarso wrote:
 On Thu, Oct 15, 2009 at 4:32 PM, Matthijs Kooijman matth...@stdin.nl 
wrote:
  Hi luigi,
 
   Do you think you could compile luatex with CFLAGS=-g, and run it in
   gdb to get a backtrace? That might help to see where this comes
   from...
 
  changing
  STRIP_LUATEX=TRUE
  in
  STRIP_LUATEX=FALSE
  in build.sh isn't enough ?
 
  I don't know the luatex build system, I just posted general instructions
  :-)
 
 pretty simple, on linux:
 download source,uncompress and
 $./build.sh
 

Not so easy: I have never compiled luatex before!

$ svn checkout http://foundry.supelec.fr/svn/luatex
(downloads 3.9G, including all beta versions in tag/)

$ cd trunk
$ ./build.sh --nostrip
...
libtool: link: gcc  lib/lib.a 
/home/local/src/luatex/trunk/build/texk/kpathsea/.libs/libkpathsea.a -lm
lib/lib.a(main.o): In function `main':
/home/local/src/luatex/trunk/build/texk/web2c/lib/../../../../source/texk/web2c/lib/main.c:26:
 
undefined reference to `mainbody'
collect2: ld returned 1 exit status
make[5]: *** [tangleboot] Error 1
make[5]: Leaving directory `/home/local/src/luatex/trunk/build/texk/web2c'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/local/src/luatex/trunk/build/texk/web2c'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/local/src/luatex/trunk/build/texk/web2c'
make[2]: *** [subtexk] Error 1
make[2]: Leaving directory `/home/local/src/luatex/trunk/build/texk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/local/src/luatex/trunk/build/texk'
make: *** [all-recursive] Error 1
luatex binary not stripped
ls: cannot access build/texk/web2c/luatex: No such file or directory
$

So I do not yet have a compiled, unstripped version of luatex.

Alan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] obscure luatex error

2009-10-15 Thread luigi scarso
On Thu, Oct 15, 2009 at 5:08 PM, Alan BRASLAU alan.bras...@cea.fr wrote:
 On Thursday 15 October 2009 16:36:01 luigi scarso wrote:
 On Thu, Oct 15, 2009 at 4:32 PM, Matthijs Kooijman matth...@stdin.nl
 wrote:
  Hi luigi,
 
   Do you think you could compile luatex with CFLAGS=-g, and run it in
   gdb to get a backtrace? That might help to see where this comes
   from...
 
  changing
  STRIP_LUATEX=TRUE
  in
  STRIP_LUATEX=FALSE
  in build.sh isn't enough ?
 
  I don't know the luatex build system, I just posted general instructions
  :-)

 pretty simple, on linux:
 download source,uncompress and
 $./build.sh


 Not so easy: I have never compiled luatex before!
welcome!



 $ svn checkout http://foundry.supelec.fr/svn/luatex
 (downloads 3.9G, including all beta versions in tag/)

 $ cd trunk
 $ ./build.sh --nostrip
 ...
 libtool: link: gcc  lib/lib.a
 /home/local/src/luatex/trunk/build/texk/kpathsea/.libs/libkpathsea.a -lm
 lib/lib.a(main.o): In function `main':
 /home/local/src/luatex/trunk/build/texk/web2c/lib/../../../../source/texk/web2c/lib/main.c:26:
 undefined reference to `mainbody'
 collect2: ld returned 1 exit status
 make[5]: *** [tangleboot] Error 1
 make[5]: Leaving directory `/home/local/src/luatex/trunk/build/texk/web2c'
 make[4]: *** [all-recursive] Error 1
 make[4]: Leaving directory `/home/local/src/luatex/trunk/build/texk/web2c'
 make[3]: *** [all] Error 2
 make[3]: Leaving directory `/home/local/src/luatex/trunk/build/texk/web2c'
 make[2]: *** [subtexk] Error 1
 make[2]: Leaving directory `/home/local/src/luatex/trunk/build/texk'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/local/src/luatex/trunk/build/texk'
 make: *** [all-recursive] Error 1
 luatex binary not stripped
 ls: cannot access build/texk/web2c/luatex: No such file or directory
 $
Try add
export CONFIG_SHELL='/bin/bash'

in build.sh around line 14

ie
from this
# try to find gnu make; we may need it
MAKE=make;

to this

# try to find gnu make; we may need it
export CONFIG_SHELL='/bin/bash'
MAKE=make;

-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure broken in mkiv?

2009-10-15 Thread Wolfgang Schuster


Am 15.10.2009 um 16:04 schrieb Vyatcheslav Yatskovsky:


Hello,

A document that was previously compiled successfully a few months  
ago, now throws an exception.


My code:
\placefigure
 [middle]
 {none}
 {\externalfigure[2009-05-26_200309s][width=0.9\textwidth]}


\placefigure[middle,none]{}{...}

the official way in mkiv (please add this to the new mkii/mkiv  
difference page on the wiki)


Wolfgang

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placefigure broken in mkiv?

2009-10-15 Thread Alan BRASLAU
On Thursday 15 October 2009 17:29:12 Wolfgang Schuster wrote:
 Am 15.10.2009 um 16:04 schrieb Vyatcheslav Yatskovsky:
  Hello,
 
  A document that was previously compiled successfully a few months
  ago, now throws an exception.
 
  My code:
  \placefigure
   [middle]
   {none}
   {\externalfigure[2009-05-26_200309s][width=0.9\textwidth]}
 
 \placefigure[middle,none]{}{...}
 
 the official way in mkiv (please add this to the new mkii/mkiv
 difference page on the wiki)

This indeed is a cleaner syntax.


However, on the subject of \placefigure,
there appears to be a small bug in mkiv.
(Untested) minimal example:

\usemodule[bib]
...
\starttext

\placefigure[right,none]{}{\externalfigure[file][width=.3\textwidth]

Text...\cite{Me2009}
\blank[2*line]

\placepublications[criterium=all]

\stoptext

The publications list is typeset full \textwidth and overflows the figure.

Alan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] interline spacing, me too

2009-10-15 Thread Andreas Harder

Hi,

please look at the attachment. I want different interline spacing for  
big, normal and small font sizes. What is the best approach?


I tried \setupinterlinespace[big] (works only after \starttext!) or  
\setupinterlinespace[line=3.5ex] (works also before \starttext) but  
this changes, as intended, interline spacing as a whole.


There is also \setupbodyfontenvironment (Problem with \chapter{…} or  
did I something wrong?). Now I've to use \switchtobodyfont[…] instead  
of \tfa and so on. Is there a trick?




test-interlinespacing.pdf
Description: Adobe PDF document


test-interlinespacing.tex
Description: Binary data



Thank you in advance

Andreas___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interline spacing, me too

2009-10-15 Thread Peter Rolf

Andreas Harder schrieb:

Hi,

please look at the attachment. I want different interline spacing for 
big, normal and small font sizes. What is the best approach?


I tried \setupinterlinespace[big] (works only after \starttext!) or 
\setupinterlinespace[line=3.5ex] (works also before \starttext) but 
this changes, as intended, interline spacing as a whole.


There is also \setupbodyfontenvironment (Problem with \chapter{…} or 
did I something wrong?). Now I've to use \switchtobodyfont[…] instead 
of \tfa and so on. Is there a trick?



sorry, no direct answer to your questions. but if you add a \showstruts 
to your document (after \starttext), you will see two big struts on both 
sides of the chapter number. looks like these struts (~80pt) cause the 
trouble here.


hth,  peter


Thank you in advance

Andreas


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
  


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interline spacing, me too

2009-10-15 Thread Taco Hoekwater

Andreas Harder wrote:


There is also \setupbodyfontenvironment (Problem with \chapter{…} or did 
I something wrong?). Now I've to use \switchtobodyfont[…] instead of 
\tfa and so on. 


Why not do that? If you are fiddling with the interline space, it is
IMO better to switch the whole bodyfont, just in case.

Best wishes,
Taco
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interline spacing, me too

2009-10-15 Thread Taco Hoekwater

Taco Hoekwater wrote:

Andreas Harder wrote:


There is also \setupbodyfontenvironment (Problem with \chapter{…} or 
did I something wrong?). Now I've to use \switchtobodyfont[…] instead 
of \tfa and so on. 


Why not do that? If you are fiddling with the interline space, it is
IMO better to switch the whole bodyfont, just in case.


Oh, I see. Somehow the interlinespace setting from the typescript
doesn't come through. You could do this:

\setuphead
  [chapter]
  [style={\switchtobodyfont[18pt]\setupinterlinespace[line=10ex]}]

but it is weird that it does not work out of the box.

Best wishes,
Taco

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___