Re: [NTG-context] Fonts: Minimals v. Texlive 2007

2008-09-26 Thread Taco Hoekwater


Erich R Fickel wrote:
 Thanks to everyone who helped me get the minimals installed.
 
 I am having a little trouble. At my home computer, I have the Context 
 installation for Ubuntu 7.04 from the sanjoy tex-live backports. At work 
 I now have the minimals, --context=current, not beta. I expected that 
 the output of these two systems would be nearly identical. They are not.
 
 I do not use any special font handling. I let Context handle it all. I 
 use whatever the default fonts are, and use \setupbodyfont only to set 
 fontsize. The same source run on both machines produces slightly 
 different margins and slightly different font sizes. The minimals are 
 smaller (shorter) for the same font size (11 pt). I really would like to 
 get the same output for both systems.
 
 Can anyone help with this?

Is it a letter vs A4 thing perhaps?

Best wishes,
Taco


___
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] French punctuation : tests

2008-09-26 Thread Olivier Guéry
2008/9/25 Wolfgang Schuster [EMAIL PROTECTED]


 Am 25.09.2008 um 21:40 schrieb Olivier Guéry:

  Hello,
 
  It seem's that there's some changes on the « frenchpunctuation front »
  ! Thank's.
 
  I modified my test file and ad more precise rules to the wiki :
  http://wiki.contextgarden.net/frenchpunctuation
  I test it with luatex 0.29 and context 2008.09.21
 
  * Strange bug : the space After the openning quote («) is twice bigger
  than the one before the closing one (»). Look at test 3
  * Wolfgang change the wiki about the compose word, but using this
  (with the syntax compose||word) I get an endash (–) and not the normal
  sign (-). Test 5
  * There should't  be space between two sign. Test 2
  * The space before the footnote sign is too big (it's clearer with
  othe fonts). Test 4


 Point 3:

 \definehspace[fr][quote][\zeropoint]

 \installlanguage
   [fr]
   [leftquote=\upperleftdoublesixquote,
rightquote=\upperrightdoubleninequote,
leftquotation=\leftguillemot,
rightquotation=\rightguillemot]

 Point 4:

 \definehspace[fr][footnote][.1667\emspaceamount]

 \definehspace[footnote][\hspaceamount\currentlanguage{footnote}]

 \setupfootnotes[textcommand={\hspace[footnote]\nobreak\high}]


Wolfgang is definitly the super hero of this list \o/.

Hans, is there a « legal » procedure to have this inclued by default in the
\frenchpunctuation command ?

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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] index in swedish doc (mkiv)

2008-09-26 Thread Mikael Persson
Hi all,
I want to have an index in a swedish document, but when I add it I get
unknown instead of the letter heads. Minimal file:


\mainlanguage[sv]
\starttext
Test\index{test}
\placeindex
\stoptext


Just uncomment the \mainlanguage[sv] and you will get a t instead of
unknown as expected.

If there is something that has to be added when it comes to swedish
indices I am willing to do that.

By the way, this problem does only appear in mkiv, in mkii it works as
it should.

Best regards, Mikael Persson
___
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] French punctuation : tests

2008-09-26 Thread Olivier Guéry
Ok, aftre some test…

It seem's that it's linked to the fonts… damn !
The value in « \definehspace[fr][footnote][-.2667\emspaceamount] » need to
be negative, as I set it (work with my fontin_sans font, too big for lmodern
font).
Then I found two problems :
— the space after is way too big :o)
— how can I set other values of the \setupfootnotes ? I tried this :
\setupfootnotes[textcommand={\hspace[footnote]\nobreak\high},
bodyfont=\tfxx, width=70mm]

But I get an error.
Here is a minimal test about footnotes.

%
\mainlanguage [fr]
\language [fr]
\usemodule [french]
\setcharacterspacing [frenchpunctuation]

\starttext

\definehspace[fr][footnote][.1667\emspaceamount]
\definehspace[footnote][\hspaceamount\currentlanguage{footnote}]
\setupfootnotes[textcommand={\hspace[footnote]\nobreak\high}]

This texte, with a footnote\footnote{there's a point just after}.

\definehspace[fr][footnote][-.05\emspaceamount]
\definehspace[footnote][\hspaceamount\currentlanguage{footnote}]
\setupfootnotes[textcommand={\hspace[footnote]\nobreak\high}]

Same thing, with a negative value\footnote{look at the space after…}.

\stoptext
%

Cheers,
Olivier.

PS : Context version : 2008.09.21 22:31, luatex 0.29.0 beta.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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] Formatting TOC

2008-09-26 Thread Diego Depaoli
Hi all,
what is the magic option in \setuplist to put a word before the
chapter's number like
Chapter 1 First chapter
instead of
1 First chapter
?

Many thanks
-- 
Diego Depaoli
___
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] switching (named) layouts?

