Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Mojca Miklavec
On 8/4/06, Renaud AUBIN wrote:
>
>  Hi all,
>
>  I use lucida for a document and now I need some bold math fonts so I have
> followed the instructions given in "This Way - Mixed Normal and Bold Math".
> The resulting test file is:
...

Apart from the problem that you have with Demibold:

I guess that bold math is still a weak point of ConTeXt (I might be
wrong, but last time when I was asking about bold math with iwona, I
got some answers/workarounds, but not really the definite answer how
to solve the problem - the best solution was to use own switch for
bold and cheat by switching to text mode, change typeface there and
switch to math mode again, with some care to properly handle
displaystyle, textstyle, scriptstyle, ...).

Bold math somehow works with CM, but when another font is used, it's a
pure confusion (or at least I can't handle the situation).

Adam wrote some patch at that time which never got into the core. As
far as I remember some bold math worked better, but \rm, \bi, ...
switches failed.

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


Re: [NTG-context] \in

2006-08-04 Thread Aditya Mahajan
On Sat, 5 Aug 2006, Renaud AUBIN wrote:

> Hi all,
>
> Is that possible to setup the \in command to obtain:
> - \in[fig:fig_ref] returns figure 1.1
> - \in[eq:eq_ref] returns (1.1)
> _ \in[sec:sec_ref] returns section 2.1
>
> Up to now I have used:
> - \in{figure}[fig:fig_ref]
> - \in{(}{)}[eq_eq_ref] (but there is an extra h space just after "(" )
> - \in{section}[sec_sec_ref]

Here is a very simple mechanism, I do not take 
care of all the bells and whistles [1] of \in.

\def\myin[#1:#2]{
   \expandafter\ifx\csname in#1\endcsname\relax
 \writestatus{warning}{referenceformat in#1 not defined}
 \in[#1:#2]
   \else
 \csname in#1\endcsname[#1:#2]
   \fi}

\definereferenceformat[insec][text=Section]

\starttext
\section[sec:one]{One}

\placeformula[eq:1]\startformula
   a = b
\stopformula

What happens in \myin[sec:one] equation \myin[eq:1].

\definereferenceformat[ineq][left=(,right=)]

What happens in \myin[sec:one] equation \myin[eq:1].

\stoptext

[1] Remember that \in is a very complex command. You can use
\in section [sec:one] instead of \in{section}[sec:one] and also do 
subnumbering.

> Moreover, how could I set the face of the output ?

I do not know how. You can abuse left, right options to do this, but I 
think that there is a better way.

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


Re: [NTG-context] \in

2006-08-04 Thread David Arnold
A partial answer:\definereferenceformat[infigure][text=Figure]\definereferenceformat[infigures][text=Figures]\definereferenceformat[intable][text=Table]\definereferenceformat[intables][text=Tables]\definereferenceformat[insection][text=Section]\definereferenceformat[inequation][left=(,right=),text=equation]\definereferenceformat[inexample][text=Example]\definereferenceformat[indefinition][text=Definition]Then, in \inequation[eq:newton], we see ...On Aug 4, 2006, at 5:44 PM, Renaud AUBIN wrote: Hi all,  Is that possible to setup the \in command to obtain: - \in[fig:fig_ref] returns figure 1.1 - \in[eq:eq_ref] returns (1.1) _ \in[sec:sec_ref] returns section 2.1  Up to now I have used: - \in{figure}[fig:fig_ref] - \in{(}{)}[eq_eq_ref] (but there is an extra h space just after "(" ) - \in{section}[sec_sec_ref]  Moreover, how could I set the face of the output ?  Cheers,  Renaud ___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \in

2006-08-04 Thread Renaud AUBIN




Hi all,

Is that possible to setup the \in command to obtain:
- \in[fig:fig_ref] returns figure 1.1
- \in[eq:eq_ref] returns (1.1)
_ \in[sec:sec_ref] returns section 2.1

Up to now I have used:
- \in{figure}[fig:fig_ref]
- \in{(}{)}[eq_eq_ref] (but there is an extra h space just after "(" )
- \in{section}[sec_sec_ref]

Moreover, how could I set the face of the output ?

Cheers,

Renaud



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


Re: [NTG-context] index (again)

2006-08-04 Thread Hans Hagen
Steffen Wolfrum wrote:
> Unfortunately "has to be finished".
> But if it is to much work just tell me: then I skip the whole index  
> and type the entire register by hand.
> I just need to know whether to start (would be quite some pages)...
>   
ok, i sent you a test core-reg.tex file (remake the format); no key/val control 
yet   

\starttext

\chardef\collapseregisterpages\zerocount \placeregister[index]
\blank[2*big]
\chardef\collapseregisterpages\plusone   \placeregister[index]

\page

\dorecurse{10}{test 1:!\index{test} test \page}
\dorecurse{5} {test 2:\recurselevel  \page}
\dorecurse{10}{test 3:!\index{test} test \page}
\dorecurse{5} {test 4:\recurselevel  \page}
\dorecurse{1} {test 5:!\index{test} test \page}
\dorecurse{5} {test 6:\recurselevel  \page}
\dorecurse{10}{test 7:!\index{test} test \page}
\dorecurse{5} {test 8:\recurselevel  \page}

oeps \index{oeps}
 \index{}
todo \index{todo}

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] stange error in Live ConTeXt

2006-08-04 Thread Peter Rolf
Hi Taco (debugging grandmaster),

Taco Hoekwater wrote:
> Hi Peter and "Author of Live.contextgarden.net",
>
:)

I have a real special ConTeXt installation (85MB in a ramdisk; eshell),
so live.contextgarden.net is a good place to check code on a more
'normal' platform. Using context live I can simply see if it's my
problem (most too often) or a general one.

Thanks again and also to Patrick for this really nice feature.

Greetings, Peter

> Peter Rolf wrote:
>> The following code works here, but not at context live. What have I done
>> now? ;)
> 
> Not something you did ;-)
> 
> Your first comment line is confusing the Live setup. This extremely
> minimal example fails as well:
> 
>% interface=en output=pdftex
>\starttext
>Hello
>\stoptext
> 
> 
> Cheers, Taco
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

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


