[NTG-context] math too big when in small contexts

2008-01-06 Thread Jesse Alama
Consider an example like the following:

  \definestartstop
[extract]
[style=small]
  \starttext
  \startextract
  As you can see, the $M$ Math is too big.
  \stopextract
  \stoptext

When typeset, the math M is bigger than the capital M in Math following
it.  What might be going on?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] math too big when in small contexts

2008-01-06 Thread Wolfgang Schuster
On Sun, 06 Jan 2008 00:05:00 -0800
Jesse Alama [EMAIL PROTECTED] wrote:

   \definestartstop
 [extract]
 [style=small]

[style=smallbodyfont]

   \starttext
   \startextract
   As you can see, the $M$ Math is too big.
   \stopextract
   \stoptext

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


Re: [NTG-context] last version of context 2007

2008-01-06 Thread Wolfgang Schuster
On Wed, 02 Jan 2008 11:44:56 +0100
Hans Hagen [EMAIL PROTECTED] wrote:

 Hi,
 
 At 31/12/2007 we uploaded an end-of-year release ..
 
   http://wiki.contextgarden.net/Context_2007.12.31
 
 
 we could not update the wiki in time, so here is a delayed
 
   happy new year

do you want to show us your new year's card for 2008.

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


Re: [NTG-context] symbols in luatex?

2008-01-06 Thread Wolfgang Schuster
On Sat, 5 Jan 2008 10:55:23 +0100
Mojca Miklavec [EMAIL PROTECTED] wrote:

 On Jan 5, 2008 10:03 AM, Wolfgang Schuster wrote:
  On Fri, 04 Jan 2008 21:40:55 +0100
  Hans Hagen wrote:
 
   Thomas A. Schmitz wrote:
  
{\bgroup\definedfont[name:TeXGyreHeros-Regular]\char2329\egroup}
  
   ah so you know the number ...
  
   \getglyph{name:TeXGyreHeros-Regular}{\char2329}
  
   should also work then
 
  Is it also possible to select glyphs with the Adobe names, I saw you
  have a complete list char-def.lua and it would be nice to write
  \getnamedglyph{name:TeXGyreHeros-Regular}{angleleft} with the same
  result as above.
 
 One thing that you can try is to add
 contextname='angleleft'
 to the corresponding entry in char-def.lua and then use
 \getglyph{name:TeXGyreHeros-Regular}{\angleleft}
 improvements for char-def.lua are welcome anyway.

Do you really a contextname for every adobename in the list?

I would be enough for me access the glyphs by name, I don't a macro for
every character but the list for adobenames should be filled with the
information from glyphlist.txt.

http://www.adobe.com/devnet/opentype/archives/glyph.html

 Hans, should contextnames.txt be deleted now? So that only one list
 will be kept up to date.
 
 XeTeX offers \XeTeXglyphdindex{angleleft} (in LuaTeX you can achieve
 the same with some coding), but I agree that some high-level macro to
 access glyphs by name might be handy.

I know XeTeX offers this method but method for XeTeX and LuaTeX would
be better, it could be used as replacement for \symbol a many
cases, untill you have the requestet glyph in your font but a fallback
mode would be nice in this situation.

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


Re: [NTG-context] symbols in luatex?

2008-01-06 Thread Mojca Miklavec
On Jan 6, 2008 10:15 AM, Wolfgang Schuster wrote:
 On Sat, 5 Jan 2008 10:55:23 +0100

  One thing that you can try is to add
  contextname='angleleft'
  to the corresponding entry in char-def.lua and then use
  \getglyph{name:TeXGyreHeros-Regular}{\angleleft}
  improvements for char-def.lua are welcome anyway.

 Do you really a contextname for every adobename in the list?

Of course not. But some addition still do make sense (and if you have
some on your wishlist, you can submit patches).

 I would be enough for me access the glyphs by name, I don't a macro for
 every character but the list for adobenames should be filled with the
 information from glyphlist.txt.

 http://www.adobe.com/devnet/opentype/archives/glyph.html

It is (although I could imagine that it might have been filled with an
older version of that list, but there are not so many differences
anyway).

  Hans, should contextnames.txt be deleted now? So that only one list
  will be kept up to date.
 
  XeTeX offers \XeTeXglyphdindex{angleleft} (in LuaTeX you can achieve
  the same with some coding), but I agree that some high-level macro to
  access glyphs by name might be handy.

 I know XeTeX offers this method but method for XeTeX and LuaTeX would
 be better, it could be used as replacement for \symbol a many
 cases, untill you have the requestet glyph in your font but a fallback
 mode would be nice in this situation.

Sure. I have agreed that some macro to get a glyph by name would be
handy (and could be supported in both engines easily).

Mojca
___
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] symbols in luatex?