2008-09-26 Thread Jelle Huisman
Hi,

Is it possible to give a layout definition a name? It would be really 
helpful to be able to say \definelayout[name=one][...]
\definelayout[name=two][...]
and then to be able to say: \setuplayout[one] and somewhere else in the 
document \setuplayout[two]
(This would mirror the way it is possible to switch papersizes.)

Or is there another way to have different collections of \definelayout 
settings that can be switched on or off at specific places? What is the 
best approach?

Thanks,

Jelle
___
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] Formatting TOC

2008-09-26 Thread Mikael Persson
Dear Diego,

Try

\def\chaplistcom#1{Chapter~#1}
\setuplist[chapter][
 numbercommand=\chaplistcom,
]

Best regards, Mikael


On Fri, Sep 26, 2008 at 1:14 PM, Diego Depaoli [EMAIL PROTECTED] wrote:
 Hi all,
 what is the magic option in \setuplist to put a word before the
 chapter's number like
 Chapter 1 First chapter
 instead of
 1 First chapter
 ?

 Many thanks
 --
 Diego Depaoli
 ___
 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] switching (named) layouts?

2008-09-26 Thread Wolfgang Schuster

Am 26.09.2008 um 13:15 schrieb Jelle Huisman:

 Hi,

 Is it possible to give a layout definition a name? It would be really
 helpful to be able to say \definelayout[name=one][...]
 \definelayout[name=two][...]
 and then to be able to say: \setuplayout[one] and somewhere else in  
 the
 document \setuplayout[two]
 (This would mirror the way it is possible to switch papersizes.)

\definelayout[one][..,..=..,..]
\definelayout[two][..,..=..,..]


\starttext

text

\page

\setuplayout[one]

text

\page

\setuplayout[two]

text

\page

\setuplayout[reset]

text

\stoptext

 Or is there another way to have different collections of \definelayout
 settings that can be switched on or off at specific places? What is  
 the
 best approach?


Regards,
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] switching (named) layouts?

2008-09-26 Thread Hans Hagen
Jelle Huisman wrote:
 Hi,
 
 Is it possible to give a layout definition a name? It would be really 
 helpful to be able to say \definelayout[name=one][...]
 \definelayout[name=two][...]
 and then to be able to say: \setuplayout[one] and somewhere else in the 
 document \setuplayout[two]
 (This would mirror the way it is possible to switch papersizes.)
 
 Or is there another way to have different collections of \definelayout 
 settings that can be switched on or off at specific places? What is the 
 best approach?

\setuplayout[key-values] % defines global one

\setuplayout[somename][key-values] % defines named one

\setuplayout[somename] % triggers

\setuplayout[reset] % resets to the global one

\setuplayout % idem



-
   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] Formatting TOC

2008-09-26 Thread Diego Depaoli
2008/9/26 Mikael Persson [EMAIL PROTECTED]:
 Dear Diego,

 Try

 \def\chaplistcom#1{Chapter~#1}
 \setuplist[chapter][
 numbercommand=\chaplistcom,
 ]
It works, many thanks.
Why this simple option it isn't 'hardcoded'?

-- 
Diego Depaoli
___
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] switching (named) layouts?

2008-09-26 Thread Jelle Huisman
Hans Hagen wrote:
 \setuplayout[key-values] % defines global one

 \setuplayout[somename][key-values] % defines named one
Thanks Hans,

Does this mean that \definelayout is not needed?

Jelle

___
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] Can we make font loading much faster?

2008-09-26 Thread Yue Wang
Hi:

 lua garbage collection on xp is somehow quite slow, when i switched to
 vista, the luatex test files (mk) that took forever on xp, ran smoothly
 on vista
OK. Today I got a copy of windows vista, so I installed it on the same
machine, and test the same tex file.

\usetypescript[myfont]
\setupbodyfont[myfont,rm,12pt]
\starttext
汉语 {\bf 汉语} {\tt 汉语}
\stoptext



