[NTG-context] placecontent after section command

2012-06-05 Thread Jan Pohanka

Hello,

This example works as expected
\starttext
\subject{Contents}
\placecontent
\section{One}
\section{Two}
\stoptext

but when I replace \subject with \section like this

\starttext
\section{Contents}
\placecontent
\section{One}
\section{Two}
\stoptext

the contents are not printed out...
This behavior is same in MKII and MKIV.

regards
Jan

--
Tato zpráva byla vytvořena převratnou poštovní aplikací Opery:  
http://www.opera.com/mail/

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] beta

2012-06-05 Thread Hans Hagen

Hi,

I uploaded a beta that has a (first) update/cleanup of the context 
runner script. The most important changes are


- no longer an option file (jobname.opt)
- no longer stub files (for xml and cld)
- handling of (most of the) ctx files happens elsewhere (job control)

In principle all this should go unnoticed, although one might notice the 
difference in the call to luatex.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placecontent after section command

2012-06-05 Thread Hans Hagen

On 5-6-2012 08:52, Jan Pohanka wrote:

Hello,

This example works as expected
\starttext
\subject{Contents}
\placecontent
\section{One}
\section{Two}
\stoptext


here you get a list if all at the previous level (being the document)


but when I replace \subject with \section like this

\starttext
\section{Contents}
\placecontent
\section{One}
\section{Two}
\stoptext

the contents are not printed out...


here you get a list if the entries below \section{Content} and there are 
one; lists by default are local


add [criterium=text] to get a complete document based list


This behavior is same in MKII and MKIV.


lucky me

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placecontent after section command

2012-06-05 Thread Jan Pohanka


here you get a list if the entries below \section{Content} and there are  
one; lists by default are local


add [criterium=text] to get a complete document based list


thank you for clarification

best regards
Jan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] conditional format of headings

2012-06-05 Thread Jan Pohanka

Hello,

is it possible to have some conditional format? I mean I'd like to have  
different vertical spacing for \section and \subsection when they follows  
immediately each other and when there is some text between them.


best regards
Jan

--
Tato zpráva byla vytvořena převratnou poštovní aplikací Opery:  
http://www.opera.com/mail/

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] beta

2012-06-05 Thread Otared Kavian
Hi Hans,

Thanks for the new beta.
I made some testings and did not notice any problem or new bug.
I wanted just to remind you of an issue with interaction in references to 
footnotes: when a footnote is in the title of a chapter (or section) then, in 
mkiv, the link does not work as expected. In mkii everything is fine.

Below is a minimal example showing the issue with 
ConTeXt  ver: 2012.06.05 09:16 MKIV  fmt: 2012.6.5  int: english/english

Best regards: OK
PS: the minimal example is here:
%%% begin bug-link-footnote.tex
\setupinteraction[state=start]
\setupcolors[state=start]

\starttext

\chapter{Testing a chapter\footnote[note:test]{Actually for testing footnotes 
in a chapter header\dots}}

\input knuth.tex

\page

\input ward.tex

The link to \in{footnote}[note:test] does not work in mkiv, while it does in 
mkii.

\stoptext
%%% end bug-link-footnote.tex

On 5 juin 2012, at 09:30, Hans Hagen wrote:

 Hi,
 
 I uploaded a beta that has a (first) update/cleanup of the context runner 
 script. The most important changes are
 
 - no longer an option file (jobname.opt)
 - no longer stub files (for xml and cld)
 - handling of (most of the) ctx files happens elsewhere (job control)
 
 In principle all this should go unnoticed, although one might notice the 
 difference in the call to luatex.
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] multi-page floats

2012-06-05 Thread Henning Hraban Ramm
Sorry for coming back again and again, but I’m still stuck, and my  
deadline is overdue.


* I need full-page pictures on defined pages in the middle of a chapter.

* I don’t care if I must define on page x or on the next right page  
after the current paragraph.


- The only way for full-page pictures (i.e. bleeding over the page)  
that I know of is layers.
- The only way to interrupt a story with full-page content that I know  
of is postponing.
(makeups were a dead end so far - maybe they can help to get to a  
right page withput using \page[right])


While each works for itself, I can’t get layers working within  
postponing.


And when that works, I need to wrap it in a macro, since I alway need  
to define and postpone three sequential pages.



Without postponing, this works:

--- *** ---
\setuppagenumbering[alternative=doublesided]
\definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height= 
\dimexpr(\paperheight+6mm)]

%\definemakeup[rightpage][page=right]

\def\DoublePic#1{
%\startmakeup[rightpage] % error!
\page[right]
\resetlayer[bg]
\setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
\setupbackgrounds[page][background=bg]
\strut

%\stopmakeup

	% empty back of the first picture, since it’s printed on transparent  
paper

%\startmakeup[rightpage] % error!
\page[right]

\resetlayer[bg]
	\setlayer[bg]{\externalfigure[#1-hg][height=\dimexpr(\paperheight 
+6mm)]}

\setupbackgrounds[page][background=bg]
\strut

%\stopmakeup
\page
}

\starttext

\input tufte

\DoublePic{koe}

\input knuth

\stoptext

--- *** ---

This doesn’t:

--- *** ---
\setuppagenumbering[alternative=doublesided]
\definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height= 
\dimexpr(\paperheight+6mm)]


\def\DoublePicAt#1#2{
\startpostponing[#2]
\page[right] % tried also makeups...

\resetlayer[bg]
\setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
\setupbackgrounds[page][background=bg]
\strut

\page[right]
\setuppagenumber[state=start]

\resetlayer[bg]
	\setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight 
+6mm)]}

\setupbackgrounds[page][background=bg]
\strut
\page
\stoppostponing
}

\starttext

\DoublePicAt{hacker}{5}