2008-01-06 Thread Wolfgang Schuster
On Sun, 6 Jan 2008 11:32:51 +0100
Mojca Miklavec [EMAIL PROTECTED] wrote:

 On Jan 6, 2008 10:15 AM, Wolfgang Schuster wrote:
  On Sat, 5 Jan 2008 10:55:23 +0100
 
   One thing that you can try is to add
   contextname='angleleft'
   to the corresponding entry in char-def.lua and then use
   \getglyph{name:TeXGyreHeros-Regular}{\angleleft}
   improvements for char-def.lua are welcome anyway.
 
  Do you really a contextname for every adobename in the list?
 
 Of course not. But some addition still do make sense (and if you have
 some on your wishlist, you can submit patches).
 
  I would be enough for me access the glyphs by name, I don't a macro for
  every character but the list for adobenames should be filled with the
  information from glyphlist.txt.
 
  http://www.adobe.com/devnet/opentype/archives/glyph.html
 
 It is (although I could imagine that it might have been filled with an
 older version of that list, but there are not so many differences
 anyway).

The only list I found is from 2002, this mean Hans list is from ???

   Hans, should contextnames.txt be deleted now? So that only one list
   will be kept up to date.

What was this list used for?

   XeTeX offers \XeTeXglyphdindex{angleleft} (in LuaTeX you can achieve
   the same with some coding), but I agree that some high-level macro to
   access glyphs by name might be handy.
 
  I know XeTeX offers this method but method for XeTeX and LuaTeX would
  be better, it could be used as replacement for \symbol a many
  cases, untill you have the requestet glyph in your font but a fallback
  mode would be nice in this situation.
 
 Sure. I have agreed that some macro to get a glyph by name would be
 handy (and could be supported in both engines easily).
 
 Mojca

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


Re: [NTG-context] symbols in luatex?

2008-01-06 Thread Mojca Miklavec
On Jan 6, 2008 12:06 PM, Wolfgang Schuster wrote:
 On Sun, 6 Jan 2008 11:32:51 +0100 Mojca Miklavec wrote:

   I would be enough for me access the glyphs by name, I don't a macro for
   every character but the list for adobenames should be filled with the
   information from glyphlist.txt.
  
   http://www.adobe.com/devnet/opentype/archives/glyph.html
 
  It is (although I could imagine that it might have been filled with an
  older version of that list, but there are not to many differences
  anyway).

 The only list I found is from 2002, this mean Hans list is from ???

There are two different lists (for new and for old fonts) at
different versions, one of the latests being.

http://www.adobe.com/devnet/opentype/archives/aglfn.txt
# Name:  Adobe Glyph List For New Fonts
# Table version: 1.6
# Date:  30 Januaury 2006

I have no idea what exactly is in char-def.lua (perhaps the same as in
contextnames.txt, which has been generated from the old list).

Hans, should contextnames.txt be deleted now? So that only one list
will be kept up to date.

 What was this list used for?

It has been created in order to clean up the encoding mess a bit
(iso-8895-X, cp125X, viscii regimes - most regi-XXX files are
autogenerated from that list), but now everthing from that list is in
char-def.lua.

(And char-def.lua is also used for autogenerating enco-utf, used in
XeTeX initialisation.)

Mojca
___
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] [Dev-luatex] luatex and context for Debian

2008-01-06 Thread Joel C. Salomon
On Dec 23, 2007 4:57 PM, Norbert Preining [EMAIL PROTECTED] wrote:
 I have updated luatex and context so currently I can even run MkIV
 documents

Running Ubuntu Hardy alpha 2, reloading package lists reports:

W: GPG error: http://people.debian.org context/ Release: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY D2BF4AA309C5B094

--Joel
___
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] [Dev-luatex] luatex and context for Debian

2008-01-06 Thread Norbert Preining
On So, 06 Jan 2008, Joel C. Salomon wrote:
 Running Ubuntu Hardy alpha 2, reloading package lists reports:
 
 W: GPG error: http://people.debian.org context/ Release: The following
 signatures couldn't be verified because the public key is not
 available: NO_PUBKEY D2BF4AA309C5B094

Not surprising. Either get my key from the Debian Developers key ring or
from any key server. Fingerprints are in all my emails and on my web
page there are fingerprint and the key.

man apt-key ...

Something like
  wget -O - http://www.logic.at/people/preining/dsa.asc | apt-get add -
(as root) could help. (Without any guarantee)

Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Vienna University of Technology
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
QUENBY (n.)
A stubborn spot on a window which you spend twenty minutes trying to
clean off before discovering it's on the other side of the glass.
--- Douglas Adams, The Meaning of Liff
___
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] Module documentation under MarkIV

2008-01-06 Thread Wolfgang Schuster
Hi,

the documentation module x-set-11 did currently not work work under
MarkIV, the entries from the xml-file are written as normal text in
the output and is not interpreted in xml mode.

