[NTG-context] Re: Current text width?

2005-03-08 Thread Duncan Hothersall
I said:
So - is there a parameter which represents the current width of the 
layout area, taking into account itemisations, textbackgrounds and 
anything else? Thanks.
I came up with a rather ugly kludge which solves my immediate problem 
but might not be best. I created a new dimen, \RealWidth, and before 
each table I set it to the value of \textwidth minus leftskip minus 
rightskip. In other words, I did this:

--
\newdimen\RealWidth
\definetextbackground[TestBackground]
 [leftoffset=1em,rightoffset=1em,topoffset=8pt,
bottomoffset=8pt,frame=on,location=paragraph]
\starttext
\starttextbackground[TestBackground]
Some text first, which behaves perfectly, and then a table:
\leavevmode\RealWidth=\textwidth\advance\RealWidth 
by-\leftskip\advance\RealWidth by-\rightskip\bTABLE
\setupTABLE[column][1][width=0.3\RealWidth]
\setupTABLE[column][2][width=0.7\RealWidth]
\bTR\bTD I was hoping\eTD
\bTD that this table would make itself narrower according to the
background offsets, like the text does. And now it does!\eTD\eTR
\eTABLE}
\stoptextbackground
\stoptext
--

This produces what I want as far as I have tested it. I'm not sure it's 
the best or most comprehensive solution though.

Duncan
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Extending into the margin

2005-03-08 Thread Duncan Hothersall
I asked about a mechanism to allow tables to extend into the outer
margin, in a double-sided layout. Hans said:
see the manual details.pdf
Thanks - I think I now almost understand how I would do this for 
*floats*, but... my question was (perhaps) simpler - I'm just talking 
about fixed blocks of text in the main flow. In fact, things that must 
not float from where they are called. I can't see how to apply 
details.pdf to something that isn't a float, and it strikes me that the 
answer might be simpler?

So is there any way of saying:
--
Right hand page
--
Some running text at
normal width.
A wider block of text which runs into
the outer margin(in other words,
extends right on right-hand pages and
left on left hand ones).
Back to running text
at normal width.
--
--
Left hand page
--
 Some running text at
 normal width.
A wider block of text which runs into
the outer margin(in other words,
extends right on right-hand pages and
left on left hand ones).
 Back to running text
 at normal width.
--
Thanks again for any pointers. Will put the solution on the wiki once found!
Duncan
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XeConTeXt set up issue

2005-03-08 Thread Mark Smith

Apart from my reference numbering problem with the bib module, 
everything was working OK. So, I decided it was time to have a go with 
XeConTeXt.

I was following Adam's instructions here:

http://contextgarden.net/XeTeX


Checked:

/usr/local/teTeX/share/texmf.local/context/config:texexec.ini

for:

for tetex  set  TeXPassString  to -progname=context
for tetex  set  TeXVirginFlag  to -ini

OK. Just to be safe ran:

texexec --verbose
texexec --make
texhash


No problems so far. Then:


sudo texexec --make --xtx en

gave:

TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005


