Re: [NTG-context] Want all my *.1 *.2 .... *.30 files

2006-02-06 Thread Hans Hagen
David Arnold wrote:
 I must have my mac (as do my colleagues) set for no run-time metapost  
 processing, so I do get *.1, *.2, , *.30. And, we've set up our  
 figure libraries like this:

 figure
 filesection1figs-mpgraph.30/file
 labeleightfinal/label
 copyrightCollege of the Redwoods Mathematics Department/copyright
 comment/comment
 /figure

 So, how do I turn it off in this Scite environment, or in a DOS  
 command window with texexec.
   
\runMPgraphicsfalse

or 

texexec --automp 

btw, you're lucky that background graphics start counting from 4000/8000 down 
so that they don't interefere with your numbers

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] extra space after \quote, \quotation

2006-02-06 Thread Taco Hoekwater


Alan Bowen wrote:
 \quote and \quotation generate an unwanted space after the closing  
 quote or quotation mark.
 
 To see the problem, try
 \starttext
 (\quote{Hello world!})
 (\quotation{Hello world!})
 \stoptext
 
 Is this old news or an artefact of recent changes?

It is definately recent because it did not happen in 20060202.
There is a missing percent sign in the new core-mis.tex:

--- core-mis.tex.orig   2006-02-06 10:20:00.514036364 +0100
+++ core-mis.tex2006-02-06 10:20:16.690357309 +0100
@@ -595,7 +595,7 @@
 \or
   \prewordbreak %\nobreak
   \hskip\hspaceamount\currentlanguage{#2}%
- \languageparameter#1
+ \languageparameter#1%
 \or
   \languageparameter#1%
 \fi


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


Re: [NTG-context] ToC problem

2006-02-06 Thread Taco Hoekwater


Elliot Clifton wrote:
 I found the cause of  the problem there was a problem with the value I 
 was passing to \chapter{} that prevented the chapter title from being 
 shown in the ToC.
 
 I've a second ToC related question.
 
 Is it possible to more text to a ToC entry?  As I want to list both 
 chapter titles and the author.

Here is a trick that may help:

% in environment file:
\setuphead[chapter][number=no]
\definehead[Article][chapter]
\setuphead[Article][number=no,placehead=no,before=,after=,page=]
\definecombinedlist[Article][Article][alternative=c]

\def\startArticle[#1]%
   {\begingroup
\getparameters[Article][#1]%
\chapter{\ArticleTitle}%   this is typeset
\Article{\ArticleTitle -- \ArticleAuthor}% this is the toc entry
}

\def\stopArticle%
   {\blank\rightline{\ArticleAuthor}\endgroup}

% in text
\starttext
\placecombinedlist[Article]
\startArticle[Author=Thor,Title=The title]
.
\stopArticle
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] extra space after \quote, \quotation

2006-02-06 Thread Hans Hagen
Taco Hoekwater wrote:
 It is definately recent because it did not happen in 20060202.
 There is a missing percent sign in the new core-mis.tex:

 --- core-mis.tex.orig   2006-02-06 10:20:00.514036364 +0100
 +++ core-mis.tex2006-02-06 10:20:16.690357309 +0100
 @@ -595,7 +595,7 @@
  \or
\prewordbreak %\nobreak
\hskip\hspaceamount\currentlanguage{#2}%
 - \languageparameter#1
 + \languageparameter#1%
  \or
\languageparameter#1%
  \fi
   
ok, fixed, 

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] math in figure-caption

2006-02-06 Thread Taco Hoekwater


Peter Münster wrote:
 Hello,
 here is too much space around the equal-sign in the caption:
 
 \starttext
 bla $x=5$ bla
 \placefigure{bla $x=5$ bla}{bla}
 \stoptext

You can use \placefigure{bla ${x=5}$ bla}{bla}.

It is a bug, but I can't find the direct cause.
This type of output is what you would get from e.g.

   \hbox to \hsize{$x=5$}

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


Re: [NTG-context] texmfstart.exe vs. texmfstart.rb

2006-02-06 Thread Hans Hagen
Hooman Javidnia wrote:
 Hi Hans and Taco,

 Thanks to all your guidance and a lot of trial and error, now I have a
 SciTE under windwos XP which works. There is one strange feature though. I
 had to put the .exe version of texmfstart into the scripts ruby scripts
 folder so that my files get compiled. SciTE can't understand that
 texmfstart.rb is there and ruby is installed.

 Before I copy the .exe version to this directory, I could run all
 texmfstart commands from the command line without any problem, but from
 within SciTE the commands won't run. What is the difference between the
 two versions? And why SciTE can't understand that ruby scripts are in
 system path and run them
   
you need to add ruby etc to the path at the aouter level; (my computer, right 
mouse, properties, advanced, environment variables) 

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] math in figure-caption

2006-02-06 Thread Hans Hagen
Taco Hoekwater wrote:
 Peter M�nster wrote:
   
 Hello,
 here is too much space around the equal-sign in the caption:

 \starttext
 bla $x=5$ bla
 \placefigure{bla $x=5$ bla}{bla}
 \stoptext
 

 You can use \placefigure{bla ${x=5}$ bla}{bla}.

 It is a bug, but I can't find the direct cause.
 This type of output is what you would get from e.g.

\hbox to \hsize{$x=5$}
   
ok, lets look into it off-list 

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


[NTG-context] media wiki ConTeXt

2006-02-06 Thread PChot
Hi all,

I'm new in your ConTeXt club.

I installed livetex on my server and now i want to merge mediawiki
with ConTeXt. And i also want to make, that math tags work too. I
didn't find any help. Maybe i didn't search good enought. Can you tell
me, where can I get some help? And if is all that, what I want,
possible?

Have a nice day,
Jan(PChott)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] starttyping

