Re: [NTG-context] markup format ---> ConTeXt

2008-06-02 Thread Maurice Diamantini

Le 30 mai 08 à 13:22, Aditya Mahajan a écrit :

> On Fri, 30 May 2008, Gour wrote:
>
>> Some of the more popular markup-formats are AsciiDoc
>> (http://www.methods.co.nz/asciidoc/index.html) and reStructuredText
>> (http://docutils.sourceforge.net/rst.html), but according to what I  
>> see
>> both are missing ConTeXt back-end (latex only) :-(
>>
>> Any suggestion for 'popular' markup with ConTexT back-end?
>
> Have a look at pandoc which converts markdown to ConTeXt and also to  
> many
> other formats including html. There was also some discussion for
> conversion to OO, but I do not know the current status of that.
>
> http://johnmacfarlane.net/pandoc/


Just some remarks/questions:
- docbook seems to be the standard for describing documentation data,
- dblatex seams to be a currently good supported tools for **easely**  
provide pdf
   output from docbook input, and cutomize the output with .xsl  
parameters or
   LaTeX .sty files
- dbcontext seams not to be maintained very much
- ConTeXt seams to be able to directly parse xml without external tools

So, what about make ConTeXt directly reading dokbook file and output  
pdf file?
I see the http://www.leverkruid.eu/context/index.html page from Simon  
Pepping.
But it seems that this project is down.

If ConTeXt provide an easy way for translate docbook to pdf file  
(usable by
a non (ie. not yet) ConTeXt user as dblatex is), I think poeple could  
switch
to ConTeXt only for that feature (not everybody have dependency with  
LaTeX!)
Then the problem would resume to find a good "yourPreferedWikiFormat" to
docbook...
(I'v not seen any "t-bocbook" file on http://dl.contextgarden.net/modules)


-- Maurice



___
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] the error of xetex

2008-06-02 Thread Wolfgang Schuster
Hi,

What problem do you have with XeTeX, I can see nothing in your log file.

Greetings
Wolfgang

On Tue, Jun 3, 2008 at 2:02 AM, Yanli Li <[EMAIL PROTECTED]> wrote:
> TeXExec | processing document 'hello'
> TeXExec | no ctx file found
> TeXExec | tex processing method: context
> TeXExec | TeX run 1
> TeXExec | writing option file hello.top
> TeXExec | using randomseed 598
> TeXExec | tex engine: xetex
> TeXExec | tex format: cont-en
> This is XeTeX, Version 3.1415926-2.2-0.998.1 (Web2C 7.5.6)
>  \write18 enabled.
> entering extended mode
> (./hello.tex
>
> ConTeXt  ver: 2008.05.31 12:20 MKII  fmt: 2008.6.3  int: english/english
>
> language: language en is active
> system  : cont-new loaded
> (/opt/context/tex/texmf-local/tex/context/base/cont-new.tex
> systems : beware: some patches loaded from cont-new.tex
> (/opt/context/tex/texmf-local/tex/context/base/cont-new.mkii)
> (/opt/context/tex/texmf-local/tex/context/base/cont-mtx.tex))
> system  : cont-old loaded
> (/opt/context/tex/texmf-local/tex/context/base/cont-old.tex
> loading : Context Old Macros
> )
> system  : cont-fil loaded
> (/opt/context/tex/texmf-local/tex/context/base/cont-fil.tex
> loading : Context File Synonyms
> )
> system  : cont-sys loaded
> (/opt/context/tex/texmf-context/tex/context/user/cont-sys.tex
> (/opt/context/tex/texmf-local/tex/context/base/type-tmf.tex)
> (/opt/context/tex/texmf-local/tex/context/base/type-siz.tex)
> (/opt/context/tex/texmf-local/tex/context/base/type-otf.tex)
> (/opt/context/tex/texmf-local/tex/context/base/type-xtx.tex))
> bodyfont: 12pt rm is loaded
> language: patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3
> de->ec:ec->3->2:
> 3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3
> pl->ec:ec->7->2:3 cz->e
> c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3
> en->ec:ec-
>  >13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3
> da->ec:ec->1
> 7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3
> deo->ec:ec->21-
>  >2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3
> ro->ec:ec->28->2:
> 3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded
> specials: tex,postscript,rokicki loaded
> system  : hello.top loaded
> (./hello.top
> specials: loading definition file dpx
> (/opt/context/tex/texmf-local/tex/context/base/spec-dpx.tex
> specials: loading definition file fdf
> (/opt/context/tex/texmf-local/tex/context/base/spec-fdf.tex
> (/opt/context/tex/texmf-local/tex/context/base/spec-fdf.mkii))
> specials: fdf loaded
> )
> specials: fdf,dpx loaded
> specials: loading definition file xet
> (/opt/context/tex/texmf-local/tex/context/base/spec-xet.tex)
> specials: fdf,dpx loaded
> )
> systems : begin file hello at line 1
> fonts   : resetting map file list
> fonts   : using map file: original-base
> fonts   : using map file: lm-math
> fonts   : using map file: lm-rm
> fonts   : using map file: texnansi-base
> fonts   : using map file: ec-base
> fonts   : using map file: qx-base
> fonts   : using map file: t5-base
> fonts   : using map file: 8r-base
> fonts   : using map file: original-ams-base
> fonts   : using map file: original-ams-euler
> fonts   : using map file: original-public-lm
> (/opt/context/tex/texmf-local/tex/context/base/sort-def.tex
> (/opt/context/tex/texmf-local/tex/context/base/sort-def.mkii))
> (/opt/context/tex/texmf-local/tex/context/base/sort-lan.tex
> loading : Context Sorting Macros (languages)
> (/opt/context/tex/texmf-local/tex/context/base/sort-lan.mkii)) [1.1]
> systems : end file hello at line 3
>  )
> (see the transcript file for additional information)
> Output written on hello.pdf (1 page).
> Transcript written on hello.log.
> TeXUtil | parsing file hello.tui
> TeXUtil | shortcuts : 169
> TeXUtil | expansions: 308
> TeXUtil | reductions: 0
> TeXUtil | divisions : 0
> TeXUtil | loaded files: 1
> TeXUtil | temporary files: 0
> TeXUtil | commands: 21
> TeXUtil | programs: 0
> TeXUtil | tuo file saved
> TeXExec | TeX run 2
> TeXExec | writing option file hello.top
> TeXExec | using randomseed 598
> TeXExec | tex engine: xetex
> TeXExec | tex format: cont-en
> This is XeTeX, Version 3.1415926-2.2-0.998.1 (Web2C 7.5.6)
>  \write18 enabled.
> entering extended mode
> (./hello.tex
>
> ConTeXt  ver: 2008.05.31 12:20 MKII  fmt: 2008.6.3  int: english/english
>
> language: language en is active
> system  : cont-new loaded
> (/opt/context/tex/texmf-local/tex/context/base/cont-new.tex
> systems : beware: some patches loaded from cont-new.tex
> (/opt/context/tex/texmf-local/tex/context/base/cont-new.mkii)
> (/opt/context/tex/texmf-local/tex/context/base/cont-mtx.tex))
> system  : cont-old loaded
> (/opt/context/tex/texmf-local/tex/context/base

[NTG-context] the error of xetex

2008-06-02 Thread Yanli Li
TeXExec | processing document 'hello'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello.top
TeXExec | using randomseed 598
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeX, Version 3.1415926-2.2-0.998.1 (Web2C 7.5.6)
 \write18 enabled.
entering extended mode
(./hello.tex

ConTeXt  ver: 2008.05.31 12:20 MKII  fmt: 2008.6.3  int: english/english

language: language en is active
system  : cont-new loaded
(/opt/context/tex/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/opt/context/tex/texmf-local/tex/context/base/cont-new.mkii)
(/opt/context/tex/texmf-local/tex/context/base/cont-mtx.tex))
system  : cont-old loaded
(/opt/context/tex/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/opt/context/tex/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(/opt/context/tex/texmf-context/tex/context/user/cont-sys.tex
(/opt/context/tex/texmf-local/tex/context/base/type-tmf.tex)
(/opt/context/tex/texmf-local/tex/context/base/type-siz.tex)
(/opt/context/tex/texmf-local/tex/context/base/type-otf.tex)
(/opt/context/tex/texmf-local/tex/context/base/type-xtx.tex))
bodyfont: 12pt rm is loaded
language: patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 
de->ec:ec->3->2:
3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 
pl->ec:ec->7->2:3 cz->e
c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 
en->ec:ec-
 >13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 
da->ec:ec->1
7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 
deo->ec:ec->21-
 >2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 
ro->ec:ec->28->2:
3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded
specials: tex,postscript,rokicki loaded
system  : hello.top loaded
(./hello.top
specials: loading definition file dpx
(/opt/context/tex/texmf-local/tex/context/base/spec-dpx.tex
specials: loading definition file fdf
(/opt/context/tex/texmf-local/tex/context/base/spec-fdf.tex
(/opt/context/tex/texmf-local/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,dpx loaded
specials: loading definition file xet
(/opt/context/tex/texmf-local/tex/context/base/spec-xet.tex)
specials: fdf,dpx loaded
)
systems : begin file hello at line 1
fonts   : resetting map file list
fonts   : using map file: original-base
fonts   : using map file: lm-math
fonts   : using map file: lm-rm
fonts   : using map file: texnansi-base
fonts   : using map file: ec-base
fonts   : using map file: qx-base
fonts   : using map file: t5-base
fonts   : using map file: 8r-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
(/opt/context/tex/texmf-local/tex/context/base/sort-def.tex
(/opt/context/tex/texmf-local/tex/context/base/sort-def.mkii))
(/opt/context/tex/texmf-local/tex/context/base/sort-lan.tex
loading : Context Sorting Macros (languages)
(/opt/context/tex/texmf-local/tex/context/base/sort-lan.mkii)) [1.1]
systems : end file hello at line 3
 )
(see the transcript file for additional information)
Output written on hello.pdf (1 page).
Transcript written on hello.log.
TeXUtil | parsing file hello.tui
TeXUtil | shortcuts : 169
TeXUtil | expansions: 308
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 21
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | TeX run 2
TeXExec | writing option file hello.top
TeXExec | using randomseed 598
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeX, Version 3.1415926-2.2-0.998.1 (Web2C 7.5.6)
 \write18 enabled.
entering extended mode
(./hello.tex

ConTeXt  ver: 2008.05.31 12:20 MKII  fmt: 2008.6.3  int: english/english

language: language en is active
system  : cont-new loaded
(/opt/context/tex/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/opt/context/tex/texmf-local/tex/context/base/cont-new.mkii)
(/opt/context/tex/texmf-local/tex/context/base/cont-mtx.tex))
system  : cont-old loaded
(/opt/context/tex/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/opt/context/tex/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(/opt/context/tex/texmf-context/tex/context/user/cont-sys.tex
(/opt/context/tex/texmf-local/tex/context/base/type-tmf.tex)
(/opt/context/tex/texmf-local/tex/context/bas

Re: [NTG-context] typesetting Arabic today

2008-06-02 Thread Idris Samawi Hamid
On Mon, 02 Jun 2008 12:43:04 -0600, Idris Samawi Hamid  
<[EMAIL PROTECTED]> wrote:

>> Omega is dead or nearly dead

It's dead, only the funeral and burial remain to be done ;-)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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] typesetting Arabic today

2008-06-02 Thread Idris Samawi Hamid

Hi,

Somehow, the original post from Burak never made it to my mailbox,  
strange...


Anyway:

On Mon, 02 Jun 2008 00:29:32 -0600, Wolfgang Schuster  
<[EMAIL PROTECTED]> wrote:



On Sun, Jun 1, 2008 at 6:31 PM, Burak Emir <[EMAIL PROTECTED]> wrote:

Hi,

First of all, I'd wish to express my thanks to the makers of and
contributors to ConTeXt - it is quite a pleasure to use so far.

Now for my concern: I want to typeset Arabic.

What would I use?


luaTeX and mkiv. XeTeX is there but stick with luaTeX if possible.

I am aware of ArabTex, I haven't yet tried Omega... however, I followed  
some

presentations for LuaTeX and typesetting Arabic was mentioned there as
motivation. This is how I got to ConTeXt in the first place.


Omega is dead or nearly dead and part of the code is integrated in  
LuaTeX.


Trying the documentation, I ended up on the following page which says  
"TODO"

http://wiki.contextgarden.net/Arabic_and_Hebrew


http://wiki.contextgarden.net/Aleph_Guide

was once the main guide. Aleph was a merge of etex and Omega, succeeded by  
luatex. You can still use the old Omega way of doing things in luatex --  
as explained in that guide, but it's better to use the new mechanism and  
opentype fonts.




I also searched mail archives, but the mails I found on this subject  
were

from 2003, so I thought it is worth probing for an update.


I should write one; will put this on the todo list...


Any news or hints appreciated.


The MkIV manual [1] has a section about arabic, you try the following  
code

with LuaTeX or XeTeX (should work).


XeTeX is there but stick with luaTeX if possible.


\definefontfeature
  [arab-default]
  [mode=node,language=dflt,script=arab,
   init=yes,medi=yes,fina=yes,isol=yes,
   liga=yes,dlig=yes,rlig=yes,clig=yes,
   mark=yes,mkmk=yes,kern=yes,curs=yes]

\definefont[ArabFont][arabtype*arab-default at 18pt]

\starttext

Normal text.

{\ArabFont Your arabic text.}

\stoptext


This example misses the direction parameters. Try the attached file. If  
you are on XP then the Traditional Arabic font is already on your system.


You will notice that vowels do not work well with Traditional Arabic.  
Uncomment the line


%\font \TradArabic= arabtype*testat 28pt

and see the difference (arabtype comes with vista but you can google and  
download it). The problem is that Uniscribe has text-processing info that  
is not in Traditional Arabic font, and that font was designed for Windows  
systems only. Eventually we will be able to oveload OpenType features to  
correct this kind of (mis)behavior.


Note also that you may only use utf-8, not Windows-1256 etc!

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

traditional_arabic-test.tex
Description: TeX document
___
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] Correction for \getbuffer

2008-06-02 Thread Hans Hagen
Wolfgang Schuster wrote:
> Hi Hans,
> 
> The definition for \getBUFFER need to be changed because it use the undefined
> command \dodoprocessTEXbuffer.
> 
> \def\dodefinebuffer[#1][#2]%
>   {\iffirstargument % else problems
>  \doglobal\increment\nofdefinedbuffers
>  \letvalue{\??bu#1\c!number   }\nofdefinedbuffers
>  \letvalue{\??bu#1\c!paragraph}\v!no
>  \setevalue{\e!start#1}{\noexpand\dostartbuffer
> [#1][def-\nofdefinedbuffers][\e!start#1][\e!stop#1]}%
>  %\setevalue{\e!get
> #1}{\noexpand\dodoprocessTEXbuffer[#1][def-\nofdefinedbuffers]}%
>  \setevalue{\e!get  #1}{\noexpand\dogetbuffer
> [#1][def-\nofdefinedbuffers]}%
>  \setevalue{\e!type #1}{\noexpand\dotypebuffer
> [#1][def-\nofdefinedbuffers]}%
>  \getparameters[\??bu#1][#2]%
>\fi}

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] Correction for \getbuffer

2008-06-02 Thread Wolfgang Schuster
Hi Hans,

The definition for \getBUFFER need to be changed because it use the undefined
command \dodoprocessTEXbuffer.

\def\dodefinebuffer[#1][#2]%
  {\iffirstargument % else problems
 \doglobal\increment\nofdefinedbuffers
 \letvalue{\??bu#1\c!number   }\nofdefinedbuffers
 \letvalue{\??bu#1\c!paragraph}\v!no
 \setevalue{\e!start#1}{\noexpand\dostartbuffer
[#1][def-\nofdefinedbuffers][\e!start#1][\e!stop#1]}%
 %\setevalue{\e!get
#1}{\noexpand\dodoprocessTEXbuffer[#1][def-\nofdefinedbuffers]}%
 \setevalue{\e!get  #1}{\noexpand\dogetbuffer
[#1][def-\nofdefinedbuffers]}%
 \setevalue{\e!type #1}{\noexpand\dotypebuffer
[#1][def-\nofdefinedbuffers]}%
 \getparameters[\??bu#1][#2]%
   \fi}

Greetings
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] Specifying last page when using imposition

2008-06-02 Thread Wolfgang Schuster
On Mon, Jun 2, 2008 at 11:33 AM, John Devereux
<[EMAIL PROTECTED]> wrote:
> "Wolfgang Schuster" <[EMAIL PROTECTED]> writes:
>
>> Hi John,
>>
 Wolfgang, thanks - but this does not seem to fix the problem. The
 "last page" appears opposite page 3 instead of opposite page 1.

 To be clear, I am looking for a way to specify that content is to be
 placed on the outside of the cover, i.e. printed on the same side of
 the same sheet as page 1, when "arranged".
>>
>> Could you try the following page brake method.
>>
>> \unprotect
>>
>> \installpagebreakhandler {newquadruple}%
>>   {\ifdoublesided
>>  \!!counta\realpageno
>>  \!!countb\realpageno
>>  \advance\!!counta 4
>>  \divide\!!counta 4
>>  \multiply\!!counta 4
>>  \advance\!!countb 1
>>  \advance\!!counta-\!!countb
>>  \executepagebreakhandler\v!yes
>>  \dorecurse\!!counta{\executepagebreakhandler\v!empty}%
>>\fi}
>>
>> \protect
>>
 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated,doublesided]
 \setuppagenumbering[alternative=doublesided]

 \setuplayout[margin=0pt,width=fit]
 \setupbodyfont[16pt]

 \starttext

 \dorecurse{11}{\input tufte \par \input knuth \par}

 \page[8]
>>>
>>> \page[8] is useless in this example because you're already beyound
>>> the eight page and the argument is useless in this case.
>>>
>>> \page[quadruple]
>>
>> \page[newquadruple]
>
> Well, this worked, thank you!
>
> I can safely say I would not have found that on my own...
>
> Could I trouble you for a version to take me to the page *before*,
> i.e. the inside back cover? I now realise I may need to put content
> there too, and if not I can just do another \page to get to the
> outside back cover.

\unprotect

\installpagebreakhandler {beforequadruple}%
 {\ifdoublesided
\!!counta\realpageno
\!!countb\realpageno
\advance\!!counta 5
\divide\!!counta 4
\multiply\!!counta 4
\advance\!!countb 2
\advance\!!counta-\!!countb
\executepagebreakhandler\v!yes
\dorecurse\!!counta{\executepagebreakhandler\v!empty}%
  \fi}

\protect

\setuppagenumbering[alternative=doublesided]
\starttext
\showframe
\subject Front Cover

\dorecurse{10}{\input tufte \par}
%\dorecurse{8}{\input tufte \par}

\page[beforequadruple]

Imprint

\page

Back Cover

\stoptext

texexec --arrange --paperformat=a5a4 --printformat=up test2.tex
>>>
>>> texexec test2
>>>
>>> you need --arrange only for documents with a table of content, indices ...
>
> OK, but my real document *will* have these - this was just a minimal
> example. Originally I wanted to put the arrangment commands outside
> the document, but I then put them inside too in case it helped.

You could use modes for a imposed and a normal document.

\startmode[fold]
\setuppapersize[A5][A4]
\setuparranging[2UP,rotated,doublesided]
\stopmode

\startnotmode[fold]
\setuppapersize[A5][A5]
\stopnotmode

and process it with

texexec --arrange --mode=fold mydocument

and

texexec mydocument

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] Specifying last page when using imposition

2008-06-02 Thread John Devereux
"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

> Hi John,
>
>>> Wolfgang, thanks - but this does not seem to fix the problem. The
>>> "last page" appears opposite page 3 instead of opposite page 1.
>>>
>>> To be clear, I am looking for a way to specify that content is to be
>>> placed on the outside of the cover, i.e. printed on the same side of
>>> the same sheet as page 1, when "arranged".
>
> Could you try the following page brake method.
>
> \unprotect
>
> \installpagebreakhandler {newquadruple}%
>   {\ifdoublesided
>  \!!counta\realpageno
>  \!!countb\realpageno
>  \advance\!!counta 4
>  \divide\!!counta 4
>  \multiply\!!counta 4
>  \advance\!!countb 1
>  \advance\!!counta-\!!countb
>  \executepagebreakhandler\v!yes
>  \dorecurse\!!counta{\executepagebreakhandler\v!empty}%
>\fi}
>
> \protect
>
>>> \setuppapersize[A5][A4]
>>> \setuparranging[2UP,rotated,doublesided]
>>> \setuppagenumbering[alternative=doublesided]
>>>
>>> \setuplayout[margin=0pt,width=fit]
>>> \setupbodyfont[16pt]
>>>
>>> \starttext
>>>
>>> \dorecurse{11}{\input tufte \par \input knuth \par}
>>>
>>> \page[8]
>>
>> \page[8] is useless in this example because you're already beyound
>> the eight page and the argument is useless in this case.
>>
>> \page[quadruple]
>
> \page[newquadruple]

Well, this worked, thank you!

I can safely say I would not have found that on my own...

Could I trouble you for a version to take me to the page *before*,
i.e. the inside back cover? I now realise I may need to put content
there too, and if not I can just do another \page to get to the
outside back cover.

>
>>> Back Cover
>>>
>>> \stoptext
>>>
>>>texexec --arrange --paperformat=a5a4 --printformat=up test2.tex
>>
>> texexec test2
>>
>> you need --arrange only for documents with a table of content, indices ...

OK, but my real document *will* have these - this was just a minimal
example. Originally I wanted to put the arrangment commands outside
the document, but I then put them inside too in case it helped.

-- 

John Devereux
___
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] Specifying last page when using imposition

2008-06-02 Thread Wolfgang Schuster
Hi John,

>> Wolfgang, thanks - but this does not seem to fix the problem. The
>> "last page" appears opposite page 3 instead of opposite page 1.
>>
>> To be clear, I am looking for a way to specify that content is to be
>> placed on the outside of the cover, i.e. printed on the same side of
>> the same sheet as page 1, when "arranged".

Could you try the following page brake method.

\unprotect

\installpagebreakhandler {newquadruple}%
  {\ifdoublesided
 \!!counta\realpageno
 \!!countb\realpageno
 \advance\!!counta 4
 \divide\!!counta 4
 \multiply\!!counta 4
 \advance\!!countb 1
 \advance\!!counta-\!!countb
 \executepagebreakhandler\v!yes
 \dorecurse\!!counta{\executepagebreakhandler\v!empty}%
   \fi}

\protect

>> \setuppapersize[A5][A4]
>> \setuparranging[2UP,rotated,doublesided]
>> \setuppagenumbering[alternative=doublesided]
>>
>> \setuplayout[margin=0pt,width=fit]
>> \setupbodyfont[16pt]
>>
>> \starttext
>>
>> \dorecurse{11}{\input tufte \par \input knuth \par}
>>
>> \page[8]
>
> \page[8] is useless in this example because you're already beyound
> the eight page and the argument is useless in this case.
>
> \page[quadruple]

\page[newquadruple]

>> Back Cover
>>
>> \stoptext
>>
>>texexec --arrange --paperformat=a5a4 --printformat=up test2.tex
>
> texexec test2
>
> you need --arrange only for documents with a table of content, indices ...

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] Specifying last page when using imposition

2008-06-02 Thread Wolfgang Schuster
On Mon, Jun 2, 2008 at 10:11 AM, John Devereux
<[EMAIL PROTECTED]> wrote:
> "Wolfgang Schuster" <[EMAIL PROTECTED]> writes:
>
>> On Sun, Jun 1, 2008 at 8:25 PM, John Devereux
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>
>>> I am using imposition to arrange pages in a "booklet" format, a5 on
>>> a4. So after all the pages are printed out (doublesided) I can fold
>>> the stack in half to get my booklet.
>>>
>>> So I am using the command
>>>
>>>texexec --arrange --paperformat=a5a4 --printformat=up test.tex
>>>
>>> ...which works well.
>>>
>>>
>>> Now I want to write content to appear on the last page. Here is my
>>> test file:
>>>
>>>
>>>
>>> \setuppagenumbering[alternative=doublesided]
>>> \starttext
>>> \showframe
>>> \subject Front Cover
>>>
>>> \dorecurse{10}{\input tufte \par}
>>>
>>> \page[yes,last]
>>
>> \page[quadruple,quadruple]
>>
>> or
>>
>> \page[8]
>
> Wolfgang, thanks - but this does not seem to fix the problem. The
> "last page" appears opposite page 3 instead of opposite page 1.
>
> To be clear, I am looking for a way to specify that content is to be
> placed on the outside of the cover, i.e. printed on the same side of
> the same sheet as page 1, when "arranged".
>
>
> \setuppapersize[A5][A4]
> \setuparranging[2UP,rotated,doublesided]
> \setuppagenumbering[alternative=doublesided]
>
> \setuplayout[margin=0pt,width=fit]
> \setupbodyfont[16pt]
>
> \starttext
>
> \dorecurse{11}{\input tufte \par \input knuth \par}
>
> \page[8]

\page[8] is useless in this example because you're already beyound
the eight page and the argument is useless in this case.

\page[quadruple]

> Back Cover
>
> \stoptext
>
>texexec --arrange --paperformat=a5a4 --printformat=up test2.tex

texexec test2

you need --arrange only for documents with a table of content, indices ...

Greetings
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] Buffers and commands with optional arguments

2008-06-02 Thread Wolfgang Schuster
On Mon, Jun 2, 2008 at 10:05 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Wolfgang Schuster wrote:
>
>> I will now include a modified version from the \flushbufferline macro
>> with my package in will look for the first person with a problem.
>
> keep in mind that such low level macros are not part of the official
> interface and their name and/or the way of calling them may change

I keep a eye on this but I won't force users a put \relax after \startletter
only because they use MkII.

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] Specifying last page when using imposition

2008-06-02 Thread John Devereux
"Wolfgang Schuster" <[EMAIL PROTECTED]> writes:

> On Sun, Jun 1, 2008 at 8:25 PM, John Devereux
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I am using imposition to arrange pages in a "booklet" format, a5 on
>> a4. So after all the pages are printed out (doublesided) I can fold
>> the stack in half to get my booklet.
>>
>> So I am using the command
>>
>>texexec --arrange --paperformat=a5a4 --printformat=up test.tex
>>
>> ...which works well.
>>
>>
>> Now I want to write content to appear on the last page. Here is my
>> test file:
>>
>>
>>
>> \setuppagenumbering[alternative=doublesided]
>> \starttext
>> \showframe
>> \subject Front Cover
>>
>> \dorecurse{10}{\input tufte \par}
>>
>> \page[yes,last]
>
> \page[quadruple,quadruple]
>
> or
>
> \page[8]

Wolfgang, thanks - but this does not seem to fix the problem. The
"last page" appears opposite page 3 instead of opposite page 1.

To be clear, I am looking for a way to specify that content is to be
placed on the outside of the cover, i.e. printed on the same side of
the same sheet as page 1, when "arranged".


\setuppapersize[A5][A4]
\setuparranging[2UP,rotated,doublesided]
\setuppagenumbering[alternative=doublesided]

\setuplayout[margin=0pt,width=fit]
\setupbodyfont[16pt]

\starttext

\dorecurse{11}{\input tufte \par \input knuth \par}

\page[8]

Back Cover

\stoptext


...

texexec --arrange --paperformat=a5a4 --printformat=up test2.tex



-- 

John Devereux
___
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] Buffers and commands with optional arguments

2008-06-02 Thread Hans Hagen
Wolfgang Schuster wrote:

> I will now include a modified version from the \flushbufferline macro
> with my package in will look for the first person with a problem.

keep in mind that such low level macros are not part of the official 
interface and their name and/or the way of calling them may change

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
___