Re: [NTG-context] Updated My Way on math alignment

2006-08-04 Thread Aditya Mahajan
Hi Wim,

On Fri, 4 Aug 2006, WN wrote:

> I have a question about \startcases .. \stopcases.
> I am trying to adjust the distance of the cases and the right brace, the
> left brace is empty,
> see example below. Is this possible ?

It is. You can do it in different ways, depending on what you like.

> % Example
> \starttext
> \startformula
> *\startcases[left={\left.},right={\right\}}]*
> \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR
> \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b  \NC \NR
> \stopcases
> \text{(distributieve eigenschappen)}
> \stopformula
> \stoptext


  \starttext

The original one.

  \startformula
  \startcases[left={\left.},right={\right\}}]
  \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR
  \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b  \NC \NR
  \stopcases
  \text{(distributieve eigenschappen)}
  \stopformula

You can reduce the \quotation{width} of the cases,

\startformula
\startcases[left={\left.},right={\right\}},numberdistance=0pt]
  \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR
  \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b  \NC \NR
  \stopcases
  \text{(distributieve eigenschappen)}
  \stopformula

or use a matrix (only one column)

\startformula
   \startmatrix[left={\left.},right={\right\}}]
 \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR
 \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b\NR
  \stopmatrix
  \text{(distributieve eigenschappen)}
  \stopformula

maybe a right aligned one

\startformula
   \startmatrix[left={\left.},right={\right\}},align=right]
 \NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR
 \NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b\NR
  \stopmatrix
  \text{(distributieve eigenschappen)}
  \stopformula

  and this is how I would do it

\definemathmatrix[aligned][n=2,align={right,left},distance=0pt]

\startformula
   \startaligned[left={\left.},right={\right\}}]
 \NC (\lambda + \mu ) \cdot a \NC{} = \lambda \cdot a + \mu \cdot a 
\NR
 \NC \lambda ( a + b ) \NC {}= \lambda \cdot a + \lambda \cdot b 
\NR
\stopaligned
  \text{(distributieve eigenschappen)}
  \stopformula

