Re: [NTG-context] \use(sub)path

2008-11-04 Thread Steffen Wolfrum
Guten Morgen Wolfgang,


Am 03.11.2008 um 21:16 schrieb Wolfgang Schuster:


 Am 03.11.2008 um 14:30 schrieb Alan STONE:

 On Fri, Oct 31, 2008 at 3:28 PM, Alan STONE [EMAIL PROTECTED]
 wrote:
 From what I've found...

 - ConTeXt searches files up in the directory tree
 - directories can be set with \usepath and/or \usesubpath

 I haven't found how both of the latter commands works though.

 Any hints would be most welcome.

 Thanks,
 Alan

 Hi,

 Speaking of paths...

 (1) What's ConTeXt's default path search depth ? Can it be modified
 and if so how ?

 (2) Still clueless about how to use usepath and usesubpath. Where
 are these documented ?

 Use the mail archive, this was answered a few times in the past.


Wirklich?

Daran bin ich auch gescheitert... Es gibt nur Verweise, aber keine  
wirkliche Erklärung/Beispiele.

Deswegen habe ich mich ja neulich auch mit Frage zu \usesubpath an  
Dich gewandt.

Steffen
___
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] Problem with MkIV on texlive2008

2008-11-04 Thread luigi scarso
2008/11/4 Marcin Borkowski [EMAIL PROTECTED]

 Dnia Tue, Nov 04, 2008 at 01:00:51AM +0100, luigi scarso napisa#322;(a):
  
   And one more question:
  
   texexec whatever.tex
  
  try
  $ pdffonts  whatever.pdf

 So I'm doing:

 $ cat test-07.tex
 \starttext
 Hello world!
 \stoptext

 $ texexec test-07
 (...)
 TeXExec | runtime: 3.723635

 $ pdffonts test-07.pdf
 name type  emb sub uni
 object ID
  - --- --- ---
 -
 KBKNLC+LMRoman12-Regular Type 1yes yes yes
 4  0

 $ context test-07
 (...)
 MtxRun | total runtime: 11.478

 $ pdffonts test-07.pdf
 name type  emb sub uni
 object ID
  - --- --- ---
 -
 AIGPIG+LMRoman12-Regular CID Type 0C   yes yes yes
 4  0

 Any ideas what to do so that it could look better in xpdf?

On my logs, I see that mkii uses type1
while  mkiv uses otf.

Maybe this is the difference.
-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] backgrounds: help needed

2008-11-04 Thread Peter Münster
Hello,

I need some text with background, that can break across lines. But the
background must not touch the background of the next line!

\setupcolors[state=start]
\starttext
inframed does not allow linebreaks:

\def\Bla{\inframed[background=color, backgroundcolor=gray, frame=off,
offset=overlay, backgroundoffset=2pt, location=keep]{%
FF FF XX XX XX XX XX XX SS CS CS}}
\dorecurse{20}{bla \Bla\ bla}

And textbackground does not allow to seperate the backgrounds of 2 lines:

\definetextbackground[TG][backgroundcolor=gray, frame=off,
  offset=overlay, backgroundoffset=2pt]
\def\Bla{\starttextbackground[TG]FF FF XX XX XX XX XX XX SS CS CS%
  \stoptextbackground}
\dorecurse{20}{bla \Bla\ bla}
\stoptext

Could anybody help please?

TIA for any hints!
Cheer, Peter

-- 
http://pmrb.free.fr/contact/
___
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] \use(sub)path

2008-11-04 Thread Hans Hagen
Wolfgang Schuster wrote:
 Am 03.11.2008 um 14:30 schrieb Alan STONE:
 
 On Fri, Oct 31, 2008 at 3:28 PM, Alan STONE [EMAIL PROTECTED] 
 wrote:
 From what I've found...

 - ConTeXt searches files up in the directory tree
 - directories can be set with \usepath and/or \usesubpath


just \usepath[a,a/b,a/../x] and \usesubpath[graphics] etc

subpaths are combined with paths

on top of that context searched in . .. ../..

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Minimals - problems with format: metafun.mp

2008-11-04 Thread Hans Hagen
Johannes Graumann wrote:
 No changes in error message. I attach the code that doesn't work like so:
 
 context --ctx=t-openoffice Attempt.odt

runs ok here

 luigi scarso wrote:
 
 On Sun, Nov 2, 2008 at 7:53 PM, Johannes Graumann
 [EMAIL PROTECTED]wrote:

 Hello,

 In a bit to finally get Wolfgang's present to me (see XML thread
 somewhere) finally compiled, I update my minimals via the
 first-install.sh script and
 run luatools --generat  context --make afterwards. Now I get the 
 error below. Where might I err?

 Can you try these steps ?
 1) cd /opt/ConTeXtMinimals
 2) ./first-install.sh
 3) cd tex
 4) . setuptex
 5) context --generate
 6) context --make

 Here minimals is ok
 minimals
 Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC
 2008 i686 GNU/Linux
 This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
 ConTeXt MtxRun | current version: 2008.10.31 13:58

 

 ___
 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
 ___


