[NTG-context] Rotating a label in Metapost

2005-05-14 Thread David Arnold
All,
I have a horizontal axis with tick marks. I'd like to label the tick 
marks with their numerical values, but I'd like to rotate the numerical 
label 90 degrees clockwise.

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


[NTG-context] centering framed boxes

2005-05-14 Thread Idris Samawi Hamid
Dear gang,

I need a way to overlay four framed boxes so that each inner box is exactly in 
the center of its respective outer box. So far I have the following, but 
careful inspection will show that the boxes are not precisely centered with 
respect to each other. I could go on by trial and error but I'm sure there is 
a direct way to do this.

The text should also be precisely centered between frames.

Thank you in advance!
Idris
=
\setupoutput[pdftex]%

\setuppagenumbering[state=stop]
\starttext

\setupfloats[location=middle]
\placefigure
[here][tab:enclosure]{4 Stages.}
{
 \midaligned{
 \framed
 [width=12\baselineskip,height=12\baselineskip,strut=yes]
 {\midaligned{Stage 1}
   \midaligned%
   {\framed[width=9\baselineskip,height=9\baselineskip,strut=yes]
 {\midaligned{Stage 2}
   \midaligned%
   {\framed[width=6\baselineskip,height=6\baselineskip,strut=yes]
 {\midaligned{Stage 3}
   \midaligned%
   {\framed[width=3\baselineskip,height=3\baselineskip,strut=yes]
{\midaligned{Stage 4}}
   }
 \midaligned{\null}}%
   }
 \midaligned{\null}}%
   }
 \midaligned{\null}}
 }
}

\stoptext
=


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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


RE: [NTG-context] Hanging punctuation again.

2005-05-14 Thread Idris Samawi Hamid
Hi John,

Isn't [thanh] obsolete? See hand-def.tex for details: I think you want 
[normal], which hangs puntuation ([pure]), the Latin alphabet ([alpha]), and 
the rest of ascii characters ([extended]). Then you get full hanging. I tested 
palatino and the following works here:

===
\setupoutput[pdftex]%

\usetypescriptfile[type-enc]
\usetypescript [serif,sans,mono] [hanging] [normal]
\usetypescript [adobekb] [8r]
\usetypescript [palatino][8r]
\setupalign[hanging] % NOTE no second argument
\setupbodyfont [palatino,12pt]

\showframe
\starttext

   \dorecurse{40}{lots of hy\-phen\-a\-tion\hyphen\ }
   \blank
   \dorecurse{40}{testing, test; }


\stoptext
===

Best
Idris

>= Original Message From mailing list for ConTeXt users 
 =
>Is the  the following kosher?
>
>\usetypescript [serif,sans,mono] [hanging] [thanh]
>\usetypescriptfile[type-enc]
>  \usetypescript [adobekb] [8r]
>  \usetypescript [palatino][8r]
>\setupalign[hanging][thanh]
>  \setupbodyfont
>[palatino,12pt]


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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


[NTG-context] Hanging punctuation again.

2005-05-14 Thread John R. Culleton
Is the  the following kosher?

\usetypescript [serif,sans,mono] [hanging] [thanh]
\usetypescriptfile[type-enc]
  \usetypescript [adobekb] [8r]
  \usetypescript [palatino][8r]
\setupalign[hanging][thanh]
  \setupbodyfont
[palatino,12pt]

I want optical alignment for all body text.
-- 

John Culleton
The answers to all your publishing questions are found 
in the excellent books listed in the word-famous shortlist!
http://wexfordpress.com/tex/shortlist.pdf

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


[NTG-context] Re: ntg-context Digest, Vol 11, Issue 29

2005-05-14 Thread Otared Kavian
At 10:48 -0700 14/05/05, Fei He wrote:
Hi all,
I have a math equation question too. This has made me pulling my hair
off, for a while. Please see below:
(snip)

~~ this & never seems to give
me the alignment that I need.
 }
 > \stopformula
Hi,
I think the point is to use a \cr after each line of aligned text in \cases.
On my installation the following works fine:
\usemodule[amsl]
\starttext
\startformula
 {\bf f(x)} =
 \cases{
   \sum_{x=1}^n x  &\quad if I am false \cr
   \displaystyle % just to see the difference
   \sum_{x=1}^n x^2&\quad \text{if I am true} \cr
 }
\stopformula
\stoptext
Note that I added a \quad  after each "&" in order to have a little 
more space: however this is not essential.

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


Re: [NTG-context] hyphenation problem with apostrophe (fwd)

2005-05-14 Thread Peter Münster
On Sat, 14 May 2005, Taco Hoekwater wrote:

> No, as long as you remember to check all hyphenations of
> the words that end an inline quote (the ones with single
> or double apostrophs attached immediately to the word).