mkiv lua stats : used config path  - C:/context/tex/texmf/web2c/texmf.cn
f
mkiv lua stats : used cache path   - C:/context/tex/texmf-cache
mkiv lua stats : modules/dumps/instances   - 90/24/1
mkiv lua stats : input load time   - 0.062 seconds
mkiv lua stats : fonts load time   - 5.632 seconds
mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cach
ed calls: 0
mkiv lua stats : lxml load time- 0.000 seconds preparation, backrefe
rences: 0
mkiv lua stats : mps conversion time   - 0.000 seconds
mkiv lua stats : node processing time  - 0.000 seconds including kernel
mkiv lua stats : kernel processing time- 0.000 seconds
mkiv lua stats : attribute processing time - 0.000 seconds
mkiv lua stats : language load time- 0.031 seconds, n=2
mkiv lua stats : graphics processing time  - 0.000 seconds including tex, n=0
mkiv lua stats : metapost processing time  - 0.000 seconds, loading: 0.000 secon
ds, execution: 0.000 seconds, n: 0
mkiv lua stats : current memory usage  - 499448604 bytes
mkiv lua stats : cleaned up reserved nodes - 19 nodes, 8 lists of 100
mkiv lua stats : node memory usage - 20 glue_spec, 2 dir
mkiv lua stats : loaded patterns   - us:us:pat:exc:2
mkiv lua stats : loaded fonts  - AdobeHeitiStd-Regular*features=zh,f
allbacks=serifbolditalicwhatever:otf AdobeHeitiStd-Regular*features=zh,fallbacks
=serifboldwhatever:otf AdobeKaitiStd-Regular*features=zh,fallbacks=monowhatever:
otf AdobeKaitiStd-Regular*features=zh,fallbacks=serifitalicwhatever:otf AdobeSon
gStd-Light*features=zh,fallbacks=serifwhatever:otf file:lmroman10-bolditalic*fea
tures=default,:otf file:lmroman10-italic*features=default,:otf file:lmroman12-bo
ld*features=default,:otf file:lmroman12-italic*features=default,:otf file:lmroma
n12-regular*features=default,:otf file:lmroman7-bold*features=default,:otf file:
lmroman7-regular*features=default,:otf file:lmroman9-bold*features=default,:otf
file:lmroman9-italic*features=default,:otf file:lmroman9-regular*features=defaul
t,:otf file:lmromancaps10-regular*features=default,:otf file:lmromanslant10-bold
*features=default,:otf file:lmromanslant10-regular*features=default,:otf file:lm
romanslant12-regular*features=default,:otf file:lmromanslant9-regular*features=d
efault,:otf lmex10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmmono10-regular:otf lmrom
an10-bold:otf lmroman10-bolditalic:otf lmroman10-italic:otf lmroman10-regular:ot
f lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm msbm10:tfm msbm7:tfm rm-lm
r12:tfm rm-lmr7:tfm rm-lmr9:tfm
mkiv lua stats : runtime   - 59.904 seconds, 1 processed pages,
1 shipped pages, 0.017 pages/second

MtxRun | total runtime: 67.548

well, a bit faster than XP.

Yue Wang
___
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] figure placement

2008-09-26 Thread Jelle Huisman
Hi again,

I try to get a picture on a page using 
\externalfigure[name.pdf][width=\textwidth] The image is pushed to the 
next page, even though there is no text on the current page and the 
height of the image itself is smaller then \textheight, so it should 
fit. How do I force image placement *here*?

Thanks again,

Jelle
___
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] Formatting TOC

2008-09-26 Thread Hans Hagen
Diego Depaoli wrote:
 2008/9/26 Mikael Persson [EMAIL PROTECTED]:
 Dear Diego,

 Try

 \def\chaplistcom#1{Chapter~#1}
 \setuplist[chapter][
 numbercommand=\chaplistcom,
 ]
 It works, many thanks.
 Why this simple option it isn't 'hardcoded'?

well, because i don't like to see that label always (actually never use 
it) but you can do

\setuplabeltext [en] [chapter=Chapter~] % or any other language

and then you don't need the numbercommand trick

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] Fonts: Minimals v. Texlive 2007

2008-09-26 Thread Erich R Fickel
  Taco Hoekwater wrote:
 
 Is it a letter vs A4 thing perhaps?

No. It is not letter vs. A4. Paper sizing is setup and letter is being 
used. I tried to attach a couple of PDF samples, but the list said the 
files were too big.

Does anyone have someplace I could upload the samples for review by the 
experts. I made them on the same machine, using the same source, once 
with the texlive-2007 install and once with the minimals install.

-Erich
___
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] force figure placement on this page

2008-09-26 Thread Wolfgang Schuster

Am 26.09.2008 um 16:26 schrieb Jelle Huisman:

 [it looks like this mail didn't make it to the list, sorry if double  
 posted]

 Hi again,

 I try to get a picture on a page using
 \externalfigure[name.pdf][width=\textwidth] The image is pushed to the
 next page, even though there is no text on the current page and the
 height of the image itself is smaller then \textheight, so it should
 fit. How do I force image placement *here*?

Make a example.

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] Formatting TOC

2008-09-26 Thread Diego Depaoli
2008/9/26 Hans Hagen [EMAIL PROTECTED]:
 well, because i don't like to see that label always (actually never use
 it) but you can do
I approached TeX trying to solve this nightmare.
I write often legal documents with weird sectioning/numbering/naming.
\defineenumeration helps, but sometime it's not enough.

Regards
-- 
Diego Depaoli
___
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] Fonts: Minimals v. Texlive 2007

2008-09-26 Thread Hans Hagen
Erich R Fickel wrote:
   Taco Hoekwater wrote:
  
 Is it a letter vs A4 thing perhaps?
 
 No. It is not letter vs. A4. Paper sizing is setup and letter is being 
 used. I tried to attach a couple of PDF samples, but the list said the 
 files were too big.