-- 

-
   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] MkII vs. MkIV

2008-11-04 Thread Marcin Borkowski
Hi,

Is it normal that output from MkII and MkIV are different in terms of
page breaks?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Why vim users don't use the ESC key?
- It's too far on the keyboard.  It's faster to type ctrl-[.
___
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] MkII vs. MkIV

2008-11-04 Thread Aditya Mahajan
On Tue, 4 Nov 2008, Marcin Borkowski wrote:

 Hi,

 Is it normal that output from MkII and MkIV are different in terms of
 page breaks?

Yes. In MKII the interline space is hard coded. MKIV gets the interline 
space from the font. So, you will get different page breaks. I experienced 
around 2-5 pages difference in a 100 page document.

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

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


Re: [NTG-context] Minimals - problems with format: metafun.mp

2008-11-04 Thread luigi scarso
On Tue, Nov 4, 2008 at 1:28 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Johannes Graumann wrote:
  No changes in error message. I attach the code that doesn't work like so:
 
  context --ctx=t-openoffice Attempt.odt

 runs ok here


hmm
not here


minimals-beta
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.11.03 09:22

minimalsBIRTHDAY
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.10.31 13:58

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


Re: [NTG-context] MkII vs. MkIV

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 21:20 schrieb Aditya Mahajan:

 On Tue, 4 Nov 2008, Marcin Borkowski wrote:

 Hi,

 Is it normal that output from MkII and MkIV are different in terms of
 page breaks?

 Yes. In MKII the interline space is hard coded. MKIV gets the  
 interline
 space from the font. So, you will get different page breaks. I  
 experienced
 around 2-5 pages difference in a 100 page document.

The interlinespace in MkII and MkIV is the same and both use a distance
of 2.8ex between the lines. One difference between the two engines are
the used fonts, pdfTeX use type 1 fonts and luaTeX MkIV opentype fonts.

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] MkII vs. MkIV

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 09:41:43PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 21:20 schrieb Aditya Mahajan:
 
  On Tue, 4 Nov 2008, Marcin Borkowski wrote:
 
  Hi,
 
  Is it normal that output from MkII and MkIV are different in terms of
  page breaks?
 
  Yes. In MKII the interline space is hard coded. MKIV gets the  
  interline
  space from the font. So, you will get different page breaks. I  
  experienced
  around 2-5 pages difference in a 100 page document.
 
 The interlinespace in MkII and MkIV is the same and both use a distance
 of 2.8ex between the lines. One difference between the two engines are
 the used fonts, pdfTeX use type 1 fonts and luaTeX MkIV opentype fonts.

Thank you for your prompt answers.  I am a bit surprised, though, that
the otf and Type1 Latin Modern fonts are not compatible.  Strange thing.
Seems it will be a good idea to stick to MkIV...

 
 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
 ___

-- 
Marcin Borkowski (http://mbork.pl)

Stłumiony głos w końcu wypowie słowo prawdy - otworzą się usta!
Prawda - choćby zdeptana - zawsze pozostanie prawdą!
Żadna przemoc, chamstwo, kłamstwo nie uczynią z niej ofiary!
(Izaiash)
___
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] How to avoid a page break?

2008-11-04 Thread Marcin Borkowski
Hi,

I have the following in my code:

\def\doPutTitle#1{%
  \startalignment[middle]
\bfb
\page[bigpreference]
\blank[2*big]
#1%
\page[no]%
\blank[big]%
\page[no]%
  \stopalignment
  \page[no]%
}%

Why is it still possible that I have a page break after, say,
\doPutTitle{some title} (in MkII, in MkIV page breaks fall in different
places).  Which percentage signs and \page[no]'s are unnecessary here?

Also, how to avoid a page break right before an itemization?  Adding
[intro] seems not to work.

And one more thing about pagebreaks: how to avoid a pagebreak right
before a \startformula ... \stopformula?  And what is the ConTeXt way of
setting stretchable vertical glue (e.g. for \blank's, below itemizations
etc.)?

Thanks in advance  greets

-- 
Marcin Borkowski (http://mbork.pl)

People can be divided into 10 groups: those who like the binary system
and those who don't.
___
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] How to avoid a page break?

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 21:21 schrieb Marcin Borkowski:

 Hi,

 I have the following in my code:

 \def\doPutTitle#1{%
  \startalignment[middle]
