Re: [NTG-context] Context from Texlive

2011-12-15 Thread luigi scarso
On Wed, Dec 14, 2011 at 7:09 PM, Philip Brown bro...@tamug.edu wrote:
 I downloaded texlive on Windows from the the July 2011 Tex Collection dvd.



 Latex works fine, but I get the following error message when I try to run
 Context:



 ConTeXt: problems after [0] pages



 Is there some sort of postcompilation I need to do to get Context running?



 Regards,



 Philip Brown
Save this line
\starttext\input knuth\stoptext
into test.tex

and then check mkiv with
$ context test.tex

and mkii with
$ mtxrun texexec test.tex



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


[NTG-context] Itemize option “text”

2011-12-15 Thread Andreas Harder
Hi Hans,

itemize with option “text” gives me still an error (beta: 15-Dec-2011 09:27).

\startitemize[text]
  \item alpha \item beta \item gamma
\stopitemize


Regards
Andreas
___
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] Itemize option “text”

2011-12-15 Thread Otared Kavian

On 15 déc. 2011, at 10:38, Andreas Harder wrote:

 Hi Hans,
 
 itemize with option “text” gives me still an error (beta: 15-Dec-2011 09:27).
 
 \startitemize[text]
  \item alpha \item beta \item gamma
 \stopitemize
 
 
 Regards
   Andreas

Hi Andreas,

It is correct that the latest beta has several issues with itemize, Hans knows 
that and I guess he will fix the problem in the next beta.

Best regards: OK

___
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] ConTeXt-- does it make sense for my needs?