can you compare the fonts being used ... metrics may be different

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] Can we make font loading much faster?

2008-09-26 Thread Hans Hagen
Yue Wang wrote:

 MtxRun | total runtime: 67.548

first run? or when the windows cache is nicely filled?

how much memory? (vista needs some 2 gig at least)

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] switching (named) layouts?

2008-09-26 Thread Hans Hagen
Jelle Huisman wrote:
 Hans Hagen wrote:
 \setuplayout[key-values] % defines global one

 \setuplayout[somename][key-values] % defines named one
 Thanks Hans,
 
 Does this mean that \definelayout is not needed?

no, i meant definelayout

-
   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] Unicode characters

2008-09-26 Thread Idris Samawi Hamid
On Fri, 26 Sep 2008 07:09:28 -0600, Alan Stone  
[EMAIL PROTECTED] wrote:

 Please explain use fallbacks.

http://archive.contextgarden.net/message/20080611.094746.07de5882.en.html

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

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

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


Re: [NTG-context] figure placement

2008-09-26 Thread Jelle Huisman

Hans Hagen wrote:
I try to get a picture on a page using 
\externalfigure[name.pdf][width=\textwidth] The image is pushed to the 
next page, even though there is no text on the current page and the 
height of the image itself is smaller then \textheight, so it should 
fit. How do I force image placement *here*?



\placefigure[force]{}{}
  


Hi Hans,

Is there a way to do this [force] with \externalfigure in a macro def like:

\def\picturefile 
#1#2#3{{\rotate[rotation=#1]{\externalfigure[#2][width=#3mm]}}}


When I try to do something with \placefigure I get a floatblocks : 
order disturbed error and no figure placed.


Thanks again,

Jelle
___
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] bug in mkiv - paragraph column in tables

2008-09-26 Thread Chen Shen
Hi all,

The following simple table doesn't work right under mkiv. The baseline
of the paragraph (2nd) column is much lower than other columns.
The same code works fine under mkii. \showstructs shows the
difference between the two, but I wasn't too sure how this should be
fixed.
Thank you.

shenchen

=

\starttext

\starttables[|lw(1cm)|lp(5cm)|lw(2cm)|]
\HL
\NC 101
\NC This is ConTeXts oldest table module. It uses the same formatting
as Tabulate (see Tables Overview).
\NC haha
\FR
\HL
\stoptables

\stoptext

=
___
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] figure placement

2008-09-26 Thread Hans Hagen
Jelle Huisman wrote:
 Hi again,
 
 I try to get a picture on a page using 
 \externalfigure[name.pdf][width=\textwidth] The image is pushed to the 
 next page, even though there is no text on the current page and the 
 height of the image itself is smaller then \textheight, so it should 
 fit. How do I force image placement *here*?

\placefigure[force]{}{}

sometimes adding always helps (here,always) or fixed

all have their pro/cons


-
   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] bug in mkiv - paragraph column in tables

2008-09-26 Thread Hans Hagen
Chen Shen wrote:
 Hi all,
 
 The following simple table doesn't work right under mkiv. The baseline
 of the paragraph (2nd) column is much lower than other columns.
 The same code works fine under mkii. \showstructs shows the
 difference between the two, but I wasn't too sure how this should be
 fixed.

do you use the latest version of luatex/mkiv?

-
   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] bug in mkiv - paragraph column in tables

2008-09-26 Thread luigi scarso
On Fri, Sep 26, 2008 at 7:17 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Chen Shen wrote:
  Hi all,
 
  The following simple table doesn't work right under mkiv. The baseline
  of the paragraph (2nd) column is much lower than other columns.
  The same code works fine under mkii. \showstructs shows the
  difference between the two, but I wasn't too sure how this should be
  fixed.

 do you use the latest version of luatex/mkiv?

hmm it looks good with
MtxRun | main context file:
/opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex
MtxRun | current version: 2008.09.24 18:41
This is LuaTeX, Version snapshot-0.28.0-2008071500

but not with
MtxRun | main context file:
/opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex
MtxRun | current version: 2008.09.24 18:41
This is LuaTeX, Version snapshot-0.29.0-2008071816


-- 
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] bug in mkiv - paragraph column in tables

2008-09-26 Thread Chen Shen
I am using :
  This is LuaTeX, Version snapshot-0.29.0-2008072211
  ConTeXt  ver: 2008.09.21 22:31 MKIV  fmt: 2008.9.22  int: english/english
  MtxRun | current version: 2008.09.21 22:31

Also tried the example on context live, with no luck.

shenchen