Aditya

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


Re: [NTG-context] custom itemize

2006-08-04 Thread Renaud AUBIN

% frenchitemize
\setbox0=\hbox{--~}
\def\indenteddash#1{\hskip\parindent--~}
\definesymbol[indentdash][\indenteddash]
\def\startfrenchitemize{\startitemize[indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr
\parindent + \wd0 \relax]}
\def\stopfrenchitemize{\stopitemize}

% frenchenumerate
\setbox1=\hbox{0.~}
\def\indentedfrenchnumber#1{\hskip\parindent#1.~}
\defineconversion[frenchnumber][\indentedfrenchnumber]
\def\startfrenchenumerate{\startitemize[frenchnumber,packed,joinedup,intext][stopper={},indentnext=yes,width=\dimexpr
\parindent + \wd1 \relax]}
\def\stopfrenchenumerate{\stopitemize}

% default behavior of itemize (frenchitemize)
\setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr
\parindent + \wd0 \relax]


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


Re: [NTG-context] Updated My Way on math alignment

2006-08-04 Thread WN
[EMAIL PROTECTED] wrote:
> Hi,
>   I have updated myway on using alignment. It now also explains 
> features of matrix (similar to array of latex), cases, substack and 
> intertext. Most of the discussion on mathalignment (similar to align 
> and gather environments of latex) is the same as before.
>
> http://dl.contextgarden.net/myway/mathalign.pdf
>
> source
>
> http://dl.contextgarden.net/myway/mathalign.tex
>
> Taco, I am also describing how to use style=... feature of matrix that 
> you sent a while back, hoping that it will make to the core :-)
>
> Aditya
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   
I have a question about \startcases .. \stopcases.
I am trying to adjust the distance of the cases and the right brace, the 
left brace is empty,
see example below. Is this possible ?
Kind regards
Wim

% Example
\starttext
\startformula
*\startcases[left={\left.},right={\right\}}]*
\NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NC \NR
\NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b  \NC \NR
\stopcases
\text{(distributieve eigenschappen)}
\stopformula
\stoptext

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


Re: [NTG-context] index (again)

2006-08-04 Thread Steffen Wolfrum

Am 04.08.2006 um 14:17 schrieb Hans Hagen:

> Steffen Wolfrum wrote:
>> Hi,
>>
>> today evening is the deadline and I need to know a solution to the
>> following request.
>>
>> If there is *NO* solution possible in ConTeXt please tell me today  
>> (!)
>> so I can think of a complete different workaround.
>>
> there is always a solution possible but writing one takes time -)
>
> (i remember that there was something taing car of this)
>
> is the deadline "telling that it can be done" or "has to be finished"
>
> Hans

Unfortunately "has to be finished".
But if it is to much work just tell me: then I skip the whole index  
and type the entire register by hand.
I just need to know whether to start (would be quite some pages)...

Steffen

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


Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN

Hans, can you help on this one ?

After checking the lucida's afm, it appears that the correct name of
type-buy.tex's LucidaNewMath-DemiBold is LucidaNewMath-Demibold...
I have corrected type-buy.tex but \startformula {\bfm R} \stopformula is
LucidaNewMath-AltItalic... I have understood "Mixed Normal ... Math", I
should have LucidaNewMath-DemiBold... Right ?

As far as I understand, \bfm bolds the current math font... So, I have a
beginner's question, what's the best method to apply when one would
switch from bf to bi for example ?

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


Re: [NTG-context] custom itemize

2006-08-04 Thread Taco Hoekwater


Renaud AUBIN wrote:
> 
> Hi all,
> 
> Some times ago, Taco helps me to define a custom itemize:
> \setbox0=\hbox{--~}
> \def\indenteddash#1{\hskip\parindent--~}
> \definesymbol[indentdash][\indenteddash]
> \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr
>  
> \parindent + \wd0 \relax]

> Now, I would a new custom itemize with numbered items:
> 
>  1. first paragraph ..
>  with a lot of text (multiline),
>  2. second paragraph ..
>  with a lot of text (multiline).
> 
> How to do that ?

  \setbox0=\hbox{0.~}
  \def\indenteddash#1{\hskip\parindent #1.~}
  \defineconversion[indentdash][\indenteddash]
  \setup... % as before

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