TeX hash binary : mktexlsr
comment : hashing may take a while ...
mktexlsr: Updating /usr/local/teTeX/share/texmf.local/ls-R... 
mktexlsr: Updating /usr/local/teTeX/share/texmf.gwtex/ls-R... 
mktexlsr: Updating /usr/local/teTeX/share/texmf.tetex/ls-R... 
mktexlsr: Updating /usr/local/teTeX/share/texmf/ls-R... 
mktexlsr: Updating /var/tmp/texfonts/ls-R... 
mktexlsr: Done.
This is XeTeX, Version 3.141592-2.2-0.91 (Web2C 7.5.3) (INITEX)
(WARNING: translate-file natural.tcx ignored)
entering extended mode
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-en.tex
(/usr/local/teTeX/share/texmf.local/tex/context/base/context.tex
(/usr/local/teTeX/share/texmf.local/tex/context/base/syst-pln.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/syst-prm.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/syst-etx.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/syst-omg.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/syst-xtx.tex
! I can't find file `xplain.tex'.
l.21 \input xplain.tex
  
Please type another input file name:


xplain.tex is indeed nowhere to be found

I reinstalled TeX then XeTeX and then ConTeXt from Gerben's and Jonathan's 
i-Packages choosing 2004 Stable for TeX and beta for ConTeXt.

Went through the same procedure. Same result.

How to proceed ?


[Just to test, I then ran:

texexec --xtx mySampleFile.tex

and got:

TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005

executable : xetex
format : cont-en
inputfile : /Users/Mark/mySampleFile
output : xetex
interface : en
current mode : none
TeX run : 1

This is XeTeX, Version 3.141592-2.2-0.91 (Web2C 7.5.3)
 (WARNING: translate-file natural.tcx ignored)
---! cont-en.fmt was written by pdfetex
(Fatal format file error; I'm stymied)

which probably corresponds to the fact that cont-en.xfmt was not generated in:

/usr/local/teTeX/share/texmf.local/web2c/

I suppose ? because the texexec --make --xtx en couldn't complete ?]

Any ideas ? (As I say, everything else seems to be working ('part from that bib 
module problem I mentioned in a separate post)

wtia,

mark.





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


Re: [NTG-context] XeConTeXt set up issue

2005-03-08 Thread Adam Lindsay
Mark Smith said this at Tue, 8 Mar 2005 16:11:17 +0100:

xplain.tex is indeed nowhere to be found

I reinstalled TeX then XeTeX and then ConTeXt from Gerben's and
Jonathan's i-Packages choosing 2004 Stable for TeX and beta for ConTeXt.

Went through the same procedure. Same result.

How to proceed ?

discussed on XeTeX list:
http://tug.org/pipermail/xetex/2005-March/001838.html

xplain.tex has been replaced. Hans offers a new syst-xtx.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: [NTG-context] XeConTeXt set up issue

2005-03-08 Thread Otared Kavian
At 16:11 +0100 8/03/05, Mark Smith wrote:
Apart from my reference numbering problem with the bib 
module, everything was working OK. So, I decided it was time to have 
a go with XeConTeXt.

I was following Adam's instructions here:
http://contextgarden.net/XeTeX
Hi,
Actually you don't need anymore to edit the file as stated in 
contextgarden (as far as I understood, Dalyoung on the XeTeX list is 
going to put the appropriate procedure on the wiki there).

This is how I did for the update of XeConTeXt:
1) replaced the file syst-xtx.tex in
/usr/local/teTeX/share/texmf.tetex/tex/context/base/
by a new one sent by Hans which contains the lines below this message
2) on a CLI terminal issued the command
sudo texexec --xtx --make --alone en
and obtained the format cont-en.fmt, created in the directory where 
the abvoe command was issued. This is actually an XeConTeXt format 
and can be used as
before, for instance by saying

texexec --xtx my-file.tex
in the directory where both the file my-file.tex and the new 
cont-en.fmt just created are present. And everything works fine...

Best regards: OK
%%% the file syst-xtx.tex sent by Hans
%D \module
%D   [   file=syst-xtx,
%Dversion=2004.09.11,
%D  title=\CONTEXT\ System Macros,
%D   subtitle=\XETEX\ specifics,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA / Hans Hagen \ Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\ifx\XeTeXversion\undefined \endinput \fi
\unprotect
%D For the moment, the only thing needed is to load are the
%D mappings from lower to uppercase characters.
\ifx\scratchread\undefined \newread\scratchread \fi
\immediate\openin\scratchread=unicode-letters.tex \ifeof\scratchread
  \immediate\openin\scratchread=xplain.tex \ifeof\scratchread
% no initialization file
  \else
\input xplain.tex
  \fi
\else
  \input unicode-letters.tex
\fi
\protect \endinput
%%% end of the file syst-xtx.tex
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeConTeXt set up issue

2005-03-08 Thread Mark Smith
Otared Kavian wrote:

Hi,

Actually you don't need anymore to edit the file as stated in 
contextgarden (as far as I understood, Dalyoung on the XeTeX list is 
going to put the appropriate procedure on the wiki there).

This is how I did for the update of XeConTeXt...

[...]

and Adam Lindsay wrote:

discussed on XeTeX list:
http://tug.org/pipermail/xetex/2005-March/001838.html

xplain.tex has been replaced. Hans offers a new syst-xtx.

Thanks guys,

that did the trick.

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


[NTG-context] special character | how to encode?

2005-03-08 Thread Paul Tremblay
How does one use | in ConTeXt? I've searched the manual and the web (and
come up with nothing because context is a regular English word), but
could not find anything.

Thanks

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


[NTG-context] Re: TeX run : 8

2005-03-08 Thread Patrick Gundlach

Hello Peter,

 for those, who don't want to update:
 export PERL_HASH_SEED=0
 in $HOME/.profile works very nicely.

is this reliable?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Language issues

2005-03-08 Thread Patrick Gundlach
Hello Mats,

 When setting a language (in this case Swedish) for a document, is there
 something else one is supposed to do than putting \language[sv] on a
 single line somewhere before \starttext?

is this the same on live.contextgarden.net?

Patrick

-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] special character | how to encode?

2005-03-08 Thread VnPenguin
On Tue, 8 Mar 2005 13:00:44 -0500, Paul Tremblay [EMAIL PROTECTED] wrote:
 How does one use | in ConTeXt? I've searched the manual and the web (and
 come up with nothing because context is a regular English word), but
 could not find anything.

Maybe \type{|} ?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] special character | how to encode?

