Re: [NTG-context] Indentation in itemize

2009-01-10 Thread Derek CORDEIRO
On Sat, Jan 10, 2009 at 7:51 PM, Curious  wrote:

> Hello Folks,
>
> Is there a way to have the first level of items indented. The second and
> subsequent levels are indented by default, but how does one achieve
> indentation
> of the first level. I looked at the options in the Context manual and I see
> that
> the default value of indentnext is yes. However, I think that applies
> second
> level onwards.
>
> Thanks in advance.
>


Maybe \setupitemize[margin=1cm] will give the top level a 1cm indentation?
I'm not sure if thats what your looking out for.(I'm a novice too)

-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Blog: http://www.derekcordeiro.com
Follow Me: http://twitter.com/derekcordeiro
___
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 alignment problem

2009-01-10 Thread Aditya Mahajan

On Sat, 10 Jan 2009, Marcin Borkowski wrote:


Dnia Sat, Jan 10, 2009 at 01:15:28PM -0500, Aditya Mahajan napisał(a):

On Sat, 10 Jan 2009, Marcin Borkowski wrote:


Hi all,

I'd like to typeset a system of simultaneous equations.  I want it to
have a brace on the left (like "cases"), but inside I want it to have
two columns aligned like "align".  Also, I'd like to have the vertical
space between the equations be small (like in cases), not so big as in
align.

How to do this?


I do not completely understand what you want. Do the following give the
desired output.


Sorry;).


\starttext

\startformula
  \startcases[align={right,left},distance=3pt]
\NC 2x + 3y \MC{} = 10 \NR
\NC 3x + 2y \MC{} = 5   \NR
  \stopcases
\stopformula

\startformula
  \startmatrix[align={right,left},distance=3pt,left={\left\{},
right={\right.}]
\NC 2x + 3y \NC{} = 10 \NR
\NC 3x + 2y \NC{} = 5   \NR
  \stopmatrix
\stopformula

\stoptext


Both work just fine, but with distance=0pt instead.  Thanks!  There is
only a minor problem with the former one: it's somehow shifted to the
left compared with the latter (both in MkII and MkIV).  I have no idea
why.


mathcases has a numberdistance key, which adds some width at the end of 
each row. You can set numberdistance to zero.



The {} after the alignment \NC is useful if the next symbol is something
that can be a uniary or binary symbol (eg, + or -). The {} tells tex to
treat is as a binary symbol.


Of course - the {} is an "ord" atom for TeX, AFAIR.


If you frequently need something like this, you can use
definemathcases/definemathmatrix to define a new environment with
appropriate parameters.


Yes; however, I'd still have to use the {} after the \NC...


Yes. You can define something like \OC (ord column) to be \NC{}.

Aditya
___
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 alignment problem

2009-01-10 Thread Marcin Borkowski
Dnia Sat, Jan 10, 2009 at 01:15:28PM -0500, Aditya Mahajan napisał(a):
> On Sat, 10 Jan 2009, Marcin Borkowski wrote:
> 
> >Hi all,
> >
> >I'd like to typeset a system of simultaneous equations.  I want it to
> >have a brace on the left (like "cases"), but inside I want it to have
> >two columns aligned like "align".  Also, I'd like to have the vertical
> >space between the equations be small (like in cases), not so big as in
> >align.
> >
> >How to do this?
> 
> I do not completely understand what you want. Do the following give the 
> desired output.

Sorry;).

