Re: [NTG-context] intertext for aligned equations

2006-03-28 Thread Taco Hoekwater


Aditya Mahajan wrote:
> 
> This does not look good. Consider,
> 
> There is too much space after the intertext and the next line. Can you 
> provide some magic to reduce this space.

Ok, got it. The \NR has to go away, and the \beforedisplayspace
reinserted, like so:

\def\startintertext#1\stopintertext
{\noalign{\dointertext{#1}}}

\unexpanded\def\dointertext#1%
{\penalty\postdisplaypenalty
 \afterdisplayspace
 \vbox{\forgetall \noindent #1\par}%
 \penalty\predisplaypenalty
 \beforedisplayspace }

Looks much better (over here).

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


Re: [NTG-context] Frontmatter setup

2006-03-28 Thread Taco Hoekwater


frantisek holop wrote:
> 
> \setupsectionblock
>   [frontmatter]
>   [before={\setuppagenumbering[location=]}]

I'm sorry, this is my fault. It should have been:

   \setupsectionblock
 [frontpart] % <- CHANGED
 [before={\setuppagenumbering[location=]}]

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


Re: [NTG-context] multiple line comments

2006-03-28 Thread [EMAIL PROTECTED]
Hi all,

I do the following:

\def\com#1{\blank{\bf commentaar:} {\em #1} ---}
%\def\com#1{}

When I need the comments in my printed text, I put a % for the second 
line. Simple.

Kind regards,

Robert


Hans Hagen wrote:

>Hans Hagen wrote:
>  
>
>>This one is pretty safe: 
>>
>>\startbuffer[comment]
>>bla
>>\startbuffer
>>bla \iftrue \startbuffer bla bla
>>bla \stopbuffer bla bla
>>\stopbuffer
>>bla
>>bla
>>\stopbuffer
>>
>>
>\starthiding
>\stophiding
>
>does not support nesting in the way buffers do (simply because it was 
>not enabled); i added a few lines to the buffer handler, so that now we 
>can say:
>
>\definebuffer[mycomment][local=yes]
>
>and have 
>
>\startmycomment 
> 
>\stopmycomment
>
>(this extension will be available in the next release) 
>
>(btw, in a similar fashion verbatim supports some nesting, which was needed in 
>order to be able to write manuals) 
>
>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] intertext for aligned equations

2006-03-28 Thread Aditya Mahajan
<--- On Mar 27, Taco Hoekwater wrote --->

>
>
> Hi,
>
> Aditya Mahajan wrote:
>
>> This seems to be working fine. However, \intertext defined in
>> amsmath.sty seems to be doing  a lot more (I just can't figure out
>> what it is doing?) Can someone suggest how to make the above command
>> more robust on the lines of \intertext?
>
> It inserts a post/pre-display skip&penalty pair around the intertext,
> then creates a \vbox for use a paragraph. The result is (almost) as if
> it the text was part of the 'normal' text flow between two displays.
>
> I cannot tell you if this would work exactly the same as expected in
> ConTeXt (needs further testing), but a context-like solution would
> look like this:
>
> \def\startintertext#1\stopintertext{%
>   \noalign{\dointertext{#1}}\NR}
>
> \unexpanded\def\dointertext#1%
>{\penalty\postdisplaypenalty
> \afterdisplayspace  % the matching \before... is not needed
> \vbox{\forgetall \noindent #1\par}%
> \penalty\postdisplaypenalty }
>

This does not look good. Consider,

\def\startintertext#1\stopintertext{%
\noalign{\dointertext{#1}}\NR}

\unexpanded\def\dointertext#1%
   {\penalty\postdisplaypenalty
\afterdisplayspace  % the matching \before... is not needed
\vbox{\forgetall \noindent #1\par}%
\penalty\postdisplaypenalty }

\startformula \startalign
   \NC A_1 \NC= \left| \int_0^1 (x^2 - 3x)\, dx \right|
 + \left| \int_1^2 (x^2 -5x + 6)\, dx \right| \NR
   \startintertext
 Take limits of both integrals
   \stopintertext
   \NC \NC = \left| \frac{x^3}{3} - \frac{3}{2} x^2 \right|_0^1
 + \left| \frac {x ^3}{3} - 7 \frac{5}{2} x^2 + 6x \right|_1^2 \NR
 \NC \NC = \left| - \frac{7}{6} \right| + \left|\frac{14}{3} -
 \frac{23}{6}\right| = \frac{7}{6} + \frac{5}{6} = 2 \NR
\stopalign \stopformula

There is too much space after the intertext and the next line. Can you 
provide some magic to reduce this space.

Thanks,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib module/XML

2006-03-28 Thread Johannes Graumann
Hello,

I have a couple of questions concerning the bib module, which I'm using in
conjunction with XML document code.
In my header I say:
\usemodule[bib]
\setupbibtex[database={../Bibliography/bibliography.bib}]

1) \completepublications problem
in the xml I say:

and use 
\defineXMLargument
  [cite]
  {\cite[\XMLpar{cite}{key}{}][\XMLpar{cite}{id}{}]}
in my mappings.

This works ok, however, I also have the following definition included:
\defineXMLenvironment
  [chapter]
  {
\defineXMLargument
  [title]
  {\chapter}
\defineXMLprocess
  [content]
  {}
  }
  {\section{References}\placepublications}
so that a xml chapter definiton like this:

  
Example
  
  


  

will be read out properly and I get a chapter specific publication list at
the end of each chapter. This does not work. I will get a Reference List,
but it contains the second entry twice and its second copy is indented in
relation to the first ...
Any Idea on how to remedy this?

2) I'm a biologist and author/year citation is usus where I work. The
options 'authoryear' ('Hoekwater (2006)') and 'authoryears' ('(Hoekwater,
2006)') are great, but I would also want to have the option to prepend the
latter with something like 'e.g.' ('(see e.g. Hoekwater, 2006)'). I
understand this is possible to the right of the actual citation
with 'extras', but how difficult would it be to do that on the left?

Thanks for any help,

Joh

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


Re: [NTG-context] pdf document info fields

2006-03-28 Thread frantisek holop
hmm, on Wed, Mar 29, 2006 at 01:36:21AM +0200, frantisek holop said that
> Creator:ConTeXt/user/radnoti.tex

also, how can i set the "Subject" and "Keywords" fields?
\setupinteraction's role in this context is not documented
at all (what parameters it takes, etc) but author and title
seems to be working.

do i have to use the low level pdftex command \pdfinfo?
would that not conflict with the ConTeXt's Creator setting
routine?

-f
-- 
when all think alike, then no one is thinking.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pdf document info fields

2006-03-28 Thread frantisek holop
hi there,


what is the rationale behind the "Creator" pdf field context sets?

for radnoti.tex i get:

Creator:ConTeXt/user/radnoti.tex

-f
-- 
you can never get rid of a bad temper by losing it.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread frantisek holop
hmm, on Tue, Mar 28, 2006 at 07:12:18PM +0200, Hans Hagen said that
> \def\doalinealijn#1#2%
>  {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
> {\linewidth\getvalue{\??al#2\the\alteller\c!rulethickness}%
>  \scratchdimen#1%
>  \advance\scratchdimen-\linewidth
>  \divide\scratchdimen \plustwo
>  \hskip\scratchdimen
>  \vrule\!!width\linewidth
>  \hskip\scratchdimen}
> {\hskip#1}}

excuse my silly question, but what am i to do now?
replace core-mis.tex in my context installation and
also add the \doalinealijn macro to my .tex file?

-f
-- 
words are not food, though sometimes we must eat them.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] multiple line comments

2006-03-28 Thread John R. Culleton
On Tuesday 28 March 2006 10:05, Aditya Mahajan wrote:
> <--- On Mar 28, Taco Hoekwater wrote --->
>
> > andrea valle wrote:
> >> Dear all,
> >> It's a bit tiring to start many lines always  with %.
> >> Is it possibile to have multiple line comments like in C
> >>
> >> \*
> >> comments here
> >> *\
> >
> > \iffalse
> >  comments here
> > \fi

When faced with such problems I just comment out a group of lines
with one command in my Gvim editor. 

for example after entering five lines of comments I could use this
command:

:.,-4 s/^/%/

Try it, you might like it :)
-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf

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


Re: [NTG-context] Frontmatter setup

2006-03-28 Thread frantisek holop
hmm, on Tue, Mar 28, 2006 at 09:11:59PM +0200, nico said that
> On Mon, 27 Mar 2006 11:25:42 +0200, Taco Hoekwater <[EMAIL PROTECTED]>  
> wrote:
> 
> > nico wrote:
> >> Hello,
> >>
> >> Is there a \setup... command to configure the frontmatter section  
> >> block? I
> >> haven't found a clear information about this.
> >
> > You can put your setup in the 'before', like so:
> >
> >\setupsectionblock
> >   [frontmatter]
> >   [before={\setuppagenumbering[conversion=romannumerals]}]
> 
> It does nothing. In this example the TOC and Preamble section still have  
> default numbering:

i can second this.

\setupsectionblock
  [frontmatter]
  [before={\setuppagenumbering[location=]}]

does nothing (visible at least)

on the other hand this works fine:

\startfrontmatter
\setuppagenumbering[location=]
\completecontent
\stopfrontmatter

is setupsectionblock broken?

-f
-- 
expert - anyone from out of town.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Imaginary entity rendering in MathML

2006-03-28 Thread nico
On Tue, 28 Mar 2006 13:08:50 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:

> Nikolai Weibull wrote:

>>> I guess the problem is that the vector unic-033 (=hex 21) only defines
>>> the arrow part, that starts at 0x2190 ?
>>
>> Probably.  This vector is far from complete.  I've tried to be as
>> thorough as  possible, but there simply isn't TeX equivalents for all
>> symbols in that vector.  At least not ones that I have been able to
>> find.
>>
> but imaginary i cum suis should be possible

If possible, the followings are useful too in math (at least there are  
used in the MathML suite ;-):

ℏ "h" Planck's constant (\hslash in latex)
ⅆ "d" for use in differentials
ⅇ "e" exponential base

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


Re: [NTG-context] 64-bit linux minimal distribution

2006-03-28 Thread Piotr Kopszak
On Tue, Mar 28, 2006 at 09:32:31PM +0200, Piotr Kopszak wrote:
> Hello again, 
> 
> Some time ago I came across an information about 64-bit Minimal
> ConTeXt  Distribution, but I can't find it anywhere. Right now I have
> to stick to Debian tetex 3.0  but this is far from what I want, as
> ugrading to most recent ConTeXt breaks the package system. I wasn't
> able to setup a separate texmf tree in my home directory. It doesn't
> work. So maybe having a separate 64-bit debian in chroot with just a Minimal
> ConTeXt Distribution might solve the problem. Sorry for beeing fussy,
> but didn't have to make complete ConTeXt reinstallations for couple of
> years and now it seems things has changed rather for worse than the better
> :(
> 
> Piotr
> 
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

OK, I found it in directory view at PRAGMA website. 

Piotr

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


Re: [NTG-context] XML and 'Table of Contents'

2006-03-28 Thread Johannes Graumann
Hans Hagen wrote:

First: Thank you for your continued help! Works now, but there seems to be a
bug ... see below.

> texexec --env=xml.ctex --pdf xml.xml
I was wondering whether there is a possibility to use '(new)texexec' with
THREE input files: one describing the XML/ConTeXt mappings, one taking care
of document specific ConTeXt stuff (formating) and one for the XML itself?
Would make the 'mappings' file more portable ...

> \defineXMLargument  [tableofcontents] {\completecontent[criterium=text]}
> \defineXMLargument  [listoffigures]
> {\completelistoffigures[criterium=text]}
> \defineXMLargument  [listoftables]
> {\completelistoftables[criterium=text]}
> 
> (by default tocs are local (i.e. if you ask for one in a chapter, you
> get one with sections)
Thank you very much for this - I have entries in my TOC now. However, the
page numbers for my sections show up in the margins ... is this a bug? How
would I fix that?

> btw, if you use newtexexec, you can make a
> 
> xml.ctx file that says:
> 
> 
> 
> 
> whatever you like
> 
> 
> 
> xml.ctex
> 
> 
> 
> 
> 
> and directly run:
> 
> newtexexec xml.xml
This sounds really great ... but Debian unstable doesn't contain this file
yet - 'texexec --version' gets me:
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2005.01.31
   cont-en : ver: 2005.01.31  fmt: 2006.3.24  mes: english

total run time : 1 seconds

I'm hesitant to leave debian for this at this point - need all the time a
can get for this document - will the 'newtexexec' script just work with any
ole' ConTeXt install?

Joh

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


[NTG-context] 64-bit linux minimal distribution

2006-03-28 Thread Piotr Kopszak
Hello again, 

Some time ago I came across an information about 64-bit Minimal
ConTeXt  Distribution, but I can't find it anywhere. Right now I have
to stick to Debian tetex 3.0  but this is far from what I want, as
ugrading to most recent ConTeXt breaks the package system. I wasn't
able to setup a separate texmf tree in my home directory. It doesn't
work. So maybe having a separate 64-bit debian in chroot with just a Minimal
ConTeXt Distribution might solve the problem. Sorry for beeing fussy,
but didn't have to make complete ConTeXt reinstallations for couple of
years and now it seems things has changed rather for worse than the better
:(

Piotr


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


Re: [NTG-context] Frontmatter setup

2006-03-28 Thread nico
On Mon, 27 Mar 2006 11:25:42 +0200, Taco Hoekwater <[EMAIL PROTECTED]>  
wrote:

> nico wrote:
>> Hello,
>>
>> Is there a \setup... command to configure the frontmatter section  
>> block? I
>> haven't found a clear information about this.
>
> You can put your setup in the 'before', like so:
>
>\setupsectionblock
>   [frontmatter]
>   [before={\setuppagenumbering[conversion=romannumerals]}]

It does nothing. In this example the TOC and Preamble section still have  
default numbering:

% to have page numbers in roman in frontmatter
\setupsectionblock
   [frontmatter]
   [before={\setuppagenumbering[conversion=romannumerals]}]

\starttext

\startfrontmatter
\completecontent

\chapter{Preamble}
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\stopfrontmatter

\startbodymatter

\chapter{A body chapter}
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah

\stopbodymatter

\stoptext

But, of course, doing this works:
...
\startfrontmatter
\setuppagenumbering[conversion=romannumerals]
\completecontent

\chapter{Preamble}
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\stopfrontmatter
...

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


Re: [NTG-context] XML and title page rule

2006-03-28 Thread Jano Kula
>>>   Something &emdash; or Something else
>>> 
>> can somebody explain to a complete newbie why entity &emdash; isn't 
>> expanded out of the box?
>>
>> (I use texexec -pdf document.tex for processing.)
>>
>>   
> did you define the entity?

Thanks.

No I expected the example to be a minimal example, where everything else 
should work. And & entity did work (yes, I know it has a special 
meaning in XML, so it is probably predefined).

Jano

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


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread Hans Hagen
Vit Zyka wrote:
> Taco Hoekwater wrote:
>   
>> Vit Zyka wrote:
>>
>> 
>>>   \dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
>>>   
>> Taco Hoekwater wrote:
>>
>> 
>>>   \dimen4=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
>>>   
>> That's funny ;)
>>
>> Cheers, Taco
>> 
>
> Yes funny. Even line position is the same. But why 4? I know: why not.
>
> Will be move to distro? (Indifferent which version.) Old code contained 
> buggy space calculation and the rule position, I think.
>
>   
well, this feature needs an overhaul anyway 

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] \setupmarginrules

2006-03-28 Thread Vit Zyka
Taco Hoekwater wrote:
> 
> Vit Zyka wrote:
> 
>>   \dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
> 
> 
> Taco Hoekwater wrote:
> 
>>   \dimen4=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
> 
> 
> That's funny ;)
> 
> Cheers, Taco

Yes funny. Even line position is the same. But why 4? I know: why not.

Will be move to distro? (Indifferent which version.) Old code contained 
buggy space calculation and the rule position, I think.

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


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread Hans Hagen
Vit Zyka wrote:
> Willi Egger wrote:
>   
>> Hi Vit!
>>
>> Thanks for this patch. Do you know why the rulethickness must be given 
>> in integer dimension. e.g. 2.5pt will cause an error, telling that a 
>> wrong dimension is used.
>>
>> Willi
>> 
>
> Due to my fault. Sorry. This is a little bit better solution:
>
> ---
> \defineparagraphs   [poem][n=2,distance=20pt]
> \setupparagraphs[poem][1][width=.25\textwidth]
> \setupparagraphs[poem][2][rule=on,rulethickness=5.5pt]
>
> \unprotected
> \def\doalinealijn#1#2%
>{\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
>   {\dimen2=#1\relax
>\dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
>\hskip.5\dimen2
> %  \hskip-\linewidth
>\hskip-.5\dimen3 % VZ
> %  \vrule\!!width\linewidth
>\vrule\!!width\dimen3 % VZ
>\hskip-.5\dimen3 % VZ
>\hskip.5\dimen2}
>   {\hskip#1}}
>
> \starttext
> \startpoem
> \input knuth
> \nextpoem
> \input knuth
> \stoppoem
> \stoptext
> 
>   
don't use dimen 3 locally (tex convention, has to do with stack build-up) 

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] XML and title page rule

2006-03-28 Thread Hans Hagen
Jano Kula wrote:
> Hi,
>
>   
>>   Something &emdash; or Something else
>> 
>
> can somebody explain to a complete newbie why entity &emdash; isn't 
> expanded out of the box?
>
> (I use texexec -pdf document.tex for processing.)
>
>   
did you define the entity?

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] multiple line comments

2006-03-28 Thread Hans Hagen
Hans Hagen wrote:
> This one is pretty safe: 
>
> \startbuffer[comment]
> bla
> \startbuffer
> bla \iftrue \startbuffer bla bla
> bla \stopbuffer bla bla
> \stopbuffer
> bla
> bla
> \stopbuffer
\starthiding
\stophiding

does not support nesting in the way buffers do (simply because it was 
not enabled); i added a few lines to the buffer handler, so that now we 
can say:

\definebuffer[mycomment][local=yes]

and have 

\startmycomment 
 
\stopmycomment

(this extension will be available in the next release) 

(btw, in a similar fashion verbatim supports some nesting, which was needed in 
order to be able to write manuals) 

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] XML and title page rule

2006-03-28 Thread Jano Kula
Hi,

>   Something &emdash; or Something else

can somebody explain to a complete newbie why entity &emdash; isn't 
expanded out of the box?

(I use texexec -pdf document.tex for processing.)

> Here is the hint - needs to be wikified now ... -) 

I can't resist to do so (that's why I need an explanation), cause as a 
newbie I see the only weakness of the ConTeXt in the lack of documentation.

Well, there is a lot of it, maybe there is too much of it spread all 
over the different places (that's why wiki is here), maybe I'm not 
familiar enough with ConTeXt yet, but as a long term user of LaTeX I'm 
still quite confused after a week or so of browsing through the 
documentation, trying to find out how the things work and how they are 
related. Well, it took some time to understand LaTeX, too. I would buy 
the book mentioned here immediatelly.

These are not complaints, just another hint how to smooth starting with 
ConTeXt. As I see the possibilities I become addicted ;) and I do 
understand the developers have a lot of work with developing.

Would anybody who suggests the wikifying mind the proper place to put it 
in the wiki, if known? Or I shouldn't care and the administators tide it 
up occasionally. As a newbie I might not to think of writing to wiki, 
but better something than nothing, right?

As the new one here, I can add some small examples as I learn and test 
the things, what would be nice for the newcomers, if somebody 
experienced would add to wiki an explanation of the documentations in 
terms of user experience

1. "must read"
2. how the things work (texexec, etc.)
3. simple topics
4. advanced features

If I see the all-manuals page (http://www.pragma-ade.com/show-man.pdf) I 
really don't know where to start. All the titles look so interesting! 
Such overview could postpone the temptation to seek for advanced topic 
and subsequently get lost, as in my case. (Might be only my fault.)

Sorry for the desperade bigginer's notes, hope they help. To finish it 
why I can't get these two (advanced) pages?

http://www.pragma-ade.com/makeres.html
http://www.pragma-ade.com/general/manuals/xcorresp.pdf_Serial_Letters

Looking forward to use ConTeXt,

Jano

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


Re: [NTG-context] multiple line comments

2006-03-28 Thread Hans Hagen
Aditya Mahajan wrote:
> <--- On Mar 28, Taco Hoekwater wrote --->
>
>   
>> andrea valle wrote:
>> 
>>> Dear all,
>>> It's a bit tiring to start many lines always  with %.
>>> Is it possibile to have multiple line comments like in C
>>>
>>> \*
>>> comments here
>>> *\
>>>   
>> \iffalse
>>  comments here
>> \fi
>> 
>
> Be careful with this. From the UK tex FAQ
>
> The simple \newcommand{\gobble}[1]{} and \iffalse ... \fi aren't 
> really satisfactory (as a general solution) for comments, since the 
> matter being skipped is nevertheless scanned by TeX, not always as you 
> would expect. The scanning imposes restrictions on what you're allowed 
> to skip; this may not be a problem in today's job, but could return to 
> bite you tomorrow. For an example of surprises that may come to bite 
> you, consider the following example (derived from real user 
> experience):
>
> \iffalse % ignoring this bit
> consider what happens if we
> use \verb|\iftrue| -- a surprise
> \fi
>
> The \iftrue is spotted by TeX as it scans, ignoring the \verb command; 
> so the \iffalse isn't terminated by the following \fi. Also, \gobble 
> is pretty inefficient at consuming anything non-trivial, since all the 
> matter to be skipped is copied to the argument stack before being 
> ignored.
>   
This one is pretty safe: 

\startbuffer[comment]
bla
\startbuffer
bla \iftrue \startbuffer bla bla
bla \stopbuffer bla bla
\stopbuffer
bla
bla
\stopbuffer

-
  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] \setupmarginrules

2006-03-28 Thread Taco Hoekwater


Vit Zyka wrote:
>\dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ

Taco Hoekwater wrote:
>\dimen4=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ

That's funny ;)

Cheers, Taco

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


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread Vit Zyka
Willi Egger wrote:
> Hi Vit!
> 
> Thanks for this patch. Do you know why the rulethickness must be given 
> in integer dimension. e.g. 2.5pt will cause an error, telling that a 
> wrong dimension is used.
> 
> Willi

Due to my fault. Sorry. This is a little bit better solution:

---
\defineparagraphs   [poem][n=2,distance=20pt]
\setupparagraphs[poem][1][width=.25\textwidth]
\setupparagraphs[poem][2][rule=on,rulethickness=5.5pt]

\unprotected
\def\doalinealijn#1#2%
   {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
  {\dimen2=#1\relax
   \dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
   \hskip.5\dimen2
%  \hskip-\linewidth
   \hskip-.5\dimen3 % VZ
%  \vrule\!!width\linewidth
   \vrule\!!width\dimen3 % VZ
   \hskip-.5\dimen3 % VZ
   \hskip.5\dimen2}
  {\hskip#1}}

\starttext
\startpoem
\input knuth
\nextpoem
\input knuth
\stoppoem
\stoptext


Vit

> Vit Zyka wrote:
> 
> 
>>frantisek holop wrote:
>> 
>>
>>
>>>hmm, on Sun, Mar 26, 2006 at 10:12:01PM +0200, Vit Zyka said that
>>>
>>>   
>>>
>>>
>\defineparagraphs   [poem][n=2]
>\setupparagraphs[poem][1][width=.25\textwidth]
>\setupparagraphs[poem][2][rule=on]
>
>\setupmarginrules   [rulethickness=5pt]
>   
>

this sets rules for margins. I guess the solution

\setupparagraphs[poem][2][rule=on,rulethickness=5pt]
 

>>>
>>>sorry, i forgot to add, that i tried this one also :)
>>>seemed logical, but the result is the same.
>>>
>>>-f
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] multiple line comments

2006-03-28 Thread Aditya Mahajan
<--- On Mar 28, Taco Hoekwater wrote --->

>
>
> andrea valle wrote:
>> Dear all,
>> It's a bit tiring to start many lines always  with %.
>> Is it possibile to have multiple line comments like in C
>>
>> \*
>> comments here
>> *\
>
> \iffalse
>  comments here
> \fi

Be careful with this. From the UK tex FAQ

The simple \newcommand{\gobble}[1]{} and \iffalse ... \fi aren't 
really satisfactory (as a general solution) for comments, since the 
matter being skipped is nevertheless scanned by TeX, not always as you 
would expect. The scanning imposes restrictions on what you're allowed 
to skip; this may not be a problem in today's job, but could return to 
bite you tomorrow. For an example of surprises that may come to bite 
you, consider the following example (derived from real user 
experience):

\iffalse % ignoring this bit
consider what happens if we
use \verb|\iftrue| -- a surprise
\fi

The \iftrue is spotted by TeX as it scans, ignoring the \verb command; 
so the \iffalse isn't terminated by the following \fi. Also, \gobble 
is pretty inefficient at consuming anything non-trivial, since all the 
matter to be skipped is copied to the argument stack before being 
ignored.


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


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread Taco Hoekwater

Hi Willi (and Vit),

Willi Egger wrote:
> Hi Vit!
> 
> Thanks for this patch. Do you know why the rulethickness must be given 
> in integer dimension. e.g. 2.5pt will cause an error, telling that a 
> wrong dimension is used.

(I'll pretend to be Vit)

That is because in that case, it expands to  \hskip -.52.5pt

Try this:

   \unprotected
   \def\doalinealijn#1#2%
 {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
   {\dimen2=#1\relax
\dimen4=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
\hskip.5\dimen2
\hskip-.5\dimen4 % TH
\vrule\!!width\dimen4 % TH
\hskip-.5\dimen4 % TH
\hskip.5\dimen2}
   {\hskip#1}}

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


Re: [NTG-context] Imaginary entity rendering in MathML

2006-03-28 Thread Hans Hagen
Taco Hoekwater wrote:
> Hans Hagen wrote:
>   
>>> Probably.  This vector is far from complete.  I've tried to be as
>>> thorough as  possible, but there simply isn't TeX equivalents for all
>>> symbols in that vector.  At least not ones that I have been able to
>>> find.
>>>  
>>>   
>> but imaginary i cum suis should be possible
>> 
>
> They would need \definemathsymbol lines as well then, right?
>   
sure, they can be modeled after the x-newmme.tex entries 

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] Frontmatter setup

2006-03-28 Thread Willi Egger
Hi Frantisek,

May be that the example on page 81 of the main manual is an idea.
If you want to control the placing of the pagenumbers you can switch 
placing the number off by \setuppagenumering[location=]
Herafter you can setup header and or footer to place the pagenumber at 
the place you want it.

Willi

frantisek holop wrote:

>hmm, on Tue, Mar 28, 2006 at 02:19:54AM +0200, frantisek holop said that
>  
>
>>hmm, on Mon, Mar 27, 2006 at 11:25:42AM +0200, Taco Hoekwater said that
>>
>>
>>>\setupsectionblock
>>>   [name]
>>>   [number=yes|no,
>>>page=yes|right,
>>>before=\command,
>>>after=\command]
>>>  
>>>
>>this doesn't seem to work with ver: 2006.02.15
>>
>>\setupsectionblock  [frontmatter][number=no]
>>
>>\setuppagenumbering
>>  [location=footer, alternative=doublesided,
>>   left=$\diamond$\ , right=\ $\diamond$]
>>
>>
>
>i am sorry, i am an idiot.  number is for something else, right?
>i don't what, but i just assumed it is for page numbers.
>
>so i am trying now:
>
>\setupsectionblock
>  [frontmatter]
>  [before={\setuppagenumbering[state=none]}]
>
>but i still get pagenumbers.  what is the correct \setuppagenumbering
>parameter to turn off page numbers?  \setuppagenumbering's state
>lists only "start" and "stop", but \setupsubpagenumber's state
>also lists "none".
>
>
>the only way i don't get page numbers in the content is when i turn
>off pagenumbers for all the document:
>
>\setuppagenumbering
>  [location=footer, alternative=doublesided, state=none]
>
>
>does \setuppagenumbering override \setupsectionblock ?
>
>-f
>  
>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread Willi Egger
Hi Vit!

Thanks for this patch. Do you know why the rulethickness must be given 
in integer dimension. e.g. 2.5pt will cause an error, telling that a 
wrong dimension is used.

Willi

Vit Zyka wrote:

>frantisek holop wrote:
>  
>
>>hmm, on Sun, Mar 26, 2006 at 10:12:01PM +0200, Vit Zyka said that
>>
>>
>>
\defineparagraphs   [poem][n=2]
\setupparagraphs[poem][1][width=.25\textwidth]
\setupparagraphs[poem][2][rule=on]

\setupmarginrules   [rulethickness=5pt]


>>>this sets rules for margins. I guess the solution
>>>
>>>\setupparagraphs[poem][2][rule=on,rulethickness=5pt]
>>>  
>>>
>>sorry, i forgot to add, that i tried this one also :)
>>seemed logical, but the result is the same.
>>
>>-f
>>
>>
>
>OK, there is a patch (with minor correction):
>
>---
>\defineparagraphs   [poem][n=2,distance=20pt]
>\setupparagraphs[poem][1][width=.25\textwidth]
>\setupparagraphs[poem][2][rule=on,rulethickness=10pt]
>
>\unprotected
>\def\doalinealijn#1#2%
>   {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
>  {\dimen2=#1\relax
>   \hskip.5\dimen2
>%  \hskip-\linewidth
>   \hskip-.5\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
>%  \vrule\!!width\linewidth
>   \vrule\!!width\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
>   \hskip-.5\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
>   \hskip.5\dimen2}
>  {\hskip#1}}
>
>\starttext
>\startpoem
>\input knuth
>\nextpoem
>\input knuth
>\stoppoem
>\stoptext
>-
>
>for distro it also should be accompanied by
>
>   \c!rulethickness=\linewidth,
>
>in \def\dodefineparagraphs[#1][#2]%
>
>Vit
>___
>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] Imaginary entity rendering in MathML

2006-03-28 Thread Taco Hoekwater


Hans Hagen wrote:
>>
>>Probably.  This vector is far from complete.  I've tried to be as
>>thorough as  possible, but there simply isn't TeX equivalents for all
>>symbols in that vector.  At least not ones that I have been able to
>>find.
>>  
> 
> but imaginary i cum suis should be possible

They would need \definemathsymbol lines as well then, right?

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


Re: [NTG-context] Miktex, Metapost and \loadfontfilesoncetrue

2006-03-28 Thread Mojca Miklavec
On 3/28/06, Hans Hagen wrote:
> WN wrote:
> > Hi,
> >
> > I am using Miktex (latest updated version) and the latest
> > Context on WindowsXP (write18 enabled).
> >
> > This is what happens :
> >
> > 1) First run of texexec gives me
> > ! Undefined control sequence
> > l 1 \global \loadfontfileoncetrue
> >
> >
> probably a mismatch between an old format and new tex files

This looks like the neverending(?) problem (see
http://article.gmane.org/gmane.comp.tex.context/7649/match=loadfontfileoncetrue
from 2002) with texexec.pl running the metapost btex ... etex code
with plain tex format instead of ConTeXt format. (newtexexec isn't
fixed yet either) Plain tex doesn't know about the
\loadfontfileoncetrue command, that's why it's complaining.

I might be wrong, but at least that was the problem I experienced on
different computers that I use.

Mojca

(PS for "gnuplotters": Sorry for being "a bit offline" in the last weeks.)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] multiple line comments

2006-03-28 Thread andrea valle
> no, features

Thanks, they are so many...:-)

Best
-a-


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] multiple line comments

2006-03-28 Thread Hans Hagen
andrea valle wrote:
> Ah! I was pretty sure there was a way...Better, two.
> (just to understand, in some way they're two hacks, aren't they?)
>   
no, features 

there is also (slow): 

\starthiding 

\stophiding 

or 

\def\startmycomment{\gobbleuntil\stopmycomment} 

\startmycomment 
 
\stopmycomment 

(\startcomment is something different) 

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] multiple line comments

2006-03-28 Thread andrea valle
Ah! I was pretty sure there was a way...Better, two.
(just to understand, in some way they're two hacks, aren't they?)

Thanks

-a-




On 28 Mar 2006, at 13:09, Hans Hagen wrote:

> Taco Hoekwater wrote:
>> andrea valle wrote:
>>
>>> Dear all,
>>> It's a bit tiring to start many lines always  with %.
>>> Is it possibile to have multiple line comments like in C
>>>
>>> \*
>>> comments here
>>> *\
>>>
>>
>> \iffalse
>>   comments here
>> \fi
>>
> or
>
> \startmode[my comment]
>
> \stopmode
>
> 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
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] multiple line comments

2006-03-28 Thread Hans Hagen
Taco Hoekwater wrote:
> andrea valle wrote:
>   
>> Dear all,
>> It's a bit tiring to start many lines always  with %.
>> Is it possibile to have multiple line comments like in C
>>
>> \*
>> comments here
>> *\
>> 
>
> \iffalse
>   comments here
> \fi
>   
or 

\startmode[my comment]

\stopmode 

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] Imaginary entity rendering in MathML

2006-03-28 Thread Hans Hagen
Nikolai Weibull wrote:
> On 3/28/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
>
>   
>> nico wrote:
>> 
>
>   
>>> The following MathML test case (rec-arg1) using newmml does not render the
>>> imaginary entity ⅈ correctly. It is shown as a minus ("-") instead
>>> of "i". I have this behaviour for any test using this entity.
>>>   
>
>   
>> I guess the problem is that the vector unic-033 (=hex 21) only defines
>> the arrow part, that starts at 0x2190 ?
>> 
>
> Probably.  This vector is far from complete.  I've tried to be as
> thorough as  possible, but there simply isn't TeX equivalents for all
> symbols in that vector.  At least not ones that I have been able to
> find.
>   
but imaginary i cum suis should be possible

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] multiple line comments

2006-03-28 Thread Taco Hoekwater


andrea valle wrote:
> Dear all,
> It's a bit tiring to start many lines always  with %.
> Is it possibile to have multiple line comments like in C
> 
> \*
> comments here
> *\

\iffalse
  comments here
\fi

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


[NTG-context] multiple line comments

2006-03-28 Thread andrea valle
Dear all,
It's a bit tiring to start many lines always  with %.
Is it possibile to have multiple line comments like in C

\*
comments here
*\

I wasn't able to find anything like it in manual.

In this case, what about a \startcomment \stopccoment syntax?

Or maybe is it possible to have a user defined command?
\comment{
comments here
}


Thanks

-a-

Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Imaginary entity rendering in MathML

2006-03-28 Thread Nikolai Weibull
On 3/28/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote:

> nico wrote:

> > The following MathML test case (rec-arg1) using newmml does not render the
> > imaginary entity ⅈ correctly. It is shown as a minus ("-") instead
> > of "i". I have this behaviour for any test using this entity.

> I guess the problem is that the vector unic-033 (=hex 21) only defines
> the arrow part, that starts at 0x2190 ?

Probably.  This vector is far from complete.  I've tried to be as
thorough as  possible, but there simply isn't TeX equivalents for all
symbols in that vector.  At least not ones that I have been able to
find.

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


Re: [NTG-context] RFC: 'What would you like in an Text Editor?'

2006-03-28 Thread Nikolai Weibull
On 3/28/06, frantisek holop <[EMAIL PROTECTED]> wrote:
[Vim can basically do everything you want]
> having said that i am a new context user and i don't know if there's
> something specifically for context.

There's a syntax definition for ConTeXt.  It's going to be modified
for v7, as we're trying to consolidate all the TeXes.  I'm currently
maintaining the coretex.vim, plaintex.vim, and context.vim.

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


Re: [NTG-context] Automatic typesetting of catalogue entries

2006-03-28 Thread Hans Hagen
Taco Hoekwater wrote:
> Piotr Kopszak wrote:
>   
>> That's superb! Certainly worth wikifying, maybe someone better versed
>> in ConTeXt than me cared also to explain what's going on in here. 
>> 
>
> The first definition simply puts two on a page, using a counter
> to decide whether it is processing the top one or the bottom one,
> and using half of the page for each of them.
>
> The second definition also has two per page, but it uses the height
> of the typeset text to scale the images instead of using a fixed
> value based on the page dimension. It pdftex's positioning extensions
> to do so (that is the source the \hpos and \MPy commands). It has to
> disregard the actual size of the placed graphic to prevent it from
> interfering, and that is the reason for \ht\scratchbox\strutheight
> line (consider it a vertical version of \llap).
>   
thanks 

such samples + explanations are also nice for the practex journal or maps or 
tugboat or ... 

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] Miktex, Metapost and \loadfontfilesoncetrue

2006-03-28 Thread Hans Hagen
WN wrote:
> Hi,
>
> I am using Miktex (latest updated version) and the latest
> Context on WindowsXP (write18 enabled).
>
> This is what happens :
>
> 1) First run of texexec gives me
> ! Undefined control sequence
> l 1 \global \loadfontfileoncetrue
>
>   
probably a mismatch between an old format and new tex files

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] XML and 'Table of Contents'