\bfb
\page[bigpreference]
\blank[2*big]
#1%
\page[no]%
\blank[big]%
\page[no]%
  \stopalignment
  \page[no]%
 }%

 Why is it still possible that I have a page break after, say,
 \doPutTitle{some title} (in MkII, in MkIV page breaks fall in  
 different
 places).  Which percentage signs and \page[no]'s are unnecessary here?

\def\doPutTitle#1%
   {\page[bigpreference]
\vbox\bgroup
\raggedcenter
#1%
\egroup
\nobreak\blank[big]}

 Also, how to avoid a page break right before an itemization?  Adding
 [intro] seems not to work.

Example!

 And one more thing about pagebreaks: how to avoid a pagebreak right
 before a \startformula ... \stopformula?  And what is the ConTeXt  
 way of
 setting stretchable vertical glue (e.g. for \blank's, below  
 itemizations
 etc.)?

\blank[ small | medium | big | ... ]

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
___


[NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Hi,

yet another question from me;).

I have a project divided into products divided into components.  When I
typeset a component, I want to get it's title (I keep it in a variable)
in the footer.  If I typeset the wqhole project, I want to have the
pagenumber there instead.

How do I do it?  (I mean what to put in the
environment/product/component code?)

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Gandalf!  A ja myślałem, że nie żyjesz.  Co prawda o sobie też byłem
tego zdania.
Sam Gamgee
___
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] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:
 
  Hi,
 
  yet another question from me;).
 
  I have a project divided into products divided into components.   
  When I
  typeset a component, I want to get it's title (I keep it in a  
  variable)
  in the footer.  If I typeset the wqhole project, I want to have the
  pagenumber there instead.
 
  How do I do it?  (I mean what to put in the
  environment/product/component code?)
 
 \startmode[*product]
 ...
 \stopmode
 
 \startnotmode[*product]
 ...
 \stopnotmode
 
 \startmode[*component]
 ...
 \stopmode

Wow, thanks!!!

 
 Regards
 Wolfgang

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


Re: [NTG-context] How to avoid a page break?

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:17:51PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 21:21 schrieb Marcin Borkowski:
 
  Hi,
 
  I have the following in my code:
 
  \def\doPutTitle#1{%
   \startalignment[middle]
 \bfb
 \page[bigpreference]
 \blank[2*big]
 #1%
 \page[no]%
 \blank[big]%
 \page[no]%
   \stopalignment
   \page[no]%
  }%
 
  Why is it still possible that I have a page break after, say,
  \doPutTitle{some title} (in MkII, in MkIV page breaks fall in  
  different
  places).  Which percentage signs and \page[no]'s are unnecessary here?
 
 \def\doPutTitle#1%
{\page[bigpreference]
 \vbox\bgroup
 \raggedcenter
 #1%
 \egroup
 \nobreak\blank[big]}

OK, though this looks rather low-level.  I was thinking about something
more user-friendly;).

This raises a philosophical question: is it the ConTeXt way to use
low-level constructs in environments and high-level in documents?  Or is
it better to avoid low level whenever possible?  Also, your code mixes
low-level commands (\vbox, which is a TeX prmitive, \raggedcenter, which
is a ConTeXt low-level command, I guess) and high-level ones (\blank).
I understand that this ensures a uniform vertical spacing (\blank[big]
is obviously better than \vskip 10pt;)), but I thought that it is
against ConTeXt philosophy to use low-level stuff unless something
really non-standard is needed.

 
  Also, how to avoid a page break right before an itemization?  Adding
  [intro] seems not to work.
 
 Example!

Sorry, I haven't provided one.  Here you are.

\starttext
\dorecurse{12}{%
  This is some intro (\recurselevel).
  \startitemize[n,packed,joinedup,columns,two,intro]
  \dorecurse{8}{\item This is an item.}
  \stopitemize
}%
\stoptext

(strange things happen both in MkII and MkIV in the online ConTeXt!)

 
  And one more thing about pagebreaks: how to avoid a pagebreak right
  before a \startformula ... \stopformula?  And what is the ConTeXt  
  way of
  setting stretchable vertical glue (e.g. for \blank's, below  
  itemizations
  etc.)?
 
 \blank[ small | medium | big | ... ]

But how do I control the stretchability?

 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

O ludzką twarz - walka trwa!  Już płoną ognie - chwyćmy za ostrze!
Naszym ogniem Moc Najwyższego,  ostrzem wierność obranej drodze...
Walka trwa!
(Izaiash)
___
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] MkII vs. MkIV