\usemodule[set-11]\loadsetups

\starttext
\setup{setuplayout}
\stoptext

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


Re: [NTG-context] last version of context 2007

2008-01-06 Thread Johannes Graumann
Are there any advances regarding reading zipped xml input via luatex?

Thanks, Joh

Hans Hagen wrote:

 Hi,
 
 At 31/12/2007 we uploaded an end-of-year release ..
 
 http://wiki.contextgarden.net/Context_2007.12.31
 
 
 we could not update the wiki in time, so here is a delayed
 
 happy new year
 
 
 
 Taco  Hans
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

___
 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

___


___
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] last version of context 2007

2008-01-06 Thread Hans Hagen
Wolfgang Schuster wrote:

 do you want to show us your new year's card for 2008.

i'll post it next week,

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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] symbols in luatex?

2008-01-06 Thread Hans Hagen
Wolfgang Schuster wrote:

 Do you really a contextname for every adobename in the list?

no, in mkiv we can have use adobe names as well

 I would be enough for me access the glyphs by name, I don't a macro for
 every character but the list for adobenames should be filled with the
 information from glyphlist.txt.
 
 http://www.adobe.com/devnet/opentype/archives/glyph.html

taht's what char-def is for

 Hans, should contextnames.txt be deleted now? So that only one list
 will be kept up to date.

well, we can keep it for a while for sentimental reasons

 XeTeX offers \XeTeXglyphdindex{angleleft} (in LuaTeX you can achieve
 the same with some coding), but I agree that some high-level macro to
 access glyphs by name might be handy.
 
 I know XeTeX offers this method but method for XeTeX and LuaTeX would
 be better, it could be used as replacement for \symbol a many
 cases, untill you have the requestet glyph in your font but a fallback
 mode would be nice in this situation.

maybe a big fallback virtual font covering all of unicode ...

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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] last version of context 2007

2008-01-06 Thread Hans Hagen
Johannes Graumann wrote:
 Are there any advances regarding reading zipped xml input via luatex?

no, first i need to cook up  a proper xml loader

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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] is it possible to produce PDF with version 1.3

2008-01-06 Thread Yvon Henel
hello all

the pdf I've produced declares to be PDF v1.5 which seems to be unreadable if 
the acrobat version is not 8
Is it possible to demand an older version of PDF for the result of a 
compilation with texexec or does it depend on the ConTeXt features used?

As always, any hint would be greatly appreciated.

-- 
Yvon Henel


signature.asc
Description: This is a digitally signed message part.
___
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] chapter title on a single empty page with background

2008-01-06 Thread Mojca Miklavec
Hello,

for some reason I have always been using standardmakeup for separating
chapters in slides (I don't know if that's a good idea or not), but
this fails:

\setupcolors
[state=start]
\setuphead
[chapter]
[page=yes,
 number=no,
 command=\mychaptercommand]
\setuphead
[section]
[page=yes,
 number=no]
\def\mychaptercommand#1#2{%
\bgroup
\startstandardmakeup
\setupbackgrounds[page][background=color,backgroundcolor=blue] % 
doesn't work
\switchtobodyfont[30pt]{#2}
\stopstandardmakeup
\egroup}

\starttext
\chapter{Chapter}

\section{Section} % starts on the first page
\input tufte
\stoptext

I have now used

\def\mychapter#1#2{%
% the only way to make background color work
\page\bgroup
\setupbackgrounds[page][background=color,backgroundcolor=blue]
\startstandardmakeup
\switchtobodyfont[30pt]{#1: #2}
\stopstandardmakeup
\egroup}

as a workaround, but I wonder: is my first attempt something that's
simply forbidden to use or did I use it in a wrong way?

Thanks,
Mojca
___
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] Module documentation under MarkIV

2008-01-06 Thread Hans Hagen
Wolfgang Schuster wrote:
 Hi,
 
 the documentation module x-set-11 did currently not work work under
 MarkIV, the entries from the xml-file are written as normal text in
 the output and is not interpreted in xml mode.
 
 \usemodule[set-11]\loadsetups
 
 \starttext
 \setup{setuplayout}
 \stoptext

\usemodule[set-11]
\loadsetups[cont-en.xml]

\starttext
 \setup[setupframed]
\stoptext

there 's a buget in the xml serializer (in mkiv the xml file is loaded 
in the new structure, but entries are flushes and processed the mkii 
way; kind of messy, so some day i'll rewrite the whole module in mkiv; 
at least it's way faster now in mkiv than in mkii

(i can send you a patch off line)

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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] chapter title on a single empty page with background