\dorecurse{30}{
\section{Knuth \recurselevel}
\input knuth
}

\stoptext

--- *** ---

Can you show me a way to use layers within postponing, please?



Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
On Tue, Jun 5, 2012 at 2:00 PM, Henning Hraban Ramm hra...@fiee.net wrote:
 Sorry for coming back again and again, but I’m still stuck, and my deadline
 is overdue.

 * I need full-page pictures on defined pages in the middle of a chapter.

 * I don’t care if I must define on page x or on the next right page after
 the current paragraph.

 - The only way for full-page pictures (i.e. bleeding over the page) that I
 know of is layers.
 - The only way to interrupt a story with full-page content that I know of is
 postponing.
 (makeups were a dead end so far - maybe they can help to get to a right page
 withput using \page[right])

 While each works for itself, I can’t get layers working within postponing.

 And when that works, I need to wrap it in a macro, since I alway need to
 define and postpone three sequential pages.


 Without postponing, this works:

 --- *** ---
 \setuppagenumbering[alternative=doublesided]
 \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)]
 %\definemakeup[rightpage][page=right]

 \def\DoublePic#1{
        %\startmakeup[rightpage] % error!
        \page[right]

        \resetlayer[bg]
        \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
        \setupbackgrounds[page][background=bg]
        \strut

        %\stopmakeup

        % empty back of the first picture, since it’s printed on transparent
 paper
        %\startmakeup[rightpage] % error!
        \page[right]


        \resetlayer[bg]

  \setlayer[bg]{\externalfigure[#1-hg][height=\dimexpr(\paperheight+6mm)]}
        \setupbackgrounds[page][background=bg]
        \strut

        %\stopmakeup
        \page
 }

 \starttext

 \input tufte

 \DoublePic{koe}


 \input knuth

 \stoptext

 --- *** ---

 This doesn’t:

 --- *** ---
 \setuppagenumbering[alternative=doublesided]
 \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)]

 \def\DoublePicAt#1#2{
        \startpostponing[#2]
        \page[right] % tried also makeups...


        \resetlayer[bg]
        \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
        \setupbackgrounds[page][background=bg]
        \strut

        \page[right]
        \setuppagenumber[state=start]

        \resetlayer[bg]

  \setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]}

        \setupbackgrounds[page][background=bg]
        \strut
        \page
        \stoppostponing
 }

 \starttext

 \DoublePicAt{hacker}{5}


 \dorecurse{30}{
        \section{Knuth \recurselevel}
        \input knuth
 }

 \stoptext

 --- *** ---

 Can you show me a way to use layers within postponing, please?
A first step --- still quite similar to your macro. Hope it helps just for now.

\setuppagenumbering[alternative=doublesided]
\definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)]

\def\DoublePicAt#1#2{
   %\startpostponing[#2]
   \page[right] % tried also makeups...
   \resetlayer[bg]
   \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
   \setupbackgrounds[page][background=bg]
   \strut

   \page[right]
   \setuppagenumber[state=start]

   \resetlayer[bg]
   
\setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]}

   \setupbackgrounds[page][background=bg]
   \strut
   \page
   %\stoppostponing
}

\starttext
\startpostponing[5]
\DoublePicAt{hacker}{5}
\stoppostponing

\dorecurse{30}{
   \section{Knuth \recurselevel}
   \input knuth
}

\stoptext

-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
Another one



\setuppagenumbering[alternative=doublesided]
\definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)]

\unexpanded\def\DoDoublePicAt#1{
   \page[right] % tried also makeups...
   \resetlayer[bg]
   \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
   \setupbackgrounds[page][background=bg]
   \strut

   \page[right]
   \setuppagenumber[state=start]

   \resetlayer[bg]
   
\setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]}

   \setupbackgrounds[page][background=bg]
   \strut
   \page
}

