[NTG-context] Re: Re: Overwritten metapost files

2004-05-29 Thread Nikolai Weibull
* Henning Hraban Ramm [EMAIL PROTECTED] [May 29, 2004 11:11]:
 Did you try
 texexec myfile --result=output/myfile

Yes, I began with that, but the problem is that a lot of files will
still go in the same directory as myfile, such as metapost files a .tmp
and the .tui file.  I guess it's not that bad, but I like keeping things
as clean as possible.  Perhaps I'm being a bit unreasonable though,
cause having the directory structure that I do complicates some stuff
(such as includes),
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: Overwritten metapost files

2004-05-29 Thread Patrick Gundlach
Hello,

 still go in the same directory as myfile, such as metapost files a .tmp
 and the .tui file.  I guess it's not that bad, but I like keeping things
 as clean as possible.  

You know about texutil --purgeall ?

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


[NTG-context] Re: Getting { in the input.

2004-05-29 Thread Nikolai Weibull
* Patrick Gundlach [EMAIL PROTECTED] [May 28, 2004 13:30]:
 \starttext
 \textbraceleft

in enco-def.tex this is
\definecharacter textbraceleft{\mathematics{\{}}
which means wrapping {\tt ...} around it doesn't give a teletyped brace
but a nice mathematics one.

 \type-{-

This doesn't seem to work well inside a table:

! Missing { inserted.
inserted text
{
to be read again
   
\normalTABLEquote -\unskip \!ttRightGlue 
   \omit \tablepos 
\NC ...rentTABLEcolumn \plusone \normalTABLEquote
  \fi
l.754 \NC
  \type{|}  \NC $\}$ \NC  \type{~} \NC  {\tt DEL} \NC\AR
?

where my .tex source reads:

\NC 120 \NC \type{x}  \NC \type{y}  \NC \type{z}  \NC \type-{-
\NC \type{|}  \NC $\}$ \NC  \type{~} \NC  {\tt DEL} \NC\AR

 \stoptext

It would be great if one could get the second version (\type-{-) working
inside a table, as this is the prettier solution.

Currently I just did my own

\definecharacter textbraceleft 123

(which some of the other enco-*.tex files did) for this and wrapped that
inside a {\tt ...}:

{\tt \textbraceleft}

Anyway, thanks for the suggestions,
nikolai

P.S.
Here's a small testfile:

\starttext
\starttable[|c|]
\NC \type-{- \NC\AR
\stoptable
\stoptext

D.S.

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


Re: [NTG-context] Known nath bugs?

2004-05-29 Thread Sebastian Sturm
Hi,
the delimiter sizing is working now; i had to load the module directly 
before \starttext. However, the units module still isn't working when 
nath is loaded. Is it supposed to?

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


Re[2]: [NTG-context] Known nath bugs?

2004-05-29 Thread Giuseppe Bilotta
Saturday, May 29, 2004 Sebastian Sturm wrote:

 Hi,

 the delimiter sizing is working now; i had to load the module directly
 before \starttext.

Yes, this is generally true. All modules should get loaded
before \starttext.

 However, the units module still isn't working when nath is
 loaded. Is it supposed to?

Well, I had never tested them together, and given the very
extensive changes nath enacts, I'm not surprised it doesn't
work.

Anyway, it looks like the fix is easy: the problem is that
dimension commands are not protected (unexpandable).

In m-units.tex, look for the lines

\def\dimensionprefix#1%
  {\gdef\thedimensionprefix{#1}}

\def\dimensionaddfix#1%
  {\unskip
  %\mathematics{\umathematicstypeface#1}%
   \ustartmathmode\umathematicstypeface#1\ustopmathmode
   \nobreak
   \hskip\dimensionaddfixsignal}

\def\dimensionnopfix#1%
  {\dontbreakdimension
   \ifdim\scratchdimen=\dimensionpowersignal\relax
 \ustartmathmode
   \else
 \ustartmathmode
 \udimensionhalfspace
 \nobreak
   \fi
   \umathematicstypeface#1%
   \ustopmathmode
   \nobreak
   \hskip\dimensionsignal}

\def\dimensionmidfix#1%
  {\dontbreakdimension
   \ifdim\scratchdimen=\dimensionpowersignal\relax
 \ustartmathmode
 \udimensionbackspace
 \nobreak
   \else
 \ustartmathmode
   \fi
   \umathematicstypeface#1%
   \ustopmathmode
   \nobreak
   \hskip\dimensionmidfixsignal}

\def\dimensionpower#1%
  {\gdef\thedimensionpower{#1}}

and change each

\def\dimension...

into

\unexpanded\def\dimension

This should solve the problem.

I'm not 100% sure this is the best solution, though. An
alternative could be to keep those definition as they are and
instead make unexpandable the actual commands (\Micro etc).

Hans, what do you think?

-- 
Giuseppe Oblomov Bilotta

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