Re: [NTG-context] framed getbuffer

2007-03-22 Thread Taco Hoekwater
Wolfgang Werners-Lucchini wrote:
 Hallo!
 
 The following simple example doesn't compile
 (ConTeXt ver. 2007.01.02 and Live ConTeXt).
 
 What am I doing wrong?

Diagnostics:

The problem is not caused by the \framed, but by the (lack of)
parsing done by the buffering routines.
Because the \startformula is not expanded, TeX does not realise
you are in math mode, so it objects to the ^ character.

This is 'not right' but I suspect it is not all that simple
to fix the context core to do this properly (I would love to be
proved wrong).

You probably have to create small input files and use \input
and \typefile instead

Best wishes,

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


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-22 Thread Oliver Buerschaper
Hi all,

I'm afraid there still seems to be a problem with the XeTeX  
engine ... try to compile the following (I guess you can choose  
whichever OpenType font you have on your machine):

---

\definetypeface[Caslon][rm][Xserif][Adobe Caslon Pro]
\setupbodyfont[Caslon,12pt]

\starttext
\input tufte
\stoptext

---

My machine spills out the following messages:

---

! Font \*Caslon12ptrmtfrm*:='mapping=tex-text at 12.0pt' not  
loadable: instal
led font not found.
to be read again
\relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
   \let  
\localrelativefontsiz...

\fontstrategy ...me \fontclass #2#3#4#5\endcsname
   \tryingfontfalse \fi
inserted text ...yle \fontalternative \fontsize

---

The same file used to compile with the January release of ConTeXt  
(2007.01.12) ... perhaps something has changed in the way how one has  
to specify the desired OpenType font?

Oliver



 Hi all,

 I am pleased to announce that the new ConTeXt release from Hans Hagen
 can be downloaded as of now from the Pragma ADE website or one of its
 mirrors.

  http://www.pragma-ade.com/context/current/cont-tmf.zip
  http://context.aanhet.net/context/current/cont-tmf.zip
  http://mirror.contextgarden.net/context/current/cont-tmf.zip

 The current release has version 2007.03.19

 As usual, there is an html page with more detailed release notes
 available on the Wiki, see:

  http://wiki.contextgarden.net/Release_Notes


 Highlights:
 * Aditya's 'mathsets' modules in included in cont-ext.zip
 * The use of \setuphead[][numberwidth=...]
 * Named font styles can now also be 'sans' or 'sansbold'
 * The old marvosym metric file is included, fixing the 'MarvoSym'
symbols and '\texteuro' bugs
 * Quoting of font files is changed so that hopefully XeTeX
bare fontfiles are OK now.
 * For some other small changes, see the wiki page


 Happy TeXing,

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


[NTG-context] XML compilation trouble

2007-03-22 Thread Johannes Graumann
Hello,

A document that compiled fine yesterday with 'texmfstart
texexec --environment Labbook.tex Labbook.xml' today gives me this at the
end of the log running by:

xml : loading module ent
(/usr/share/texmf/tex/context/base/xtag-ent.tex))
*

Any pointers as to what I'm screwing up? If I hit Ctrl-C and x, the process
produces all text elements of the XML document pasted together ...

Thanks for any help, Joh