[NTG-context] stange error in Live ConTeXt

2006-08-04 Thread Taco Hoekwater

Hi Peter and "Author of Live.contextgarden.net",

Peter Rolf wrote:
> 
> The following code works here, but not at context live. What have I done
> now? ;)

Not something you did ;-)

Your first comment line is confusing the Live setup. This extremely
minimal example fails as well:

   % interface=en output=pdftex
   \starttext
   Hello
   \stoptext


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


[NTG-context] custom itemize

2006-08-04 Thread Renaud AUBIN





Hi all,

Some times ago, Taco helps me to define a custom itemize:
\setbox0=\hbox{--~}
\def\indenteddash#1{\hskip\parindent--~}
\definesymbol[indentdash][\indenteddash]
\setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr
\parindent + \wd0 \relax]

The result of, for example:
\startitemize
\item first paragraph ... with a lot of text (multiline),
\item second paragraph
... with a lot of text (multiline).
\stopitemize

is:
 -- first paragraph ..
 with a lot of text (multiline),
 -- second paragraph ..
 with a lot of text
(multiline).

Now, I would a new custom itemize with numbered items:

 1. first paragraph ..
 with a lot of text (multiline),
 2. second paragraph ..
 with a lot of text
(multiline).

How to do that ?

TIA


Renaud



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


[NTG-context] New bib module release

2006-08-04 Thread Taco Hoekwater
Hi all,

I have just uploaded a new version of the bib module to

   http://modules.contextgarden.net/bib

It should become automatically included in the next ConTeXt
release, as always.

New features:

* Added support for configuration of \completepublicationlist,
   using \setuppublicationlist[title=\chapter]
* The module now uses the expansion of \headtext{pubs}, so that
   PDF bookmarks should come out alright.
* A hook is added for support of repeated author suppression in
   the publication list:
 \setuppublicationlist[artauthorcommand=\threeargs]
   (see the manual for a bit more information)
* The bracketed arguments of \artauthor, \author and \editor
   (bbl commands) are now optional.
* Minor updates to the documentation

Happy TeXing,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Peter Rolf
Taco Hoekwater wrote:
> Taco Hoekwater wrote:
>> Hi Peter,
>>
>> Peter Rolf wrote:
>>
>>> If someone can solve this problem I would be very glad.
>>
>> Adding a semicolon after the 'endgroup' command removes
>> the error.
> 
> (I just looked at your pdf document).
> 
> You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'.
> 
> Taco
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 
The following code works here, but not at context live. What have I done
now? ;)

Peter


 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
   tex : pdfTeX, 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5)
   context : ver: 2006.08.02 23:31
   cont-en : ver: 2006.08.02 23:31  fmt: 2006.8.4  mes: en




% interface=en output=pdftex
% Time-stamp: 
%
\setupcolors[state=start]

\def\DbgFill{0}

\startMPinclusions
def dbg_fill (text p) =
  if (\DbgFill=0) :
fill p ;
  fi
enddef ;
\stopMPinclusions


\startuseMPgraphic{My_SquareA}
begingroup
  if (\DbgFill=0) :
fill OverlayBox withcolor green ;
  fi
endgroup ;
\stopuseMPgraphic

\defineoverlay[MySquareA]
[\useMPgraphic{My_SquareA}]


\startuseMPgraphic{My_SquareB}
begingroup
  dbg_fill(OverlayBox withcolor yellow) ;
endgroup ;
\stopuseMPgraphic

\defineoverlay[MySquareB]
[\useMPgraphic{My_SquareB}]



\starttext

\def\DbgFill{0}
{\bf DbgFill=0:}

\framed[background=MySquareA]{TestA}
\framed[background=MySquareB]{TestB}

\def\DbgFill{1}
{\bf DbgFill=1:}

\framed[background=MySquareA]{TestA}
\framed[background=MySquareB]{TestB}


\stoptext

