Re: [NTG-context] Problem with chem module

2011-06-18 Thread Kip Warner
On Sat, 2011-06-18 at 11:32 +0200, Hans Hagen wrote:
> minimal complete file needed as we need to see what is your font setup

Hey Hans,

The line containing the problematic chemical line is this one:
\chemical{CO_2,PLUS,H_2,PLUS,GIVES,PLUS,O_2,PLUS,CO}

The error is:
! Math error: parameter \Umathlimit_below_vgap\textstyle is not set.

My environment follows:
% The environment file is used to setup the typesetting that relate to 
%  any product, but at present, just the crew handbook...

\startenvironment Environment

\preloadtypescripts

\usemodule[units,chemic]

% Setup PDF metadata...
\setupinteraction
  [state=start,
   color=red,
   title=Handbook,
   subtitle=Bazaar revision \cldcontext{os.resultof"bzr revno"}]

% Show the PDF bookmarks and expand to the chapter and section level...
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteractionscreen[option=bookmark]

\setupbackgrounds
   [rightpage]
   [background=]

% Set compression level, default is 3, so set to maximum...
\setupbackend
  [level=9]

\setupsystem
  [\c!random=\v!big]

\setuplayout
  [\c!location=\v!middle,
   \c!style=\ss,
   \c!backspace=2.5cm,
   \c!topspace=1.5cm,
   \c!width=16cm,
   \c!margindistance=.25cm,
   \c!margin=2.5cm,
   \c!height=\v!middle]

% re-defined because the default rscale=1.075 for modern doesn't 
% look right

\starttypescript [palatino]
\definetypeface [palatino] [rm] [serif] [palatino] [default]
\definetypeface [palatino] [ss] [sans]  [modern]   [default]
\definetypeface [palatino] [tt] [mono]  [modern]   [default]
\definetypeface [palatino] [mm] [math]  [palatino] [default]
\stoptypescript

\usetypescript[palatino][ec]

\setupbodyfont[palatino,11pt]

\definefontsynonym[chapternumberfont][RegularBold]
\definefontsynonym[chaptertextfont]  [RegularBold]

\definebodyfont[11pt][rm][bfe=RegularBold at 30pt]
\definebodyfont[11pt][rm][bft=RegularBold at 30pt]


\definelayout
  [fullpage]
  [\c!backspace=0pt,
   \c!topspace=0pt,
   \c!width=\v!middle,
   \c!height=\v!middle,
   \c!header=0pt,
   \c!footer=0pt]

\setuppagenumbering
  [\c!alternative=\v!doublesided]

\def\startchapter#1%
{\chapter[#1]{#1}\index{#1}\bookmark{#1}}

\def\startsection#1%
{\section[#1]{#1}\index{#1}\bookmark{#1}}

\def\startsubsection#1%
{\subsection[#1]{#1}\index{#1}\bookmark{#1}}

\def\startsubsubsection#1%
{\subsubsection[#1]{#1}\index{#1}\bookmark{#1}}

\def
\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}

   

\def\ahref#1{\color[linkcolor]{\ttx
\href{#1}{<#1>}}}   
   

\def\fullahref#1{\color[linkcolor]{\ttx
\href{#1}{#1}}} 


\def\startexample
  {\blank
   \begingroup}

\def\stopexample
  {\endgroup
   \blank}

\def\startreality
  {\blank
   \page[\v!preference]
   \begingroup}

\def\stopreality
  {\relax
   \endgroup
   \blank}

\defineframedtext
  [MiniFile]
  [\c!width=25em,
   \c!offset=0.25ex,
   \c!bodyfont=7pt,
   \c!background=\v!color,
   \c!backgroundcolor=GrayColor,
   \c!backgroundoffset=.25ex,
   \c!frame=\v!off,
   \c!before=,
   \c!after=]

% Number formulae etc. using the chapter number...
\setupnumbering
[way=bychapter]

\setuppagenumbering
  [\c!location=]

\setuptolerance
  [\v!verytolerant,\v!stretch]

\setupblank
  [\v!medium]

\setupwhitespace
  [\v!medium]

\setuptyping
  [\c!blank=\v!medium]

\setupheadertexts
  [\v!margin]
  [][\hfill\pagenumber\hfill]

\setupfootertexts
  [\v!margin]
  [][{\hfill\doifnotmode{*\v!frontpart}{\getmarking[\v!chapter\v!
number]}\hfill}]

\setupheadertexts
  [\v!text]
  [][{\hfill\getmarking[\v!chapter]\hfill}]

\setupfootertexts
  [\v!text]
  [][{\hfill\getmarking[\v!section]\hfill}]

\setupbodyfontenvironment
  [default]
  [em=italic]

\setupsectionblock[\v!frontpart] [\c!page=\v!yes]
\setupsectionblock[\v!bodypart]  [\c!page=\v!yes]
\setupsectionblock[\v!appendix]  [\c!page=\v!yes]
\setupsectionblock[\v!frontpart] [\c!before=,\c!after=]

\setuphead
  [\v!chapter]
  [\c!command=\PlaceSection,
   \c!page=\v!yes,
   \c!before=,
   \c!header=\v!nomarking,
   \c!style=\bfd]

\setuphead
  [\v!title]
  [\c!command=\PlaceSection,
   \c!page=\v!right,
   \c!before=,
   \c!header=\v!nomarking,
   \c!style=\bfd]

\setuphead
  [\v!section]
  [\c!command=\PlaceSection,
   \c!inbetween=,
   \c!style=\bfb]

\setuphead
  [\v!subsection]
  [\c!command=\PlaceSection,
   \c!before=\blank,
   \c!style=\bfa]

\setuphead
  [\v!subsubsection]
  [\c!command=\PlaceSection,
   \c!before=\blank,
   \c!style=\bsa]

\def\PlaceSection#1#2%
  {\goodbreak
   \vbox
 {\localheadsetup
  \begstrut
  \inleftmargin{\hbox to \leftmarginwidth{\hss#1\hss}}%
  #2}}

\setupcaptions[width=14cm,align=right]


\setMPtext{text}{some test t

Re: [NTG-context] Problem with chem module

2011-06-18 Thread Hans Hagen

On 18-6-2011 7:29, Kip Warner wrote:

Greetings,

I am using ConTeXt head and I am having some issues with the chem
module.

I get the following error:
Math error: parameter \Umathlimit_above_bgap\textstyle is not set ...

My environment file specifies to import the Chemistry module:
\usemodule[units,chemic]

And the offending statement found in one of my component files is:
\chemical{CO_2,PLUS,H_2,PLUS,GIVES,PLUS,O_2,PLUS,CO}


minimal complete file needed as we need to see what is your font setup

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problem with chem module

2011-06-17 Thread Kip Warner
Greetings,

I am using ConTeXt head and I am having some issues with the chem
module.

I get the following error:
Math error: parameter \Umathlimit_above_bgap\textstyle is not set ...

My environment file specifies to import the Chemistry module:
\usemodule[units,chemic]

And the offending statement found in one of my component files is:
\chemical{CO_2,PLUS,H_2,PLUS,GIVES,PLUS,O_2,PLUS,CO}

What am I doing wrong?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


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