> \starttext
> 
> \startformula
>   \startcases[align={right,left},distance=3pt]
> \NC 2x + 3y \MC{} = 10 \NR
> \NC 3x + 2y \MC{} = 5   \NR
>   \stopcases
> \stopformula
> 
> \startformula
>   \startmatrix[align={right,left},distance=3pt,left={\left\{}, 
> right={\right.}]
> \NC 2x + 3y \NC{} = 10 \NR
> \NC 3x + 2y \NC{} = 5   \NR
>   \stopmatrix
> \stopformula
> 
> \stoptext

Both work just fine, but with distance=0pt instead.  Thanks!  There is
only a minor problem with the former one: it's somehow shifted to the
left compared with the latter (both in MkII and MkIV).  I have no idea
why.

> The {} after the alignment \NC is useful if the next symbol is something 
> that can be a uniary or binary symbol (eg, + or -). The {} tells tex to 
> treat is as a binary symbol.

Of course - the {} is an "ord" atom for TeX, AFAIR.

> If you frequently need something like this, you can use 
> definemathcases/definemathmatrix to define a new environment with 
> appropriate parameters.

Yes; however, I'd still have to use the {} after the \NC...

> 
> Aditya

Thank you!

-- 
Marcin Borkowski (http://mbork.pl)

Nie mam w ręku miecza, ani karabinu, stoję nieuzbrojony pod murami Babilonu.
Wzywam pomocy Ducha - Duch przychodzi w ogniu!
Wokół zostają tylko gruzy Babilonu!
(Korzeń Z Kraju Melchizedeka)
___
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 alignment problem

2009-01-10 Thread Aditya Mahajan

On Sat, 10 Jan 2009, Marcin Borkowski wrote:


Hi all,

I'd like to typeset a system of simultaneous equations.  I want it to
have a brace on the left (like "cases"), but inside I want it to have
two columns aligned like "align".  Also, I'd like to have the vertical
space between the equations be small (like in cases), not so big as in
align.

How to do this?


I do not completely understand what you want. Do the following give the 
desired output.


\starttext

\startformula
  \startcases[align={right,left},distance=3pt]
\NC 2x + 3y \MC{} = 10 \NR
\NC 3x + 2y \MC{} = 5   \NR
  \stopcases
\stopformula

\startformula
  \startmatrix[align={right,left},distance=3pt,left={\left\{}, 
right={\right.}]

\NC 2x + 3y \NC{} = 10 \NR
\NC 3x + 2y \NC{} = 5   \NR
  \stopmatrix
\stopformula

\stoptext

The {} after the alignment \NC is useful if the next symbol is something 
that can be a uniary or binary symbol (eg, + or -). The {} tells tex to 
treat is as a binary symbol.


If you frequently need something like this, you can use 
definemathcases/definemathmatrix to define a new environment with 
appropriate parameters.


Aditya
___
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] Math alignment problem

2009-01-10 Thread Marcin Borkowski
Hi all,

I'd like to typeset a system of simultaneous equations.  I want it to
have a brace on the left (like "cases"), but inside I want it to have
two columns aligned like "align".  Also, I'd like to have the vertical
space between the equations be small (like in cases), not so big as in
align.

How to do this?

-- 
Marcin Borkowski (http://mbork.pl)
___
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] Change the font to Charter

2009-01-10 Thread Aditya Mahajan

On Sat, 10 Jan 2009, Wolfgang Schuster wrote:

(2) I was going to ask about the math support. You mentioned that it would 
have

to be added to the typescript. How difficult is that? Does anyone know the
commands that can be used for adding such support.


I have a basic typescript for charter because I needed it in a document.

\starttypescript [math] [charter] [name]
\definefontsynonym [MathRoman] [Charter-Math-Letters-Regular]
\definefontsynonym [MathItalic][Charter-Math-Letters-Italic]
\definefontsynonym [MathSymbol][Charter-Math-Symbols-Regular]
\definefontsynonym [MathExtension] [Charter-Math-Extension-Regular]
\stoptypescript

\starttypescript [math] [charter] [default]
\definefontsynonym [Charter-Math-Letters-Regular]   [mdbchr7m]
\definefontsynonym [Charter-Math-Letters-Italic][mdbchri7m]
\definefontsynonym [Charter-Math-Symbols-Regular]   [mdbchr7y]
\definefontsynonym [Charter-Math-Extension-Regular] [mdbchr7v]
\loadmapfile[mdbch.map]
\stoptypescript


Bitstream charter does not contain math fonts. The math fonts are from 
math-design 
(http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=mathdesign)


It would be useful to have a type-mathdesign file that provides 
typescripts for mathdesign utopia, garamound and charter. We may also need 
a math-md.tex since mathdesign provides a few extra symbols.


Aditya
___
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] Change the font to Charter

2009-01-10 Thread Curious
Wolfgang Schuster  googlemail.com> writes:

> 
> 
> Am 10.01.2009 um 13:33 schrieb Curious:

> 
> ConTeXt has just other linedistances than LaTeX, that's all.
> 
> You can switch to a smaller distance with \setupinterlinespace[small]
> or with \setupinterlinespace[line=14pt] (fixed distance) or
> \setupinterlinespace[line=2.4ex] (font dependend distance)
> 

> 
> I have a basic typescript for charter because I needed it in a document.
> 
> \starttypescript [math] [charter] [name]
>\definefontsynonym [MathRoman] [Charter-Math-Letters-Regular]
>\definefontsynonym [MathItalic][Charter-Math-Letters-Italic]
>\definefontsynonym [MathSymbol][Charter-Math-Symbols-Regular]
>\definefontsynonym [MathExtension] [Charter-Math-Extension-Regular]
> \stoptypescript
> 
> \starttypescript [math] [charter] [default]
>\definefontsynonym [Charter-Math-Letters-Regular]   [mdbchr7m]
>\definefontsynonym [Charter-Math-Letters-Italic][mdbchri7m]
>\definefontsynonym [Charter-Math-Symbols-Regular]   [mdbchr7y]
>\definefontsynonym [Charter-Math-Extension-Regular] [mdbchr7v]
>\loadmapfile[mdbch.map]
> \stoptypescript
> 
> Wolfgang
> 

Thanks very much Wolfgang. I tried and it works for the most part in the simple
document that I have. The parantheses, however, are not typeset correctly. They
appear as horizontal arrows with only half a head, i.e., head only either above
or below (sorry do not know the name of this symbol but I have seen it before).

Regarding, the warning I mentioned earlier (pdfTeX warning: pdftex (file
ec-bitstrea-charter.map): cannot open font map file), is there a way to fix
that? Or, is there a need to fix that?

Thanks.

 


___
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] Indentation in itemize