%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:

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


Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Peter Rolf
Taco Hoekwater wrote:
> 
> Peter Rolf wrote:
>> BTW: Why do I need a semicolon after 'endgroup', but (in most cases) not
>> after 'fi', 'endfor'?
> 
> You need a semicolon at the end of a statement. The  and 
> constructs are not statements, they are preprocessed.
> 
> You get the 'extra tokens' error when Metapost sees something like
> 
>   endgroup a:=1;
> 
> because it knows that 'endgroup' can only be a statement on its own.
> 
I see. A day of insight :)

>>> (I just looked at your pdf document).
>>>
>>> You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'.
>>>
>> I'm not sure what you mean. Using 'useMPgraphic' to load all kind of MP
>> graphics?
> 
> You have to use \startuseMPgraphic and \useMPgraphic instead of
> \startuniqueMPgraphic, otherwise the output of both images will be
> identical.
> 
Again stupid me. If the size of the overlay does not change, the graphic
does not. So this was a 'bad' example (but now the beta runs like a
charm). Thanks Taco.

Greetings, Peter

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

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


Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Taco Hoekwater


Peter Rolf wrote:
> BTW: Why do I need a semicolon after 'endgroup', but (in most cases) not
> after 'fi', 'endfor'?

You need a semicolon at the end of a statement. The  and 
constructs are not statements, they are preprocessed.

You get the 'extra tokens' error when Metapost sees something like

endgroup a:=1;

because it knows that 'endgroup' can only be a statement on its own.

> 
>>(I just looked at your pdf document).
>>
>>You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'.
>>
> 
> I'm not sure what you mean. Using 'useMPgraphic' to load all kind of MP
> graphics?

You have to use \startuseMPgraphic and \useMPgraphic instead of
\startuniqueMPgraphic, otherwise the output of both images will be
identical.

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


Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Peter Rolf
Taco Hoekwater wrote:
> Taco Hoekwater wrote:
>> Hi Peter,
>>
>> Peter Rolf wrote:
>>
>>> If someone can solve this problem I would be very glad.
>>
>> Adding a semicolon after the 'endgroup' command removes
>> the error.
> 
_Thank you very much, Taco!_ I have spent several hours to fix this MP
error, without any success. The resulting docs looked ok, but if you
have 50 or more MP graphics, you can't hit 'q' every time.

BTW: Why do I need a semicolon after 'endgroup', but (in most cases) not
after 'fi', 'endfor'?

> (I just looked at your pdf document).
> 
> You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'.
> 
I'm not sure what you mean. Using 'useMPgraphic' to load all kind of MP
graphics?

I must try the latest beta... :)

Peter

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

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


Re: [NTG-context] index (again)

2006-08-04 Thread Hans Hagen
Steffen Wolfrum wrote:
> Hi,
>
> today evening is the deadline and I need to know a solution to the  
> following request.
>
> If there is *NO* solution possible in ConTeXt please tell me today (!)
> so I can think of a complete different workaround.
>   
there is always a solution possible but writing one takes time -)

(i remember that there was something taing car of this)

is the deadline "telling that it can be done" or "has to be finished"

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-04 Thread Hans Hagen
Mojca Miklavec wrote:
> On 8/4/06, David Wooten wrote:
>   
>> Hans Hagen wrote:
>> 
>>> what is the label font then? probably defaultfont so you need to set
>>> that as well
>>> also, label does not use tex, use
>>>
>>> label(\textext("very"),z46)
>>>   
>
> should be \textext{very}
>   
indeed -)
>   
>> That's it, indeed (though without the back-slash for textext):
>>
>> label(textext("very"),z46)
>> 
>
> I would use
> label(\sometxt{very},z46);
>
> It works much better and you don't need to specify anything in the
> MPenvironment. The default document font will be used.
>   
usable in 90% of the cases (not in loops)
> To Hans: \textext is not documented anywhere yet. Would it make sense
> to make it a synonym for \sometxt perhaps?
>   
too confusing

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-04 Thread Hans van der Meer

On Aug 4, 2006, at 10:46, Mojca Miklavec wrote:

> On 8/4/06, David Wooten wrote:
>> Hans Hagen wrote:
>>> what is the label font then? probably defaultfont so you need to set
>>> that as well
>>> also, label does not use tex, use
>>>
>>> label(\textext("very"),z46)
>
> should be \textext{very}
>
>> That's it, indeed (though without the back-slash for textext):
>>
>> label(textext("very"),z46)
>
> I would use
> label(\sometxt{very},z46);
>
> It works much better and you don't need to specify anything in the
> MPenvironment. The default document font will be used.
>
> Mojca
>
> To Hans: \textext is not documented anywhere yet. Would it make sense
> to make it a synonym for \sometxt perhaps?

Please don't. I have experienced a difference between textext and  
sometext, the former needed when metapost variables are combined.

Hans van der Meer



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


Re: [NTG-context] index (again)

2006-08-04 Thread Steffen Wolfrum
Hi,

today evening is the deadline and I need to know a solution to the  
following request.

If there is *NO* solution possible in ConTeXt please tell me today (!)
so I can think of a complete different workaround.

Thank you.

Steffen




When I set my document with the settings  (see deeptextcommand) below
then a entry looks like this:

Ministererlaubnis 12, 15, 16, 17,
18, 29, 30, 31, 32, 33, 34, 35,
37, 38, 39, 75, 82, 83, 84, 85, 86,
87, 159, 222, 222, 222, 227, 228,
228, 228, 228, 229, 231, 232,
233, 234, 235, 236, 238, 239,
248, 260, 261, 265, 277, 278,
279, 280, 282, 283, 286, 289,
304, 311, 318, 323, 324, 328,
330, 333, 335, 339, 343

That makes sense when using the resulting PDF as a interactive document.
But I need the resulting PDF for printing only - so now interactive  
"jump to page and index mark" is wanted.

What I want instead is a more readable version of my index entries  
like the following:

Ministererlaubnis 12, 15-18,
29-35, 37-39, 75, 82-87, 159,
222, 227-229, 231, 232-236,
238-239, 248, 260-261, 265,
277-280, 282-283, 286, 289,
304, 311, 318, 323-324, 328,
330, 333, 335, 339, 343

You see?

For example 222 doesn't show up 3 times but 1 time only.
And it's not 37, 38, 39 but 37-39, for example.

This is what I need, and what I need help for.

Steffen



Am 03.08.2006 um 00:08 schrieb Hans Hagen:

> Steffen Wolfrum wrote:
>> Hans,
>>
>> what about you?
> i'm not sure what you want, what is "real document"
>
> Hans
>>
>> Steffen
>>
>>
>>
>> Anfang der weitergeleiteten E-Mail:
>>
>>> Von: Taco Hoekwater <[EMAIL PROTECTED]>
>>> Datum: 2. August 2006 11:47:27 MESZ
>>> An: mailing list for ConTeXt users 
>>> Betreff: Re: [NTG-context] index (again)
>>> Antwort an: mailing list for ConTeXt users 
>>>
>>>
>>>
>>> Steffen Wolfrum wrote:

 It's like this:

 \unprotect

 \def\dosetpageregisterentrya#1#2%
>>>
>>> Unf., I do not know much about register prosessing, so
>>> I cannot say whether it can do this. I hope someone else
>>> knows.
>>>
>>> Taco
>>
>>
>>
>>
>> Am 02.08.2006 um 10:14 schrieb Steffen Wolfrum:
>>> Am 02.08.2006 um 10:01 schrieb Taco Hoekwater:
 Steffen Wolfrum wrote:
> Hi,
>
> I need to know if the following is possible in ConTeXt.
>
> If it's not, please don't hesitate to tell me, so I can think of a
> work-around.
> It it is possible, it would be great to tell me how!

 Is this is inside a register or keyed directly into your document?

 Taco