2008-11-04 Thread Arthur Reutenauer
 Thank you for your prompt answers.  I am a bit surprised, though, that
 the otf and Type1 Latin Modern fonts are not compatible.  Strange thing.

  You should come to BachoTeX.  In 2007 Jerzy Ludwichowski and Bogusław
Jackowski started their talk about TeX Gyre by screaming Full
compatibility means no progress! at the audience :-)

Arthur
___
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] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:
 
  Hi,
 
  yet another question from me;).
 
  I have a project divided into products divided into components.   
  When I
  typeset a component, I want to get it's title (I keep it in a  
  variable)
  in the footer.  If I typeset the wqhole project, I want to have the
  pagenumber there instead.
 
  How do I do it?  (I mean what to put in the
  environment/product/component code?)
 
 \startmode[*product]
 ...
 \stopmode

And: is there a corresponding \startmode[*project] ... \stopmode
construct?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Jest tak. Friedman ma weksel Schapira z żyrem Glasa i windykator jest
Balenstein. On daje dwadzieścia pięć procent franko loko, towar jest u
Lutmana, tylko ten towar jest zajęty przez Honigmana z powodu weksel
Roitberga. Za ten weksel Roitberga można dostać gwarancję od jego
teścia Rozenzweiga, tylko on jest przepisany na Rozenzweigową, a
Rozenzweigowa jest chora.
(Kabaret Dudek)
___
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] MkII vs. MkIV

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:06:13PM +0100, Arthur Reutenauer napisa#322;(a):
  Thank you for your prompt answers.  I am a bit surprised, though, that
  the otf and Type1 Latin Modern fonts are not compatible.  Strange thing.
 
   You should come to BachoTeX.  In 2007 Jerzy Ludwichowski and Bogusław
 Jackowski started their talk about TeX Gyre by screaming Full
 compatibility means no progress! at the audience :-)

I know that, I read some of the GUST people papers;).  I thought,
however, that it wouldn't influence my documents *so much*;).

Coming to Bachotek in 2008 is impossible for me (as I already wrote, I
guess): me and my wife will celebrate our 5th wedding anniversary:).
Maybe in 2009...

   Arthur

Greets

-- 
Marcin Borkowski (http://mbork.pl)

888 * ostre słowa * ostra muzyka * ostra płyta
___
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] MkII vs. MkIV

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 22:51 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:06:13PM +0100, Arthur Reutenauer  
 napisa#322;(a):
 Thank you for your prompt answers.  I am a bit surprised, though,  
 that
 the otf and Type1 Latin Modern fonts are not compatible.  Strange  
 thing.

  You should come to BachoTeX.  In 2007 Jerzy Ludwichowski and  
 Bogusław
 Jackowski started their talk about TeX Gyre by screaming Full
 compatibility means no progress! at the audience :-)

 I know that, I read some of the GUST people papers;).  I thought,
 however, that it wouldn't influence my documents *so much*;).

LuaTeX did not always behave like pdfTeX and if you want the same result
in your document as in the past, don't switch. The different code for  
MkII and
MkIV are another reason for different output in a few cases.

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] Different footers for different parts of a project

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:

 Hi,

 yet another question from me;).

 I have a project divided into products divided into components.
 When I
 typeset a component, I want to get it's title (I keep it in a
 variable)
 in the footer.  If I typeset the wqhole project, I want to have the
 pagenumber there instead.

 How do I do it?  (I mean what to put in the
 environment/product/component code?)

 \startmode[*product]
 ...
 \stopmode

 And: is there a corresponding \startmode[*project] ... \stopmode
 construct?

Yes.

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] MkII vs. MkIV

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 11:02:13PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 22:51 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:06:13PM +0100, Arthur Reutenauer  
  napisa#322;(a):
  Thank you for your prompt answers.  I am a bit surprised, though,  
  that
  the otf and Type1 Latin Modern fonts are not compatible.  Strange  
  thing.
 
   You should come to BachoTeX.  In 2007 Jerzy Ludwichowski and  
  Bogusław
  Jackowski started their talk about TeX Gyre by screaming Full
  compatibility means no progress! at the audience :-)
 
  I know that, I read some of the GUST people papers;).  I thought,
  however, that it wouldn't influence my documents *so much*;).
 
 LuaTeX did not always behave like pdfTeX and if you want the same result
 in your document as in the past, don't switch. The different code for  
 MkII and
 MkIV are another reason for different output in a few cases.

Well, since I'm really a beginner, I don't have much ConTeXt documents.
So I guess the sooner I switch, the better - especially that MkIV is
better for my itemizations;).

 
 Wolfgang
 
Greets