No problem, quoting in French goes « like this » :)
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: ntg-context Digest, Vol 11, Issue 29

2005-05-14 Thread Fei He
Hi all,

I have a math equation question too. This has made me pulling my hair
off, for a while. Please see below:


%%
> \usemodule[amsl]
> \starttext
> 
> \startformula
>  {\bf f(x)} =
>  \cases{
>  \sum_{x=1}^n x  & if I am false
>  \\
  ~~ I can never make this work for me to start new line
in the equation.
>  \displaystyle% just to see the difference
>  \sum_{x=1}^n x^2& \text{if I am true}
 ~~ this & never seems to give
me the alignment that I need.
> }
> \stopformula


any idea. thanks a lot!!!

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


Re: [NTG-context] hyphenation problem with apostrophe (fwd)

2005-05-14 Thread Taco Hoekwater
No, as long as you remember to check all hyphenations of
the words that end an inline quote (the ones with single
or double apostrophs attached immediately to the word).
Taco
Peter Münster wrote:
Ok, so this means, that there is no problem with
\startlanguagespecifics[nl,cz,sk,fr]
   \lccode`\'=`\'
\stoplanguagespecifics
Right?
Cheers, Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] hyphenation problem with apostrophe (fwd)

2005-05-14 Thread Peter Münster
On Sat, 14 May 2005, Taco Hoekwater wrote:

> Peter Münster wrote:
> > Hello Taco,
> > the last sentence is for you. Do you have an answer?
> > Cheers, Peter
> 
> That \lccode assignment makes the ' a letter, making it count for
> \righthyphenmin, so that``et voila'' can be hyphenated as ``et voil-
> a''.

Ok, so this means, that there is no problem with
\startlanguagespecifics[nl,cz,sk,fr]
   \lccode`\'=`\'
\stoplanguagespecifics

Right?
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] hyphenation problem with apostrophe (fwd)

2005-05-14 Thread Taco Hoekwater
I just noticed that my example is wrong, because french
hyphenates voi-la, but I hope you get the point anyway.
Taco
Taco Hoekwater wrote:
Peter Münster wrote:
Hello Taco,
the last sentence is for you. Do you have an answer?
Cheers, Peter

That \lccode assignment makes the ' a letter, making it count for
\righthyphenmin, so that``et voila'' can be hyphenated as ``et voil-
a''.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-14 Thread Adam Lindsay
xiaojf said this at Sat, 14 May 2005 21:36:45 +0800:

>Hi,
>I  can code the cycle in ConTeXt,but it's too ugly and I will try to
>improve it.
>here is my code:
>
>\starttext
>\placeformula
>\startformula
>\matrix{A+B&{\Delta G_1\atop\rightleftharpoons}&AB\cr
>\Delta G_3\!\!\upharpoonleft\!\downharpoonright&&
>\upharpoonleft\!\downharpoonright\!\!\Delta G_4\cr
>A'+B&{\rightleftharpoons\atop\Delta G_2}&A'B\cr}
>\stopformula
>\stoptext

Hmm. It seems like a reasonable starting point, but I'll admit this is
beyond my abilities to fix over this weekend. I hope some other TeXnician
might come along and offer some advice.

Best of luck,
adam

>There is a similar example in "The TeXbook"(example 18.46).
>You can try the follow code:
>
>$$\def\normalbaselines{\baselineskip20pt
>\lineskip3pt \lineskiplimit3pt }
>\def\mapright#1{\smash{
>\mathop{\longrightarrow}\limits^{#1}}}
>\def\mapdown#1{\Big\downarrow
>\rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}}
>\matrix{&&0\cr
>&&\mapdown{}\cr
>0&\mapright{}&{\cal O}_C&\mapright\iota&
>\cal E&\mapright\rho&\cal L&\mapright{}&0\cr
>&&\Big\Vert&&\mapdown\phi&&\mapdown\psi\cr
>0&\mapright{}&{\cal O}_C&\mapright{}&
>\pi_*{\cal O}_D&\mapright\delta&
>R^1f_*{\cal O}_V(-D)&\mapright{}&0\cr
>&&\mapdown{\theta_i\otimes\gamma^{-1}}\cr
>&&\hidewidth R^1f_*\bigl({\cal O}
>_V(-iM)\bigr)\otimes\gamma^{-1}\hidewidth\cr
>&&\mapdown{}\cr
>&&0\cr}$$
>
>Since i'm just a newbie of TeX, I don't really understand the first a few
>lines 
>of the solution. I still need some learning and practice :)

ah, don't we all...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: [NTG-context] hyphenation problem with apostrophe (fwd)