\def\DoublePicAt#1#2{
\startpostponing[#2]
\DoDoublePicAt{#1}
\stoppostponing
}



\starttext
\DoublePicAt{hacker}{5}

\dorecurse{30}{
   \section{Knuth \recurselevel}
   \input knuth
}

\stoptext

-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello ConTeXters,

is there a way how to get laundry symbols into ConTeXt?

- The image is copied from The Comprehensive LATEX Symbol List, Scott Pakin.

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038attachment: LaunSyms3.png___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Marco
On 2012-06-05 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 is there a way how to get laundry symbols into ConTeXt?

The proper way would be to use ConTeXts symbol mechanism. I guess
the symbols can then be accessed my name. However, I didn't find the
laundry symbol names in any MkIV file in the distribution. It seems
that nobody maintained an up-to-date list.

You can always access the characters directly:

\getglyph{marvosym}{\char 247}

To find out which symbols are at which slot, use

\showfont [marvosym]


Marco


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Wolfgang Schuster

Am 05.06.2012 um 16:26 schrieb Marco:

 On 2012-06-05 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:
 
 is there a way how to get laundry symbols into ConTeXt?
 
 The proper way would be to use ConTeXts symbol mechanism. I guess
 the symbols can then be accessed my name. However, I didn't find the
 laundry symbol names in any MkIV file in the distribution. It seems
 that nobody maintained an up-to-date list.
 
 You can always access the characters directly:
 
 \getglyph{marvosym}{\char 247}
 
 To find out which symbols are at which slot, use
 
 \showfont [marvosym]

It’s easier to create a list with all symbols and their names.

\usesymbols[mvs]

\starttext
\showsymbolset[martinvogel 2]
\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks both for your answers.

My code so far is:


\usesymbols[mvs]

\starttext
  \startcolumns[n=2,rule=on]
\showsymbolset[martinvogel 2]
  \stopcolumns

  \page
  \startcolumns[n=4,rule=on]
\dorecurse{1024}{\recurselevel 
--\getglyph{marvosym}{\char\recurselevel\par}}
  \stopcolumns
\stoptext


And how to access symbols by their names, e.g. how to use symbol named 
AtForty?

- The symbol list shows only symbolic names, not values (to be used with Marco's 
\char value).

\AtForty gives error, so is it to be used with \usesymbol or \symbol or 
something like that?

Lukas


On Tue, 05 Jun 2012 16:32:49 +0200, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



\getglyph{marvosym}{\char 247}

To find out which symbols are at which slot, use

\showfont [marvosym]


It’s easier to create a list with all symbols and their names.

\usesymbols[mvs]

\starttext
\showsymbolset[martinvogel 2]
\stoptext



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

Laundry.mkiv
Description: Binary data
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Wolfgang Schuster

Am 05.06.2012 um 16:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 ... Thanks both for your answers.
 
 My code so far is:
 
 
 \usesymbols[mvs]
 
 \starttext
  \startcolumns[n=2,rule=on]
\showsymbolset[martinvogel 2]
  \stopcolumns
 
  \page
  \startcolumns[n=4,rule=on]
\dorecurse{1024}{\recurselevel 
 --\getglyph{marvosym}{\char\recurselevel\par}}
  \stopcolumns
 \stoptext
 
 
 And how to access symbols by their names, e.g. how to use symbol named 
 AtForty?
 
 - The symbol list shows only symbolic names, not values (to be used with 
 Marco's \char value).
 
 \AtForty gives error, so is it to be used with \usesymbol or \symbol or 
 something like that?

\usesymbols[mvs]

\starttext
\symbol[martinvogel 2][ShortForty]
\stoptext

or

\usesymbols[mvs]

\setupsymbolset[martinvogel 2]

\starttext
\symbol[ShortForty]
\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Thank you, Wolfgang.

Two more questions, hope there'll be no more about this stuff.

On Tue, 05 Jun 2012 17:01:28 +0200, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


\usesymbols[mvs]

\starttext
\symbol[martinvogel 2][ShortForty]
\stoptext

or

\usesymbols[mvs]

\setupsymbolset[martinvogel 2]

\starttext
\symbol[ShortForty]
\stoptext

Wolfgang


- How to scale the desired symbol, e.g. 5 times? I played with scale somehow, 
but no effect.

- Where the symbol set name martinvogel 2 comes from? Is it a name built in 
the font file?

- - Is 2 part of the name or does it mean something, e.g. a factor?

Thanks again.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Math other issues for TL 2012

2012-06-05 Thread Hans Hagen

On 4-6-2012 21:05, Khaled Hosny wrote:

On Fri, Jun 01, 2012 at 12:54:11PM +0200, Mojca Miklavec wrote:

Hello,

With TL freeze that is probably going to happen tomorrow (plus a few
days of grace period): what is the current state of problems with math
fonts, and possibly any other issues (apart from the known crash on
mipsel  armel)? Is there anything else that doesn't work in minimals,
but should be high on priority list to fix?


There is the issue with XITS italic correction:

http://www.ntg.nl/pipermail/ntg-context/2012/067237.html


experimental fix for italics ending math

\setupbodyfont[xits]

\starttext
\setupmathematics[italics=1] x \ruledhbox{${\cal P}$} x 
\ruledhbox{${\cal P x}$} x\par % fontitalics
\setupmathematics[italics=2] x \ruledhbox{${\cal P}$} x 
\ruledhbox{${\cal P x}$} x\par % fontdata
\setupmathematics[italics=3] x \ruledhbox{${\cal P}$} x 
\ruledhbox{${\cal P x}$} x\par % quad based
\setupmathematics[italics=4] x \ruledhbox{${\cal P}$} x 
\ruledhbox{${\cal P x}$} x\par % combination of 1 and 3

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] high signs

2012-06-05 Thread Hans Hagen

Hi,

For those who deal with elementary math ... a couple of extra characters 
are provides (only in real math fonts):


\setupbodyfont[xits]

\starttext

$\utfchar{207A} 10$
$\utfchar{207B} 10$
$\utfchar{208A} 10$
$\utfchar{208B} 10$
$\positivesign 10$
$\negativesign 10$

\stoptext

(a prelude to more)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] multi-page floats

2012-06-05 Thread Henning Hraban Ramm

Am 2012-06-05 um 14:33 schrieb luigi scarso:

Can you show me a way to use layers within postponing, please?
A first step --- still quite similar to your macro. Hope it helps  
just for now.


Thank you! Good hint to de-couple postponing and the rest.

\page[right] doesn’t work with this version, but \page\strut\page does.


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] multi-page floats

2012-06-05 Thread Henning Hraban Ramm

Am 2012-06-05 um 14:42 schrieb luigi scarso:


Another one



\setuppagenumbering[alternative=doublesided]
\definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height= 
\dimexpr(\paperheight+6mm)]


\unexpanded\def\DoDoublePicAt#1{
  \page[right] % tried also makeups...
  \resetlayer[bg]
  \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight 
+6mm)]}

  \setupbackgrounds[page][background=bg]
  \strut

  \page[right]
  \setuppagenumber[state=start]

  \resetlayer[bg]
  \setlayer[bg]{\externalfigure[#1-back][height= 
\dimexpr(\paperheight+6mm)]}


  \setupbackgrounds[page][background=bg]
  \strut
  \page
}

\def\DoublePicAt#1#2{
\startpostponing[#2]
\DoDoublePicAt{#1}
\stoppostponing
}



\starttext
\DoublePicAt{hacker}{5}

\dorecurse{30}{
  \section{Knuth \recurselevel}
  \input knuth
}

\stoptext


Thank you again, but, did you test that? I get:

)
Runaway argument?
\dorecur\section{\ETC.r} \stoppostponing
! File ended while scanning use of \buff_gobble.