-- 
Marcin Borkowski (http://mbork.pl)

888 * Nie lękaj się * Ja zawsze będę z Tobą!
___
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] How to avoid a page break?

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 22:39 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:17:51PM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 21:21 schrieb Marcin Borkowski:

 Hi,

 I have the following in my code:

 \def\doPutTitle#1{%
 \startalignment[middle]
   \bfb
   \page[bigpreference]
   \blank[2*big]
   #1%
   \page[no]%
   \blank[big]%
   \page[no]%
 \stopalignment
 \page[no]%
 }%

 Why is it still possible that I have a page break after, say,
 \doPutTitle{some title} (in MkII, in MkIV page breaks fall in
 different
 places).  Which percentage signs and \page[no]'s are unnecessary  
 here?

 \def\doPutTitle#1%
   {\page[bigpreference]
\vbox\bgroup
\raggedcenter
#1%
\egroup
\nobreak\blank[big]}

 OK, though this looks rather low-level.  I was thinking about  
 something
 more user-friendly;).

 This raises a philosophical question: is it the ConTeXt way to use
 low-level constructs in environments and high-level in documents?   
 Or is
 it better to avoid low level whenever possible?  Also, your code mixes
 low-level commands (\vbox, which is a TeX prmitive, \raggedcenter,  
 which
 is a ConTeXt low-level command, I guess) and high-level ones (\blank).
 I understand that this ensures a uniform vertical spacing (\blank[big]
 is obviously better than \vskip 10pt;)), but I thought that it is
 against ConTeXt philosophy to use low-level stuff unless something
 really non-standard is needed.

Here is a better method, there is nothing wrong with low level but
you should know what you do.

\defineblankmethod [nobreak] {\nobreak}

\def\doPutTitle#1%
   {\framed[frame=offwidth=\textwidth,align=middle]{#1}%
\blank[nobreak,line]}

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] \use(sub)path

2008-11-04 Thread Steffen Wolfrum
Pressing Reply sometimes goes faster than checking the receivers  
adress  ;o)
Obviously, this should have been adressed to Wolfgang personally,  
apologies for spoiling the list with non-international postings!

Nevertheless, Wolfgang received my appeal and tries to write a summary  
on this \use(sub)path issue (plus example) for the wiki.

Stay tuned!


Steffen




Am 04.11.2008 um 09:22 schrieb Steffen Wolfrum:

 Guten Morgen Wolfgang,


 Am 03.11.2008 um 21:16 schrieb Wolfgang Schuster:


 Am 03.11.2008 um 14:30 schrieb Alan STONE:

 On Fri, Oct 31, 2008 at 3:28 PM, Alan STONE [EMAIL PROTECTED]
 wrote:
 From what I've found...

 - ConTeXt searches files up in the directory tree
 - directories can be set with \usepath and/or \usesubpath

 I haven't found how both of the latter commands works though.

 Any hints would be most welcome.

 Thanks,
 Alan

 Hi,

 Speaking of paths...

 (1) What's ConTeXt's default path search depth ? Can it be modified
 and if so how ?

 (2) Still clueless about how to use usepath and usesubpath. Where
 are these documented ?

 Use the mail archive, this was answered a few times in the past.


 Wirklich?

 Daran bin ich auch gescheitert... Es gibt nur Verweise, aber keine
 wirkliche Erklärung/Beispiele.

 Deswegen habe ich mich ja neulich auch mit Frage zu \usesubpath an
 Dich gewandt.

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

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

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

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


Re: [NTG-context] How to avoid a page break?

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 11:25:17PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 22:39 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:17:51PM +0100, Wolfgang Schuster  
  napisa#322;(a):
 
  Am 04.11.2008 um 21:21 schrieb Marcin Borkowski:
 
  Hi,
 
  I have the following in my code:
 
  \def\doPutTitle#1{%
  \startalignment[middle]
\bfb
\page[bigpreference]
\blank[2*big]
#1%
\page[no]%
\blank[big]%
\page[no]%
  \stopalignment
  \page[no]%
  }%
 
  Why is it still possible that I have a page break after, say,
  \doPutTitle{some title} (in MkII, in MkIV page breaks fall in
  different
  places).  Which percentage signs and \page[no]'s are unnecessary  
  here?
 
  \def\doPutTitle#1%
{\page[bigpreference]
 \vbox\bgroup
 \raggedcenter
 #1%
 \egroup
 \nobreak\blank[big]}
 
  OK, though this looks rather low-level.  I was thinking about  
  something
  more user-friendly;).
 
  This raises a philosophical question: is it the ConTeXt way to use
  low-level constructs in environments and high-level in documents?   
  Or is
  it better to avoid low level whenever possible?  Also, your code mixes
  low-level commands (\vbox, which is a TeX prmitive, \raggedcenter,  
  which
  is a ConTeXt low-level command, I guess) and high-level ones (\blank).
  I understand that this ensures a uniform vertical spacing (\blank[big]
  is obviously better than \vskip 10pt;)), but I thought that it is
  against ConTeXt philosophy to use low-level stuff unless something
  really non-standard is needed.
 
 Here is a better method, there is nothing wrong with low level but
 you should know what you do.

