Re: [NTG-context] question about linenotes

2006-11-05 Thread Thomas A. Schmitz

On Nov 5, 2006, at 6:35 PM, Hans Hagen wrote:

> \unprotect
>
> \def\donoplacelinenumber
>   {\the\everylinenumber}
>
> \def\doplacelinenumber
>   {\ifnum\linenumber<\@@rnstart\relax
>  \donoplacelinenumber
>\else
>  \ifnum\numexpr(\linenumber/\@@rnstep)*\@@rnstep\relax=\linenumber
>\doattributes\??rn\c!style\c!color\dodoplacelinenumber
>  \else
>\donoplacelinenumber
>  \fi
>\fi}


Wonderful, that works! Thanks a lot!

Best

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


Re: [NTG-context] Compiling the magazines

2006-11-05 Thread Hans Hagen
J. R. Capablanca wrote:
> Hello everyone!
> I'm trying to get started with ConText. I've setup a stand alone 
> install with perl and ruby on windows (last version).
> I was quite impressed with the "This way" magazine layout... and was 
> trying to compile the example code that comes in the 000 edition.
> But the result is nothing like the original: all side texts are on 
> wrong places, body text goes through the paper margins: a mess!
>
> Maybe some margins or papersize settings that are implicit and I don't 
> have in my environment ?
> I'd be glad if somebody could give me some tips on this!
> The code is pasted below.
> Thanks in advance,
looks weird indeed; i'll have a look 

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] question about linenotes

2006-11-05 Thread Hans Hagen
Thomas A. Schmitz wrote:
> I'm playing with (and happy about) linenotes; I'm just running into  
> one small (?) problem. Here's a testfile:
>
>
> \starttext
>
> % \setuplinenumbering[location=intext,step=2]
>
> \startlinenumbering
>Long and boring text that has \linenote{note one} no other sense than
>demonstrating a problem with the linenote command in ConTeXt.
> \stoplinenumbering
>
> \stoptext
>
> Run it, then comment out the \setuplinenumbering command. Is there a  
> way of having linenotes displayed correctly even when the numbers are  
> not displayed because of the step= setting?
>   
\unprotect

\def\donoplacelinenumber
  {\the\everylinenumber}

\def\doplacelinenumber
  {\ifnum\linenumber<\@@rnstart\relax
 \donoplacelinenumber
   \else
 \ifnum\numexpr(\linenumber/\@@rnstep)*\@@rnstep\relax=\linenumber
   \doattributes\??rn\c!style\c!color\dodoplacelinenumber
 \else
   \donoplacelinenumber
 \fi
   \fi}

-
  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] new bib module

2006-11-05 Thread gnwiii
On 11/5/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> >
> > It seems that linux looks for the program "bibtex try-ctx" due to the
> > escaped "space".
>
> Never give up, never surrender!
>
> (new release uploaded)

Thanks.  If you haven't had days like that you haven't done enough
programming yet.

I've already tested