system   tex  error on line 4 in file /Users/hraban/Library/ 
texmf/tex/texmf-context/tex/context/base/cont-yes.mkiv: File ended  
while scanning use of \buff_gobble ...


 1 %D \module
 2 %D   [   file=cont-yes,
 3 %Dversion=2012.06.01,
 4   %D  title=\CONTEXT\ Miscellaneous Macros,
 5 %D   subtitle=Startup Stub,
 6 %D author=Hans Hagen,
 7 %D   date=\currentdate,
 8 %D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
 9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.
13
14 % At some point I will reconsider the \starttext .. \stoptext

inserted text
\par
l.4 }

}   context.finishjob()

\luat_start_lua_code_indeed ...ua \zerocount {#1}}

l.70 \stopluacode

?


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Laundry symbols (now: altered picture)

2012-06-05 Thread Wolfgang Schuster

Am 05.06.2012 um 17:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Thank you, Wolfgang.
 
 Two more questions, hope there'll be no more about this stuff.
 
 On Tue, 05 Jun 2012 17:01:28 +0200, Wolfgang Schuster 
 schuster.wolfg...@googlemail.com wrote:
 
 \usesymbols[mvs]
 
 \starttext
 \symbol[martinvogel 2][ShortForty]
 \stoptext
 
 or
 
 \usesymbols[mvs]
 
 \setupsymbolset[martinvogel 2]
 
 \starttext
 \symbol[ShortForty]
 \stoptext
 
 Wolfgang
 
 - How to scale the desired symbol, e.g. 5 times? I played with scale 
 somehow, but no effect.

It scales with the current font size.

\usesymbols[mvs]

\setupsymbolset[martinvogel 2]

\starttext
\symbol[ShortForty] {\tfd\symbol[ShortForty]}
\stoptext

 - Where the symbol set name martinvogel 2 comes from? Is it a name built 
 in the font file?

The symbols are defined in symb-imp-mvs.mkiv, with \usesymbols[…] you load the 
file.

 - - Is 2 part of the name or does it mean something, e.g. a factor?

The symbols are just put in named groups and “martinvogel 2” is the name of one 
of these groups (there is also “martinvogel 1”, don’t know how created these 
names).


When you define a symbol you can set the name as

   \definesymbol[name]{symbol}

or out it in a category with

   \definesymbol[category][name]{symbol}


When you have many symbols which you want to put in a category you can say

   \startsymbolset [category]

   \definesymbol[name 1]{symbol 1}
   \definesymbol[name 2]{symbol 2}

   \stopsymbolset

and omit the first argument. To print a symbol from this symbolset you have to 
write

   \symbol[category][name]

but when you add

   \setupsymbolset[category]

to your document ConTeXt will search in this symbol set even when you write only

   \symbol[name]

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
On Tue, Jun 5, 2012 at 6:01 PM, Henning Hraban Ramm hra...@fiee.net wrote:
 Am 2012-06-05 um 14:42 schrieb luigi scarso:


 Another one


 \setuppagenumbering[alternative=doublesided]

 \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)]

 \unexpanded\def\DoDoublePicAt#1{
      \page[right] % tried also makeups...
      \resetlayer[bg]
      \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
      \setupbackgrounds[page][background=bg]
      \strut

      \page[right]
      \setuppagenumber[state=start]

      \resetlayer[bg]

  \setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]}

      \setupbackgrounds[page][background=bg]
      \strut
      \page
 }

 \def\DoublePicAt#1#2{
 \startpostponing[#2]
 \DoDoublePicAt{#1}
 \stoppostponing
 }



 \starttext
 \DoublePicAt{hacker}{5}

 \dorecurse{30}{
      \section{Knuth \recurselevel}
      \input knuth
 }

 \stoptext


 Thank you again, but, did you test that? I get:

 )
 Runaway argument?
 \dorecur\section{\ETC.r} \stoppostponing

 ! File ended while scanning use of \buff_gobble.
Uhm I've tested but maybe I've made a wrong cut and paste.
Re-check now.
-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] multi-page floats

2012-06-05 Thread luigi scarso
On Tue, Jun 5, 2012 at 6:08 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Tue, Jun 5, 2012 at 6:01 PM, Henning Hraban Ramm hra...@fiee.net wrote:
 Am 2012-06-05 um 14:42 schrieb luigi scarso:


 Another one


 \setuppagenumbering[alternative=doublesided]

 \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)]

 \unexpanded\def\DoDoublePicAt#1{
      \page[right] % tried also makeups...
      \resetlayer[bg]
      \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
      \setupbackgrounds[page][background=bg]
      \strut

      \page[right]
      \setuppagenumber[state=start]

      \resetlayer[bg]

  \setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]}

      \setupbackgrounds[page][background=bg]
      \strut
      \page
 }

 \def\DoublePicAt#1#2{
 \startpostponing[#2]
 \DoDoublePicAt{#1}
 \stoppostponing
 }



 \starttext
 \DoublePicAt{hacker}{5}

 \dorecurse{30}{
      \section{Knuth \recurselevel}
      \input knuth
 }

 \stoptext


 Thank you again, but, did you test that? I get:

 )
 Runaway argument?
 \dorecur\section{\ETC.r} \stoppostponing

 ! File ended while scanning use of \buff_gobble.
 Uhm I've tested but maybe I've made a wrong cut and paste.
 Re-check now.
Ah, it 's a side effect of the previous code


-- 
luigi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Error message (cont-yes.mkiv)

2012-06-05 Thread Wolfgang Schuster
Hi,