Yes, that's obvious.  But high-level is better in one thing: when I want
to teach ConTeXt to non-TeX-maniacs;), it's the only possibility.

 
 \defineblankmethod [nobreak] {\nobreak}
 
 \def\doPutTitle#1%
{\framed[frame=offwidth=\textwidth,align=middle]{#1}%
 \blank[nobreak,line]}

OK, that's very nice, apart from the thing that the only two ways of
learning it are: (1) studying sources or (2) asking here.  Also, the
trick with \framed[frame=off,...] is neat, but I still don't get it: why
my \startalignment[middle] didn't work?  And how does exactly
\blank[something] work?

Don't think I need these answers *now*.  But it would be nice to
understand ConTeXt a bit some day...

You know, with plain TeX it's relatively easy to understand
*everything* - it's so small and, well, primitive;).  With LaTeX things
get messy, but still I can read the sources - they are very plainy, I
mean LaTeX does not have so much UI for developers/package/class
writers, so it's not *that* difficult to understand parts of source
code.  But ConTeXt baffles me a lot.  I guess that reading sources is
the only remedy - but I don't have enough time now...  But some day, I
*will* understand this;).

 
 Wolfgang
 

PS. Wolfgang, can I still subscribe to your fan club?  Do I get a free
t-shirt;)?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

People can be divided into two groups: those who can be divided into
two groups and those who can't.
___
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] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster  
  napisa#322;(a):
 
  Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:
 
  Hi,
 
  yet another question from me;).
 
  I have a project divided into products divided into components.
  When I
  typeset a component, I want to get it's title (I keep it in a
  variable)
  in the footer.  If I typeset the wqhole project, I want to have the
  pagenumber there instead.
 
  How do I do it?  (I mean what to put in the
  environment/product/component code?)
 
  \startmode[*product]
  ...
  \stopmode
 
  And: is there a corresponding \startmode[*project] ... \stopmode
  construct?
 
 Yes.

Yes, that's right.  However, it won't work wrt. arranging.  If I put
\setuppapersize[A5][A4]
\setuparranging[2UP,rotated]

within
\startmode[*project]
...
\stopmode

I have still to repeat
\setuparranging[normal]

within
\startmode[*product]
...
\stopmode

etc.