\expanded{\installprogram{\@@pbbibtex\ \jobname -->
\expanded{\installprogram{\@@pbbibtex\space\jobname

and it "works for me" with the defaults and with

\setupbibtex[database=xampl,bibtex=bibtex8]

on linux, but it will be a couple weeks before I'm near Win32 long
enough for further tests.

-- 
George N. White III <[EMAIL PROTECTED]>
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] character redefinition environment

2006-11-05 Thread Hans Hagen
Enzo Cordes wrote:
> Hi list,
>
> I want to assign Metapost graphics to single letters (in a newly defined 
> evironment, that take care of these assignments). The purpose is being 
> able to rapidly build huge tables containing lots of these symbols.
>
> Everything works fine if I assign these graphics to non-letters, e.g. 
> "|", but somehow it doesn't work with normal letters.
>
> Here is what I tried (with a simple Foo instead of Metapost graphics):
>
> \definesymbol[foosymbol][{\tt Foo}]
> \def\startmychars{%
> \bgroup\catcode`\|=\active\def|{\symbol[foosymbol]}}
> \def\stopmychars{\egroup}
>
> This works with | as reassigned character without any problems. But, we 
> want to have normal characters in the table, no punctuation marks, etc. 
> Does anyone know what to do to reassign a special definition for a 
> letter e.g. like uppercase B or else?
>
> I got this error:
> (/usr/local/share/texmf/tex/context/base/pdfr-ec.tex)
> ! Undefined control sequence.
> \startmychars ...up \catcode `\B=\active \defB
>{\symbol[foosymbol]}
> l.24 \startmychars
>
> which seems to indicate that B is not recognized as active character in 
> the "\defB"?
>
>   
| is already active, but not b

\bgroup
\catcode`B=\active
\def\start...

\egroup

otherwise a 'character B' and not an 'active character B' ends up in the 
definition

This may be easier:

\def\Whatever
  {\defineactivecharacter B {[oeps]}}

bla bla \start \Whatever B \stop ble bla


-- 

-
  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] overlay page background missing

2006-11-05 Thread Hans Hagen
Paul Jones wrote:
>> can you send small test file?
>
> Here you go...
>
> In case the mail server strips attachments, the contents of the
> attached file are also in the original post of this thread.
\setuppagenumbering
  [alternative=doublesided]

\setupcolors
  [state=start]

\setupbackgrounds
 [leftpage]
 [background=Watermark-Left]

\setupbackgrounds
 [rightpage]
 [background=Watermark-Right]

\definelayer
  [Watermark-Left]
  [repeat=yes,
   width=\paperwidth,
   height=\paperheight]

\definelayer
  [Watermark-Right]
  [repeat=yes,
   width=\paperwidth,
   height=\paperheight]

\setlayerframed
  [Watermark-Left]
  [preset=middle]
  [foregroundcolor=red]
  {\scale[sx=12,sy=12]{\rotate[rotation=20.0]{forever}}}

\setlayerframed
  [Watermark-Right]
  [preset=middle]
  [foregroundcolor=red]
  {\scale[sx=12,sy=12]{\rotate[rotation=-20.0]{together}}}

\starttext
\chapter{first}  \dorecurse{30}{\input tufte  }
\stoptext


-
  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] character redefinition environment

2006-11-05 Thread Enzo Cordes
Hi list,

I want to assign Metapost graphics to single letters (in a newly defined 
evironment, that take care of these assignments). The purpose is being 
able to rapidly build huge tables containing lots of these symbols.

Everything works fine if I assign these graphics to non-letters, e.g. 
"|", but somehow it doesn't work with normal letters.

Here is what I tried (with a simple Foo instead of Metapost graphics):

\definesymbol[foosymbol][{\tt Foo}]
\def\startmychars{%
\bgroup\catcode`\|=\active\def|{\symbol[foosymbol]}}
\def\stopmychars{\egroup}

This works with | as reassigned character without any problems. But, we 
want to have normal characters in the table, no punctuation marks, etc. 
Does anyone know what to do to reassign a special definition for a 
letter e.g. like uppercase B or else?

I got this error:
(/usr/local/share/texmf/tex/context/base/pdfr-ec.tex)
! Undefined control sequence.
\startmychars ...up \catcode `\B=\active \defB
   {\symbol[foosymbol]}
l.24 \startmychars

which seems to indicate that B is not recognized as active character in 
the "\defB"?


Any hints very welcome,
Enzo.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] unic-xxx.tex glyph lists: minor bugs, questions

2006-11-05 Thread Hans Hagen
Philipp Reichmuth wrote:
> I've been writing a script that sifts through the unic-xxx.tex files to 
> get a readable mapping what Unicode characters are supported using 
> \Amacron-style names.
>   
mtxtools can create such lists using the unicode consotium glyph table, 
mojca's mapping list and enco/regi files

we use mtxtools to create the tables needed for xetex (used for case 
mapping) and luatex (more extensive manipulations)
> In the process I found one bug and something that might be another bug:
>
> - the Cyrillic block (unic-004.tex) is missing an \unknownchar line for 
> U+04CF, so that the remaining (few) glyphs are off by one
>   
just mail me the patched file
> - the Hebrew block (unic-005.tex) starts with a \numexpr line indicating 
> an offset of 224 = E0; however, the first character in the list is 
> U+05D0.  So either the whole block is off by 16, starting at 0x0490 
> instead of 0x0500, or the 224 should be a 208 (=D0) instead.  BTW 
> unic-005.tex is the only file with Macintosh line endings. Are the 
> unic-xxx files automatically generated or maintained by hand?
>   
maintained by hand, again, just send me the fixed file, but we need to 
make sure that the fix is ok (i.e. works as expected)
> Incidentally, it would be trivial now to put the list of ConTeXt glyphs 
> on the Wiki, if anyone's interested.
>   
there is a file  contextnames.txt in the distributions (maintained by 
mojca), while the not yet distributed char-def.lua has the info for luatex
> I wanted to use this to work towards better support for the whole range 
> of ConTeXt glyphs with OpenType fonts under XeTeX, by reading what 
> ConTeXt glyphs are available in a font and building a list of 
> "\catcode`ā=\active \def ā {\amacron}"-style list for the rest. 
> (Unfortunately this kind of list would be font-specific, but the generic 
> alternative would be a huge list of active characters with an 
> \ifnum\XeTeXcharglyph">0 macro behind it, and that would probable be 
> quite slow.)  I wonder if there is a more intelligent way to achieve 
> this goal; since part of the logic for mapping code points into glyph 
> macros exists already, it would be easier if there was a way to reuse that.
>   
best take a look at mtxtools; if needed we can generate the definitions 
; concerning speed, it will not be that slow, because tex is quite fast 
on such tests (unless XeTeXcharglyph is slow due to lib access); the 
biggest thing is to make sure that things don't expand in unwanted ways.

(i must find time to update my xetex bin ; i must admit that i never 
tried to use open type fonts in xetex (the mac is broken)
> The best way out would be if I could enable ConTeXt's UTF-8 regime while 
> running XeTeX in \XeTeXinputencoding=bytes mode, but I haven't gotten 
> that to work yet.
>   
maybe mojca has

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] new to ConTeXt

2006-11-05 Thread Hans Hagen
� wrote:
> I guess I can mix ConTeXt and XML with the eXaMpLe framework (I have
> just read about it at wiki.contextgarden.net). In order to understand
> TEI and ConTeXt, I would like to be able to create the files that will
> be able to compile an TEI XML document with ConTeXt  without having to
> convert it to ConTeXt. I would like to avoid XSL and XSL-FO. I guess it
>   
Context can process XML directly, and for normal docs the related 
testing and programming features are ok; complex tree transformation can 
best be doen with xslt (luatex may change this); there is an xsl-fo 
processing available in context but i wonder if it has ever been used 
for serious work; fo is not that suited for quality typesetting and the 
regular machinery in context is producing better result and faster too
> should be something similar DocbookInConTeXt, but I don't know whether
> it uses the eXaMplE framework (I don't even know whether .
>   
the example framework is some ongoing experiment with web related 
tex/xml things; you don't need that, just stick to the built in xml 
handler (as described in example.pdf, but more extensive examples can be 
found in the x-*.tex files in the distribution
> Could anyone comment on this topic? I mean, whether the described task
> could be achieved with ConTeXt, which issues may arise, whether this is
> the best approach to the issue, whether I miss something, and so on.
>   
most of the projects we run at pragma involve xml -> pdf processing; 
using a dedicated dtd works most convenient

using tei is ok, as long as you stick to structural elements and keep 
away from layour-related coding

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] new bib module

2006-11-05 Thread Hans Hagen
Taco Hoekwater wrote:
> Thomas A. Schmitz wrote:
>   
>> On Nov 4, 2006, at 8:28 PM, [EMAIL PROTECTED] wrote:
>>
>>
>> 
>>> $ texmfstart texexec try-ctx
>>> [...]
>>> Completed box being shipped out [1.1]
>>> Memory usage before: 1751&690230; after: 397&690074; still  
>>> untouched: 939301
>>> title   : - References
>>> )
>>> ! Incomplete \iffalse; all text was ignored after line 23.
>>> 
>>>\fi
>>> <*> try-ctx.tex
>>>emergencyend
>>> ?
>>>
>>>   
>> I got the same error; I think a \fi is missing in line 935?
>>
>> 
>
> Absolutely correct, sorry again. Not my best day, this.
>   
come on, you're timesharing between luatex dev, metapost dev, context 
dev, company work ... permit yourself some occasional bugs -)

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] new bib module

2006-11-05 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
> 
> It seems that linux looks for the program "bibtex try-ctx" due to the
> escaped "space".

Never give up, never surrender!

(new release uploaded)

Taco


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


[NTG-context] question about linenotes

2006-11-05 Thread Thomas A. Schmitz
I'm playing with (and happy about) linenotes; I'm just running into  
one small (?) problem. Here's a testfile:


\starttext

% \setuplinenumbering[location=intext,step=2]

\startlinenumbering
   Long and boring text that has \linenote{note one} no other sense than
   demonstrating a problem with the linenote command in ConTeXt.
\stoplinenumbering

\stoptext

Run it, then comment out the \setuplinenumbering command. Is there a  
way of having linenotes displayed correctly even when the numbers are  
not displayed because of the step= setting?

Thanks

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


Re: [NTG-context] new bib module

2006-11-05 Thread gnwiii
On 11/4/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> Thomas A. Schmitz wrote:
> > On Nov 4, 2006, at 8:28 PM, [EMAIL PROTECTED] wrote:
> >
> >
> >>$ texmfstart texexec try-ctx
> >>[...]
> >>Completed box being shipped out [1.1]
> >>Memory usage before: 1751&690230; after: 397&690074; still
> >>untouched: 939301
> >>title   : - References
> >>)
> >>! Incomplete \iffalse; all text was ignored after line 23.
> >>
> >>\fi
> >><*> try-ctx.tex
> >>emergencyend
> >>?
> >>
> >
> >
> > I got the same error; I think a \fi is missing in line 935?
> >
>
> Absolutely correct, sorry again. Not my best day, this.
>
> New version uploaded

