Re: [NTG-context] \dogetobject and pdf

2004-06-11 Thread Hans Hagen
Hi,
pdf ok now, but the dvi is shifted up and to the right... :(
 

Can you try this? You need to remake the format 

Hans 

%D \module
%D   [   file=spec-dvi,
%Dversion=1996.01.25,
%D  title=\CONTEXT\ Special Macros,
%D   subtitle=Generic \TEX\ Solutions,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA / Hans Hagen \ Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\unprotect

%D \macros
%D   {dostartobject,
%Ddostopobject,
%Ddoinsertobject}
%D
%D Reuse of object is not supported by the \DVI\ format. We
%D therefore just duplicate them using boxes.

\startspecials[tex]

\newbox\DVIobjects \newcounter\DVIobjectcounter

\definespecial\dostartobject#1#2#3#4#5%
  {\setbox\nextbox\vbox\bgroup
 \def\dodostopobject
   {\egroup
\doglobal\increment\DVIobjectcounter
\global\setbox\DVIobjects\vbox
  {\offinterlineskip
   \forgetall
   \unvbox\DVIobjects
   \setbox\nextbox\hbox{\box\nextbox}%
   \wd\nextbox\zeropoint
   \dp\nextbox\zeropoint
   \ht\nextbox\onepoint
   \allowbreak
   \box\nextbox}%
\dosetobjectreference{#1}{#2}{\DVIobjectcounter}}}

\definespecial\dostopobject
  {\dodostopobject}

\definespecial\doinsertobject#1#2%
  {\bgroup
   \dogetobjectreference{#1}{#2}\DVIobjectreference
   \splittopskip\zeropoint
   \setbox0=\copy\DVIobjects
   \dimen0=\DVIobjectreference\onepoint
   \advance\dimen0 -\onepoint
   \setbox2\vsplit0 to \dimen0
   \ifdim\ht0\onepoint
 \setbox0\vsplit0 to \onepoint
   \fi
   \unvbox0
   \setbox0\lastbox
   \hbox{\unhbox0}% the \hbox is really needed!
   \egroup}


%D \macros
%D   {dosetposition,
%Ddosetpositionwhd,
%Ddosetpositionplus}
%D
%D The next specials only identify a position. It is up to
%D a \DVI\ postprocessing utility to merge the right commands
%D into the utility file. Since in \CONTEXT, we only deal
%D with relative positions, the reference point is not so
%D important.
%D
%D The postprocessor should translate the specials into
%D commands and append these to \type {jobname.tuo} using the
%D format:
%D
%D \starttypen
%D \pospxy{identifier}{page}{x}{y}
%D \pospxywhd {identifier}{page}{x}{y}{w}{h}{d}
%D \pospxyplus{identifier}{page}{x}{y}{w}{h}{d}{list}
%D \stoptypen
%D
%D The postprocessor should, of course, provide the \type
%D {page}, \type {x}, and \type {y} values.

\definespecial\dosetposition#1%
  {\special{pos:pxy #1}}

\definespecial\dosetpositionwhd#1#2#3#4%
  {\special{pos:pxywhd #1 #2 #3 #4}}

\definespecial\dosetpositionplus#1#2#3#4#5%
  {\special{pos:pxyplus #1 #2 #3 #4 #5}}

%D The next special tells the position postprocessor what
%D page dimensions were used.

\let\flushDVIpositionpapersize\relax

% \definespecial\dosetpositionpapersize#1#2%
%   {\xdef\flushDVIpositionpapersize%
%  {\special{pos:papersize #1 #2}%
%   \global\noexpand\let\noexpand\flushDVIpositionpapersize\relax}}
%
% \appendtoksonce
%   \ifspecialbasedsettings
% \ifpositioning\installprogram{dvipos \jobname}\fi
%   \fi
% \to \everystoptext
%
% less tokens:

\definespecial\dosetpositionpapersize#1#2%
  {\xdef\flushDVIpositionpapersize%
 {\special{pos:papersize #1 #2}%
  \noexpand\installprogram{dvipos --outfile=\jobname.tuo}%
  \global\noexpand\let\noexpand\flushDVIpositionpapersize\relax}}

\prependtoksonce \flushDVIpositionpapersize \to \everyshipout

\stopspecials

\protect \endinput


[NTG-context] MPOST: How to pass variables from mpost to TeX

2004-06-11 Thread vinuth madinur
Hello all, Please see the following code: 
GbLabelName="Gubbi";. . . label.bot(btex $GbLabelName$ etex, (0,0) ); .Here I get "GbLabelName" itself in the output instead of "Gubbi". 
I tried using "\GbLabelName" and also "\scantokens\GbLabelName" instead of just "GbLabelName" , but they give errors.I guess this is not the way to do it.
Nowplease tell me how to do it .
Thanks in advance,
Vinuth.M.Madinur.
-- 
___
Check out the latest SMS services @ www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.

Powered by Outblaze
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: MPOST: How to pass variables from mpost to TeX

2004-06-11 Thread Patrick Gundlach
Hi,

perhaps http://article.gmane.org/gmane.comp.tex.context/15153 can
help you?

Patrick

PS: Please don't post HTML mails
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \AtBeginDocument

2004-06-11 Thread Peter Mnster
Hello,

is there something in ConTeXt like the \AtBeginDocument in LaTeX ?

Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \dogetobject and pdf

2004-06-11 Thread Peter Mnster
On Fri, 11 Jun 2004, Hans Hagen wrote:

 pdf ok now, but the dvi is shifted up and to the right... :(
   
 
 Can you try this? You need to remake the format 

Yes, dvi and pdf ok, after deleting the \dogetobject definition in
cont-new.tex.

Thank you!
Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \AtBeginDocument

2004-06-11 Thread Hans Hagen
Peter Münster wrote:
Hello,
is there something in ConTeXt like the \AtBeginDocument in LaTeX ?
 

\appendtoks
   something
\to  \everystarttext
could work
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \dogetobject and pdf

2004-06-11 Thread Hans Hagen
Peter Münster wrote:
Yes, dvi and pdf ok, after deleting the \dogetobject definition in
cont-new.tex.
 

you mean that the dogetobject i send last fails? 

Hans 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \startlinenumbering and \starttyping

2004-06-11 Thread Nikolai Weibull
I hope I'm missing something, because these commands don't seem to
interact flawlessly.  What I do now is

\startlinenumbering
\startfiletyping
Kenneth Brown recent conduct
has been rather unacceptable
in my humble opinion.  It is,
perhaps, not a coincidence that
his last name is the name of
the colour of poo.
\stopfiletyping
\stoplinenumbering

This causes an overfull hbox though:

Overfull \hbox (17.62482pt too wide) in paragraph at lines 196--196
 [] |

\hbox(10.41603+4.05064)x0.0
.\glue(\leftskip) 17.62482
.\hbox(10.41603+4.05064)x0.0
..\rule(10.41603+4.05064)x0.0
..\glue 0.0 plus 1.0fil minus 1.0fil
.\penalty 1
.\glue(\parfillskip) 0.0 plus 1.0fil
.\glue(\rightskip) 0.0
.etc.

The lines don't go beyond even half the width of the normal paragraph.
Am I doing this wrong in some way?
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \AtBeginDocument

2004-06-11 Thread Patrick Gundlach
Hello Peter,

 is there something in ConTeXt like the \AtBeginDocument in LaTeX ?

does 
\appendtoks{Hello} \to \everystarttext

do what you need?

Patrick
-- 
Es wird kein Wunder geschehen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: \AtBeginDocument

2004-06-11 Thread Hans Hagen
Patrick Gundlach wrote:
Hello Peter,
 

is there something in ConTeXt like the \AtBeginDocument in LaTeX ?
   

does 
\appendtoks{Hello} \to \everystarttext

do what you need?
 

beware: in your example grouple is applied as well as a space added after the } 

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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \AtBeginDocument

2004-06-11 Thread Patrick Gundlach
Hello Hans,

 beware: in your example grouple is applied as well as a space added
 after the } 

Oh, thanks. I should be more careful with my examples.

Patrick

-- 
Es wird kein Wunder geschehen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \startlinenumbering and \starttyping

2004-06-11 Thread Patrick Gundlach
Nikolai Weibull [EMAIL PROTECTED] writes:

 I hope I'm missing something, because these commands don't seem to
 interact flawlessly.  What I do now is

 \startlinenumbering


! Undefined control sequence.
recently read \startfiletyping 
 
l.3 \startfiletyping

! Undefined control sequence.
l.10 \stopfiletyping


What is your def of \startfiletyping?

Patrick
-- 
Es wird kein Wunder geschehen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \startlinenumbering and \starttyping

2004-06-11 Thread Patrick Gundlach
Hello Nikolai,

 Argh, should have sticked to the original example - copy and pasted...

 Anyway, it is equivalent to


[...]

Sorry, your file works fine here, except that there is no
\starttext...\stoptext pair. No error/overfull box/...

...
systems: begin file test at line 1
[1.1{/opt/texlive/8/texmf/fonts/map/pdftex/updmap/pdftex.map}{/opt/local/texmf/
dvips/config/dolly.map}{/opt/local/texmf/dvips/config/typedesign.map}]
systems: end file test at line 12
...


Please post a minimal file that is *complete* (!!) and shows the error
/warning you get.

Patrick
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setupdescription

2004-06-11 Thread Peter Mnster
Hello,
how could I define a list, that looks like this:

titel 1   text text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

long titel 2   text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

I tried with parameters distance and width of \setupdescription, but no
success.

TIA for any hint, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \AtBeginDocument

2004-06-11 Thread Peter Mnster
On Fri, 11 Jun 2004, Hans Hagen wrote:

 Peter Münster wrote:
 
 Hello,
 
 is there something in ConTeXt like the \AtBeginDocument in LaTeX ?
   
 
 \appendtoks
 something
 \to  \everystarttext
 
 could work

In fact, I'm looking for something, that also works for startproduct.
Seems to work only for starttext.
Perhaps, I could do something like this:
\let\startproductO=\startproduct
\def\startproduct{something\startproductO} ?

Peter

P.S.: Unfortunately, it is quite hard to browse the core-*.tex files,
because of the mix of 2 languages...  Are the non-english user-interfaces
really used?

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \startlinenumbering and \starttyping

2004-06-11 Thread Nikolai Weibull
* Patrick Gundlach [EMAIL PROTECTED] [Jun 11, 2004 19:30]:
 Please post a minimal file that is *complete* (!!) and shows the error
 /warning you get.

I tried producing one, but it didn't give.  Weird, I can't understand
why it gets messed up.  Oh well, such is life.
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pagination problem with \startitemize[columns]

2004-06-11 Thread Nikolai Weibull
I sent a response to an earlier thread about this, but I don't know if
it got through (my mail was down later that day).  Anyway, here's an
example of something that gets messed up.  Text following the itemize
doesn't get paginated properly.  Having a new chapter after it seems to
fix it from there on, though.

\starttext

\chapter{One}

\dorecurse{7}{\input zapf \par\relax}

\startitemize[columns,four]
\dorecurse{12}{\nop \type{[:alnum:]}}
\stopitemize

\dorecurse{7}{\input zapf \par\relax}

\stoptext

This fails for \startitemize[columns] as well.  It seems that the problem
arises when the itemize is pushed onto the second page.  Remove the
first \dorecurse{7}{\input ...} and it works fine...

Here's an example where the following chapter will be typeset correctly:

\starttext

\chapter{One}

\dorecurse{7}{\input zapf \par\relax}

\startitemize[columns,four]
\dorecurse{12}{\nop \type{[:alnum:]}}
\stopitemize

\dorecurse{7}{\input zapf \par\relax}

\chapter{Two}

\dorecurse{7}{\input zapf \par\relax}

\stoptext

nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context