the new error message in the last beta isn’t very helpful.

Example:

\starttext
\undefined
\stoptext


Terminal output:

! Undefined control sequence.

system   tex  error on line 2 in file 
/Users/wolf/context/beta/tex/texmf-context/tex/context/base/cont-yes.mkiv: 
Undefined control sequence ...

 1 %D \module
 2   %D   [   file=cont-yes,
 3 %Dversion=2012.06.01,
 4 %D  title=\CONTEXT\ Miscellaneous Macros,
 5 %D   subtitle=Startup Stub,
 6 %D author=Hans Hagen,
 7 %D   date=\currentdate,
 8 %D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
 9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.

l.2 \undefined
  
? 


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-style error

2012-06-05 Thread Mojca Miklavec
Dear Hans,

is there any chance to fix this in maps module any time soon?
(Preferrably now, so that I can patch TeX Live as well.)

Thank you,
 Mojca


On Tue, Mar 13, 2012 at 9:00 PM, Meer, H. van der h.vanderm...@uva.nl wrote:
 Using the NTG-style to reprocess an older article I get the following error:

 ConTeXt  ver: 2012.03.10 13:15 MKIV
 ...
 ! Undefined control sequence.
 ...
 system           tex  error on line 358 in file exammaps2.tex: Undefined
 control sequence ...
 \setupfootnotedefinition -\setupnotedefinition
                                                 [\v!footnote ]
 l.358 \setupfootnotedefinition

 The style file is marked:
 %\module [
 %  file=s-map-se,
 %  version=2005.02.03,
 %  title=\CONTEXT\ Style File,
 %  subtitle=\MAPS\ basis stijl,
 %  author={Hans Hagen, Taco Hoekwater and Siep Kroonenberg},
 %  date=\currentdate,
 %  copyright={NTG / MAPS}%
 %]

 Some change in the style file needed?

 Hans van der Meer
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] multi-page floats

2012-06-05 Thread Wolfgang Schuster

Am 05.06.2012 um 14:00 schrieb Henning Hraban Ramm:

 Sorry for coming back again and again, but I’m still stuck, and my deadline 
 is overdue.
 
 * I need full-page pictures on defined pages in the middle of a chapter.
 
 * I don’t care if I must define on page x or on the next right page after 
 the current paragraph.
 
 - The only way for full-page pictures (i.e. bleeding over the page) that I 
 know of is layers.
 - The only way to interrupt a story with full-page content that I know of is 
 postponing.
 (makeups were a dead end so far - maybe they can help to get to a right page 
 withput using \page[right])
 
 While each works for itself, I can’t get layers working within postponing.
 
 And when that works, I need to wrap it in a macro, since I alway need to 
 define and postpone three sequential pages.

\starttext

\dorecurse{3}{\input tufte\par}

\startpostponing
\offset
  [x=-\the\dimexpr\backspace+1cm\relax,
   y=-\the\dimexpr\topspace+\headerheight+\headerdistance+1cm\relax]
  
{\externalfigure[mill][width=\the\dimexpr\paperwidth+2cm\relax,height=\the\dimexpr\paperheight+2cm\relax]}
\page
\stoppostponing

\dorecurse{5}{\input tufte\par}

\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Bistream Charter without any tfm files default font for MAPS style

2012-06-05 Thread Mojca Miklavec
Hello,

Dick just asked me about a problem he experiences with some documents
that he ships with MacTeX. One of them is Hans' article using MAPS
style. It fails to work with both LuaTeX and pdfTeX. The first one
because of that footnote definition and the second one because of
Charter being the default font, something like:

% type-one.mkii
\starttypescriptcollection[charter]
\starttypescript [serif] [charter] [ec,texnansi,8r]
\definefontsynonym [Charter-Roman]
[\typescriptthree-bchr8a] [encoding=\typescriptthree]
\definefontsynonym [Charter-Italic]
[\typescriptthree-bchri8a][encoding=\typescriptthree]
\definefontsynonym [Charter-Bold]
[\typescriptthree-bchb8a] [encoding=\typescriptthree]
\definefontsynonym [Charter-BoldItalic]
[\typescriptthree-bchbi8a][encoding=\typescriptthree]
\definefontsynonym [Charter-Slanted]
[\typescriptthree-bchr8a-slanted-167] [encoding=\typescriptthree]
\definefontsynonym
[Charter-BoldSlanted][\typescriptthree-bchb8a-slanted-167]
[encoding=\typescriptthree]
\definefontsynonym [Charter-Roman-Caps]
[\typescriptthree-bchr8a-capitalized-800] [encoding=\typescriptthree]
\loadmapfile[\typescriptthree-bitstrea-charter.map]
\stoptypescript
\starttypescript [serif] [charter] [name]
\definefontsynonym [Serif][Charter-Roman]
\definefontsynonym [SerifItalic]  [Charter-Italic]
\definefontsynonym [SerifBold][Charter-Bold]
\definefontsynonym [SerifBoldItalic]  [Charter-BoldItalic]
\definefontsynonym [SerifSlanted] [Charter-Slanted]
\definefontsynonym [SerifBoldSlanted] [Charter-BoldSlanted]
\definefontsynonym [SerifCaps][Charter-Roman-Caps]
\stoptypescript
\stoptypescriptcollection

% maps style
\starttypescript [map] [texnansi]
\definetypeface[map][rm][serif][charter][default][encoding=\typescripttwo]
\stoptypescript
\usetypescript[map][texnansi]

\setupbodyfont[map]

\starttext
test
\stoptext

Of course no given distribution provides texnansi-bchb8a and other
tfm files at the moment, so the sample documents that Dick is
providing are broken. I think it is a very bad idea to ship two broken
documents as see, here are two documents to show you what you
can(not) do with ConTeXt. And then it breaks the very first moment
when people try to compile it, give up, and never test ConTeXt again.

