Re: [NTG-context] Non-printing macro disturbs line justification.

2007-07-29 Thread Giuseppe Bilotta
Saturday, July 28, 2007 John R. Culleton wrote:

 I did a big project in Context and becuse I wanted to use the special
 features of eplain's interface to makeindex I wrote my own indexing
 macro. Every place I inserted a call to this macro extra space
 appeared at that point.  Here is my macro:

 \def\sidx#1{\write\ind{\\indexentry{#1}{\the\pageno}}}

 I had to retreat to the regular Context indexing tag.  Can someone
 spot the flaw in my definition?

Don't know if it's significant, but what if you use \slash
instead of \\ ?

-- 
Giuseppe Oblomov Bilotta

___
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-29 Thread George N. White III
On 7/28/07, Wolfgang Werners-Lucchini [EMAIL PROTECTED] wrote:

 Hallo!

 Downgrading to gs version 8.11
 does NOT help, but downgrading to 8.11 AND changing the makempy
 methode from pdf to ps helps!

 gs 8.57 hangs with ps too.

 If an ps guru can interpret the gs error message, I will send this of
 list!?

The way to proceed is to come up with a minimal ps or pdf file that
triggers the bug.  It might help to pinpoint the problem if you can
compare a mpy-foo-mpgraph.pdf that break pstoedit -f mpost with
a different mpy-bla-mpgraph.pdf (or .ps) that works.  Since pstoedit
mucks with ghostscript's SYSTEMDICT it isn't surprising that problems
arise for newer gs versions.  Maybe it is time for ghostscript to get
an mpost driver.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
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] supressing number on the first page

2007-07-29 Thread Steve Peter

On Jul 29, 2007, at 6:30 PM, Vyatcheslav Yatskovsky wrote:

 Sorry for the question as old as ConTeXt :), but how can I prevent  
 the page number from being paced on the first page? To clarify, I  
 want no number placed on the first page, '2' placed on the second  
 page and so on.

\setuppagenumber[number=2, state=keep]

Steve
___
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] More on a page

2007-07-29 Thread David Arnold
All,

What's the command again to force another line or two on a page?


___
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] itemize columns three

2007-07-29 Thread David Arnold
All,

Has this bug been fixed?

   \startitemize[a,columns,three]
   \item $|x|-5$
   \item $|x|0$
   \item $|x|4$
   \stopitemize


___
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] More on a page

2007-07-29 Thread Patrick Gundlach


 What's the command again to force another line or two on a page?

\adaptlayout. See

http://texshow.contextgarden.net/cmd/adaptlayout


P.
___
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] itemize columns three

2007-07-29 Thread Hans Hagen
David Arnold wrote:
 All,
 
 Has this bug been fixed?
 
\startitemize[a,columns,three]
\item $|x|-5$
\item $|x|0$
\item $|x|4$
\stopitemize

yes

-- 

-
   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] itemize with zero start

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

 Here is a minimal example of how this happens. I had posted it
 sometime back.
 
 \starttext
 \setupitemize[each][][stopper=:]
 \bTABLE
 \bTR
 \bTD
 \startitemize[a]
 \item Bla
 \item Blub
 \item Bautz
 \stopitemize
 \eTD
 \eTR
 \eTABLE
 \stoptext

Here is an other example!

Remove the three-line-comment, and the error is gone!

Strange what?

Wolfgang
-
\setupbodyfont[sansserif,11pt]
\setuphead[section][style=ssb]
\setupsection[section][conversion=Romannumerals]

\setupitemize[each][a][stopper=:]

\definestartstop[Beweis][
  before={{\bf Beweis:}\endgraf\blank},
  after={\rightaligned{{\bf q.e.d.}}}
  ]

\starttext

\section{Zofff}

\startBeweis
\startitemize
\item zack
\item zong
\stopitemize
\stopBeweis
%
%==
%
\section{Bamm}

\startitemize
\item bla
\item blub
\item bautz
\stopitemize

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

2007-07-29 Thread Arthur Reutenauer
  I think I've identified the problem: in the PostScript prologue file for
pstoedit you find the following bit of code (slightly simplified):

/getorigfont
{
  dup /OrigFont known
  {
/OrigFont get getorigfont
  }
  if
}
def


  I guess anyone, even not familiar with PostScript, can spot the error here:
getorigfont is called recursively ad infinitum! I have no idea why this is so,
but this mistake is easy to correct, by simply commenting out the innermost
“getorigfont”; and it indeed fixes the problem with Wolfgang's code.

  Why the error wouldn't happen with older versions of gs isn't clear to me and
I haven't tested it (for debugging I used pstoedit 3.44 and gs 8.56
throughout); on the other hand, it's quite clear why the bug wouldn't show up
on code that uses only outlines and no font, like in the last example of
http://wiki.contextgarden.net/User-Defined_Enumerations as George pointed out:
the spurious piece of code is only used for font redefinitions and is therefore
not called in the case of the fuzzy itemize style, because the symbols are not
taken from a font.

  For people wanting to compile an amended version of pstoedit, the attached
patch should do the trick, although hand-editing the relevant file
(src/pstoedit.ph) should be just as easy (this is really a 2-byte patch — and
you can even turn it into a 2-bit patch ;-).


   Since pstoedit
 mucks with ghostscript's SYSTEMDICT it isn't surprising that problems
 arise for newer gs versions.

  That's what I thought too (even if the bug had nothing to do with that
apparently). I wonder if all that is really needed and if it wouldn't be
simpler and less error-prone to use a custom dictionary where all the
overriding functions are defined. Instead the author of pstoedit does quite
scary things with systemdict ...

   Maybe it is time for ghostscript to get
 an mpost driver.

  Sure, wouldn't harm either.

Arthur
diff -cNrp pstoedit-3.44/src/pstoedit.ph pstoedit-3.44-patched/src/pstoedit.ph
*** pstoedit-3.44/src/pstoedit.ph	Mon Jul 30 00:35:24 2007
--- pstoedit-3.44-patched/src/pstoedit.ph	Mon Jul 30 00:34:29 2007
*** const char * const PS_prologue[] = 
*** 1920,1926 
{ 210 pscover ,
dup /OrigFont known ,
{ 211 pscover ,
!   /OrigFont get getorigfont  ,
}  ,
if ,
}  ,
--- 1920,1926 
{ 210 pscover ,
dup /OrigFont known ,
{ 211 pscover ,
!   /OrigFont get % getorigfont  ,
}  ,
if ,
}  ,
___
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
___