Re: [NTG-context] Misaligned Marks

2011-06-18 Thread Wolfgang Schuster

Am 19.06.2011 um 07:11 schrieb Marc Trius:

> Hi All,
> I am trying to set some text in Hebrew with diacritical marks, and whenever 
> there is a diacritical that's supposed to come in the middle of a letter, all 
> the marks are coming off misaligned, right after the glyph rather than in the 
> middle of it (or wherever they're supposed to be).
> 
> I've attached a ConTeXt and Gimp output using the same font, Ezra SIL.
> 
> Here is the code: ...

You can save a few lines and you should use \setupalign[r2l] instead of 
\textdir etc.

\definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes]

\starttypescript [serif] [ezrasil]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif] [file:sileot] [features=hebrew]
\stoptypescript

\starttypescript [ezrasil]
  \definetypeface  [ezrasil] [rm] [serif] [ezrasil] [default]
  \quittypescriptscanning
\stoptypescript

\setupbodyfont[ezrasil]

\setupalign[r2l]

\starttext
בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ
\stoptext

or you use the simplefonts module (a little bit slower because it has to find 
the font which takes a while when only one style is available):

\usemodule[simplefonts]

\definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes]

\setmainfont[Ezra SIL][features=hebrew]

\setupalign[r2l]

\starttext
בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Letter module: signature with externalfigure fails

2011-06-18 Thread luigi scarso
On Sat, Jun 18, 2011 at 10:34 PM, Christian  wrote:
> In search of what is going wrong, I discovered that even this simple code
> fails with context:
>
> \starttext
> \externalfigure[cow]
> \stoptext
>
> Did I miss something or is this broken?
> Btw: Context Minimals on Ubuntu 11.04 32bit.
> Log-file attached.
Fix (by Wolfgang)
\ifdefined\dotagfigure \else \let\dotagfigure\relax \fi
\starttext
\externalfigure[cow]
\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
___


Re: [NTG-context] Misaligned Marks

2011-06-18 Thread Marc Trius
Adding ccmp=yes to the font feature seems to fix this by replacing the 
problematic combinations with ligatures.

Thanks,
Marc

On Sun, 19 Jun 2011 00:11:56 -0500
Marc Trius  wrote:

> Hi All,
> I am trying to set some text in Hebrew with diacritical marks, and whenever 
> there is a diacritical that's supposed to come in the middle of a letter, all 
> the marks are coming off misaligned, right after the glyph rather than in the 
> middle of it (or wherever they're supposed to be).
> 
> I've attached a ConTeXt and Gimp output using the same font, Ezra SIL.
> 
> Here is the code:
> 
>   \definefontfeature
> [hebrew] [
>   mode=node,
>   expansion=quality,
>   protrusion=quality,
>   language=dflt,
>   script=hebr,
>   liga=yes,
>   rlig=yes,
>   dlig=yes,
>   clig=yes,
>   mark=yes,
>   mkmk=yes,
>   kern=yes
>   ]
> 
>   \starttypescript [serif] [ezrasil]
> \definefontsynonym[Ezra-SIL-Regular]  [name:ezrasil]  
> [features=hebrew]
> \definefontsynonym[Ezra-SIL-Bold] [name:ezrasil]  
> [features=hebrew]
> \definefontsynonym[Ezra-SIL-Italic]   [name:ezrasil]  
> [features=hebrew]
> \definefontsynonym[Ezra-SIL-Bold-Italic]  [name:ezrasil]  
> [features=hebrew]
>   \stoptypescript
> 
>   \starttypescript [serif] [ezrasil] [name]
> \definefontsynonym[Serif] [Ezra-SIL-Regular]  
> [features=hebrew]
> \definefontsynonym[SerifItalic]   [Ezra-SIL-Italic]   
> [features=hebrew]
> \definefontsynonym[SerifBold] [Ezra-SIL-Bold] 
> [features=hebrew]
> \definefontsynonym[SerifBoldItalic]   
> [Ezra-SIL-Bold-Italic][features=hebrew]
>   \stoptypescript
> 
>   \definetypeface [Hebrew][rm][serif][ezrasil][default] 
> [features=hebrew]
> 
> \textdir TRT\pardir TRT\bodydir TRT\pagedir TRT
> 
>   \usetypescript   [Hebrew]
>   \setupbodyfont   [Hebrew, 12pt]
>   
> \starttext
> בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ
> \stoptext
> 
> Thanks for your help.
> -- 
> Marc Trius 
> 
> "The enemy is the gramophone mind, whether or not one agrees with the record 
> that is being played at the moment." --- George Orwell


-- 
Marc Trius 

"The enemy is the gramophone mind, whether or not one agrees with the record 
that is being played at the moment." --- George Orwell
___
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] More chemic module woes