On one hand we could replace the sample documents (looking for
suggestions), but I think that those Charter definitions should really
be replaced or fixed. What is the best way to do that? I'm not even
sure where they came from except that Hans probably used texfont.pl
one day to prepare tfm files ...

TeX Live contains

bchb8r CharterBT-Bold  TeXBase1Encoding ReEncodeFont  8r.enc bchb8a.pfb
bchbi8r CharterBT-BoldItalic  TeXBase1Encoding ReEncodeFont  8r.enc
bchbi8a.pfb
bchbo8r CharterBT-Bold  .167 SlantFont TeXBase1Encoding ReEncodeFont
 8r.enc bchb8a.pfb
bchr8r CharterBT-Roman  TeXBase1Encoding ReEncodeFont  8r.enc bchr8a.pfb
bchri8r CharterBT-Italic  TeXBase1Encoding ReEncodeFont  8r.enc bchri8a.pfb
bchro8r CharterBT-Roman  .167 SlantFont TeXBase1Encoding ReEncodeFont
 8r.enc bchr8a.pfb

and on my hard drive I have

/usr/local/texlive/2011/texmf-dist/fonts/afm/bitstrea/charter/bchb8a.afm
/usr/local/texlive/2011/texmf-dist/fonts/afm/mathdesign/mdbch/bchb8a.afm

but the font is not even closely covering EC and there are no texnansi
tfm files in TeX Live.

Taco - is the font actually used in MAPS?

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Error message (cont-yes.mkiv)

2012-06-05 Thread Hans Hagen

On 5-6-2012 18:44, Wolfgang Schuster wrote:

Hi,

the new error message in the last beta isn’t very helpful.


ok in next beta


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] multi-page floats

2012-06-05 Thread Henning Hraban Ramm

Am 2012-06-05 um 18:17 schrieb luigi scarso:


! File ended while scanning use of \buff_gobble.

Uhm I've tested but maybe I've made a wrong cut and paste.
Re-check now.

Ah, it 's a side effect of the previous code



What did you change?
I also overlooked that there is no image, i.e. layer is not visible.

Greetlings,
Hraban
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] multi-page floats

2012-06-05 Thread Henning Hraban Ramm

Am 2012-06-05 um 19:55 schrieb Wolfgang Schuster:

Sorry for coming back again and again, but I’m still stuck, and my  
deadline is overdue.


* I need full-page pictures on defined pages in the middle of a  
chapter.


* I don’t care if I must define on page x or on the next right  
page after the current paragraph.


- The only way for full-page pictures (i.e. bleeding over the page)  
that I know of is layers.
- The only way to interrupt a story with full-page content that I  
know of is postponing.
(makeups were a dead end so far - maybe they can help to get to a  
right page withput using \page[right])


While each works for itself, I can’t get layers working within  
postponing.


And when that works, I need to wrap it in a macro, since I alway  
need to define and postpone three sequential pages.


\starttext

\dorecurse{3}{\input tufte\par}

\startpostponing
\offset
 [x=-\the\dimexpr\backspace+1cm\relax,
  y=-\the\dimexpr\topspace+\headerheight+\headerdistance+1cm\relax]
 {\externalfigure[mill][width=\the\dimexpr\paperwidth+2cm 
\relax,height=\the\dimexpr\paperheight+2cm\relax]}

\page
\stoppostponing

\dorecurse{5}{\input tufte\par}

\stoptext


Great, I didn’t know \offset (or I forgot)!
This way it’s much easier!
Thank you very much!

Of course, the \offset stuff works in a macro, but not postponing. But  
I can live with three lines of code per insertion.


Greetlings,
Hraban
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] back-up.lua; mtx-epub.lua

2012-06-05 Thread Andy Thomas
Hi all,

in my attempts to validate epub export from my context source, I made the 
following changes to back-up.lua and mtx-epub.lua

1) the actual context language is put in the epub
2) changed the OPS directory to OEBPS. The 2.0.1 Standard does not actually say 
that is has to have that name, but I only found examples using that one, 
including the sample documents in the 2.0.1 white paper. 
3) changed opf:scheme to UUID, since that is used and not a ISBN number
4) added the encoding info in the opf file
5) changed the single in double-quotes in the opf file manifest. I do not know 
if it is necessary, but this seams to be more consistent

Andy

diff back-exp_old.lua back-exp.lua 
2370a2371
 language   = languagenames[tex.count.mainlanguagenumber],


diff mtx-epub_old.lua mtx-epub.lua 
46c46
 ?xml version=1.0 encoding=UTF-8 ?
---
 ?xml version=1.0 encoding=UTF-8?
50c50
 rootfile full-path=OPS/%s 
media-type=application/oebps-package+xml/
---
 rootfile full-path=OEBPS/%s 
 media-type=application/oebps-package+xml/
56c56
 ?xml version=1.0?
---
 ?xml version=1.0 encoding=UTF-8?
62,63c62,63
 dc:languageen/dc:language
 dc:identifier id=%s urn:uuid:%s/dc:identifier
---
 dc:language%s/dc:language
 dc:identifier id=%s opf:scheme=UUIDurn:uuid:%s/dc:identifier
79c79
 local item = [[item id='%s' href='%s' media-type='%s'/]]
---
 local item = [[item id=%s href=%s media-type=%s/]]
196a197
 local language   = specification.language   or en
211c212
 lfs.mkdir(file.join(epubpath,OPS))
---
 lfs.mkdir(file.join(epubpath,OEBPS))
220c221
 local target = file.join(epubpath,OPS,filename)
---
 local target = file.join(epubpath,OEBPS,filename)
256c257
 package   = 