On Sat, Sep 27, 2008 at 1:17 AM, Hans Hagen [EMAIL PROTECTED] wrote:
 Chen Shen wrote:
 Hi all,

 The following simple table doesn't work right under mkiv. The baseline
 of the paragraph (2nd) column is much lower than other columns.
 The same code works fine under mkii. \showstructs shows the
 difference between the two, but I wasn't too sure how this should be
 fixed.

 do you use the latest version of luatex/mkiv?

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

___
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] Flaky pdf file.

2008-09-26 Thread John Culleton
Recent texlive 2008 installed on Linux Slackware 12.0 system.

I have a file that I can process via texexec and which shows up fine 
on my Acrobat Reader, kpdf or xpdf. However another person using 
(probably) Windows  keeps getting corrupt file errors when he tries 
to read it.   And when I try to run the output pdf through pdf2ps it 
blows up with this message:
-
  Warning:  An error occurred while reading an XREF table.
    The file has been damaged.  This may have been caused
    by a problem while converting or transfering the file.
    Ghostscript will attempt to recover the data.
ERROR: /undefined in /BXlevel
Operand stack:
   1   --dict:6/6(ro)(G)--   8¬­ÎµÈ¶dm
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   
2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   
false   1   %stopped_push   1   3   %oparray_pop   1   
3   %oparray_pop   1   
3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   
--nostringval--   --nostringval--   --nostringval--   
false   
1   %stopped_push   --nostringval--   %loop_continue   --nostringval--
Dictionary stack:
   --dict:1119/1686(ro)(G)--   --dict:0/20(G)--   --dict:107/200
(L)--   --dict:107/200(L)--   --dict:104/127(ro)
(G)--   --dict:241/347(ro)(G)--   --dict:18/24(L)--
Current allocation mode is local
ESP Ghostscript 815.04: Unrecoverable error, exit code 1
---
Other pdf files on my system, built on other computers etc. process 
fine through pdf2ps.  I took out all the advanced stuff, such as 
bookmarks, interaction and urls but I still get the same kind of 
error.  An old pdf version of the file, dating back to February, also 
blows up. 

The preamble to the file plus dummy text looks like this: 

\setupoutput[pdftex]
\setupindenting[none]
\setupwhitespace[medium]
\frenchspacing
\setupcolors[state=start]
\setuphead[chapter][head=nomarking,number=no]
\setuphead[section][number=no,textcommand=\bf]
\setuphead[subsection][number=no]
\setuphead[subsubsection][number=no]
%\setupinteraction[state=start,color=blue]
\setuplist[section][alternative=f,style=bold,interaction=no] 
\setuplist[subsection][alternative=f,interaction=no]
\setuplist[subsubsection][alternative=c,interaction=no] 
\starttext
foo
\stoptext
--
This blows up on pdf2ps also. 

 I just created a dummy pdftex file, compiled it, then converted it 
with pdf2ps with no problem. 

Either there is an error in my preamble or something fishy with 
Context.  Thoughts? 

-- 
John Culleton
___
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] Flaky pdf file.

2008-09-26 Thread luigi scarso
On Fri, Sep 26, 2008 at 8:00 PM, John Culleton [EMAIL PROTECTED]wrote:

 Recent texlive 2008 installed on Linux Slackware 12.0 system.

 I have a file that I can process via texexec and which shows up fine
 on my Acrobat Reader, kpdf or xpdf. However another person using
 (probably) Windows  keeps getting corrupt file errors when he tries
 to read it.   And when I try to run the output pdf through pdf2ps it
 blows up with this message:

 -
   Warning:  An error occurred while reading an XREF table.
    The file has been damaged.  This may have been caused
    by a problem while converting or transfering the file.
    Ghostscript will attempt to recover the data.
 ERROR: /undefined in /BXlevel
 Operand stack:
   1   --dict:6/6(ro)(G)--   8¬­ÎµÈ¶dm
 Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
 --nostringval--
 2   %stopped_push   --nostringval--   --nostringval--   --nostringval--
 false   1   %stopped_push   1   3   %oparray_pop   1
 3   %oparray_pop   1
 3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--
 --nostringval--   --nostringval--   --nostringval--
 false
 1   %stopped_push   --nostringval--   %loop_continue   --nostringval--
 Dictionary stack:
   --dict:1119/1686(ro)(G)--   --dict:0/20(G)--   --dict:107/200
 (L)--   --dict:107/200(L)--   --dict:104/127(ro)
 (G)--   --dict:241/347(ro)(G)--   --dict:18/24(L)--



 Current allocation mode is local
 ESP Ghostscript 815.04: Unrecoverable error, exit code 1

maybe gs is too old.
you can try with 8.61 or  8.62  or 8.63 (and cross the fingers ...)
-- 
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] bug in mkiv - paragraph column in tables

2008-09-26 Thread Wolfgang Schuster