2005-05-14 Thread Taco Hoekwater
Peter Münster wrote:
Hello Taco,
the last sentence is for you. Do you have an answer?
Cheers, Peter
That \lccode assignment makes the ' a letter, making it count for
\righthyphenmin, so that``et voila'' can be hyphenated as ``et voil-
a''.
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] typing questions

2005-05-14 Thread Peter Münster
On Wed, 20 Apr 2005, Taco Hoekwater wrote:

> > - First tab is only 7 spaces, the other 8, why?
> 
> Looks like a bug, try this patch:
> 
>\def\doprocesstabskipline#1%
>  {\bgroup
>   \scratchcounter0 % TH: was \plusone
>   \dodoprocesstabskipline#1\relax
>   \egroup}

Hello,
thanks, Taco. Will this patch be integrated in the next ConTeXt version?

> > - Where does the vertical space in \framed come from?
> 
>  From a bug in \startpacked. Sorry, I don't know how to fix
> that without breaking other stuff.

Does some other person know, how to fix this?

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-14 Thread xiaojf

=== 2005-05-14 13:31:00 You worte:===

>xiaojf said this at Sat, 14 May 2005 19:49:02 +0800:
>
>>>The double-, triple-, and quadruple-integrals (\nt) are undefined in
>>>basic ConTeXt's math.
>>I must say thank you very very much!
>>
>>In fact I've been looking for \iint in ConTeXt in the last two days -_-
>>so i'll try to use \int\!\!\!\int instead of looking for a ConTeXt
>>implementation :)
>>
>>I met another problem today. Since there are not as many arrows in
>>ConTeXt as there
>>in AMS-LaTeX,I don't konw how to type the formula in the attached picture
>>which will
>>be referred in my presentation next Monday.
>
>Hello, Xiao.
>
>I'm glad I could help: I'm learning these advanced requirements as I go
>along. My personal mathematics needs are much more modest.
>
>I wouldn't give up on ConTeXt just yet. Try:
>\loadmapfile[original-ams-base]
>\starttext
>\showmathcharacters
>Note the \formula{\rightleftharpoons} and
>\formula{\upharpoonleft\!\downharpoonright}.
>\stoptext
>
>Do you know how you would code that cycle in (AMS)LaTeX?
Hi,
I  can code the cycle in ConTeXt,but it's too ugly and I will try to improve it.
here is my code:

\starttext
\placeformula
\startformula
\matrix{A+B&{\Delta G_1\atop\rightleftharpoons}&AB\cr
\Delta G_3\!\!\upharpoonleft\!\downharpoonright&&
\upharpoonleft\!\downharpoonright\!\!\Delta G_4\cr
A'+B&{\rightleftharpoons\atop\Delta G_2}&A'B\cr}
\stopformula
\stoptext

There is a similar example in "The TeXbook"(example 18.46).
You can try the follow code:

$$\def\normalbaselines{\baselineskip20pt
\lineskip3pt \lineskiplimit3pt }
\def\mapright#1{\smash{
\mathop{\longrightarrow}\limits^{#1}}}
\def\mapdown#1{\Big\downarrow
\rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}}
\matrix{&&0\cr
&&\mapdown{}\cr
0&\mapright{}&{\cal O}_C&\mapright\iota&
\cal E&\mapright\rho&\cal L&\mapright{}&0\cr
&&\Big\Vert&&\mapdown\phi&&\mapdown\psi\cr
0&\mapright{}&{\cal O}_C&\mapright{}&
\pi_*{\cal O}_D&\mapright\delta&
R^1f_*{\cal O}_V(-D)&\mapright{}&0\cr
&&\mapdown{\theta_i\otimes\gamma^{-1}}\cr
&&\hidewidth R^1f_*\bigl({\cal O}
_V(-iM)\bigr)\otimes\gamma^{-1}\hidewidth\cr
&&\mapdown{}\cr
&&0\cr}$$

Since i'm just a newbie of TeX, I don't really understand the first a few lines
of the solution. I still need some learning and practice :)

>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
> Lancaster University, InfoLab21+44(0)1524/510.514
> Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>___
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context

= = = = = = = = = = = = = = = = = = = =



xiaojf
[EMAIL PROTECTED]
  2005-05-14



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


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-14 Thread Adam Lindsay
xiaojf said this at Sat, 14 May 2005 19:49:02 +0800:

>>The double-, triple-, and quadruple-integrals (\nt) are undefined in
>>basic ConTeXt's math.
>I must say thank you very very much!
>
>In fact I've been looking for \iint in ConTeXt in the last two days -_-
>so i'll try to use \int\!\!\!\int instead of looking for a ConTeXt
>implementation :)
>
>I met another problem today. Since there are not as many arrows in
>ConTeXt as there 
>in AMS-LaTeX,I don't konw how to type the formula in the attached picture
>which will 
>be referred in my presentation next Monday.

Hello, Xiao.