2011-12-15 Thread Hagmann Jörg
 |  Another possibility is to use org-mode in Emacs, export to Latex and from
 |  there to ConTeXt. In my case, the last step is accomplished by a 
 home-brewed
 |  ruby script which covers the most common layout commands
 
 | Have you already considered writing `org-context.el'?

I can't afford learning another language - not now. But it would be great if 
somebody did it.

Cheers, Jörg
___
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] MnSymbol (math) support in ConTeXt

2011-12-15 Thread Mojca Miklavec
On Wed, Dec 14, 2011 at 19:08, Peter Park Nelson wrote:

 If adding MnSymbol support were only a matter of tedious manual labor, I

That is more or less the case. There is no reason why it should not
work with ConTeXt.

The main reason why I never looked into it is that the font offers
different optical sizes. And supporting optical sizes is something
that complicates matters a lot. If you would be happy with a single
optical size, that would be a lot easier.

 would be willing to give it a try, but without an understanding of font
 internals I don't know where to start. Perhaps someone can suggest resources
 for learning?

Are we talking about MKIV?

ConTeXt sources. math-vfu.lua and other math-*.mkiv/lua files, as well
as font-*.mkiv/lua.

You need to define a mapping vector to map from 8bit font to UTF-8.
See for example
mathencodings[tex-mi] = {
[0x1D6E4] = 0x00, -- Gamma
[0x1D6E5] = 0x01, -- Delta
in math-vfu.lua or tex/context/fonts/lucida-math.lfg or keep asking
questions. There is no manual to explain how to write such vectors.

 Also, I see that there are MnSymbol files in
 http://minimals.contextgarden.net/current/fonts/extra/mnsymbol/ but these
 don't appear to be included in my ConTeXt Standalone installation. Does
 anyone know about them?

You need an extra switch. I think that --font=mnsymbol should work,
but I need to test (there's a chance that it doesn't and I plan to
change that anyway).

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


Re: [NTG-context] simplefonts: math in headers

2011-12-15 Thread Philipp A.
Bump:

2011/12/9 Philipp A. flying-sh...@web.de

 hi, i have the following setup:

 \usemodule[simplefonts]
 \setmainfont[Cambria]
 \setsansfont[Ubuntu]
 \setmonofont[Envy Code R][regularfont=envycoder]
 \setmathfont[Cambria]

 \setuphead[section][style={\ss\bfb}]

 \starttext
 \section{Wat? $y=x^2$}
 \stoptext

 why is the math in the header typeset in computer modern instead of ubuntu
 and how do i fix it?

 PS: preferrably it should be bold, too. there is a wiki page, “Bold Math
 in Section Titleshttp://wiki.contextgarden.net/Bold_Math_in_Section_Titles”
 but it doesn’t explain how to do it with simplefonts.

___
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] math symbols in superscript do not scale properly

2011-12-15 Thread Andreas Mang
Hi there,

It came to my attention that there might be a problem when using math symbols 
in the superscript:

It seems that the symbols are not properly scaled (if downscaling was what I 
suppose to be the default behaviour). A small example is given below.

Thanks in advance.
 
Cheers,
Andreas

Minimal example:

\setupbodyfont[11pt]
\starttext 
$\int e^{\int f(x) dx} dy$
\stoptext

You can extend this by putting multiple superscripts, resulting in no change in 
size of the $\int$ symbols. 

Specifications:
Mac OS 10.5; ConTeXt ver: 2011.11.29 23:11 MKII  fmt: 2011.12.10  int: 
english/english


___
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] math symbols in superscript do not scale properly

2011-12-15 Thread Hans Hagen

On 15-12-2011 14:38, Andreas Mang wrote:

Hi there,

It came to my attention that there might be a problem when using math symbols 
in the superscript:

It seems that the symbols are not properly scaled (if downscaling was what I 
suppose to be the default behaviour). A small example is given below.

Thanks in advance.

Cheers,
Andreas

Minimal example:

\setupbodyfont[11pt]
\starttext
$\int e^{\int f(x) dx} dy$
\stoptext

You can extend this by putting multiple superscripts, resulting in no change in 
size of the $\int$ symbols.

Specifications:
Mac OS 10.5; ConTeXt ver: 2011.11.29 23:11 MKII  fmt: 2011.12.10  int: 
english/english


afaik nothing changed in mkii

Hans


-
  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] crlf in textext?

2011-12-15 Thread Hans van der Meer
Is it correct that the use of textext(label,pos) in MetApost pictures does not 
honor \crlf?
I could not make a twoline text with textext(abc\crlf xyz,pos), it comes out 
as one line abcxyz.
Is it a feature or a defect?

Hans van der Meer



___
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] crlf in textext?

2011-12-15 Thread Aditya Mahajan

On Thu, 15 Dec 2011, Hans van der Meer wrote:


Is it correct that the use of textext(label,pos) in MetApost pictures does not 
honor \crlf?
I could not make a twoline text with textext(abc\crlf xyz,pos), it comes out as one 
line abcxyz.
Is it a feature or a defect?


textext(...) is a hbox. So you need to either use

textext(\vbox{... \crlf ...})

or

textext(\noexpand\framed[align=normal]{... \crlf ...})

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


Re: [NTG-context] crlf in textext?

2011-12-15 Thread Meer, H. van der
Thanks. That solves the problem. 
I obviously missed the fact that textext is an \hbox, a fact that explains its 
behaviour.

Hans van der Meer



On 15 dec. 2011, at 16:06, Aditya Mahajan wrote:

 On Thu, 15 Dec 2011, Hans van der Meer wrote:
 
 Is it correct that the use of textext(label,pos) in MetApost pictures does 
 not honor \crlf?
 I could not make a twoline text with textext(abc\crlf xyz,pos), it comes 
 out as one line abcxyz.
 Is it a feature or a defect?
 
 textext(...) is a hbox. So you need to either use
 
 textext(\vbox{... \crlf ...})
 
 or
 
 textext(\noexpand\framed[align=normal]{... \crlf ...})
 
 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  : 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] MnSymbol (math) support in ConTeXt

2011-12-15 Thread Peter Park Nelson
Thanks Mojca, I will study the source and see if I can understand it enough
to proceed further.

For my purposes, I think a single optical size would be sufficient (at
least that would be a good start and enough of a challenge).

What happens when  --font=mnsymbol is used -- is there some level of font
support added, or does it just download the font files?

PPN

On Thu, Dec 15, 2011 at 7:29 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Wed, Dec 14, 2011 at 19:08, Peter Park Nelson wrote:
 
  If adding MnSymbol support were only a matter of tedious manual labor, I

 That is more or less the case. There is no reason why it should not
 work with ConTeXt.

 The main reason why I never looked into it is that the font offers
 different optical sizes. And supporting optical sizes is something
 that complicates matters a lot. If you would be happy with a single
 optical size, that would be a lot easier.

  would be willing to give it a try, but without an understanding of font
  internals I don't know where to start. Perhaps someone can suggest
 resources
  for learning?

 Are we talking about MKIV?

 ConTeXt sources. math-vfu.lua and other math-*.mkiv/lua files, as well
 as font-*.mkiv/lua.

 You need to define a mapping vector to map from 8bit font to UTF-8.
 See for example
 mathencodings[tex-mi] = {
[0x1D6E4] = 0x00, -- Gamma
[0x1D6E5] = 0x01, -- Delta
 in math-vfu.lua or tex/context/fonts/lucida-math.lfg or keep asking
 questions. There is no manual to explain how to write such vectors.

  Also, I see that there are MnSymbol files in
  http://minimals.contextgarden.net/current/fonts/extra/mnsymbol/ but
 these
  don't appear to be included in my ConTeXt Standalone installation. Does
  anyone know about them?

 You need an extra switch. I think that --font=mnsymbol should work,
 but I need to test (there's a chance that it doesn't and I plan to
 change that anyway).

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

 ___




-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] MnSymbol (math) support in ConTeXt

2011-12-15 Thread Mojca Miklavec
On Thu, Dec 15, 2011 at 18:54, Peter Park Nelson wrote:

 What happens when  --font=mnsymbol is used -- is there some level of font
 support added, or does it just download the font files?

It just downloads font files, it doesn't add any support for them.

(I have tried and --fonts=mnsymbol indeed works as intended.)

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

Re: [NTG-context] crlf in textext?

2011-12-15 Thread Hans Hagen

On 15-12-2011 16:06, Aditya Mahajan wrote:


textext(\noexpand\framed[align=normal]{... \crlf ...})


no need for a \noexpand here


-
  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] simplefonts: math in headers

2011-12-15 Thread Wolfgang Schuster

Am 15.12.2011 um 14:36 schrieb Philipp A.:

 Bump:
 
 2011/12/9 Philipp A. flying-sh...@web.de
 hi, i have the following setup:
 
 \usemodule[simplefonts]
 \setmainfont[Cambria]
 \setsansfont[Ubuntu]
 \setmonofont[Envy Code R][regularfont=envycoder]
 \setmathfont[Cambria]
 
 \setuphead[section][style={\ss\bfb}]
 
 \starttext
 \section{Wat? $y=x^2$}
 \stoptext
 
 why is the math in the header typeset in computer modern instead of ubuntu 
 and how do i fix it?
 
 PS: preferrably it should be bold, too. there is a wiki page, “Bold Math in 
 Section Titles” but it doesn’t explain how to do it with simplefonts.

There is no way for me to fix this because it’s a context bug.  You can see the 
effect with the following example, when you load LM before Pagella the heading 
use LM Math but when you load Pagella before LM Palatino math is used for the 
heading.

\setupbodyfont[modern]
\setupbodyfont[pagella]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$} $y=x^2$
\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] beta

2011-12-15 Thread Thomas A. Schmitz

Hi all, Hans,

something is not working with our simpleslides module and the latest 
beta. The following example (from our documentation) is not quite 
minimal, but it shows the problem:


\unprotect
\def\setupTitle%
  {\dosingleargument\dosetupTitle}

\def\dosetupTitle%
  {\setvariables[simpleslides:title]}

\def\simpleslidestitleparameter%
  {\getvariable{simpleslides:title}}

\def\simpleslidestitlecomponent#1%
  {\doattributes{\??vars:simpleslides:title:}{#1\c!style}{#1\c!color}
  {\getvariable{simpleslides:title}{#1}}}

\define\placeTitle
  {\dostartattributes{\??vars:simpleslides:title:}\c!style\c!color
\simpleslidestitlecomponent\c!title
   \dostopattributes}

\protect

\setupTitle
  [ title={Title of the presentation},
  ]

\starttext
\placeTitle

Write whatever you want.

Continue writing.

\stoptext

Instead of picking up and typesetting the content of the variable 
title, it typesets the word title. Beta from Nov. 29 works normally. 
Let me know if you can use this example or if you need something else 
(Aditya is away at a conference, he may be able to come up with a better 
example).


All best

Thomas
___
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] beta

2011-12-15 Thread Hans Hagen

On 15-12-2011 23:24, Thomas A. Schmitz wrote:

Hi all, Hans,

something is not working with our simpleslides module and the latest
beta. The following example (from our documentation) is not quite
minimal, but it shows the problem:

\unprotect
\def\setupTitle%
{\dosingleargument\dosetupTitle}

\def\dosetupTitle%
{\setvariables[simpleslides:title]}

\def\simpleslidestitleparameter%
{\getvariable{simpleslides:title}}

\def\simpleslidestitlecomponent#1%
{\doattributes{\??vars:simpleslides:title:}{#1\c!style}{#1\c!color}
{\getvariable{simpleslides:title}{#1}}}

\define\placeTitle
{\dostartattributes{\??vars:simpleslides:title:}\c!style\c!color
\simpleslidestitlecomponent\c!title
\dostopattributes}

\protect

\setupTitle
[ title={Title of the presentation},
]

\starttext
\placeTitle

Write whatever you want.

Continue writing.

\stoptext

Instead of picking up and typesetting the content of the variable
title, it typesets the word title. Beta from Nov. 29 works normally.
Let me know if you can use this example or if you need something else
(Aditya is away at a conference, he may be able to come up with a better
example).


fixed in next beta

Hans

-
  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] simplefonts: math in headers

2011-12-15 Thread Philipp A.
2011/12/15 Wolfgang Schuster schuster.wolfg...@googlemail.com

 There is no way for me to fix this because it’s a context bug.  You can
 see the effect with the following example, when you load LM before Pagella
 the heading use LM Math but when you load Pagella before LM Palatino math
 is used for the heading.

 \setupbodyfont[modern]
 \setupbodyfont[pagella]

 \setuphead[section][style={\ss\bfb}]

 \starttext
 \section{Wat? $y=x^2$} $y=x^2$
 \stoptext

 Wolfgang



umm, so this happens because this bug exists and simplefonts sets the fonts
on module load?

is there a way to fix it or is an official fix on the way?

thanks for the info,
philipp
___
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] Minion Pro - em and slant?

2011-12-15 Thread Chris Lott
I found a bunch of code that sets up Minion Pro (and Myriad) typefaces that 
seems to work (once I modified MinionPro-Italic and the rest to be MinionPro-It 
as it is on my system:
http://pastebin.com/muSg4dZN

However, neither \em nor \slanted make any change to the text. Since I'm 
basically blindly copying and pasting the typeface setup (is there a better way 
to use different fonts? The documentation is bewildering), I'm not sure what I 
need to do to get \em and \slanted working, though I really only care about the 
former... 

c
--
Chris Lott ch...@chrislott.org



___
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] optical centering...

2011-12-15 Thread Chris Lott
I've seen some discussion about creating a verse environment in ConTeXt that 
handles the alignment of long (broken) lines of text. But I can't find anything 
about optical centering as can be done in LaTeX using the gmverse package: 
http://www.ctan.org/pkg/gmverse

Is there something like this available for ConTeXt?

c
--
Chris Lott ch...@chrislott.org




___
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] optical centering...

2011-12-15 Thread Wolfgang Schuster

Am 16.12.2011 um 02:31 schrieb Chris Lott:

 I've seen some discussion about creating a verse environment in ConTeXt that 
 handles the alignment of long (broken) lines of text. But I can't find 
 anything about optical centering as can be done in LaTeX using the gmverse 
 package: http://www.ctan.org/pkg/gmverse
 
 Is there something like this available for ConTeXt?

Can you make a PDF where we can see what do you want?

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] simplefonts: math in headers

2011-12-15 Thread Wolfgang Schuster

Am 16.12.2011 um 00:13 schrieb Philipp A.:

 2011/12/15 Wolfgang Schuster schuster.wolfg...@googlemail.com
 There is no way for me to fix this because it’s a context bug.  You can see 
 the effect with the following example, when you load LM before Pagella the 
 heading use LM Math but when you load Pagella before LM Palatino math is used 
 for the heading.
 
 \setupbodyfont[modern]
 \setupbodyfont[pagella]
 
 \setuphead[section][style={\ss\bfb}]
 
 \starttext
 \section{Wat? $y=x^2$} $y=x^2$
 \stoptext
 
 Wolfgang
 
 
 umm, so this happens because this bug exists and simplefonts sets the fonts 
 on module load?

Yes.

 is there a way to fix it or is an official fix on the way?


Wait for Hans to fix it and use in the meantime

\usemodule[simplefonts]

\definesimplefonttypeface[mainface][Cambria]
\definesimplefonttypeface[mainface][Ubuntu] [style=sans]
\definesimplefonttypeface[mainface][cambria][style=math]

\setupbodyfont[mainface]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$} $y=x^2$
\stoptext

or

\definetypeface[mainface][rm][specserif][Cambria]
\definetypeface[mainface][ss][specsans] [Ubuntu]
\definetypeface[mainface][mm][math] [cambria]

\setupbodyfont[mainface]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$} $y=x^2$
\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] beta

2011-12-15 Thread Thomas A. Schmitz

On 12/15/11 23:41, Hans Hagen wrote:

fixed in next beta

Hans


Thanks a lot, Hans!

Thomas
___
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] optical centering...

2011-12-15 Thread Chris Lott
On Thu, Dec 15, 2011 at 8:22 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 16.12.2011 um 02:31 schrieb Chris Lott:

 I've seen some discussion about creating a verse environment in ConTeXt that 
 handles the alignment of long (broken) lines of text. But I can't find 
 anything about optical centering as can be done in LaTeX using the gmverse 
 package: http://www.ctan.org/pkg/gmverse

 Is there something like this available for ConTeXt?

 Can you make a PDF where we can see what do you want?

The documentation for the gmverse package probably explains it better
than I can. Here's a direct link:
http://mirror.ctan.org/macros/latex/contrib/gmverse/gmverse.pdf

Thanks!

c
--
Chris Lott
___
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
___