2011-06-18 Thread Kip Warner
Hey list,

I am running ConTeXt version 2011.06.17 16:50 pulled from Adam's PPA.

From the Chemistry wiki article here,
http://wiki.contextgarden.net/Chemistry

, I am attempted to compile the water reaction example here:
\usemodule[chemic]
\startformula
 \chemical{2H_2,+,O_2,->,2H_2O}
\stopformula

The image following it on the wiki looks as one would expect, but mine
does not. I compiled the same code, but bracketed with \startstoptext
and my generated PDF contains literally the following:

2H 2,+,O 2,–>,2H 2O

Something's not right. Any ideas? I have tried it both with and without
the texlive-math-extra package installed.

-- 
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
___

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] Table Column Width

2011-06-18 Thread Kip Warner
On Sat, 2011-06-18 at 11:27 +0200, Hans Hagen wrote:
> replace c by p(4cm)

Thanks Hans. I decided to migrate to the natural tables instead.

-- 
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
___

Re: [NTG-context] Table Column Width

2011-06-18 Thread Kip Warner
On Sat, 2011-06-18 at 19:12 +1200, Pontus Lurcock wrote:
> Hope this helps,
> 
> Pont

Thanks Pontus. Natural tables did the trick.

-- 
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
___

Re: [NTG-context] PDF Viewer Navigation Tree

2011-06-18 Thread Kip Warner
On Sat, 2011-06-18 at 06:18 +0200, Wolfgang Schuster wrote:
> When you use a environment file put all setups in it. When you have only
> one product you dont need a project file because you can load the environment
> file from the product and component files.
> 
> Wolfgang

Thanks Wolfgang. For some reason, and I have absolutely no idea why, the
index is showing today and I can't recall what I had changed. Oh well,
as Scotty said, if it ain't broke, don't fix it.

I'll also merge the project / product files together into one as you
suggested.

-- 
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
___

Re: [NTG-context] Letter module: signature with externalfigure fails

2011-06-18 Thread Christian
In search of what is going wrong, I discovered that even this simple 
code fails with context:


\starttext
\externalfigure[cow]
\stoptext

Did I miss something or is this broken?
Btw: Context Minimals on Ubuntu 11.04 32bit.
Log-file attached.