Am 26.09.2008 um 19:43 schrieb Chen Shen:

 I am using :
  This is LuaTeX, Version snapshot-0.29.0-2008072211
  ConTeXt  ver: 2008.09.21 22:31 MKIV  fmt: 2008.9.22  int: english/ 
 english
  MtxRun | current version: 2008.09.21 22:31

 Also tried the example on context live, with no luck.

You need the svn-version.

This is LuaTeX, Version snapshot-0.29.1-2008092620, build

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] Flaky pdf file.

2008-09-26 Thread John Culleton
On Friday 26 September 2008 02:45:14 pm luigi scarso wrote:

 maybe gs is too old.
 you can try with 8.61 or  8.62  or 8.63 (and cross the fingers ...)

I downloaded ghostscript 8.63 but the pdf2ps  error persists. but the 
error goes away if I uses an earlier version of context, namely: 
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
(tetex distribution.)
Therefore the problem lies in the recent Context I have been using, 
and not in ghostscript nor in my code. 

My curremt version of Context is:
ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2008.9.25  int: 
english/english

The next previous version of Context I have also fails this test:

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2007.9.26  int: 
english/english
My test file at the moment is:

\setupoutput[pdftex]
\starttext
foo
\stoptext

I am testing on LInux Slackware 12. 
Perhaps Hans or Thanh would care to comment.


-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___
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] Context TeXLive 2008

2008-09-26 Thread Brian R. Landy
Hi, I wanted to share some observations from enabling the latest MkIV  
code (2008.09.24, compiled luatex from svn just now) to run on a new  
installation of TeXLive 2008 on 64bit Linux.  This is my first time  
trying MkIV.


First -- a comment on installing using TeXLive 2008, which hopefully  
is helpful to others.  In my installation I noticed that  
x86-64/bin/luatools was symlinked to  
texmf-dist/scripts/context/stubs/unix/luatools.  The rsync update  
process as outlined on garden does not update this file; it updates  
texmf-dist/scripts/context/lua/luatools.lua.  So this needs to be  
copied (or linked) over to make the update work.  The same issues  
exists with mtxrun.  The symptom was a broken context --make.


Now, on to my issues.  I am listing anything that used to work in my  
TeXLive 2007 installation of MkII but fails in 2008 (MkII or MkIV).   
Items 1-3 were tested on garden as well to ensure it was not an issue  
in my setup --


1. \placefloat[here]{none} fails.  \placegraphic works instead.  This  
works on MkII.  See test_placefloat.tex.


2. MkIV fails due to the \startcolor...\stopcolor sequence embedded in  
a natural table (see test_color.tex).  A working alternative is  
commented in that file.


3. MkIV will not typeset the file test.tex.  It is due to using  
{style=\switchtobodyfont[tt]} in the table setup.  Using [modern,tt]  
works fine, but this is not necessary with MkII.


4. This is a MkII issue (or maybe it is a pdftex problem?)  MkII on  
2007, texexec --dvi on 2008, and MkIV all work.  The problem is with  
pulling in an external figure like this --


\externalfigure[/tmp/testfigure]

The files /tmp/testfigure.eps and /tmp/testfigure.pdf exist.  This  
should use the full path to find the file, and will pick the eps when  
creating dvi and the pdf when creating pdf's.  As mentioned, this  
works with every combination I tested except 2008 MkII.  Some (not  
very usable for me) workarounds are --