2009-01-10 Thread Curious
Hello Folks,

Is there a way to have the first level of items indented. The second and
subsequent levels are indented by default, but how does one achieve indentation
of the first level. I looked at the options in the Context manual and I see that
the default value of indentnext is yes. However, I think that applies second
level onwards.

Thanks in advance.

___
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] Change the font to Charter

2009-01-10 Thread Wolfgang Schuster


Am 10.01.2009 um 13:33 schrieb Curious:


I suspect that one might need to fix or improve typescripts. Do you
have some visual examples to show the differences? It would be
interesting to compare the differences between bchr8t and mdbchr8t  
and

change typescripts if needed.

Moreover, math support would have to be added to typescripts - it
could be based on mathdesign.

Mojca


Thanks Mojca. Appreciate your response, though as you said I do not  
really
understand what I have to do, or if I could do anything. But a few  
things,


(1) Regarding the visual examples, I could post the PDF file  
generated with
Latex and Context. Is there a way to do that on this list? I noticed  
another
difference, which is that the line spacing is slightly more in the  
Context

document (compared to that compiled with Latex). In latex I chose
\singlespacing. In Context, I did not change the default spacing. Is  
the default

spacing different than singlespacing?


ConTeXt has just other linedistances than LaTeX, that's all.

You can switch to a smaller distance with \setupinterlinespace[small]
or with \setupinterlinespace[line=14pt] (fixed distance) or
\setupinterlinespace[line=2.4ex] (font dependend distance)

(2) I was going to ask about the math support. You mentioned that it  
would have
to be added to the typescript. How difficult is that? Does anyone  
know the

commands that can be used for adding such support.


I have a basic typescript for charter because I needed it in a document.

\starttypescript [math] [charter] [name]
  \definefontsynonym [MathRoman] [Charter-Math-Letters-Regular]
  \definefontsynonym [MathItalic][Charter-Math-Letters-Italic]
  \definefontsynonym [MathSymbol][Charter-Math-Symbols-Regular]
  \definefontsynonym [MathExtension] [Charter-Math-Extension-Regular]
\stoptypescript

\starttypescript [math] [charter] [default]
  \definefontsynonym [Charter-Math-Letters-Regular]   [mdbchr7m]
  \definefontsynonym [Charter-Math-Letters-Italic][mdbchri7m]
  \definefontsynonym [Charter-Math-Symbols-Regular]   [mdbchr7y]
  \definefontsynonym [Charter-Math-Extension-Regular] [mdbchr7v]
  \loadmapfile[mdbch.map]
\stoptypescript

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] Change the font to Charter

2009-01-10 Thread Curious