As always: thanks in advance!
(bla.mkiv

ConTeXt  ver: 2011.06.18 14:13 MKIV  fmt: 2011.6.18  int: english/english

system  > cont-new.mkiv loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > bla.top loaded
system  > options > begin of optionfile
system  > options >
system  > options > % runtime options files (command line driven)
system  > options > \unprotect
system  > options > % feedback and basic job control
system  > options > % handy for special styles
system  > options > \startluacode
system  > options > document = document or { }
system  > options > document.arguments={
system  > options > }
system  > options > document.files={
system  > options >  "bla.mkiv",
system  > options > }
system  > options > \stopluacode
system  > options > % process info
system  > options > \setupsystem[inputfile=bla.mkiv]
system  > options > \setupsystem[\c!n=1,\c!m=1]
system  > options > % modes
system  > options > % options (not that important)
system  > options > \startsetups *runtime:options
system  > options > \stopsetups
system  > options > % styles and modules
system  > options > \startsetups *runtime:modules
system  > options > \stopsetups
system  > options > % done
system  > options > \protect \endinput
system  > options >
system  > options > end of optionfile
(bla.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
system  > begin file bla.mkiv at line 1
! Undefined control sequence.

system  > tex > error on line 3 in file bla.mkiv: Undefined control sequence ...

1 \starttext
2 \externalfigure[cow]
3 >>  \stoptext
4 


\dodoplaceexternalfigure ...][#4][#5]\dotagfigure 
  \naturalvbox attr \imageat...
\doexternalfigure ...value {\??ef \??ef #1}[#3]}}}
  \globallet \currentresourc...
\dotripleemptytwospaced #1#2->#1[{#2}][][]
   
 
   \stoptext 
l.3 \stoptext
 
? X
mkiv lua stats  > used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path   - /usr/local/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats  > input load time   - 0.006 seconds
mkiv lua stats  > stored bytecode data  - 289 modules, 61 tables, 350 chunks
mkiv lua stats  > cleaned up reserved nodes - 30 nodes, 10 lists of 423
mkiv lua stats  > node memory usage - 1 hlist, 2 attribute, 21 glue_spec, 1 attribute_list, 1 dir
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 2 instances (re)created, 2323 calls
mkiv lua stats  > used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns   - en::2
mkiv lua stats  > callbacks - 2405 direct, 2965 indirect, 5370 total
mkiv lua stats  > randomizer- resumed with value 0.54706615700716
mkiv lua stats  > result saved in file  - bla.pdf
mkiv lua stats  > loaded fonts  - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time   - 0.210 seconds 
mkiv lua stats  > graphics processing time  - 0.003 seconds including tex, 1 processed images
mkiv lua stats  > luatex banner - this is luatex, version beta-0.70.1-2011051923 (rev 4277)
mkiv lua stats  > control sequences - 30575 of 165536

[NTG-context] Letter module: signature with externalfigure fails

2011-06-18 Thread Christian

Hello List,

I tried to include a signature (tried pdf, svg, png, shipped pictures) 
in my letter and it always fails.

Example taken from correspondence.pdf Version 2010.08.27:

\usemodule[letter]
\setupletter[signature={\externalfigure[cow][height=2\lineheight]}]
\starttext
\startletter
Thus, I came to the conclusion ...
\stopletter
\stoptext

Results in:
system > tex > error on line 6 in file bla.mkiv: Undefined control 
sequence ...

[...]
!  ==> Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1

Latest ConTeXt version, updated today because of the other "version too 
old bug" in the letter module.


Kind regards
Christian
___
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] Letter module : pdf not created

2011-06-18 Thread Wolfgang Schuster

Am 18.06.2011 um 14:07 schrieb Mathieu Dupont:

> However, I get 3 dashes in the left margin, one about half-way the paper 
> height, one about 2 inches above it and one about 3 inches below it.
> 
> No matter what I put in the letter, their positions don't change, and they 
> appear on every pages.

The three lines are for punching and folding the letter, you can hide them with

\setupletterstyle[marking=no]

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] Letter module : pdf not created

2011-06-18 Thread Mathieu Dupont


Great, it works now, thank you very much Wolfgang and Mojca !
However, I get 3 dashes in the left margin, one about half-way the paper 
height, one about 2 inches above it and one about 3 inches below it.
No matter what I put in the letter, their positions don't change, and they 
appear on every pages.



Mathieu

> From: schuster.wolfg...@googlemail.com
> Date: Sat, 18 Jun 2011 06:42:35 +0200
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Letter module : pdf not created
> 
> 
> Am 18.06.2011 um 01:06 schrieb Mojca Miklavec:
> 
> > On Fri, Jun 17, 2011 at 21:18, Mathieu Dupont wrote:
> >> 
> >> I just realized I got the following message :
> >> 
> >> correspondence  > your context is too old, you need at last version
> >> '2009.09.21'
> > 
> > I tested a bit and it seems that
> >\doifolderversionelse\contextversion
> > is not too reliable.
> 
> I noticed this too and uploaded a new version where i removed the version 
> test.
> 
> 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
> ___
  ___
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 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
___


Re: [NTG-context] Table Column Width

2011-06-18 Thread Hans Hagen

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

Hey list,

I have a table with four columns. The first three are fine as fixed
width and fairly narrow, but I need the fourth one to be larger to
accommodate text that can wrap for two or more lines.

How would I go about doing this? I'm guessing something needs to said in
the \starttable[|c|c|c|c|] last field, but I can't figure out what from
the documentation. The syntax is a little elusive.


replace c by p(4cm)


-
  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
___


Re: [NTG-context] Table Column Width

2011-06-18 Thread Pontus Lurcock
On Fri 17 Jun 2011, Kip Warner wrote:

> I have a table with four columns. The first three are fine as fixed
> width and fairly narrow, but I need the fourth one to be larger to
> accommodate text that can wrap for two or more lines.
> 
> How would I go about doing this? I'm guessing something needs to said in
> the \starttable[|c|c|c|c|] last field, but I can't figure out what from
> the documentation. The syntax is a little elusive.

I'm afraid I can't help directly with the Table module you're using,
but you may want to consider using one of ConTeXt's newer table
modules: http://wiki.contextgarden.net/Tables_Overview lists the Table
module as ‘deprecated’. I tend to use ‘natural tables’ (
http://wiki.contextgarden.net/TABLE ) for most things -- they're
full-featured and well documented.

There is also Tabulate -- fewer features and less documentation,
but easier for quick jobs:

\starttext
\starttabulate[|l|p(5cm)|]
\NC short \NC \raggedright A rather lengthier piece of text which 
will require more than one line when typeset within a narrow table
column \NC\NR
\stoptabulate
\stoptext

Hope this helps,

Pont
___
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
___