- use the filename without the path and add the path using  
\setupexternalfigures[directory=]
- specify the .pdf extension (means I cannot typeset to dvi if I want  
to; I find this useful for previewing with xdvi's auto-reload)

- use \setupexternalfigures[directory=/] and use a relative path

5. Just a comment on performance -- I noticed that using MkIV on a  
complicated document I have took 23 minutes vs. 12 minutes with MkII.   
I didn't know if MkIV is expected to be slower/comparable/faster at  
this stage.


Anyway, I hope this is useful to other users and to the developers.

Best Regards,
Brian\starttext
\placefloat[here]{none}{test}
\stoptext
\usetypescript[modern][ec]
\setupcolors[state=start]%
\definecolor[clear][y=1,t=0,a=1]%
\setupbodyfont[modern,10pt]
\starttext%
\start%
\setupTABLE[1][1,2,3][aligncharacter=yes,alignmentcharacter={/}]%
\bTABLE%
\bTABLEbody
\bTR%
\bTD{4 \startcolor[clear] 0/8\stopcolor}\eTD%
% the below line works
%\bTD{9 \color[clear] 0/8}\eTD%
\eTR%
\bTR%
\bTD{9 1/8}\eTD%
\eTR%
\bTR%
\bTD{9 1/4}\eTD%
\eTR%
\eTABLEbody%
\eTABLE%
\stop%
\stoptext%
\setupbodyfont[7pt]%
\starttext%
\bTABLE[left=\setupinterlinespace,strut=yes,autostrut=no,frame=off,headstyle=bold,align={middle,lohi},alignmentcharacter={.},aligncharacter=yes,background=color,backgroundcolor=screen,option=stretch,aligncharacter=no,style={\switchtobodyfont[tt]},frame=off]%
\chardef\characteralignmentmode=2%
\bTABLEhead%
\bTR%
\bTH[nc=22]{\setupinterlinespace\strut}{\strut}\eTH%
\eTR%
\bTR%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{}\eTH%
\bTH[]{\setupinterlinespace\strut}{Price}\eTH%
\bTH[nc=2]{\setupinterlinespace\strut}{\Delta Price}\eTH%
\bTH[]{\setupinterlinespace\strut}{Yield}\eTH%
\bTH[nc=2]{\setupinterlinespace\strut}{\Delta Yield (bps)}\eTH%
\bTH[nc=5]{\setupinterlinespace\strut}{Historical Levels}\eTH%
\bTH[nc=3]{\setupinterlinespace\strut}{Average}\eTH%
\eTR%
\bTR%
\bTH[]{\setupinterlinespace\strut}{Term}\eTH%
\bTH[]{\setupinterlinespace\strut}{Cpn}\eTH%
\bTH[]{\setupinterlinespace\strut}{Mat}\eTH%
\bTH[]{\setupinterlinespace\strut}{Dur}\eTH%
\bTH[]{\setupinterlinespace\strut}{\$ Dur}\eTH%
\bTH[]{\setupinterlinespace\strut}{\#}\eTH%
\bTH[]{\setupinterlinespace\strut}{*}\eTH%
\bTH[]{\setupinterlinespace\strut}{Cx}\eTH%
\bTH[]{\setupinterlinespace\strut}{9/10}\eTH%
\bTH[]{\setupinterlinespace\strut}{1d}\eTH%
\bTH[]{\setupinterlinespace\strut}{5d}\eTH%
\bTH[]{\setupinterlinespace\strut}{9/10}\eTH%
\bTH[]{\setupinterlinespace\strut}{1d}\eTH%
\bTH[]{\setupinterlinespace\strut}{5d}\eTH%
\bTH[]{\setupinterlinespace\strut}{9/9}\eTH%
\bTH[]{\setupinterlinespace\strut}{9/8}\eTH%
\bTH[]{\setupinterlinespace\strut}{9/5}\eTH%
\bTH[]{\setupinterlinespace\strut}{9/4}\eTH%

Re: [NTG-context] Flaky pdf file.

2008-09-26 Thread luigi scarso
On Fri, Sep 26, 2008 at 11:29 PM, John Culleton [EMAIL PROTECTED]wrote:

 On Friday 26 September 2008 02:45:14 pm luigi scarso wrote:

  maybe gs is too old.
  you can try with 8.61 or  8.62  or 8.63 (and cross the fingers ...)

 I downloaded ghostscript 8.63 but the pdf2ps  error persists. but the
 error goes away if I uses an earlier version of context, namely:
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 (tetex distribution.)
 Therefore the problem lies in the recent Context I have been using,
 and not in ghostscript nor in my code.

Unfortunatly, I'm not sure about this.
During these years I have discover bugs in pdftex/luatex but also in
ghostoscript too;
really, it seems that I have found  another one this week in  gs 8.63, but
not in gs8.62
pdf spec. gs, luatex/context mkiv are moving target;
three year ago the situation was a bit more stable.

-- 
luigi

PS
Do you cross the fingers ?
___
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] Flaky pdf file.

2008-09-26 Thread Taco Hoekwater

Hi John,

John Culleton wrote:
 Therefore the problem lies in the recent Context I have been using, 
 and not in ghostscript nor in my code. 

I am fairly certain the bug will also go away if you start your new 
context documents with

 \pdfobjcompresslevel=0
or  
\pdfminorversion=4

as that automatically suppresses object compression, the number one
cause of ghostscript issues with newer pdf files.

Best wishes,
Taco
___
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] Context TeXLive 2008

2008-09-26 Thread Wolfgang Schuster

Am 26.09.2008 um 23:37 schrieb Brian R. Landy:

 Hi, I wanted to share some observations from enabling the latest  
 MkIV code (2008.09.24, compiled luatex from svn just now) to run on  
 a new installation of TeXLive 2008 on 64bit Linux.  This is my first  
 time trying MkIV.

 First -- a comment on installing using TeXLive 2008, which hopefully  
 is helpful to others.  In my installation I noticed that x86-64/bin/ 
 luatools was symlinked to texmf-dist/scripts/context/stubs/unix/ 
 luatools.  The rsync update process as outlined on garden does not  
 update this file; it updates texmf-dist/scripts/context/lua/ 
 luatools.lua.  So this needs to be copied (or linked) over to make  
 the update work.  The same issues exists with mtxrun.  The symptom  
 was a broken context --make.

 Now, on to my issues.  I am listing anything that used to work in my  
 TeXLive 2007 installation of MkII but fails in 2008 (MkII or MkIV).   
 Items 1-3 were tested on garden as well to ensure it was not an  
 issue in my setup --

 1. \placefloat[here]{none} fails.  \placegraphic works instead.   
 This works on MkII.  See test_placefloat.tex.