Is it a bug or a feature?  (Seems a bug for me;).)

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Why are vim users so terribly egocentric?
- Because they begin every sentence with `I'.
___
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] How to avoid a page break?

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 23:42 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 11:25:17PM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 22:39 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:17:51PM +0100, Wolfgang Schuster
 napisa#322;(a):

 Am 04.11.2008 um 21:21 schrieb Marcin Borkowski:

 Hi,

 I have the following in my code:

 \def\doPutTitle#1{%
 \startalignment[middle]
  \bfb
  \page[bigpreference]
  \blank[2*big]
  #1%
  \page[no]%
  \blank[big]%
  \page[no]%
 \stopalignment
 \page[no]%
 }%

 Why is it still possible that I have a page break after, say,
 \doPutTitle{some title} (in MkII, in MkIV page breaks fall in
 different
 places).  Which percentage signs and \page[no]'s are unnecessary
 here?

 \def\doPutTitle#1%
  {\page[bigpreference]
   \vbox\bgroup
   \raggedcenter
   #1%
   \egroup
   \nobreak\blank[big]}

 OK, though this looks rather low-level.  I was thinking about
 something
 more user-friendly;).

 This raises a philosophical question: is it the ConTeXt way to use
 low-level constructs in environments and high-level in documents?
 Or is
 it better to avoid low level whenever possible?  Also, your code  
 mixes
 low-level commands (\vbox, which is a TeX prmitive, \raggedcenter,
 which
 is a ConTeXt low-level command, I guess) and high-level ones  
 (\blank).
 I understand that this ensures a uniform vertical spacing  
 (\blank[big]
 is obviously better than \vskip 10pt;)), but I thought that it is
 against ConTeXt philosophy to use low-level stuff unless something
 really non-standard is needed.

 Here is a better method, there is nothing wrong with low level but
 you should know what you do.

 Yes, that's obvious.  But high-level is better in one thing: when I  
 want
 to teach ConTeXt to non-TeX-maniacs;), it's the only possibility.


 \defineblankmethod [nobreak] {\nobreak}

 \def\doPutTitle#1%
   {\framed[frame=offwidth=\textwidth,align=middle]{#1}%
\blank[nobreak,line]}

 OK, that's very nice, apart from the thing that the only two ways of
 learning it are: (1) studying sources or (2) asking here.  Also, the
 trick with \framed[frame=off,...] is neat, but I still don't get it:  
 why
 my \startalignment[middle] didn't work?  And how does exactly
 \blank[something] work?

 Don't think I need these answers *now*.  But it would be nice to
 understand ConTeXt a bit some day...

 You know, with plain TeX it's relatively easy to understand
 *everything* - it's so small and, well, primitive;).  With LaTeX  
 things
 get messy, but still I can read the sources - they are very  
 plainy, I
 mean LaTeX does not have so much UI for developers/package/class
 writers, so it's not *that* difficult to understand parts of source
 code.  But ConTeXt baffles me a lot.  I guess that reading sources is
 the only remedy - but I don't have enough time now...  But some day, I
 *will* understand this;).


 Wolfgang


 PS. Wolfgang, can I still subscribe to your fan club?  Do I get a free
 t-shirt;)?

Ask Mojca, she has the shirts.

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] Different footers for different parts of a project

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
 napisa#322;(a):

 Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:

 Hi,

 yet another question from me;).

 I have a project divided into products divided into components.
 When I
 typeset a component, I want to get it's title (I keep it in a
 variable)
 in the footer.  If I typeset the wqhole project, I want to have  
 the
 pagenumber there instead.

 How do I do it?  (I mean what to put in the
 environment/product/component code?)

 \startmode[*product]
 ...
 \stopmode

 And: is there a corresponding \startmode[*project] ... \stopmode
 construct?

 Yes.

 Yes, that's right.  However, it won't work wrt. arranging.  If I put
 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated]

 within
 \startmode[*project]
 ...
 \stopmode

 I have still to repeat
 \setuparranging[normal]

 within
 \startmode[*product]
 ...
 \stopmode

 etc.

 Is it a bug or a feature?  (Seems a bug for me;).)

I guess you missed something in your files, it works for me.

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] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster  
  napisa#322;(a):
 
  Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
  napisa#322;(a):
 
  Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:
 
  Hi,
 
  yet another question from me;).
 
  I have a project divided into products divided into components.
  When I
  typeset a component, I want to get it's title (I keep it in a
  variable)
  in the footer.  If I typeset the wqhole project, I want to have  
  the
  pagenumber there instead.
 
  How do I do it?  (I mean what to put in the
  environment/product/component code?)
 
  \startmode[*product]
  ...
  \stopmode
 
  And: is there a corresponding \startmode[*project] ... \stopmode
  construct?
 
  Yes.
 
  Yes, that's right.  However, it won't work wrt. arranging.  If I put
  \setuppapersize[A5][A4]
  \setuparranging[2UP,rotated]
 
  within
  \startmode[*project]
  ...
  \stopmode
 
  I have still to repeat
  \setuparranging[normal]
 
  within
  \startmode[*product]
  ...
  \stopmode
 
  etc.
 
  Is it a bug or a feature?  (Seems a bug for me;).)
 
 I guess you missed something in your files, it works for me.

So here are my files:

env.tex:
==
\environment env

\startmode[*project]
  \setupheadertexts[Project]
  \setuppapersize[A5][A4]
  \setuparranging[2UP,rotated]
\stopmode

\startmode[*product]
  \setupheadertexts[Product]
\stopmode

\startmode[*component]
  \setupheadertexts[Component]
\stopmode
==

project.tex:
==
\startproject project

\environment env

\product product

\stopproject
==

product.tex:
==
\startproduct product

\project project

\component component

\stopproduct
==

component.tex:
==
\startcomponent component

\project project

Hello component!

\blank

\input tufte

\blank

\input knuth

\stopcomponent
==

So that only the whole project should be typest 2-up - but everything
gets arranged that way...

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Ty okryłeś śmierć wstydem!
Wtrąciłeś piekło w żałobę!
Uderzyłeś niegodziwość,
Niesprawiedliwość pozbawiłeś potomstwa!
___
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] MkII vs. MkIV

2008-11-04 Thread Aditya Mahajan
On Tue, 4 Nov 2008, Wolfgang Schuster wrote:


 Am 04.11.2008 um 21:20 schrieb Aditya Mahajan:

 On Tue, 4 Nov 2008, Marcin Borkowski wrote:

 Hi,

 Is it normal that output from MkII and MkIV are different in terms of
 page breaks?

 Yes. In MKII the interline space is hard coded. MKIV gets the
 interline
 space from the font. So, you will get different page breaks. I
 experienced
 around 2-5 pages difference in a 100 page document.

 The interlinespace in MkII and MkIV is the same and both use a distance
 of 2.8ex between the lines.

Yes, but ex means different dimensions in pdftex and luatex. For example

\starttext

1ex = \the\dimexpr1ex\relax \crlf
2.8ex = \the\dimexpr2.8ex\relax

\stoptext

gives in MKII

1ex = 5.16667pt
2.8ex = 14.46669pt

and in MKIV gives

1ex = 5.172pt
2.8ex = 14.4816pt

The reason is that what ex means is hardcoded in MKII but MKIV gets this 
info from the font. For example, if I use palatino at 12pt, the result in 
MKII does not change, but MKIV gives

1ex = 5.388pt
2.8ex = 15.08641pt

So, depending on the font, MKII and MKIV can have considerably different 
lines per page.

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

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


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Aditya Mahajan
On Wed, 5 Nov 2008, Marcin Borkowski wrote:

 So that only the whole project should be typest 2-up - but everything
 gets arranged that way...

This (project/product/... structure) is one area where I haven't kept 
track with the changes done in MKIV. However, in MKII one was not supposed 
to compile a project. See 
http://archive.contextgarden.net/message/20060403.083040.fadab315.en.html 
and the follow-ups.

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

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


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:30:35PM -0500, Aditya Mahajan napisa#322;(a):
 On Wed, 5 Nov 2008, Marcin Borkowski wrote:
 
  So that only the whole project should be typest 2-up - but everything
  gets arranged that way...
 
 This (project/product/... structure) is one area where I haven't kept 
 track with the changes done in MKIV. However, in MKII one was not supposed 
 to compile a project. See 
 http://archive.contextgarden.net/message/20060403.083040.fadab315.en.html 
 and the follow-ups.

Hm.  Good to know.  I'll have to repack my files a bit - I thought
compiling the project is ok...

 Aditya

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Ja nie chcę czytać tych głupich gazet
I wymyślonych oglądać historii.
(Chili My)
___
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] Different footers for different parts of a project

2008-11-04 Thread Wolfgang Schuster

Am 05.11.2008 um 01:00 schrieb Marcin Borkowski:

 Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster
 napisa#322;(a):

 Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
 napisa#322;(a):

 Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:

 Hi,

 yet another question from me;).

 I have a project divided into products divided into components.
 When I
 typeset a component, I want to get it's title (I keep it in a
 variable)
 in the footer.  If I typeset the wqhole project, I want to have
 the
 pagenumber there instead.

 How do I do it?  (I mean what to put in the
 environment/product/component code?)

 \startmode[*product]
 ...
 \stopmode

 And: is there a corresponding \startmode[*project] ... \stopmode
 construct?

 Yes.

 Yes, that's right.  However, it won't work wrt. arranging.  If I put
 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated]

 within
 \startmode[*project]
 ...
 \stopmode

 I have still to repeat
 \setuparranging[normal]

 within
 \startmode[*product]
 ...
 \stopmode

 etc.

 Is it a bug or a feature?  (Seems a bug for me;).)

 I guess you missed something in your files, it works for me.

 So here are my files:

 env.tex:
 ==
 \environment env

 \startmode[*project]
  \setupheadertexts[Project]
  \setuppapersize[A5][A4]
  \setuparranging[2UP,rotated]
 \stopmode

 \startmode[*product]
  \setupheadertexts[Product]
 \stopmode

 \startmode[*component]
  \setupheadertexts[Component]
 \stopmode
 ==

 project.tex:
 ==
 \startproject project

 \environment env

 \product product

 \stopproject
 ==

 product.tex:
 ==
 \startproduct product

 \project project

 \component component

 \stopproduct
 ==

 component.tex:
 ==
 \startcomponent component

 \project project

 Hello component!

 \blank

 \input tufte

 \blank

 \input knuth

 \stopcomponent
 ==

 So that only the whole project should be typest 2-up - but everything
 gets arranged that way...

The project file is loaded from the product and the component
and both enable then the project mode. See also Adityas mail
and use \startmode[*product] and \startnotmode[*product].

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] How to avoid a page break?

2008-11-04 Thread luigi scarso


 Ask Mojca, she has the shirts.

 Wolfgang

Well,
on my calendar, 31 October is (also)
San Volfgango (St. Wolfgang)



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


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Alan STONE
2008/11/5 Marcin Borkowski [EMAIL PROTECTED]


 I thought
 compiling the project is ok...


Hmmm... That's what I also understood from the main manual, chapter 2, and
it worked fine so far. However, from reading this thread, I guess it will
lead problems later on. So back to the drawing board.

-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2008.10.31 13:58 MKIV  fmt: 2008.10.31  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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
___