Now I get (running on linux):

$ texmfstart texexec try-ctx >texmfstart.log 2>&1
[EMAIL PROTECTED] bibtex]$ grep bibtex texmfstart.log
publications: file try-ctx.bbl not found, waiting for bibtex
TeXUtil | running bibtex\ try-ctx
sh: bibtex try-ctx: command not found
publications: file try-ctx.bbl not found, waiting for bibtex
publications: file try-ctx.bbl not found, waiting for bibtex
[EMAIL PROTECTED] bibtex]$ bibtex try-ctx
This is BibTeX, Version 0.99c (Web2C 7.5.5)
The top-level auxiliary file: try-ctx.aux
The style file: cont-no.bst
Database file #1: xampl.bib

It seems that linux looks for the program "bibtex try-ctx" due to the
escaped "space".

-- 
George N. White III <[EMAIL PROTECTED]>
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Compiling the magazines

2006-11-05 Thread J. R. Capablanca
Hello everyone!I'm trying to get started with ConText. I've setup a stand alone install with perl and ruby on windows (last version). I was quite impressed with the "This way" magazine layout... and was trying to compile the example code that comes in the 000 edition. 
But the result is nothing like the original: all side texts are on wrong places, body text goes through the paper margins: a mess!Maybe some margins or papersize settings that are implicit and I don't have in my environment ?
I'd be glad if somebody could give me some tips on this!The code is pasted below.Thanks in advance,JR- - - - - - -\usemodule[mag-01]\setvariables[magazine][title={Introduction},
author=Hans Hagen,affiliation=PRAGMA ADE,date=Januari 2003,number=0]\startbuffer[abstract]This is the zero issue of a semi periodical. Theassociated style can be used by \CONTEXT\ users totypeset and publish their own issues.
\stopbuffer\starttext \setups [titlepage] \setups [title]\setupheadertexts[welcome]This is the zero issue of a range of \CONTEXT\ relatedpublications, in most cases short introductions to newfunctionality. The style may be used by users for providing
similar documents, but preferably not for other purposes,since it may confuse readers in their expectations.We've chosen a layout which is more functional thanbeautiful. This layout provides several text areas: headers
and footers, margins and edges as well as a main text area.The surrounding (gray) makes the main page (which isslightly smaller than A4) stand out and is suitable forviewing in spread mode.The documents produced at \PRAGMA\ are called {\bf This
Way}, user documents gets the title {\bf My Way}. The\PRAGMA\ issues are numbered. We strongly advise you not touse the \type {mag-} prefix for your issues, since this maylead to clashes with files distributed by \PRAGMA.
\setups [listing] \setups [lastpage] \stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context