format(package,identifier,identifier,os.uuid(),os.date(!%Y-%m-%dT%H:%M:%SZ),concat(used,\n),idmaker(root))
---
 package   = 
 format(package,identifier,language,identifier,os.uuid(),os.date(!%Y-%m-%dT%H:%M:%SZ),concat(used,\n),idmaker(root))
261,262c262,263
 io.savedata(file.join(epubpath,OPS,epubroot),package)
 io.savedata(file.join(epubpath,OPS,epubtoc),toc)
---
 io.savedata(file.join(epubpath,OEBPS,epubroot),package)
 io.savedata(file.join(epubpath,OEBPS,epubtoc),toc)
275c276
 os.execute(format(zipper.compressed,epubfile,OPS))
---
 os.execute(format(zipper.compressed,epubfile,OEBPS))

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] request for two typical ConTeXt documents for newbies for MacTeX

2012-06-05 Thread Mojca Miklavec
Hello,

I have a tiny request. Can someone please suggest/provide a few
typical ConTeXt documents, something that shows what ConTeXt can do,
and/or is easy to understand at the same time.

Dick includes those documents into MacTeX. Last year Hans sent a MAPS
article describing LuaTeX tricks, but given some problems in MAPS
style the document doesn't even typeset, but even after those problems
are fixed, it would be nice to include a simple self-explanatory
document showing off some functionality that is easy to achieve in
ConTeXt (little  understandable code) and more difficult in pdfLaTeX.

Basically anything to impress and keep a curious newbie.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] request for two typical ConTeXt documents for newbies for MacTeX

2012-06-05 Thread Marcin Borkowski
Dnia 2012-06-05, wto o godzinie 21:11 +0200, Mojca Miklavec pisze:
 Hello,
 
 I have a tiny request. Can someone please suggest/provide a few
 typical ConTeXt documents, something that shows what ConTeXt can do,
 and/or is easy to understand at the same time.
 
 (...)
 Basically anything to impress and keep a curious newbie.
 
I'm all for it!!!

 Mojca

-- 
Marcin Borkowski
http://mbork.pl

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] A problem with arranging pages

2012-06-05 Thread Marcin Borkowski
Hi,

I'm preparing a leaflet in ConTeXt.  The leaflet is typeset in a
landscape orientation on an A6 sheet, and it is going to be printed 8
times on an A3 sheet.  My problems are:

1. How to achieve such an effect using \setuparranging?
\setuparranging[2*8] didn't work for me.  (I'm using MkIV; below is a
minimal example showing my problem.)

\setuppapersize[A6,landscape][A3]
\setuparranging[2*8]

\starttext
 
\dorecurse{15}{\input knuth }
\stoptext


2. I'd like to get crop marks, in this case short (5mm) lines showing
where to cut the sheet, located near the borders, but *within* the
printable area.  How to achieve this?

Thanks in advance

-- 
Marcin Borkowski
http://mbork.pl


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marco
On 2012-06-05 Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

 The leaflet is typeset in a
 landscape orientation on an A6 sheet, and it is going to be printed 8
 times on an A3 sheet.

The same leaflet? Then you don't need \setuparranging

\setuppapersize [A6,landscape] [A3]

\setuppagenumbering [location=]
\setupbackgrounds   [page] [background=color, backgroundcolor=gray]
\setupbodyfont  [sans, 58pt]
\setuplayout[nx=2, ny=4, marking=on]

\starttext
\dorecurse{4}
  {\null\vfill\centerline\recurselevel\vfill\null\page}
\stoptext


 2. I'd like to get crop marks, in this case short (5mm) lines showing
 where to cut the sheet, located near the borders, but *within* the
 printable area.

Since eight A6 pages exactly fit on one A3 page the crop marks can
only be *inside* the printable area. That means with marking=on
you'll see three marks in the middle of the page. When you also
want them to show up at the page borders, you have to fire up
MetaPost.


Marco


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marco
On 2012-06-05 Marco net...@lavabit.com wrote:

  2. I'd like to get crop marks, in this case short (5mm) lines showing
  where to cut the sheet, located near the borders, but *within* the
  printable area.
 
 Since eight A6 pages exactly fit on one A3 page the crop marks can
 only be *inside* the printable area. That means with marking=on
 you'll see three marks in the middle of the page. When you also
 want them to show up at the page borders, you have to fire up
 MetaPost.

Or you can draw frames around the pages.

\setuppapersize [A6,landscape] [A3]
\setuppagenumbering [location=]
\setupbodyfont  [sans, 58pt]
\setuplayout[nx=2, ny=4]
\setupbackgrounds   [page] [background=cropmarks, setups=cropmarks]
\definelayer[cropmarks] [state=repeat]

\startsetups cropmarks
  \doifoddpageelse{}{%
\setlayerframed [cropmarks]
  [frame=off,
   bottomframe=on,
   leftframe=on,
   width=\paperwidth,
   height=\paperheight]{}}
\stopsetups

\starttext
\dorecurse{4}
  {\null\vfill\centerline\recurselevel\vfill\null\page}
\stoptext

I don't know why the frame is missing on the first page.


Marco


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marcin Borkowski
Dnia 2012-06-05, wto o godzinie 22:43 +0200, Marco pisze:
 On 2012-06-05 Marcin Borkowski mb...@wmi.amu.edu.pl wrote:
 
  The leaflet is typeset in a
  landscape orientation on an A6 sheet, and it is going to be printed 8
  times on an A3 sheet.
 
 The same leaflet? Then you don't need \setuparranging
 
 \setuppapersize [A6,landscape] [A3]
 
 \setuppagenumbering [location=]
 \setupbackgrounds   [page] [background=color, backgroundcolor=gray]
 \setupbodyfont  [sans, 58pt]
 \setuplayout[nx=2, ny=4, marking=on]
 
 \starttext
 \dorecurse{4}
   {\null\vfill\centerline\recurselevel\vfill\null\page}
 \stoptext