2006-02-06 Thread Hans Hagen
Hans van der Meer wrote:
 Found something annoying with \starttyping...\stoptyping.

 I wanted side by side two framed texts in verbatim, one of them one  
 line longer than the other.
 Of course they should align there lines.

 To accomplish this I put a blank line at the end of the shortest text.
 Alas, \starttyping does not honor a blank line at the end, although  
 it does honors blank lines inbetween.
 I am inclined to call this a bug.
   
no, it's on purpose and therefore a feature
 Below a minimal example showing the blank line in between but not the  
 one at the end.
 The ContextWiki site gives the same result.

 \starttext
 \startframedtext[strut=no,offset=0pt]
 \starttyping
 before blank line

 after blank line
 blank line follows

 \stoptyping
 \stopframedtext
 \stoptext
   
just add a \blank or \crlf after the typing 

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] extra space after \quote, \quotation

2006-02-06 Thread Alan Bowen
Thanks, Taco, Hans.

Alan
On Feb 6, 2006, at 5:26 AM, Hans Hagen wrote:

 Taco Hoekwater wrote:
 It is definately recent because it did not happen in 20060202.
 There is a missing percent sign in the new core-mis.tex:

 --- core-mis.tex.orig   2006-02-06 10:20:00.514036364 +0100
 +++ core-mis.tex2006-02-06 10:20:16.690357309 +0100
 @@ -595,7 +595,7 @@
  \or