I'm glad I could help: I'm learning these advanced requirements as I go
along. My personal mathematics needs are much more modest.

I wouldn't give up on ConTeXt just yet. Try:
\loadmapfile[original-ams-base]
\starttext
\showmathcharacters
Note the \formula{\rightleftharpoons} and 
\formula{\upharpoonleft\!\downharpoonright}.
\stoptext

Do you know how you would code that cycle in (AMS)LaTeX?
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-14 Thread xiaojf
Hi,Adam Lindsay,



=== 2005-05-14 08:46:00 You wrote:===

>Tobias Burnus said this at Sat, 14 May 2005 07:05:44 +0200:
>
>>(I have to admit, I cannot find m-math.tex/t-math.tex anywhere.)
>
>I "assumed" Hans meant MathML. :)
>\usemodule[mathml]
>
>
>The basic math capabilities within ConTeXt do seem poorly documented,
>mostly because they point to different sources, often in books. However,
>ConTeXt does use  Plain TeX as its model for mathematics.
>
>The basics in ConTeXt are roughly equivalent to those described in:
>
>   (I don't know if it will specifically help you, but I note there's a
>zh version of that page)
>
>
>but it takes some practice to spot the things that don't work directly
>in ConTeXt. Some differences are unimplemented features, some are
>differing conventions, some are because LaTeX thought they would be
>useful, and ConTeXt hasn't (yet).
>
>Some differences from the examples on that page that I notice immediately:
>
>Math is best delimited inline with \formula{ ... }, not $ ... $
>Display math is best delimited with \startformula ... \stopformula , not
>$$ ... $$
>
>\operatorname  =>  \mfunction
>
>The double-, triple-, and quadruple-integrals (\nt) are undefined in
>basic ConTeXt's math.
I must say thank you very very much!

In fact I've been looking for \iint in ConTeXt in the last two days -_-
so i'll try to use \int\!\!\!\int instead of looking for a ConTeXt 
implementation :)

I met another problem today. Since there are not as many arrows in ConTeXt as 
there
in AMS-LaTeX,I don't konw how to type the formula in the attached picture which 
will
be referred in my presentation next Monday.

>
>The \begin{case} environment needs to be simplified into the Plain
>\cases{} command.
>
>The AMSmath/LaTeX-like:
>
>$$ \begin{bmatrix} p & q \\
>   r & s   \end{bmatrix} $$
>
>   ...can be interpreted as...
>
>\startformula
>\left[ \matrix{ p & q \cr
>r & s } \right]
>\stopformula
>
>
>This might not be the best answer to the original poster, but I do hope
>it provides a bit of a guide to the general ConTeXt newcomer.
>
>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
> Lancaster University, InfoLab21+44(0)1524/510.514
> Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
>___
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context

= = = = = = = = = = = = = = = = = = = =



xiaojf
[EMAIL PROTECTED]
  2005-05-14

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


[NTG-context] Re: Is there a mathematica typesetting manual for ConTeXt ?

2005-05-14 Thread Patrick Gundlach
>
> (I have to admit, I cannot find m-math.tex/t-math.tex anywhere.)

see http://modules.contextgarden.net/amsl

Patrick


PS: now with RSS-feed
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-14 Thread Adam Lindsay
Tobias Burnus said this at Sat, 14 May 2005 07:05:44 +0200:

>(I have to admit, I cannot find m-math.tex/t-math.tex anywhere.)

I "assumed" Hans meant MathML. :)
\usemodule[mathml]


The basic math capabilities within ConTeXt do seem poorly documented,
mostly because they point to different sources, often in books. However,
ConTeXt does use  Plain TeX as its model for mathematics. 

The basics in ConTeXt are roughly equivalent to those described in:

   (I don't know if it will specifically help you, but I note there's a
zh version of that page)


...but it takes some practice to spot the things that don't work directly
in ConTeXt. Some differences are unimplemented features, some are
differing conventions, some are because LaTeX thought they would be
useful, and ConTeXt hasn't (yet).

Some differences from the examples on that page that I notice immediately:

Math is best delimited inline with \formula{ ... }, not $ ... $
Display math is best delimited with \startformula ... \stopformula , not
$$ ... $$

\operatorname  =>  \mfunction

The double-, triple-, and quadruple-integrals (\nt) are undefined in
basic ConTeXt's math.

The \begin{case} environment needs to be simplified into the Plain
\cases{} command.

The AMSmath/LaTeX-like:

$$ \begin{bmatrix} p & q \\
   r & s   \end{bmatrix} $$

   ...can be interpreted as...

\startformula
\left[ \matrix{ p & q \cr
r & s } \right]
\stopformula


This might not be the best answer to the original poster, but I do hope
it provides a bit of a guide to the general ConTeXt newcomer.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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