> You are right that some things need to be fixed in ConTeXt - if
> nothing else, the map file could be removed from type-one and
> type.map. (Do not bother if you don't understand what I have written -
> it's targeted to ConTeXt gurus. Any opinions?)
> 
> The file is missing, but all the needed definitions are inside
> ec-base.map (I guess, I don't find ec-bitstrea-charter.map anywhere in
> order to compare):
> 
> bchb8t  CharterBT-Boldbchbi8t CharterBT-BoldItalic  bchr8t  CharterBT-Roman   bchri8t CharterBT-Italic  
> bchbo8t CharterBT-Bold   ".167 SlantFont"  bchro8t CharterBT-Roman  ".167 SlantFont"  
> There are these files present on TeX Live (they are not in minimals):
> 
> /usr/local/texlive/2008/texmf-dist/fonts/tfm/bitstrea/charter/bchr8t.tfm
> /usr/local/texlive/2008/texmf-dist/fonts/vf/bitstrea/charter/bchr8t.vf
> 
> But when I compare to LaTeX with the following code
> \usepackage[T1]{fontenc}
> \usepackage[charter]{mathdesign}
> it uses other font metric files:
> /usr/local/texlive/2008/texmf-dist/tex/latex/mathdesign/mdbch/t1mdbch.fd
> ...
> \DeclareFontShape{T1}{mdbch}{m}{n}{
><->s * [0.96]  mdbchr8t
> }{}
> ...
> /usr/local/texlive/2008/texmf-dist/fonts/tfm/mathdesign/mdbch/mdbchr8t.tfm
> 
> I suspect that one might need to fix or improve typescripts. Do you
> have some visual examples to show the differences? It would be
> interesting to compare the differences between bchr8t and mdbchr8t and
> change typescripts if needed.
> 
> Moreover, math support would have to be added to typescripts - it
> could be based on mathdesign.
> 
> Mojca

Thanks Mojca. Appreciate your response, though as you said I do not really
understand what I have to do, or if I could do anything. But a few things,

(1) Regarding the visual examples, I could post the PDF file generated with
Latex and Context. Is there a way to do that on this list? I noticed another
difference, which is that the line spacing is slightly more in the Context
document (compared to that compiled with Latex). In latex I chose
\singlespacing. In Context, I did not change the default spacing. Is the default
spacing different than singlespacing? 

(2) I was going to ask about the math support. You mentioned that it would have
to be added to the typescript. How difficult is that? Does anyone know the
commands that can be used for adding such support. 

Thanks.

p.s. - BTW thanks very very much to the creators of Context for presenting us
with this wonderful tool. I hope I can use it more and more for my work to
create beautiful 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Change the font to Charter

2009-01-10 Thread Mojca Miklavec
Hello "Curious",

> I have been using Latex for sometime and am thinking of switching to Context 
> for
> at least some types of documents and hence have been trying it out. I love the
> charter font and tried to use the following commands to use the Charter font
>
> \definetypeface [charter] [rm] [serif] [charter] [default] [encoding=ec]
> \switchtotypeface [charter] [12pt,rm]
>
> However, when I compile the file with texexec I get the following warning:
>
> pdfTeX warning: pdftex (file ec-bitstrea-charter.map): cannot open font map 
> file
>
> Can someone please help me fix this problem? I get the charter font output,
> however, the results are different from what I get with Latex. The letters 
> seem
> more spread out and there seems to be more spacing between the words in the
> Context output. Could this be because of the above warning?

You are right that some things need to be fixed in ConTeXt - if
nothing else, the map file could be removed from type-one and
type.map. (Do not bother if you don't understand what I have written -
it's targeted to ConTeXt gurus. Any opinions?)

The file is missing, but all the needed definitions are inside
ec-base.map (I guess, I don't find ec-bitstrea-charter.map anywhere in
order to compare):

bchb8t  CharterBT-Bold   s * [0.96]  mdbchr8t
}{}
...
/usr/local/texlive/2008/texmf-dist/fonts/tfm/mathdesign/mdbch/mdbchr8t.tfm

I suspect that one might need to fix or improve typescripts. Do you
have some visual examples to show the differences? It would be
interesting to compare the differences between bchr8t and mdbchr8t and
change typescripts if needed.

Moreover, math support would have to be added to typescripts - it
could be based on mathdesign.

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
___