\prewordbreak %\nobreak
\hskip\hspaceamount\currentlanguage{#2}%
 - \languageparameter#1
 + \languageparameter#1%
  \or
\languageparameter#1%
  \fi

 ok, fixed,

 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

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


Re: [NTG-context] starttyping

2006-02-06 Thread Hans Hagen
Taco Hoekwater wrote:
 Hans van der Meer wrote:
   
 Found something annoying with \starttyping...\stoptyping.

 I wanted side by side two framed texts in verbatim, one of them one  
 line longer than the other.
 Of course they should align there lines.

 To accomplish this I put a blank line at the end of the shortest text.
 Alas, \starttyping does not honor a blank line at the end, although  
 it does honors blank lines inbetween.
 I am inclined to call this a bug.
 

 I agree, but only when \obeyemptylines is in effect (i have documents
 that depend on that auto-dropping of trailing empty lines in other
 cases). So my patch proposal is:

\def\presetemptylastverbatimline%
{\ifcase \verbatimstatus \or \or  \or \doflushverbatimline
 \else \kern \zeropoint \doverbatimnobreak \doflushverbatimline \fi
 %TH the next \kern is new
 \kern \zeropoint }

\def\obeyemptylines%
{\let\donextemptyverbatimline\doemptyverbatimline
 %TH the next reassignment is new
 \let\presetlastverbatimline\presetemptylastverbatimline  }

 You have to add an \obeyemptylines command in your document(s), of
 course.
   

we can add such an option, but

- how does it behave at page boundaries (extra kern)
- when typing files

so, we need a way to configure it per environment

also, this patch does not honour the first empty lines

how about a slight variation (taco's patch + another one + modes):

\unprotect

% vervalt: \donextemptyverbatimline

\chardef\verbatimemptylinemode\zerocount

\def\presetemptyverbatimline
  {\ifcase\verbatimstatus
 \global\chardef\verbatimstatus\plusone
   \or
\ifcase\verbatimemptylinemode\or\or
  \doemptyverbatimline
\fi
   \or
\ifcase\verbatimemptylinemode\else
  \doemptyverbatimline
\fi
   \or
 \doflushverbatimline
 \global\let\savedverbatimline\empty
 \doemptyverbatimline
 \global\chardef\verbatimstatus\plustwo
   \else
 \kern\zeropoint
 \doverbatimnobreak
 \doflushverbatimline
 \global\let\savedverbatimline\empty
 \doemptyverbatimline
 \global\chardef\verbatimstatus\plustwo
   \fi}

\def\presetlastverbatimline
  {\ifcase \verbatimstatus
   \or
   \or
   \or
 \doflushverbatimline
   \else
 \kern \zeropoint
 \doverbatimnobreak
 \doflushverbatimline
   \fi
\ifcase\verbatimemptylinemode\or\else
   \kern \zeropoint
\fi }

\def\obeyemptylines
  {\chardef\verbatimemptylinemode\plusone}

\def\obeyallemptylines
  {\chardef\verbatimemptylinemode\plustwo}

\obeyemptylines
\obeyallemptylines

\showgrid \setuplayout[grid=yes]

\starttext

xxx
\starttyping



1test

test


test
\stoptyping
xxx
\starttyping
2test
test
test

\stoptyping
xxx

\starttyping
3test
test
test




\stoptyping
xxx
\starttyping
test

test

test

test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


test


\stoptyping


\stoptext


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] ToC problem

2006-02-06 Thread Elliot Clifton
Hi Taco,

Thanks for the suggestion. It looks good.

I set up a test document, and cut and pased your example. Alas, it
won't compile.

Output from texexec:

! Undefined control sequence.
argument \ArticleTitle
 -- \ArticleAuthor
\listtextcommand #1-\begstrut #1
 \endstrut
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
  }\dostopattributes
argument ... {\ArticleTitle -- \ArticleAuthor }}
  \egroup \ifdim \wd 4=\zero...

\secondoftwoarguments #1#2-#2

\dosomelistelement ...hss \dostoplistattributes }}
  \endgraf \nointerlineskip ...
...
l.16 ...- \ArticleAuthor }{2::0:2:0:0:0:0:0::1}{1}

Any idea what's wrong?

Thanks for your help.

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


Re: [NTG-context] rulethickness in \setupTABLE

2006-02-06 Thread Hans Hagen
� wrote:
 Hello,
 I have 2 rows, and I would like to have a thick rule on the top and the
 bottom of the table, and in the middle a thin rule. I do this the following
 way:

 \starttext
 \setupTABLE[frame=off]
 \setupTABLE[r][1][topframe=on,rulethickness=1pt]
 \setupTABLE[r][2][topframe=on,rulethickness=0.3pt,offset=0pt,height=0pt]
 \setupTABLE[r][3][bottomframe=on,rulethickness=1pt]
 \bTABLE
 \bTR \bTD bla \eTD \eTR
 \bTR \eTR
 \bTR \bTD bla \eTD \eTR
 \eTABLE
 \stoptext

 Is there a cleaner way to achieve this?
   
sure, use first and last and free yourself from counting

\setupTABLE[r][first][topframe=on,rulethickness=2pt]
\setupTABLE[r][2][topframe=on,rulethickness=0.3pt,offset=0pt,height=0pt]
\setupTABLE[r][last][bottomframe=on,rulethickness=2pt]

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] ToC problem