Thanks a lot, it works like a charm!

  2. I'd like to get crop marks, in this case short (5mm) lines showing
  where to cut the sheet, located near the borders, but *within* the
  printable area.
 
 Since eight A6 pages exactly fit on one A3 page the crop marks can
 only be *inside* the printable area. That means with marking=on
 you'll see three marks in the middle of the page. When you also
 want them to show up at the page borders, you have to fire up
 MetaPost.

I was afraid of that...  Any ideas how to achieve it?  (I know a bit of
MetaPost, but I don't have any clue how to achieve this.)

 Marco

Greetings

-- 
Marcin Borkowski
http://mbork.pl

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marco
On 2012-06-05 Marco net...@lavabit.com wrote:

 […]

 \startsetups cropmarks
   \doifoddpageelse{}{%
 \setlayerframed [cropmarks]
   [frame=off,
bottomframe=on,
leftframe=on,
width=\paperwidth,
height=\paperheight]{}}
 \stopsetups
 
 […]
 
 I don't know why the frame is missing on the first page.

\startsetups cropmarks
  \setlayerframed [cropmarks]
[frame=off,
 bottomframe=on,
 leftframe=on,
 width=\paperwidth,
 height=\paperheight]{}
\stopsetups

This also prints the marks on the first page. If you want just short
crop marks instead of continuous lines, you really have to use
MetaPost.


Marco


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Wolfgang Schuster

Am 05.06.2012 um 23:19 schrieb Marco:

 On 2012-06-05 Marco net...@lavabit.com wrote:
 
 […]
 
 \startsetups cropmarks
  \doifoddpageelse{}{%
\setlayerframed [cropmarks]
  [frame=off,
   bottomframe=on,
   leftframe=on,
   width=\paperwidth,
   height=\paperheight]{}}
 \stopsetups
 
 […]
 
 I don't know why the frame is missing on the first page.
 
 \startsetups cropmarks
  \setlayerframed [cropmarks]
[frame=off,
 bottomframe=on,
 leftframe=on,
 width=\paperwidth,
 height=\paperheight]{}
 \stopsetups

There is no need for layers because you can use \framed in a overlay

  \setupbackgrounds [page] [background=cropmarks]
  \defineoverlay [cropmarks] 
[{\framed[frame=off,bottomframe=on,leftframe=on,width=\overlaywidth,height=\overlayheight]{}}]

and even this is overkill because you can just enable the rules of the page 
frame

  \setupbackgrounds [page] [leftframe=on,bottomframe=on]

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Marco
On 2012-06-05 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 There is no need for layers because you can use \framed in a overlay

Sure I can do that. But what's the advantage of using an overlay?
I find layers to be more flexible.

 and even this is overkill because you can just enable the rules of the page 
 frame
 
   \setupbackgrounds [page] [leftframe=on,bottomframe=on]

That's neat!


Marco


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Wolfgang Schuster

Am 05.06.2012 um 23:36 schrieb Marco:

 On 2012-06-05 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
 
 There is no need for layers because you can use \framed in a overlay
 
 Sure I can do that. But what's the advantage of using an overlay?

In this case performance.

 I find layers to be more flexible.

1. When you define a layer a overlay with the same name is created because 
multiple layers are combined in an overlay.

2. You can combine a layer and an overlay to avoid the setups method (search 
for \tightlayer).

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Changing math font - sansserif - sans serif

2012-06-05 Thread Mathieu Dupont

Hi mailing list,
Could someone help me figuring out what is the simplest way to have all my math 
font without serif, in the small example below, without losing anything, such 
as my \tau parameter ?
Thank you very much for any hint !
\enableregime[il1]
\setupbodyfont[sansserif,11pt]
\starttext
\startformula \startalign   \NC Q_{x_T}(H_0)\equiv 
Q(H_0)\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} 
h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\;P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR 
  \NC\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} 
h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\prod_{\tau=0}^{\tau^*-1}P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR
  \NC\NC=\Epsilon_{P_{x_{T_0}}}\left[\prod_{\tau=0}^{\tau^*-1} 
h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\right]\NR\stopalign \stopformula
\stoptext

Mathieu   ___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] problem with switchtobodyfont

2012-06-05 Thread Brian Landy
Hi, I decided to give the latest minimals a test (I had been using 2012.01.16, 
updated to 2012.06.05 today), and noticed that switchtobodyfont no longer seems 
to work properly.  Here is a small example:

\starttypescript [cleartype]
\definetypeface [\typescriptone] [rm] [serif] [constantia][default]
\definetypeface [\typescriptone] [ss] [sans]  [calibri]   [default]
\stoptypescript


\usetypescript[cleartype]%
\starttext
{\switchtobodyfont[cleartype,serif,24pt]should be serif\par}
{\switchtobodyfont[cleartype,sans,24pt]should be sans\par}
\stoptext

The problem appears to be applying in a font size the first time the font is 
loaded.  For example, adding this line works:

% typescript
\starttext
{\switchtobodyfont[cleartype,serif]\switchtobodyfont[24pt]} % new line
{\switchtobodyfont[cleartype,serif,24pt]should be serif\par}
{\switchtobodyfont[cleartype,sans,24pt]should be sans\par}
\stoptext

The point sizes have to match for this to work.

It also works to add in \setupbodyfont[cleartype]; however, this isn’t helpful 
if there are multiple typescripts to use in the same document.

I didn’t notice any mention of this in the list (apologies if I overlooked it) 
so assume this is a bug?

Thanks!
Brian  
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___