>>>
>>>
>>> It's like this:
>>>
>>> \unprotect
>>>
>>> \def\dosetpageregisterentrya#1#2%
>>>{\edef\currententrylevel{1}%
>>> \global\let\c!entryb\relax
>>> \global\let\c!entryc\relax
>>> \gdef\c!entrya
>>>   {\iffirstregisterentry\else\endgraf\fi % new
>>>\global\firstregisterpagetrue
>>>\hangindent1em\noindent\c!entryreference
>>>\dohandleregisterentry{\executeifdefined
>>>  {\??id#1\c!deeptextcommand}\firstofoneargument{#2}}%
>>>\global\firstregisterentryfalse
>>>\global\firstsubentrytrue
>>>\global\firstsubsubentrytrue}}
>>>
>>> \def\HowUgly#1{\doHowUgly#1\relax}
>>>
>>> \def\doHowUgly#1#2\relax{\iffirstregisterentry{\bf#1}\else#1\fi#2}
>>>
>>> \setupregister[index][indicator=no,deeptextcommand=\HowUgly]
>>>
>>> \starttext
>>>
>>> \chapter{First Chapter}
>>> Some text...\index{word}
>>>
>>> \section {First Section}
>>> Some text...\index{word}
>>> Some text...\index{another entry}
>>> Some text...\index{ansi}
>>> Some text...\index{another entry}
>>>
>>> \page[yes]
>>>
>>> \completeindex
>>>
>>> \stoptext
>>>
>>>
>>> ... but in my real document looking like this:
>>>
>>> Ministererlaubnis 12, 15, 16, 17,
>>> 18, 29, 30, 31, 32, 33, 34, 35,
>>> 37, 38, 39, 75, 82, 83, 84, 85, 86,
>>> 87, 159, 222, 222, 222, 227, 228,
>>> 228, 228, 228, 229, 231, 232,
>>> 233, 234, 235, 236, 238, 239,
>>> 248, 260, 261, 265, 277, 278,
>>> 279, 280, 282, 283, 286, 289,
>>> 304, 311, 318, 323, 324, 328,
>>> 330, 333, 335, 339, 343
>>>
>>>
>>> Steffen
>>> ___
>>> ntg-context mailing list
>>> ntg-context@ntg.nl
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>>
>>
>>
>
>
> -- 
>
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -
>
>

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


Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Taco Hoekwater
Taco Hoekwater wrote:
> Hi Peter,
> 
> Peter Rolf wrote:
> 
>>If someone can solve this problem I would be very glad.
> 
> 
> Adding a semicolon after the 'endgroup' command removes
> the error.

(I just looked at your pdf document).

You probably want 'useMPgraphic' instead of 'uniqueMPgraphic'.

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


Re: [NTG-context] TeX trigger in MP macro

2006-08-04 Thread Taco Hoekwater

Hi Peter,

Peter Rolf wrote:
> If someone can solve this problem I would be very glad.

Adding a semicolon after the 'endgroup' command removes
the error.

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


Re: [NTG-context] fullpage graphic

2006-08-04 Thread Patrick Gundlach
Hi,

> I tried to access 'http://texshow.contextgarden.net/' some times the 
> last days. I saw the left frame and the topics home and help are 
> functioning, but all the other stuff gave me an error. Is this me 
> alone?

You should try to contact the author of texshow-web (email address is
on the front page) or post the problem on the dev-context mailinglist.
Please describe exactly what you were doing and what you did expect
(include date/time in your email).

The problem is that I don't read this list on a regular basis, so
posts like this may slip off unnoticed.

Patrick
-- 
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] \startMPenvironment : personal font weirdness

2006-08-04 Thread Mojca Miklavec
On 8/4/06, David Wooten wrote:
> Hans Hagen wrote:
> > what is the label font then? probably defaultfont so you need to set
> > that as well
> > also, label does not use tex, use
> >
> > label(\textext("very"),z46)

should be \textext{very}

> That's it, indeed (though without the back-slash for textext):
>
> label(textext("very"),z46)

I would use
label(\sometxt{very},z46);

It works much better and you don't need to specify anything in the
MPenvironment. The default document font will be used.

Mojca

To Hans: \textext is not documented anywhere yet. Would it make sense
to make it a synonym for \sometxt perhaps?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Conflict with chapter definition and header

2006-08-04 Thread Taco Hoekwater


Confused Scientist wrote:
> Thanks Taco.
> 
> This is certainly closer to what I'm trying to do, but I still have a 
> problem with the chapter names missing from the header of every odd/left 
> page.  Below is how I setup the headers:


The setups are the problem. Your code essentially does

   \vbox{\chapter{}}

The result is that the markings from the \chapter stay local
to the \vbox that contains it. You need something like this
instead (I leave the details for you to sort out)

\setuphead
   [chapter]
   [command=\MyChapterText,
before=\setups{chapter:before},
after=]

\def\MyChapterText#1#2%
   {\vbox to 35mm
  {\headtext{chapter}~#1\blank[small]#2\vss}}

\startsetups [chapter:before]
   \page[left]
   \noheaderandfooterlines
   \vbox to 35mm{}
   \vbox{\blank
   \startalignment[left,nothyphenated]
 \noindent \setups[chapter:quote]
   \stopalignment}
   \resetsetups[quote:text]
   \page[right]
   \noheaderandfooterlines
\stopsetups


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


Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN




texfont prints out the typo error too (LucidaNewMath-Demibold)... How
can we change this ? (this font entry in texnansi-bh-lucida.map is
LucidaNewMath-Demibold)

Renaud AUBIN a écrit :

  
  
But there is a problem with \startformula[lucida] 1 \Gamma {\bfm \alpha
x} \stopformula i.e. the "x" is not in bold rm...
  
Renaud AUBIN a écrit :
  



Good Morning Taco,

It works, thanks...

  
  

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




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


Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN




But there is a problem with \startformula[lucida] 1 \Gamma {\bfm \alpha
x} \stopformula i.e. the "x" is not in bold rm...

Renaud AUBIN a écrit :

  
  
  
Good Morning Taco,
  
It works, thanks...
  



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


Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Renaud AUBIN





Good Morning Taco,

It works, thanks...

Taco Hoekwater a écrit :

  Renaud AUBIN wrote:
  
  
Hi all,

I use lucida for a document and now I need some bold math fonts so I 
have followed the instructions given in "This Way - Mixed Normal and 
Bold Math". The resulting test file is:

  
  
There is a typo in type-buy.tex. There is one line that contains

   \definefontsynonym [MathRomanBold] [LucidaNewMath-Demibold]

but it should be:

   \definefontsynonym [MathRomanBold] [LucidaNewMath-DemiBold]

(capital B on the last Bold)


Taco




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


  




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


Re: [NTG-context] "e" sends error to bbedit

2006-08-04 Thread Taco Hoekwater
David Arnold wrote:
> I tried this in my .bash_profile:
> 
> export TEXEDIT="bbedit +%d %s"
> 
> To no avail. Any other Mac users on this list have bbedit set up  
> correctly?

Perhaps it is not in the standard search path. Have you tried
adding a full path to bbedit?

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


Re: [NTG-context] cdwincontext

2006-08-04 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
>>If the batch file is still functionally equivalent, it would
>>make sense to include it in the distribution. I vaguely recall
>>that I had removed all of the 'smart' stuff from the batch
>>file to please command.com, making it much less functional,
>>but perhaps that is more an indication of how well I know
>>command.com ;-)
> 
> 
> As I remember, most, if not all of the smart stuff mentioned has to 
> do with automatic recognition of the install-directory.
> All this smartness is nice, if things work. In the other cases 
> smartness is a jungle and it would be easier to check a dumb but 
> simple list of set commands. These batch-files for example are not
> smart enough to recognize if they are running under the right command-
> prozessor and a normal windows 98 user might be very helpless what 
> had gone wrong.

weren't you the one that said scripting languages were
like shooting a cannon? ;-)

> But the settings in scite had to be altered too. 

Yes (using %COMMSPEC% like you said should work).

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


Re: [NTG-context] Mixed Normal and Bold Math -- Problem with Lucida

2006-08-04 Thread Taco Hoekwater
Renaud AUBIN wrote:
> 
> Hi all,
> 
> I use lucida for a document and now I need some bold math fonts so I 
> have followed the instructions given in "This Way - Mixed Normal and 
> Bold Math". The resulting test file is:

There is a typo in type-buy.tex. There is one line that contains

   \definefontsynonym [MathRomanBold] [LucidaNewMath-Demibold]

but it should be:

   \definefontsynonym [MathRomanBold] [LucidaNewMath-DemiBold]

(capital B on the last Bold)


Taco




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