2006-02-06 Thread Taco Hoekwater


Elliot Clifton wrote:
 Hi Taco,
 
 Thanks for the suggestion. It looks good.
 
 I set up a test document, and cut and pased your example. Alas, it
 won't compile.

 Any idea what's wrong?

My mistake, sorry.

You need and \expanded around the call to \Article, because
otherwise the macro names \ArticleAuthor etc. end up in the
list instead of their content. So please change that line to:

   \expanded{\Article{\ArticleTitle -- \ArticleAuthor}}

(you have to delete the current .tuo file also to make the
error go away)

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


[NTG-context] line with height=0 in TABLE

2006-02-06 Thread Peter Münster
Hello,

I would like to have a line with zero height in a TABLE, but it seems to be
more difficult, than I thought:

\starttext
\setupTABLE[r][2][height=0pt,offset=0pt]
\bTABLE
\bTR \bTD bla \eTD \eTR
\bTR \bTD \eTD \eTR
\bTR \bTD bla \eTD \eTR
\eTABLE
\stoptext

There is still some height in line 2...
How could I get rid of this please?

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ToC problem

2006-02-06 Thread Elliot Clifton
Taco Hoekwater, wrote:

 My mistake, sorry.

 You need and \expanded around the call to \Article, because
 otherwise the macro names \ArticleAuthor etc. end up in the
 list instead of their content. So please change that line to:

\expanded{\Article{\ArticleTitle -- \ArticleAuthor}}

 (you have to delete the current .tuo file also to make the
 error go away)


It works now. Thanks. Just what I wanted.

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


Re: [NTG-context] line with height=0 in TABLE

2006-02-06 Thread Vit Zyka
Peter Münster wrote:
 Hello,
 
 I would like to have a line with zero height in a TABLE, but it seems to be
 more difficult, than I thought:
 
 \starttext
 \setupTABLE[r][2][height=0pt,offset=0pt]
^^
offset=overlay

Cheers
Vit

 \bTABLE
 \bTR \bTD bla \eTD \eTR
 \bTR \bTD \eTD \eTR
 \bTR \bTD bla \eTD \eTR
 \eTABLE
 \stoptext
 
 There is still some height in line 2...
 How could I get rid of this please?
 
 Greetings, Peter

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


[NTG-context] chinese with utf in context

2006-02-06 Thread Lutz Haseloff
Hi all,

with the context from 03.02.06 only the punctuation symbols
from the unicode range 30 will be printed.
The symbols from the range FF (f.i. FF0C: FULLWITH COMMA,
FF1A: FULLWITH COLON...) and from the range 20
(203B: REFERENCE MARK...) are printed
as small black squares.

If i convert the file to gbk all symbols will be printed right.

If needed i can prepare testfiles in gbk and utf encoding.


Greetings


Lutz

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


Re: [NTG-context] chinese with utf in context

2006-02-06 Thread Richard Gabriel




Hello Lutz,I have no problems typesetting Chinese and Japanese in Unicode. I suppose there's a problem with fonts on your system...Were all of the TFM files created properly?Do all the files uni-htsong-ff.tfm, uni-htfs-ff.tfm, uni-hthei-ff.tfm and uni-htkai-ff.tfm exist on your system?Are there some interesting messages in the log?In any casy, feel free to send me any of your test file... ;-)-RichardFrom: Lutz Haseloff [mailto:[EMAIL PROTECTED]To: "Mailingliste Context (E-Mail)" [mailto:[EMAIL PROTECTED]Sent: Tue, 07 Feb 2006 07:31:29 +0100Subject: [NTG-context] chinese with utf in contextHi all,with the context from 03.02.06 only the punctuation symbolsfrom the unicode range 30 will be printed.The symbols from the range FF (f.i. FF0C: FULLWITH COMMA,FF1A: FULLWITH COLON...) and from the range 20(203B: REFERENCE MARK...) are printedas small black squares.If i convert the file to gbk all symbols will be printed right.If needed i can prepare testfiles in gbk and utf encoding.GreetingsLutz___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