texmfstart texexec --environment Labbook.tex Labbook.xml
TeXExec | processing document 'Labbook.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file Labbook.top
TeXExec | using randomseed 937
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5)
 (/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./Labbook.tex

ConTeXt  ver: 2007.01.23 13:32 MKII  fmt: 2007.2.16  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/share/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3
de-texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3
fr-ec:ec-6-2:3
 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3
it-texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3
nl-ec:ec-
13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3
sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : Labbook.top loaded
(./Labbook.top
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)

Re: [NTG-context] XML compilation trouble

2007-03-22 Thread Taco Hoekwater


Johannes Graumann wrote:
 Hello,
 
 A document that compiled fine yesterday with 'texmfstart
 texexec --environment Labbook.tex Labbook.xml' today gives me this at the

Have you tried --environment=Labbook.tex ?

Taco



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


Re: [NTG-context] XML compilation trouble

2007-03-22 Thread Johannes Graumann
Bang! Dumm... shot himself ... last words: thanks!

Joh

Taco Hoekwater wrote:

 
 
 Johannes Graumann wrote:
 Hello,
 
 A document that compiled fine yesterday with 'texmfstart
 texexec --environment Labbook.tex Labbook.xml' today gives me this at the
 
 Have you tried --environment=Labbook.tex ?
 
 Taco


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


Re: [NTG-context] page-break after \section

2007-03-22 Thread Hans Hagen
� wrote:
 On Wed, 21 Mar 2007, luigi scarso wrote:

   
 in the following example, there is a page-break after the second section
 title. \page[no] does not help.

 Is this normal or a bug?
   
 Normal, I believe
 

 Too bad. I think, there can be still some enhancements: in LaTeX, there
 is never a page break after a section header, but with ConTeXt there is
 sometimes by surprise...
   
well, it depends, if the next structure does a vskip of some testing 
then there can be a page break

there is no robust way to prevent this in current tex, at least nog when 
some spacing mechansism are used, ok, a penalty 1 may sometimes 
help, but even then, successive skips and such may interfere

also, vskip12pt \penalty vskip12pt ma not what you want (i.e. collapsing 
becomes tricky)

context sectioning has some prevent-break stuff

you can add a penalty 1 if you know what you're dealing with

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-22 Thread Jelle Huisman
 I'm afraid there still seems to be a problem with the XeTeX
 engine ... try to compile the following (I guess you can choose
 whichever OpenType font you have on your machine):

[snip]

 The same file used to compile with the January release of ConTeXt
 (2007.01.12) ... perhaps something has changed in the way how one has
 to specify the desired OpenType font?

Same problem and same question here. Remaking format files doesn't  
solve the problem. :-(

Jelle

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


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-22 Thread Hans Hagen
Oliver Buerschaper wrote:
 Hi all,

 I'm afraid there still seems to be a problem with the XeTeX  
 engine ... try to compile the following (I guess you can choose  
 whichever OpenType font you have on your machine):

 ---

 \definetypeface[Caslon][rm][Xserif][Adobe Caslon Pro]
 \setupbodyfont[Caslon,12pt]

 \starttext
 \input tufte
 \stoptext

 ---

 My machine spills out the following messages:
   
hm, hard to test here, how is Xserif and Adobe Caslon Pro Defined ... it looks 
like no filename comes through 

(maybe this weekend i can sit down with someone at the context conf to see what 
happens; i currently have no working mac) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] figure bases (2nd)

2007-03-22 Thread Hans Hagen
Peter Rolf wrote:
 hi,

 i'm tired of fixing \dogetfigurefilename in every new version. i have
 already shown that there is something wrong with it in my mail from
 17.01.2007

 http://archive.contextgarden.net/message/20070117.153030.344c6989.en.html

 i don't say, that i understand the complex code for figure inclusion,
 but it is obvious that the following code is at least questionable.

 (taken from x-fig-00.tex and x-res-04.tex)

 \def\dogetfigurefilename#1%
   {\ifx\figurefilename\empty
  \bgroup
  \xdef\figurefilebasepath{#1}%
  \assignfullfilename{#1}\figurefilebase\to\filename
  \expanded{\processXMLfilegrouped{\filename.xml}}%
  \ifx\figurefilename\empty\else
 % ^^
 % is already tested in the prior \ifx test; if it's not changed
 %   in the meantime...(\filename?)
   
indeed it can be changed  when filename.xml has the right info
 %
\globallet\figurefilebase\figurefilebase
 %   ^^
 %   does *nothing* (\filename works for me)
   
you mean

\globallet\figurefilebase\filename ? 


  \fi
  \egroup
\fi}

 i have worked with a patched version for the last two month and had no
 (more) problems with figure inclusion. without it the pdf figure base is
 not found, although the corresponding xml file (which is found) is in
 the same directory. any comments are welcome.

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


-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-22 Thread Oliver Buerschaper
 hm, hard to test here, how is Xserif and Adobe Caslon Pro  
 Defined ... it looks like no filename comes through

 (maybe this weekend i can sit down with someone at the context conf  
 to see what happens; i currently have no working mac)

Fine. That'll be me then ;-) I have a Mac and I'm attending the meeting.

See ya there,
Oliver
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figure bases (2nd)

2007-03-22 Thread Peter Rolf
Hans Hagen wrote:
 Peter Rolf wrote:
 hi,

 i'm tired of fixing \dogetfigurefilename in every new version. i have
 already shown that there is something wrong with it in my mail from
 17.01.2007

 http://archive.contextgarden.net/message/20070117.153030.344c6989.en.html

 i don't say, that i understand the complex code for figure inclusion,
 but it is obvious that the following code is at least questionable.

 (taken from x-fig-00.tex and x-res-04.tex)

 \def\dogetfigurefilename#1%
   {\ifx\figurefilename\empty
  \bgroup
  \xdef\figurefilebasepath{#1}%
  \assignfullfilename{#1}\figurefilebase\to\filename
  \expanded{\processXMLfilegrouped{\filename.xml}}%
  \ifx\figurefilename\empty\else
 %^^
 %is already tested in the prior \ifx test; if it's not changed
 %   in the meantime...(\filename?)
   
 indeed it can be changed  when filename.xml has the right info

this one can be ok (sorry, had no time to look into
\processXMLfilegrouped). :(

also i haven't changed this part in my patch, so ..

 %
\globallet\figurefilebase\figurefilebase
 %   ^^
 %  does *nothing* (\filename works for me)
   
 you mean
 
 \globallet\figurefilebase\filename ? 

yes

i use \setupexternalfigure to set the path to my figure bases (xml and
pdf in the same dir './flib'). with \filename it works, without it the
pdf file is not found (\traceexternalfigurestrue).

 
  \fi
  \egroup
\fi}

 i have worked with a patched version for the last two month and had no
 (more) problems with figure inclusion. without it the pdf figure base is
 not found, although the corresponding xml file (which is found) is in
 the same directory. any comments are welcome.

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

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


Re: [NTG-context] page-break after \section

2007-03-22 Thread Peter Münster
On Thu, 22 Mar 2007, Hans Hagen wrote:

 well, it depends, if the next structure does a vskip of some testing 
 then there can be a page break
 
 there is no robust way to prevent this in current tex, at least nog when 
 some spacing mechansism are used, ok, a penalty 1 may sometimes 
 help, but even then, successive skips and such may interfere

Thanks for your explanation!
Do you know, how the LaTeX people solved this problem? I've never had such
surprises with LaTeX.

 you can add a penalty 1 if you know what you're dealing with

Ok, I'll try it.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] page-break after \section

2007-03-22 Thread Hans Hagen
� wrote:
 On Thu, 22 Mar 2007, Hans Hagen wrote:

   
 well, it depends, if the next structure does a vskip of some testing 
 then there can be a page break

 there is no robust way to prevent this in current tex, at least nog when 
 some spacing mechansism are used, ok, a penalty 1 may sometimes 
 help, but even then, successive skips and such may interfere
 

 Thanks for your explanation!
 Do you know, how the LaTeX people solved this problem? I've never had such
 surprises with LaTeX.
   
i dunno, but i remember problems with splits between chapter, section and 
subsection heads and context prohibits that; *any* tex where some construct 
introduces whitespace has this problem but i can imagine some tricky stuff with 
the otr involved (and even then there may be interference with preceding 
material); i do (did) observe that latex has a different spacing model (and 
interfering penalties may be a reason why sometimes spacing gets messed up); 

i will implement a second spacing model once luatex is available 

in tex, when one has a controlled situation, solutions are possible but context 
is rather configurable

\setuphead[section][after=\blank\pelanty1\relax] may help but also mess up 
spacing 

(esp floats are hard to interface with such things because they also look at 
the available space and currently don't look back; keep in mind that when 
looking back the content is already put in the mlv and ther ei sno knowledg 
ewhat is preceding the current structure 



Hans 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] page-break after \section

2007-03-22 Thread Taco Hoekwater
Hans Hagen wrote:
 
 Thanks for your explanation! Do you know, how the LaTeX people
 solved this problem? I've never had such surprises with LaTeX.
 
 ...
 interference with preceding material); i do (did) observe that latex
 has a different spacing model (and interfering penalties may be a
 reason why sometimes spacing gets messed up);

LaTeX is pretty good in keeping section heads together with
the following material, but the tradeoff is that sometimes it
inserts massive amounts of whitespace on a page, because a section
head and a subsection head and the following first two paragraph
lines all appear after an automatically inserted pagebreak.

IIRC, it also makes float placements harder to predict.

Best wishes,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt release 2007.03.19

2007-03-22 Thread Mojca Miklavec
On 3/22/07, Hans Hagen wrote:
 Oliver Buerschaper wrote:
  Hi all,
 
  I'm afraid there still seems to be a problem with the XeTeX
  engine ... try to compile the following (I guess you can choose
  whichever OpenType font you have on your machine):
 
  ---
 
  \definetypeface[Caslon][rm][Xserif][Adobe Caslon Pro]
  \setupbodyfont[Caslon,12pt]
 
  \starttext
  \input tufte
  \stoptext
 
  ---
 
  My machine spills out the following messages:
 
 hm, hard to test here, how is Xserif and Adobe Caslon Pro Defined ... it 
 looks like no filename comes through

The problem lies here:

\definefontsynonym[Dummy]  ['\typescripttwo:mapping=tex-text']
  [encoding=uc]
\definefontsynonym[DummyItalic]
['\typescripttwo/I:mapping=tex-text'] [encoding=uc]
\definefontsynonym[DummyBold]
['\typescripttwo/B:mapping=tex-text'] [encoding=uc]
\definefontsynonym[DummyBoldItalic]['\typescripttwo/BI:mapping=tex-text'][encoding=uc]

Some definitions have indeed been changed, but no keyword equivalent
for mapping has been introduced yet. (Adding file:, name:, ... broke
that functionality ...)

There is a workaround (quick fix) for this (at least it seems to work
here), but this is not a nice solution. You can add the following
definitions at the beginning of the document (or fix the corresponding
places; also for sans ad mono):

\starttypescriptcollection[xetex]

\starttypescript[Xserif][all][name]
\definefontsynonym[Dummy]  [name:\typescripttwo][encoding=uc]
\definefontsynonym[DummyItalic][name:\typescripttwo/I]  [encoding=uc]
\definefontsynonym[DummyBold]  [name:\typescripttwo/B]  [encoding=uc]
\definefontsynonym[DummyBoldItalic][name:\typescripttwo/BI] [encoding=uc]
\stoptypescript

\stoptypescriptcollection

\def\fontfilename#1{#1:mapping=tex-text}


But there is a meeting today anyway ...

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