2008-01-06 Thread Hans Hagen
Mojca Miklavec wrote:
 Hello,
 
 for some reason I have always been using standardmakeup for separating
 chapters in slides (I don't know if that's a good idea or not), but
 this fails:
 
 \setupcolors
   [state=start]
 \setuphead
   [chapter]
   [page=yes,
number=no,
command=\mychaptercommand]
 \setuphead
   [section]
   [page=yes,
number=no]
 \def\mychaptercommand#1#2{%
   \bgroup
   \startstandardmakeup
   \setupbackgrounds[page][background=color,backgroundcolor=blue] % 
 doesn't work
   \switchtobodyfont[30pt]{#2}
   \stopstandardmakeup
   \egroup}
 
 \starttext
 \chapter{Chapter}
 
 \section{Section} % starts on the first page
 \input tufte
 \stoptext
 
 I have now used
 
 \def\mychapter#1#2{%
 % the only way to make background color work
 \page\bgroup
 \setupbackgrounds[page][background=color,backgroundcolor=blue]
 \startstandardmakeup
 \switchtobodyfont[30pt]{#1: #2}
 \stopstandardmakeup
 \egroup}
 
 as a workaround, but I wonder: is my first attempt something that's
 simply forbidden to use or did I use it in a wrong way?

just keep in mind that makeups are just vboxes, and that the chapter 
commands does quite some things,

page=,before=\startstandardmakeup,after=\stopstandardmakeup

may be a safer way

-- 

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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] page=yes often ignored

2008-01-06 Thread Mojca Miklavec
Hello,

I often have problems with page breaks in ConTeXt (section titles are
often placed at the bottom of the page, but changing anything there
might lead to strange side-effects), but perhaps this specific problem
is solvable somehow:

\setuphead
[section]
[page=yes]
\setuphead
[subsection]
[page=yes]

\starttext

\section{a}
\input tufte

% I would expect a page break here without having to say \page
\subsection{b}
\input tufte

\stoptext

Thanks a lot,
Mojca
___
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] chapter title on a single empty page with background

2008-01-06 Thread Mojca Miklavec
On Jan 6, 2008 10:52 PM, Hans Hagen wrote:

 Mojca Miklavec wrote:
  Hello,
 
  for some reason I have always been using standardmakeup for separating
  chapters in slides (I don't know if that's a good idea or not), but
  this fails:
 
  \setupcolors
[state=start]
  \setuphead
[chapter]
[page=yes,
 number=no,
 command=\mychaptercommand]
  \setuphead
[section]
[page=yes,
 number=no]
  \def\mychaptercommand#1#2{%
\bgroup
\startstandardmakeup
\setupbackgrounds[page][background=color,backgroundcolor=blue] % 
  doesn't work
\switchtobodyfont[30pt]{#2}
\stopstandardmakeup
\egroup}
 
  \starttext
  \chapter{Chapter}
 
  \section{Section} % starts on the first page
  \input tufte
  \stoptext
 
  I have now used
 
  \def\mychapter#1#2{%
  % the only way to make background color work
  \page\bgroup
  \setupbackgrounds[page][background=color,backgroundcolor=blue]
  \startstandardmakeup
  \switchtobodyfont[30pt]{#1: #2}
  \stopstandardmakeup
  \egroup}
 
  as a workaround, but I wonder: is my first attempt something that's
  simply forbidden to use or did I use it in a wrong way?

 just keep in mind that makeups are just vboxes, and that the chapter
 commands does quite some things,

 page=,before=\startstandardmakeup,after=\stopstandardmakeup

 may be a safer way

Great, that works nice. Thanks a lot :)

Mojca
___
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] page=yes often ignored

2008-01-06 Thread Mojca Miklavec
On Jan 6, 2008 10:50 PM, Mojca Miklavec wrote:
 Hello,

 I often have problems with page breaks in ConTeXt (section titles are
 often placed at the bottom of the page, but changing anything there
 might lead to strange side-effects), but perhaps this specific problem
 is solvable somehow:

 \setuphead
 [section]
 [page=yes]
 \setuphead
 [subsection]
 [page=yes]

 \starttext

 \section{a}
 \input tufte

 % I would expect a page break here without having to say \page
 \subsection{b}
 \input tufte

 \stoptext

Hmmm ... Hans, you have answered two of my questions in the same sentence :)

I have solved this by using
   before=\page
instead of
   page=yes

Thanks again for the magic answers :),

Mojca
___
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] weird (italic) math braces in antt

2008-01-06 Thread Mojca Miklavec
Hello,

I don't understand why I get italic braces in the following example.
The font itself seems to be OK (and if I recall correctly, this has
already worked OK in the past).

\usetypescript[antykwa-torunska][ec]

\starttext
$\{a\}$
\showfont[lmex10]

\setupbodyfont[antykwa,16pt]
$\{a\}[]$
\showfont[ex-anttr]
\stoptext

Thanks a lot,
Mojca
___
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
___