2006-03-28 Thread Hans Hagen
Johannes Graumann wrote:
> Aaarghh ... attachments here ... 
>   

texexec --env=xml.ctex --pdf xml.xml

with

\defineXMLargument  [tableofcontents] {\completecontent[criterium=text]}
\defineXMLargument  [listoffigures]   
{\completelistoffigures[criterium=text]}
\defineXMLargument  [listoftables]
{\completelistoftables[criterium=text]}

(by default tocs are local (i.e. if you ask for one in a chapter, you 
get one with sections)

btw, if you use newtexexec, you can make a

xml.ctx file that says:




whatever you like



xml.ctex





and directly run:

newtexexec xml.xml

> Johannes Graumann wrote:
>
>   
>> Hans Hagen wrote:
>> 
>>> \defineXMLenvironment
>>> [chapter]
>>> {\defineXMLargument[title]{\chapter}
>>>  \defineXMLprocess[content]}
>>> {}
>>>
>>> \defineXMLargument
>>> [tableofcontents]
>>> {\completecontent}
>>>
>>> 
>>> 
>>> Title
>>> 
>>> 
>>> Text.
>>> 
>>> 
>>>   
>> Hans, thank you so much for your patience with this ambitious newbie ...
>> who still can't get this to work. With your help (see above) the chapter
>> is now showing up as intended - but still missing from the table of
>> contents (which I already had defined as you propose).
>>
>> I attach my xml and the ConTeXt file embedding it, as well as the pdf
>> output and would greatly appreciate if you (or some other kind soul) could
>> enlighten me as to what I am doing wrong.
>>
>> Thanks for all the help!
>>
>> Deadlined, Joh
>> 
>> 
>>
>> ___
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> 


-- 

-
  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] Imaginary entity rendering in MathML

2006-03-28 Thread Taco Hoekwater


nico wrote:
> Hello,
> 
> The following MathML test case (rec-arg1) using newmml does not render the  
> imaginary entity ⅈ correctly. It is shown as a minus ("-") instead  
> of "i". I have this behaviour for any test using this entity.

I guess the problem is that the vector unic-033 (=hex 21) only defines
the arrow part, that starts at 0x2190 ?

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


Re: [NTG-context] Automatic typesetting of catalogue entries

2006-03-28 Thread Taco Hoekwater


Piotr Kopszak wrote:
> That's superb! Certainly worth wikifying, maybe someone better versed
> in ConTeXt than me cared also to explain what's going on in here. 

The first definition simply puts two on a page, using a counter
to decide whether it is processing the top one or the bottom one,
and using half of the page for each of them.

The second definition also has two per page, but it uses the height
of the typeset text to scale the images instead of using a fixed
value based on the page dimension. It pdftex's positioning extensions
to do so (that is the source the \hpos and \MPy commands). It has to
disregard the actual size of the placed graphic to prevent it from
interfering, and that is the reason for \ht\scratchbox\strutheight
line (consider it a vertical version of \llap).

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