2005-03-08 Thread Thomas A . Schmitz
If your font and encoding is set up correctly, you can use \textbar.
Thomas
On Mar 8, 2005, at 7:00 PM, Paul Tremblay wrote:
How does one use | in ConTeXt? I've searched the manual and the web 
(and
come up with nothing because context is a regular English word), but
could not find anything.

Thanks
Paul
--

*Paul Tremblay *
[EMAIL PROTECTED]*

___
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


[NTG-context] indenting list items.

2005-03-08 Thread John R. Culleton
I have a multilevel set of itemized lists but I want to reduce 
the indentation because it takes up too much room. In other words 
instead of 
1. foo
a. fubar
* bar
 I want spacing like
 1. foo
  a. fubar
   * bar

So I put this at the head of my document:

\setupitemize[packed,serried,atmargin][indentnext=no,align=left]

Since I don't know which parameter affects which dimension, I
used them all. None of them seem to do what I am looking for. The
space between items disappeared but that was the only change. 

Second question: The definition of \setupitemize seems to use
three sets of square brackets but \startitemize seems to only use 
two. So, at the \startitemize level, which paramaters go in which
set of braces? 

I have scanned looking for earlier posts but none seem to address
these two problems.

-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com

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


Re: [NTG-context] special character | how to encode?

2005-03-08 Thread Paul Tremblay
On Tue, Mar 08, 2005 at 07:45:48PM +0100, Thomas A. Schmitz wrote:
 If your font and encoding is set up correctly, you can use \textbar.
 
 Thomas

I have:

\enableregime[utf]

At the top of my documents, so this command does not work. \type{|} does
work, and I guess this is what I need.

Thanks!

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


[NTG-context] pdf bookmarks

2005-03-08 Thread David Waller
Hello,

I am trying to produce bookmarks in the PDF file produced with context. 

 I can produce bookmarks but I am unable to get any hierarchy of bookmarks
such that chapters can just be displayed initially and then the
sections open up.

 I am able to do this in latex, with hyperref, and am looking for a
list of commands, or guidance, which would allow me to do the same in
context.

Thanks

 

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


Re: [NTG-context] pdf bookmarks

2005-03-08 Thread VnPenguin
On Tue, 8 Mar 2005 20:56:06 +, David Waller [EMAIL PROTECTED] wrote:
 Hello,
 
 I am trying to produce bookmarks in the PDF file produced with context.
 
  I can produce bookmarks but I am unable to get any hierarchy of bookmarks
 such that chapters can just be displayed initially and then the
 sections open up.

With 

\placebookmarks[chapter,section,subsection]

I got a perfect bookmark :)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: TeX run : 8

2005-03-08 Thread Peter Münster
On Tue, 8 Mar 2005, Patrick Gundlach wrote:

  for those, who don't want to update:
  export PERL_HASH_SEED=0
  in $HOME/.profile works very nicely.
 
 is this reliable?

It seems to me. At least on Linux: since a long time I've been used to get
always 8 runs with my procuct-files, and now I get only 1 or 2 runs.

Cheers, Peter

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


[NTG-context] [force, here] floats and its bad placement -- LONG mail

2005-03-08 Thread Martin Kolařík
Hi Hans (and all),

I have difficulties with [force,here] floats. Even if such floats are something 
a bit degraded, they occured in publication text and they should be handled 
correctly.

I am sorry I do not send a minimal example, but the minimal example from me 
would be XML + XML mapping + some included tex files and styles; and these 
together are really not minimal example... I hope I succeed with text 
description :-)

The description:

-- subject disallows page breaks after self and recommends page break before 
self (\goodbreak),

-- the first page fills up with title, subject A + paragraphs, second subject B 
+ [force]-float,

-- which produces three pages: the *first* correctly ended (before subject B); 
the *second* with subject B only and the *third* with the [force]-float and the 
rest of the text.

This is bad, as the [force]-float should be placed immediately after subject B 
onto the same (second) page.

The tracing pages reports for this case, the ### lines are my comments:

...
% t=378.42076 plus 53.50006 minus 13.50006 g=526.37599 b=2111 p=0 c=2111#
% t=389.22081 plus 53.50006 minus 13.50006 g=526.37599 b=1681 p=0 c=1681#
% t=400.02086 plus 53.50006 minus 13.50006 g=526.37599 b=1314 p=0 c=1314#
% t=410.8209 plus 53.50006 minus 13.50006 g=526.37599 b=1005 p=2000 c=3005
% t=421.62096 plus 53.50006 minus 13.50006 g=526.37599 b=748 p=-500 c=248#
subject : - Ozna?en a vznam svorek

 here the [force] float starts, it is a table, so ModulePins is used more 
times

figures : dimensions of img/ModulePins.pdf loaded from figurefile itself
figures : figureobject ModulePins.pdf is reused
figures : figureobject ModulePins.pdf is reused
floatblocks : order disturbed
% t=897.74492 plus 56.20007 minus 16.20007 g=526.37599 b=* p=-500 c=*

 now the first page is too high -- and it will be break in c=248 (which is
 \goodbreak before subject

interaction : pdftex code inserted
[1.1{d:/TeXLocal/Private/fonts/map/pdftex/updmap/pdftex.map}{d:/TeXLocal/Privat
e/fonts/map/private.map}{d:/TeXLocal/Private/fonts/map/adobe.map}{d:/TeXLocal/P
rivate/fonts/map/stormtype.map}{d:/TeXLocal/Private/fonts/map/microsoft.map}{d:
/TeXLocal/Private/fonts/map/suitcase.map}]
%% goal height=526.37599, max depth=3.19995
% t=465.13591 plus 40.0 g=526.37599 b=357 p=-500 c=-143#

 the page 1 is flushed, 465 pts rests, this is subject B + [force]-float.
 But \OTRONEdocheckiffloatfits finds the float cannot be placed and, 
moreover,
 it prepares \goodbreak before it.

floatblocks : order disturbed
floatblocks : 3 saved
% t=465.13591 plus 40.0 g=526.37599 b=357 p=-500 c=-143#
% t=465.13591 plus 40.0 g=526.37599 b=357 p=0 c=357
subject : - Parametry modulu
% t=505.02203 plus 44.05002 minus 4.05002 g=526.37599 b=11 p=0 c=11
% t=530.67215 plus 45.40002 minus 5.40002 g=526.37599 b=50 p=0 c=50
% t=545.5 plus 46.75003 minus 6.75003 g=526.37599 b=* p=0 c=*
[2.2]

 This goodbreak leads to break candidate with cost=-143 and
 HERE the second page is broken. And the float is saved and placed
 now onto the third page.

floatblocks : 3 moved
%% goal height=526.37599, max depth=3.19995
% t=0.0 g=359.6518 b=1 p=0 c=10#
% t=30.78607 plus 41.35 minus 1.35 g=359.6518 b=1 p=0 c=10# 
...

By tweaking into \OTRONEdocheckiffloatfits, I found there is the line:

% new per 31/5/2004, should be an option, only one column mode

which creates \goodbreak. But I seems to me this \goodbreak should be generated
only if there is a room for the float? It the room is not here -- which leads
to float save -- the break causes unexpected page breaks.

For second -- it seems to me the checking of room for float in described case
counts the float size twice -- the float is counted inside
\pagetotal of page material pending from the overfilled page 1 and
for second its dimension is counted again with second call.

For third -- the described behaviour saves float even if it can be correctly
placed in currently filled page, so the float is pulled up from [force,here]
positioning and it starts flow -- but this is not proper behaviour for such
float.

As a result, IMHO (which can be completly bad, I really do not known all the
consequencies and mechanisms of ConTeXt) it should be corrected using following
way:

1. \OTRONEdocheckiffloatfits (and maybe another OTR routines) should respect the
float is [force,here]. For such floats the routine *always* should set
\roomforfloattrue and *not to* generate \goodbreak, as [force,here] floats 
should
be left to be placed by normal page builder TeX mechanism.

2. \goodbreak in % new per 31/5... block should be generated only if the float
is placed -- if it is saved, the break corresponding to the float should not 
appear
without the float.

3. maybe implement the option for \goodbreak :-) But there I cannot say more,
because I do not know the primary motivation. 

I experimented with \OTRONEdocheckiffloatfits in desribed 

[NTG-context] Re: ConTeXt to HTML ?

2005-03-08 Thread Patrick Gundlach
Hello Q.

did you try out Eitan Gurari's tex4ht?
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context