Use \placefigure, \placefigure ... the correct syntax is  
\placefloat[floattype][here|page|...]{}{}

 2. MkIV fails due to the \startcolor...\stopcolor sequence embedded  
 in a natural table (see test_color.tex).  A working alternative is  
 commented in that file.

\bTD 4 \clear 0/8 \eTD

I think Hans is faster to find the bug, here is a shorter example:

\starttext

\bTABLE[aligncharacter=yes,alignmentcharacter={/}]
\bTR
\bTD 4 \startcolor[red] 0/8 \stopcolor \eTD
\eTR
\eTABLE

\stoptext

 3. MkIV will not typeset the file test.tex.  It is due to using  
 {style=\switchtobodyfont[tt]} in the table setup.  Using [modern,tt]  
 works fine, but this is not necessary with MkII.

Use style=mono.

 4. This is a MkII issue (or maybe it is a pdftex problem?)  MkII on  
 2007, texexec --dvi on 2008, and MkIV all work.  The problem is with  
 pulling in an external figure like this --

 \externalfigure[/tmp/testfigure]

 The files /tmp/testfigure.eps and /tmp/testfigure.pdf exist.  This  
 should use the full path to find the file, and will pick the eps  
 when creating dvi and the pdf when creating pdf's.  As mentioned,  
 this works with every combination I tested except 2008 MkII.  Some  
 (not very usable for me) workarounds are --

 - use the filename without the path and add the path using  
 \setupexternalfigures[directory=]
 - specify the .pdf extension (means I cannot typeset to dvi if I  
 want to; I find this useful for previewing with xdvi's auto-reload)
 - use \setupexternalfigures[directory=/] and use a relative path

 5. Just a comment on performance -- I noticed that using MkIV on a  
 complicated document I have took 23 minutes vs. 12 minutes with  
 MkII.  I didn't know if MkIV is expected to be slower/comparable/ 
 faster at this stage.

Depends on your document, a few things are slower like font loading
but other things like MetaPost graphics are faster, it is also good to  
have
a machine with 2 GB of memory or more  .

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] Flaky pdf file.

2008-09-26 Thread luigi scarso
On Fri, Sep 26, 2008 at 11:53 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:


 Hi John,

 John Culleton wrote:
  Therefore the problem lies in the recent Context I have been using,
  and not in ghostscript nor in my code.

 I am fairly certain the bug will also go away if you start your new
 context documents with

 \pdfobjcompresslevel=0
 or
\pdfminorversion=4

\pdfminorversion=4
solve my problems with ghostscript at least from 2005;
from  8.62, gs has some problems with fonts and rotate last page 90
clockwise
or counter clockwise with some pdf .
gs 8.63 works only with
\pdfobjcompresslevel=0
(I mean, same problems of gs 8.62.)


 as that automatically suppresses object compression, the number one
 cause of ghostscript issues with newer pdf files.

Not only with pdf, even in compilation.
Starting from 8.62
I 'm not able to build libgs from source tree because there are some
binaries that do not compile.
I must compile  ghostpdl, take these intermediary binaries  (echogs, I
believe, and some others)
put them into ghostscript tree and recompile.

Funny, after all.



-- 
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] Flaky pdf file.

2008-09-26 Thread John Culleton
On Friday 26 September 2008 05:53:59 pm Taco Hoekwater wrote:
 Hi John,

 John Culleton wrote:
  Therefore the problem lies in the recent Context I have been
  using, and not in ghostscript nor in my code.

 I am fairly certain the bug will also go away if you start your new
 context documents with

  \pdfobjcompresslevel=0
 or
   \pdfminorversion=4

 as that automatically suppresses object compression, the number one
 cause of ghostscript issues with newer pdf files.

 Best wishes,

Bingo! Now I must try it with my original file and see if the other 
person I have mentioned still has trouble with reading the pdf I 
create.

Thanks as always for the education. 
-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___
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] Flaky pdf file.

2008-09-26 Thread John Culleton
On Friday 26 September 2008 07:10:17 pm John Culleton wrote:
 On Friday 26 September 2008 05:53:59 pm Taco Hoekwater wrote:
  Hi John,
 
  John Culleton wrote:
   Therefore the problem lies in the recent Context I have been
   using, and not in ghostscript nor in my code.
 
  I am fairly certain the bug will also go away if you start your
  new context documents with
 
   \pdfobjcompresslevel=0
  or
  \pdfminorversion=4

It turns out that the OP was using Acrobat 5, so it all fits together. 

Does the same command work with plain pdftex?

-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___
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
___