Re: [NTG-context] \setupheader: leftstyle rightstyle

2007-07-23 Thread Mojca Miklavec
On 7/23/07, Matt Gushee wrote:
 Mojca Miklavec wrote:

   \setupheadertexts
   [\sc Book Title][]
   [][{\it (\getmarking[chapter][current])}]

 Okay, that seems to work, too. But why use the [current] argument? Are
 there conditions where

\getmarking[chapter]

 doesn't return the current chapter title?

Probably not, it's only an optional parameter. You have also [last],
[first], ... etc., but [current] is (most probably) the default one.

   However, there seems to be a little bug. This works perfectly well for
   section (\getmarking[section]), but for chapter the chapter labels
   seem to be erased after the first appearance.

 Hmm, that doesn't happen for me. I'm using the 2007-01-23 release of
 ConTeXt. Which version are you using?

I tested with 2007.04.17, 2007.01.12 and 2007.07.03, but result is the
same: Chapter title only appears on the first page and never again. If
you replace chapter by section, it works OK.

Mojca



\setuppagenumbering
[alternative=doublesided,location=bottom]
\setupheadertexts
[{\sc Book Title}][]
[][{\it (\getmarking[chapter][current])}]

\starttext

some text

\page

\chapter{First Chapter}

some text

\page

some text

\page

some text

\page

\chapter{Second Chapter}

some text

\page

\chapter{Third Chapter}

some text

\page

some text

\stoptext
___
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] problem with mp clip

2007-07-23 Thread Peter Rolf
Patrick Gundlach schrieb:
   Is there a way to add the test pictures (cont-img.zip) to 'live context'?
 
 They are already installed, but not in a local path. I have changed
 'live context' so now the sample figures are in the search path. 
 
 Patrick


Thanks Patrick! This makes life easier :)

Peter
___
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] problem with mp clip

2007-07-23 Thread Peter Rolf
Hans Hagen schrieb:
 Peter Rolf wrote:
 Hi,

 it seems, that clipping with a MetaPost path is broken (at least on my
 machine). I couldn't test it on Contextgarden, as the standard example
 pictures are not installed (or the !!path is not searched).

 Anyhow, if someone can test this please.

 
 
 has to do with the changed mp output ... in supp-mps.tex change this ...
 
 \bgroup
 \catcode`\%=\@@active
 \catcode`\/=\@@comment
 \gdef\dograbMPclippath/
{\setbox\scratchbox=\hbox\bgroup/
 \catcode`\%=\@@active
 \obeylines\let\obeyedline\space
 \def\do##1q n##2p W##3\od/
   {\xdef\MPclippath{##2}\endinput}/
 \def%##1%%EOF/
   {\do##1q np W\od\endinput}/
 \readfile{\MPgraphicfile.\the\currentMPgraphic}{}{}/
 \ifx\MPclippath\empty
   \def\do##1newpath##2closepath##3\od/
 {\xdef\MPclippath{##2}\endinput}/
   \def%##1%%EOF/
 {\do##1newpathclosepath\od\endinput}/
   \readfile{\MPgraphicfile.\the\currentMPgraphic}{}{}/
 \fi
 \deallocateMPslot\currentMPgraphic / new
 \egroup}
 \egroup
 
 keep in mind that it's still a dirty trick


Many thanks Hans. Works like a charm (dirty trick, but clean cut).

Peter

 
 I work with the latest minimal distribution (XP), ConTeXt beta from
 03.07.2007, pdftex 1.40.4 and mpost 1.0.

 Thanks in advance, Peter


 @Patrick:
   Is there a way to add the test pictures (cont-img.zip) to 'live context'?



 

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

___
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] \startalignment[middle] and \externalfigure

2007-07-23 Thread Peter Münster
Hello,

\startalignment[middle] has no effect with \externalfigure[].
\dontleavehmode seems to be a work-around.

Is this normal behaviour or a bug?

Example:

\starttext
\startalignment[middle]
% \dontleavehmode % work-around
  \externalfigure[hacker]
\stopalignment
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
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] \startalignment[middle] and \externalfigure

2007-07-23 Thread Hans Hagen
Peter Münster wrote:
 Hello,
 
 \startalignment[middle] has no effect with \externalfigure[].
 \dontleavehmode seems to be a work-around.
 
 Is this normal behaviour or a bug?
 
 Example:
 
 \starttext
 \startalignment[middle]
 % \dontleavehmode % work-around
   \externalfigure[hacker]
 \stopalignment
 \stoptext

normal tex behaviour par starting with vbox etc

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
-
___
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] makempy (pstoedit - gs) hangs

2007-07-23 Thread Wolfgang Werners-Lucchini
Hallo!

  the following code let ghostscript fail.
  What is wrong her?
 
  Wolfgang
 
  \setupcolors  [state=start]
  \starttext
  \useMPlibrary[txt]
  \startlinecorrection
  \TightText{\ss\bf 123}{0cm}{3cm}{red}
  \stoplinecorrection
  \stoptext
  %
  %ConTeXt  ver: 2007.07.03 19:38 MKII
  %pstoedit: version 3.44 / DLL interface 108
  %GPL Ghostscript 8.57 (2007-05-11)

Don't know if this matters! But the temporary created pdf (input for 
pstoedit) is a bit smaller then the string to render '123'. The 
overshut of the round charakters '2' and '3' is cut.

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
___