Re: [NTG-context] two small questions about the mkiv roadmap

2008-05-02 Thread Hans Hagen
Wolfgang Schuster wrote:
 On Thu, May 1, 2008 at 11:00 AM, Thomas A. Schmitz
 [EMAIL PROTECTED] wrote:
  On Apr 30, 2008, at 6:10 PM, Hans Hagen wrote:

   Wolfgang Schuster wrote:
  
   The DTD is a problem with the ConTeXts XML parser and has
   nothing to do with LuaTeX (hope this is right).
  
   i need a test file then (can look into it next week; i'm at bachotek
   now)

  OK, I hope this is a minimal test: I have this xml file (which, I
  think, is valid xml):
 
 \startbuffer[test]
  ?xml version=1.0 encoding=utf-8?
  !DOCTYPE context [
  !ELEMENT document (section)
  !ELEMENT section  (title,content)
  !ELEMENT title(#PCDATA)
  !ELEMENT content  (#PCDATA)
  !ENTITY ndash #x02013;
  ]

  document
section
  titleThe Title/title
  content
pA line of text ndash; with a dash./p
  /content
/section
  /document
 \stopbuffer
 
  and this environment myenv.tex:

  \startxmlsetups xml:mysetups
 \xmlsetsetup{\xmldocument}{document|section|}{xml:*}
  \stopxmlsetups

  \xmlregistersetup{xml:mysetups}

  \startxmlsetups xml:document
 \xmlflush{#1}
  \stopxmlsetups

  \startxmlsetups xml:section
  \section{\xmlfirst{#1}{title}}
 \xmlfirst{#1}{content}\par
  \stopxmlsetups

  \enableregime[utf]

  \defineXMLentity[ndash]{--}

  \starttext
  \xmlprocess{main}{\inputfilename}{}
 \xmlprocessbuffer{main}{est}{}
  \stoptext
 
 Easier for test because you need only one file.

or just (for testing)

mtxrun --script blabla.lua :

str = [[
?xml version=1.0 encoding=utf-8?

!DOCTYPE context [
!ELEMENT document (section)
!ELEMENT section  (title,content)
!ELEMENT title(#PCDATA)
!ELEMENT content  (#PCDATA)
!ENTITY ndash #x02013;
]

document
section
  titleThe Title/title
  content
pA line of text ndash; with a dash./p
  /content
/section
/document
]]

x = xml.convert(str)
xml.merge_entities(x)
xml.resolve_entities(x)

print(table.serialize(x))

i fixed the bug but no upload yet; also, i'm still not sure about 
merging entities defined in the document


-
   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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typescript and memory usage

2008-05-02 Thread Hans Hagen
Antoine Junod wrote:
 Hello list,
 
 Thanks to Hans, Hraban, Wolfgang and Aditya, I've successfully played
 with typescripts and Garamond PP as provided by Adobe with luatex.
 
 But I still have a little question :) By reducing my typescript to the
 strict minimum, as below, I'm still using 232 Mo (sic) of ram. My
 document test only contains nothing but a \switchtobodyfont but it
 takes 8.7 seconds to compile on a 4000 bogomips machine (athlon
 2400+).
 
 For the C lover I am, that seems, errh, HUGE.

on larger docs (say 200 pages) we get 10 pages/sec

 Is it normal?

yes, lua allocates chunks in growing sizes and font tables are large; 
the number is not always reflecting the actual usage

 Note that if I remove the [features=default] argument, mem is divided
 by 2, and time by 3. Also note that if I use more faces, it can go to
 2Go of ram and 2 minutes of computing.

hm, the mk test document never tops that much (i think 400 M at most 
when chinese, arab and zapfino are loaded

maybe there's something wrong with garbage collection on youe machine

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typo or bug report in type-buy.tex

2008-05-02 Thread Hans Hagen
Wolfgang Schuster wrote:
 On Thu, 01 May 2008 17:37:17 +0200
 Renaud AUBIN [EMAIL PROTECTED] wrote:
 
 Hi folks,

  From line 199 to 206 :
 \starttypescript [lucida,lucidabfm] [texnansi,ec,8r,uc]
 \definetypeface [lucida] [rm] [serif]   [lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [ss] [sans][lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [tt] [mono][lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [hw] [handwriting] [lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [cg] [calligraphy] [lucida] [default] 
 [encoding=\typescripttwo]
 \loadmapfile [\typescriptthree-bh-lucida.map]
 \stoptypescript

 I assume it should be :
 \starttypescript [lucida,lucidabfm] [texnansi,ec,8r,uc]
 \definetypeface [lucida] [rm] [serif]   [lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [ss] [sans][lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [tt] [mono][lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [hw] [handwriting] [lucida] [default] 
 [encoding=\typescripttwo]
 \definetypeface [lucida] [cg] [calligraphy] [lucida] [default] 
 [encoding=\typescripttwo]
 \loadmapfile [\typescripttwo-bh-lucida.map]
 \stoptypescript
 
 It makes also sense to replace \definetypeface [lucida] ... with
 \definetypeface [\typescriptone] ..., allows you to write
 
 \usetypescript[lucidabfm]
 \setupbodyfont[lucidabfm]

ok


-
   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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] man pages (for TeX Live)

2008-05-02 Thread Mojca Miklavec
Hello Sanjoy and all the other enthusiasts,

Would anyone be ready to prepare man pages for context, mtxrun and
luatools for TeX Live (at least for context)? Maybe for luatex as
well.

Current files are in svn repository
http://svn.contextgarden.net/minimals-src/man/
(well, they should be transferred to TeX Live SVN at the end)

Thanks to any volunteers,
   Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Greek module

2008-05-02 Thread cidadaum
I managed to install the greek module. Here is where it is placed:

[EMAIL PROTECTED]:/etc/texmf/tex/context/third ls
t-ancientgreek
[EMAIL PROTECTED]:/etc/texmf/tex/context/third cd t-ancientgreek/
[EMAIL PROTECTED]:/etc/texmf/tex/context/third/t-ancientgreek ls
fontst-ancientgreek.mkiv  t-oldgreek.tex  type-agr.mkiv
t-ancientgreek.mkii  t-ancientgreek.tex   type-agr.mkii   type-agr.tex
[EMAIL PROTECTED]:/etc/texmf/tex/context/third/t-ancientgreek

[EMAIL PROTECTED]:~ kpsewhere t-ancientgreek.tex
/etc/texmf/tex/context/third/t-ancientgreek/t-ancientgreek.tex


The point  now is that I need to build the fonts (or build the metric =20
files of the fonts). So need to use texfont, am I right? One mandatory =20
argument is the vendor's name. Which name should I type for GFSDidot, =20
GFSPorson, Ibycus, Gentium?


Another issue: Xetex says repeatedly (as you can see on the attached file)

! Undefined control sequence.
l.5 \beginOLDTEX

I ask if there is no compatibility between Xetex and greekmodule can I =20
use Context with unicode (utf8) input (the manual which I suppose is =20
quite outdated says Context expects pure ASCII input)?


Thanks for your help.
Armando Martins
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Minimals NixoS

2008-05-02 Thread Mojca Miklavec
On Mon, Apr 28, 2008 at 9:12 AM, Gour wrote:
 Hello!

  Soon I plan to move to NixOS (http://nixos.org/) distro which uses
  purely functional package manager (Nix) and does not allow 'destructive'
  updates which happen with e.g. ConTeXt Minimals and rsync.

  I'd like to use Luatex and due to its rapid development I am interested
  to know whether it would be feasible to do rsync locally and then
  provide Minimals 'snapshot' ? (the question is how to deploy luatex via
  Minimals'distro'?)

I can put any files on the server and can reshuffle them if needed,
but you need to send me some kind of specifications what exactly you
need. I can also put a nixos package to the garden, but you need to
prepare it (and possibly provide the proper binaries). Try to shuffle
the files on your local machine and play with it to see if it works.

Would you like to provide sources or binaries?

  Anything what can be done to help with Minimals?

Man pages? Improve mtx-update.lua? Some other things as well, I'll try
to move everything to the new server in some reasonable time.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Greek module

2008-05-02 Thread Mojca Miklavec
On Fri, May 2, 2008 at 11:46 AM,  [EMAIL PROTECTED] wrote:

  Another issue: Xetex says repeatedly (as you can see on the attached file)

(there was no file attached)

  ! Undefined control sequence.
  l.5 \beginOLDTEX

I cannot answer the greek-specific questions, but I guess that your
ConTeXt might be too old. Can you try to update ConTeXt and try again?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Greek module

2008-05-02 Thread Thomas A. Schmitz

On May 2, 2008, at 11:46 AM, [EMAIL PROTECTED] wrote:

 I managed to install the greek module. Here is where it is placed:

 [EMAIL PROTECTED]:/etc/texmf/tex/context/third ls
 t-ancientgreek
 [EMAIL PROTECTED]:/etc/texmf/tex/context/third cd t-ancientgreek/
 [EMAIL PROTECTED]:/etc/texmf/tex/context/third/t-ancientgreek ls
 fontst-ancientgreek.mkiv  t-oldgreek.tex  type- 
 agr.mkiv
 t-ancientgreek.mkii  t-ancientgreek.tex   type-agr.mkii   type-agr.tex
 [EMAIL PROTECTED]:/etc/texmf/tex/context/third/t-ancientgreek

 [EMAIL PROTECTED]:~ kpsewhere t-ancientgreek.tex
 /etc/texmf/tex/context/third/t-ancientgreek/t-ancientgreek.tex


Oh boy. This is really not the place where your personal additions to  
your TeX installation should go. But if it can find the files in this  
location, let's take it from there.

 The point  now is that I need to build the fonts (or build the  
 metric =20
 files of the fonts). So need to use texfont, am I right? One  
 mandatory =20
 argument is the vendor's name. Which name should I type for  
 GFSDidot, =20
 GFSPorson, Ibycus, Gentium?

No, the entire point is that the module comes with these metric files;  
I have prepared all this and run texfont for you. Plus, you don't need  
any metrical files for XeTeX. I have included a couple of fonts too,  
so you should be good to go. Try a minimal file:

\enableregime[utf]
\usemodule[ancientgreek][font=GFSPorson]

\starttext

test: \localgreek{Μῆνιν ἄειδε, θεά}

\stoptext

 Another issue: Xetex says repeatedly (as you can see on the attached  
 file)

 ! Undefined control sequence.
 l.5 \beginOLDTEX

Two explanations are possible (there was no attachment to your mail):
- you're not using ConTeXt. you should invoke it with texexec --xtx  
yourfilename.tex
- your ConTeXt is too old. OpenSuSE has TeXLive 2007, I guess, so you  
should update ConTeXt.


 I ask if there is no compatibility between Xetex and greekmodule can  
 I =20
 use Context with unicode (utf8) input (the manual which I suppose is  
 =20
 quite outdated says Context expects pure ASCII input)?

As I said, with the latest version, you should be able to use all  
engines. So you can use ConTeXt with utf8 input (you have to include  
the \enableregime[utf] line at the beginning of the file) or XeTeX  
(which will only work with utf8-input) or luatex. Which manual says  
that ConTeXt expects pure ASCII input?

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \front/backmatter etc. and page number

2008-05-02 Thread Tobias Burnus
Hello,

I use frontmatter with roman and bodymatter with arabic numerals. The 
problem is that the last (nonempty verso) page of the frontmatter 
already gets the header and the page number of the bodymatter. Any idea?

Tobias


\setuppagenumbering[alternative=doublesided, location={footer,right}]
\setupsectionblock[frontpart][page=]
\setupsectionblock[bodypart][page=]
\setupsectionblock[backpart][page=]
\setupsectionblock[appendixpart][page=]

\startfrontmatter
   \setuppagenumbering[conversion=romannumerals]
   \setuppagenumber[number=1,state=start]
 \chapter{something}
...
%  --- Last page gets already page number 1 and the headings 
(Chapter:) of the bodymatter.

\stopfrontmatter

\startbodymatter
   \setupheadertexts

[][{\start\setupselector[header][n=1]\getmarking[sectionnumber]~\getmarking[section]\stop}]
[{\start\setupselector[header][n=1]Chapter 
\getmarking[chapternumber]: \getmarking[chapter]\stop}][]
   \setuppagenumbering[conversion=numbers]
   \setuppagenumber[number=1,state=start] % Bad workaround: number=0
   \setuphead[chapter][number=yes]

\chapter{something else}
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \front/backmatter etc. and page number

2008-05-02 Thread Wolfgang Schuster
On Fri, 02 May 2008 14:15:04 +0200
Tobias Burnus [EMAIL PROTECTED] wrote:

 Hello,
 
 I use frontmatter with roman and bodymatter with arabic numerals. The 
 problem is that the last (nonempty verso) page of the frontmatter 
 already gets the header and the page number of the bodymatter. Any idea?
 
 Tobias
 
 
 \setuppagenumbering[alternative=doublesided, location={footer,right}]
 \setupsectionblock[frontpart][page=]
 \setupsectionblock[bodypart][page=]
 \setupsectionblock[backpart][page=]
 \setupsectionblock[appendixpart][page=]
 
 \startfrontmatter
\setuppagenumbering[conversion=romannumerals]
\setuppagenumber[number=1,state=start]
  \chapter{something}
 ...
 %  --- Last page gets already page number 1 and the headings 
 (Chapter:) of the bodymatter.
 
 \stopfrontmatter

\page

 \startbodymatter
\setupheadertexts
 
 [][{\start\setupselector[header][n=1]\getmarking[sectionnumber]~\getmarking[section]\stop}]
 [{\start\setupselector[header][n=1]Chapter 
 \getmarking[chapternumber]: \getmarking[chapter]\stop}][]
\setuppagenumbering[conversion=numbers]
\setuppagenumber[number=1,state=start] % Bad workaround: number=0
\setuphead[chapter][number=yes]
 
 \chapter{something else}

You change the headertext before the last page is shipped with
\chapter{something else} and this give you the new header also on the
preceding page..

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] defineitemgroup interferes with item reference

2008-05-02 Thread Hans Hagen
Sanjoy Mahajan wrote:
 I cannot figure out the error in the following nested itemization with a
 reference.  Is it a bug or am I overlooking something?  Here is the
 smallest example I could make.  Strangely, if I change the
 startproblemlist to startitemize and stopproblemlist to stopitemize, all
 is well.
 
 \defineitemgroup[problemlist]
 \starttext
 \startproblemlist
 \item Drag
 \startitemize
 \item[ref] blah
 \stopitemize
 \stopproblemlist
 \stoptext
 
 I'm using context 2008.01.28 21:28 (mkii), Debian GNU/Linux 'unstable'
 for i386, and the 2008.04.27 version on the Garden gives the same error.
 The error is
 
 ! Undefined control sequence.
 write ...realfolio }{\relax \@@opitemizesymbol1 
   \relax .?}
 inserted text 
 }\endwrite 
 \actualshipout ... \box \postponedcontent \box 0}}
   \else \message 
 {[\ifarrang...
 
 \myshipout ... \fi {\thisisrealpage \realfolio #1}
   \gotonextrealpage 
 \aftersh...
 
 \dofinaloutput ...agebody #1#2\setpagecounters }}}
   \fi \the 
 \everyaftershipou...
 
 \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
   \resetselectiepagina 
 \incr...
 
 l.14 \stoptext

itemgroups cannot be miced; this catches it

\def\dostartitemgroup[#1][#2][#3]%
   {\bgroup
\ifnum\currentitemlevel=\zerocount
  \def\currentitemgroup{#1}% no nested mixing of itemgroups
\fi
\ifthirdargument
  \dodostartitemgroup[#2][#3]%
\else
  \doifassignmentelse{#2}
{\dodostartitemgroup[][#2]}
{\dodostartitemgroup[#2][]}%


-
   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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize numbering

2008-05-02 Thread richard . stephens
Aditya,

Many thanks, that works beautifully.

Thanks again.

Richard



On Tue, 29 Apr 2008, [EMAIL PROTECTED] wrote:

 Hello All,

 I just tried the following on Context Live:

 \starttext
 \startitemize[n]
  \item one
  \item two
\startitemize
  \item a
  \item b
\stopitemize
  \item three
 \stopitemize
 \stoptext

 and the first itemize starts at 0.  Remove the inner itemize and it 
starts
 at 1.

 Is this a feature or a bug?  How do I get around it?

Here is a modified core-itm.tex that corrects this bug.

Aditya

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Greek module

2008-05-02 Thread cidadaum
I see...
I cringe so much of
Citando Thomas A. Schmitz [EMAIL PROTECTED]:


 On May 2, 2008, at 11:46 AM, [EMAIL PROTECTED] wrote:

 I managed to install the greek module. Here is where it is placed:

 [EMAIL PROTECTED]:/etc/texmf/tex/context/third ls
 t-ancientgreek
 [EMAIL PROTECTED]:/etc/texmf/tex/context/third cd t-ancientgreek/
 [EMAIL PROTECTED]:/etc/texmf/tex/context/third/t-ancientgreek ls
 fontst-ancientgreek.mkiv  t-oldgreek.tex  type-
 agr.mkiv
 t-ancientgreek.mkii  t-ancientgreek.tex   type-agr.mkii   type-agr.tex
 [EMAIL PROTECTED]:/etc/texmf/tex/context/third/t-ancientgreek

 [EMAIL PROTECTED]:~ kpsewhere t-ancientgreek.tex
 /etc/texmf/tex/context/third/t-ancientgreek/t-ancientgreek.tex


 Oh boy. This is really not the place where your personal additions to
 your TeX installation should go.

Please, where is the right place?

 But if it can find the files in this
 location, let's take it from there.

 The point  now is that I need to build the fonts (or build the
 metric =20
 files of the fonts). So need to use texfont, am I right? One
 mandatory =20
 argument is the vendor's name. Which name should I type for
 GFSDidot, =20
 GFSPorson, Ibycus, Gentium?

 No, the entire point is that the module comes with these metric files;
 I have prepared all this and run texfont for you. Plus, you don't need
 any metrical files for XeTeX. I have included a couple of fonts too,
 so you should be good to go. Try a minimal file:

 \enableregime[utf]
 \usemodule[ancientgreek][font=GFSPorson]

 \starttext

 test: \localgreek{? ?, ???}

 \stoptext

 Another issue: Xetex says repeatedly (as you can see on the attached
 file)

 ! Undefined control sequence.
 l.5 \beginOLDTEX

 Two explanations are possible (there was no attachment to your mail)

Indeed no. I gave up when I received the e-mail saying my message was  
waiting for approval. I apologise.

:
 - you're not using ConTeXt. you should invoke it with texexec --xtx
 yourfilename.tex

No. I am doing exactly that: texexec --xtx myfilename.tex

 - your ConTeXt is too old. OpenSuSE has TeXLive 2007, I guess, so you
 should update ConTeXt.

Right. My Context is from 2007. The point is that I am so clumsy about  
installing something on OpenSuse/Linux (I have a Windows machine using  
MikTex, suppose that doesn't help) that I do it always on line with a  
repo. Download and install rpm packages (or other files) rarely turns  
out to be good. But anyway I have tried to install according to the  
recipe I found on wiki  
(http://wiki.contextgarden.net/Linux_User_Installation). Didn't  
manage. If you have no other suggestion I can try again and post the  
result.




 I ask if there is no compatibility between Xetex and greekmodule can
 I =20
 use Context with unicode (utf8) input (the manual which I suppose is
 =20
 quite outdated says Context expects pure ASCII input)?

 As I said, with the latest version, you should be able to use all
 engines. So you can use ConTeXt with utf8 input (you have to include
 the \enableregime[utf] line at the beginning of the file) or XeTeX
 (which will only work with utf8-input) or luatex. Which manual says
 that ConTeXt expects pure ASCII input?

This one: mp-cb-en.pdf. Quoting from page 1:

CONTEXT expects a plain ASCII input file. Of course you can use any  
texteditor or wordprocessor
you want, but you should not forget that CONTEXT can only read ASCII  
input. Most
texteditors or wordprocessors can export your file as plain ASCII.

I will try to run the file and I will post the output later on.
Thanks for your patience.
Armando


 Thomas
 ___
 If your question is of interest to others as well, please add an  
 entry to the Wiki!

 maillist : ntg-context@ntg.nl /  
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] headers and pagenumbering

2008-05-02 Thread Wolfgang Schuster
On Wed, 30 Apr 2008 17:28:09 +0200
Henning Hraban Ramm [EMAIL PROTECTED] wrote:

 Hello again,
 just trying to understand some remaining issues with my latest project.

[long example]

 (1) % or 0? ;-)
 I struggled how to leave out the pagina on the ToC page, no setups  
 seemed to work.
 I just reckognized that I need the \page inside of the braced area.

I will use a simple example ti explain where you need to insert a
pagebreak to get the desired output.

You have short document with two pages and the header on the first page
should be empty, let's us try the following code.

\starttext
\setupheader[state=stop]
\input knuth
\setupheader[state=start]
\page
\input knuth
\stoptext

The first \setupheader disables the header for the document, to enable
it for the second page we write another \setupheader before our \page
the command. If you take a look at the output this is not what we
wanted because there is also a pagenumber on the first.

Let's try us again with a slightly modified example.

\starttext
\setupheader[state=stop]
\input knuth
\page
\setupheader[state=start]
\input knuth
\stoptext

We moved now the \page command before the second \setupheader settings
and voila, there is no pagenumber on the first page, but why is it
important to move the \page command before the \setupheader setting.

THis is very simple, TeX makes the decision to put a header/ footer on
the when it shippes out a page which will happen either with a full
page or with a manual \page command. In our first example the last
value for the header was to enable it because the headervalue was start
before the page was shipped out while in the second example the value
was stop and we enable the header *after* the page was shipped out.

 (3)
 One can hide the page number with location=, but the header on  
 the first page of a chapter with header=high. Is there any logic  
 behind that?

I will give you a answer to this questions before the second one
because it makes more sense to answer both in this order.

The pagenumber could be hidden with the location keyon all pages in the
document, it is a global value whereas the header value for
\setupheader disables it only on the current page, it is a local value.

You could use the header key to format the header on footer lines on
part/chapter/... pages than the rest of your document, e.g. the
complete document has the pagenumber at the right side in the header
but you want it on the chapter page in the middle of the bottom etc.

 (2)
 How can I leave out the chapter header on the first page of a  
 chapter, but keep the page number? (Probably simple?)

You could define individual headers for part/chapter/... pages with
\definetext, I will show here Hans example from page-txt.

The command has nearly the same syntax as \setupheadertexts and
\setupfootertexts but the first argument is a identifier you use in
\setupheader for the header or footer key and the second argument is
for the position of the text.

 \starttyping
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter]
\setupheadertexts[pagenumber]
\setupfootertexts[left][right]
\chapter{eerste} \dorecurse{20}{\input tufte \relax}
\chapter{tweede} \dorecurse{20}{\input tufte \relax}
\stoptyping

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___