Re: [NTG-context] Natural tables, offsets

2008-04-11 Thread Santy, Michael

Wolfgang,

Can you use the leftoffset/rightoffset on individual table cells?

Thanks,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of Wolfgang Schuster
Sent: Fri 4/11/2008 8:13 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Natural tables, offsets
 
On Sun, Mar 30, 2008 at 3:12 AM, David [EMAIL PROTECTED] wrote:

 On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:

  On Fri, 28 Mar 2008 14:02:55 -0700
  David [EMAIL PROTECTED] wrote:
 
  Hi all
 
  I'm using the natural table environment, and would like the text in
  each cell to have some horizontal offset from the cell boundaries - but
  I don't want to change the vertical offset. Is there a way to do this?
 
  \starttext
 
  \startsetups table:margins
 
  \rightskip=1cm\relax
  \leftskip=1cm\relax
 
  \stopsetups
 
  \setupTABLE
[setups=table:margins]
 
  \bTABLE
  \bTR
  \bTD \input ward\par \eTD
  \bTD \input ward\par \eTD
  \eTR
  \bTR
  \bTD \input ward\par \eTD
  \bTD \input ward\par \eTD
  \eTR
  \eTABLE
 
  \stoptext


Hi David,

 Thank you, Wolfgang. For my purposes, this setup is perfect.

I updated my extended version of the localframed macros and they
permit you to use

\usemodule[wolf-rul]

\starttext

\setupTABLE[leftoffset=1cm,rightoffset=1cm]

\bTABLE
  \bTR
\bTD \input ward\par \eTD
\bTD \input ward\par \eTD  \eTR
  \bTR
\bTD \input ward\par \eTD
\bTD \input ward\par \eTD
  \eTR
\eTABLE

\stoptext

Greetings

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] ConTEXt - produced book

2008-04-08 Thread Santy, Michael

Very nice!  Thanks for sharing!

Cheers,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of Jörg Hagmann
Sent: Tue 4/8/2008 8:16 AM
To: ntg-context@ntg.nl
Subject: [NTG-context] ConTEXt - produced book
 
Dear list members,

My biochemistry textbook has been published by orell füssli as an UTB 
book. I would like to thank all the members of this list, and Hans in 
particular, for their help (acknowledgements in the Thank you section 
of the book as well).

You'll find a few sample pages under:
www.ogbasel.ch/context.html (2.5MB)

Page and margin sizes prescribed by the publisher. The pages illustrate:

p. 7: The use of inmargin text.
p. 79: a vignette, in the margin and partially in the text area.
p. 110: The height of some margin figures  was  large, necessitating 
manual adjustments.
p. 145: A framed box and a wide table. The large number of enumerations, 
figures, frames etc. made some  typographical sins inevitable (e.g. last 
line on this page).
p. 155: textbody and margin completely filled
p. 190: I include this page for Willi and Thomas
p. 235: Some chapters end with what students really need to know (red 
background). This is the end of the chapter on nutrition
p. 239: The Toolbox contains framed figures without a legend.

-- 
Prof.Dr.med. Jörg Hagmann-Zanolari
Institute of Biochemistry and Genetics
Centre of Biomedicine, University of Basel
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

___
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] MKIV/LuaTeX roadmap

2008-03-25 Thread Santy, Michael

I've been following the MKIV developments on the list, but don't have a good 
feeling for the overall stability/robustness/completeness of the new code.

Can someone who has the high-level insight (Hans, Taco?) please add a page to 
the wiki that gives the community a general roadmap for new features and an 
eventual MKIV/LuaTeX stable release?

Thanks,
Mike
___
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] externalfigure sizing problem

2008-03-20 Thread Santy, Michael
Hello,

I've noticed that the images included with externalfigure appear at about 95% 
of their specified size on a printed page.  The example below can be compiled 
on contextgarden to replicate the behavior.  This problem is nothing new and 
has existed for at least a couple of months.  Is there something that I'm not 
specifying correctly, or it this a bug?

Thanks,
Mike


\starttext
\placefigure{6.0in x 3.0in}{
  \externalfigure[blah.jpg][width=6.0in, height=3.0in]
  % Comes out 5.6in x 2.8in
}
\placefigure{15.0cm x 9cm}{
  \externalfigure[blah.jpg][width=15.0cm, height=9cm]
  % Comes out 14.1cm x 8.45cm
}
\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] externalfigure sizing problem

2008-03-20 Thread Santy, Michael
Sure enough that worked.  Thanks, Taco!

 Try turning off the fit to printer margins in the Acroread print
 dialog.

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

2008-03-14 Thread Santy, Michael
Its entirely possible that I'm missing something, but I was merely inquiring 
about running the same timing tests that you did with mplib, but instead using 
the existing MKII and MKIV image inclusion code.  How much of a speedup over 
the existing code does the mplib integration buy us for this benchmark?


-Original Message-
From: [EMAIL PROTECTED] on behalf of Hans Hagen
Sent: Fri 3/14/2008 12:46 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] mplib
 
Santy, Michael wrote:
 Hans,
 
 Sounds pretty impressive.  As a point of reference, do you have timing 
 data for the existing MKII and MKIV image processing code?

you mean a difference in speed? it depends on how complex the search is, 
but in general the mkiv code is faster and more robust there and has 
more potential for plugins; also mkiv does runtime conversion if needed; 
of course inclusion itself is not faster while (eventually) manipulation 
will be

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


Re: [NTG-context] mplib

2008-03-14 Thread Santy, Michael
Hans,

Sounds pretty impressive.  As a point of reference, do you have timing 
data for the existing MKII and MKIV image processing code?

Cheers,
Mike


-Original Message-
From: [EMAIL PROTECTED] on behalf of Hans Hagen
Sent: Fri 3/14/2008 12:21 PM
To: mailing list for ConTeXt users
Subject: [NTG-context] mplib
 
Hi,

as some of you may know, there is an mplib project ..

last week taco and spent quite some time on exploring the integration in 
luatex (and therefore mkiv)

experiments with loadiing the format, processing graphics and conversion 
to pdf show a throughput of less than 0.001 seconds per graphic; a usual 
we did much timing and although experimental, the code is already pretty 
okay, just to give an idea:

mkiv lua stats : metapost processing time  - 6.834 seconds (loading: 
0.014 seconds, execution: 1.474 seconds, n: 15000)

indeed, that's 15K graphics in 7 seconds.

so, the next couple of months i'll start providing an adapted mp 
handling mechanisms. among the possible options are

- extensions based on pre/postscripts (instead of specials)
- multiple mp engines (\startuseMPgraphic[metafun]{name} and such)

so, if you have specific wishes ... now is the time to let them know


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
___

___
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] setupreferenceformat questions

2008-02-15 Thread Santy, Michael

Due to some fairly unique customer requirements for bibliography, we're using 
the simple bibliography discussed in the wiki 
(http://wiki.contextgarden.net/Simple_Bibliography).  While this approach gives 
us more flexibility, I'm having trouble with a couple of things... 

1) The code below wraps the reference number in brackets.  How would I make the 
reference number superscript (like an endnote)?
2) The references in the text are numbered in the order the bibitems are 
defined in the bibliography, not the order on which they are cited in the text. 
 How would I order them according to the order in which they occur in the text?

Thanks,
Mike Santy

\setupinteraction[state=start]
\definereferenceformat[cite][left={[},right={]}]
\defineitemgroup [bibliography] [levels=1]
\setupitemgroup  [bibliography] 
 [symbol=n,
  left={[},
  right={]},
  width=1.5em,
  stopper=,
  itemalign=flushright,
  inbetween={\blank[4pt]}]
\appendtoks
  \let \bibitem \itemgroupitem
\to \itemgroupcommands

\starttext

Now is the time\cite[ref2] for all good men\cite[ref1].  I would like the 
citations to be numbered based on the order in which they occur in the 
document, not in the bibliography.

\section{References}

\startbibliography
  \bibitem[ref1] This is my first reference
  \bibitem[ref2] This is the second reference
\stopbibliography

\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] PDF/A with ConTeXt

2008-02-07 Thread Santy, Michael

Good idea.  I'll take a look.

Thanks,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of luigi scarso
Sent: Thu 2/7/2008 10:59 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] PDF/A with ConTeXt
 
 Records management systems prefer to receive their PDFs compliant with the
 PDF/A standard (subset of PDF 1.4).  Is there any mechanism in
 ConTeXt/pdfTex to specify the PDF output should comply with PDF/A?

  http://en.wikipedia.org/wiki/PDF/A

What about postprocessing pdf with latest ghostscript  ?

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] ConTeXt book

2008-02-04 Thread Santy, Michael
We would also be really interested in such a book (even if it was a bit pricey).

Cheers,
Mike



-Original Message-
From: [EMAIL PROTECTED] on behalf of Matija Suklje
Sent: Mon 2/4/2008 9:42 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] ConTeXt book
 
Dne ponedeljek 4. februarja 2008 je Yue Wang napisal(a):
 cont-eni.pdf, the context manual from pragma ade, i think. but it is
 quite outdated.
 I think the context development team should update the manual whenever
 a new feature is stable, but these people are working non-stop seeking
 for new features and have no time to update the manuals:)
 so maybe you can find more information on the wiki pages.

Thanks, but I thought about a physically present printed book that I could ask 
the central technical library to order it for their collection.

Cheers,
Matija

p.s. sorry about the double post ...there was a problem with the mail server.

-- 
gsm: +386 41 849 552
e-mail: [EMAIL PROTECTED]
www: http://matija.suklje.name

aim: hookofsilver
icq: 110183360
jabber/g-talk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: matija_suklje

___
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] multi-page table numbering

2008-01-14 Thread Santy, Michael
Hello,

By default, ConTeXt numbers the table on each page in a multi-page table with a 
different number (e.g., 1a, 1b, 1c for a three page table).  I don't see this 
as a problem except for that each page of a multi-page table will be called out 
in the list of tables.  Does anybody know how suppress the printing of each 
page of a multi-page table in the list of tables?

Cheers,
Mike
___
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 meeting: preliminary registrations opennow

2008-01-09 Thread Santy, Michael
Make that 3.  I'm in beautiful northern Alabama.
 
Cheers,
Mike



From: [EMAIL PROTECTED] on behalf of Roger Mason
Sent: Wed 1/9/2008 5:52 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] ConTeXt meeting: preliminary registrations opennow



Jeff Smith [EMAIL PROTECTED] writes:

 On appearances it sometimes feels like I'm the only North American
 user of ConTeXt (which is surely not true, though)!

You are not alone!  I'm in St John's, Newfoundland.
So n = 2.

Cheers,
Roger
___
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://www.pragma-ade.nl/  / 
http://tex.aanhet.net http://tex.aanhet.net/ 
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net 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] non-typographic apostrophe

2008-01-04 Thread Santy, Michael

How do I include a non-typographic apostrophe in ConTeXt?  If I type ' 
(U+0027), it is automatically converted to a typographic (directional) 
apostrophe.

Cheers,
Mike
___
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] non-typographic apostrophe

2008-01-04 Thread Santy, Michael
Thanks, Thomas.  That worked like a champ.

Cheers,
Mike


-Original Message-
From: [EMAIL PROTECTED] on behalf of Thomas A. Schmitz
Sent: Fri 1/4/2008 11:09 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] non-typographic apostrophe
 

On Jan 4, 2008, at 5:52 PM, Santy, Michael wrote:

 How do I include a non-typographic apostrophe in ConTeXt?  If I type  
 ' (U+0027), it is automatically converted to a typographic  
 (directional) apostrophe.

You could try \quotesingle (also depends on the font).

HTH

Thomas
___
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] escaping filenames with externalfigure

2007-12-27 Thread Santy, Michael

Is there a way to escape special characters in filenames passed to 
externalfigure.  I'm encountering the situation where users are choosing images 
that may contain brackets or curly braces (e.g., flower[1].jpg or 
flower{1}.jpg).  If I pass filename containing these characters directly to 
externalfigure, the closing bracket is mistaken for the end of the filename.
\externalfigure[flower{1}.jpg] % works
\externalfigure[flower[1].jpg] % doesn't work

I then tried to define a variable that holds the filename and pass that 
variable to externalfigure, but it ran into problems with curly braces.

\def\myimagefilename{flower[1].jpg} 
\externalfigure[\myimagefilename] % works

\def\myimagefilename{flower{1}.jpg}
\externalfigure[\myimagefilename] % doesn't work

Does anyone have any idea how I could handle arbitrary filename inputs that 
contain brackets and curly braces?

Cheers,
Mike
___
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] escaping filenames with externalfigure

2007-12-27 Thread Santy, Michael

Wolfgang,

Thanks for the suggestion.  However, I'm using ConTeXt to typeset arbitrary XML 
input from users (and therefore arbitrary image filenames).  While your idea 
works for the two examples that I gave, it doesn't work if the curly braces 
aren't balanced in the filename (e.g., flower{1.jpg).  Is there any general 
character escaping mechanism for macro arguments?

Cheers,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of Wolfgang Schuster
Sent: Thu 12/27/2007 9:00 AM
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] escaping filenames with externalfigure
 
On Thu, 27 Dec 2007 08:09:55 -0600
Santy, Michael [EMAIL PROTECTED] wrote:

 Is there a way to escape special characters in filenames passed to 
 externalfigure.  I'm encountering the situation where users are choosing 
 images that may contain brackets or curly braces (e.g., flower[1].jpg or 
 flower{1}.jpg).  If I pass filename containing these characters directly to 
 externalfigure, the closing bracket is mistaken for the end of the filename.
 \externalfigure[flower{1}.jpg] % works
 \externalfigure[flower[1].jpg] % doesn't work
 
 I then tried to define a variable that holds the filename and pass that 
 variable to externalfigure, but it ran into problems with curly braces.
 
 \def\myimagefilename{flower[1].jpg} 
 \externalfigure[\myimagefilename] % works
 
 \def\myimagefilename{flower{1}.jpg}
 \externalfigure[\myimagefilename] % doesn't work
 
 Does anyone have any idea how I could handle arbitrary filename inputs that 
 contain brackets and curly braces?

Yould could define symbolic names for the figures and access the
figures with this name, this allows you also to use bracketrs in the
file names.

\useexternalfigure[brace flower][flower{1}]
\useexternalfigure[bracket flower][{flower[1]}]

\starttext
\externalfigure[brace flower]
\externalfigure[bracket flower]
\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : 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] escaping filenames with externalfigure

2007-12-27 Thread Santy, Michael
\externalfigure[{flower[1].jpg}] demonstrates the same behavior as 
\externalfigure[flower[1].jpg]

Cheers,
Mike


-Original Message-
From: [EMAIL PROTECTED] on behalf of Hans Hagen
Sent: Thu 12/27/2007 8:56 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] escaping filenames with externalfigure
 
Santy, Michael wrote:
 Is there a way to escape special characters in filenames passed to 
 externalfigure.  I'm encountering the situation where users are choosing 
 images that may contain brackets or curly braces (e.g., flower[1].jpg or 
 flower{1}.jpg).  If I pass filename containing these characters directly to 
 externalfigure, the closing bracket is mistaken for the end of the filename.
 \externalfigure[flower{1}.jpg] % works
 \externalfigure[flower[1].jpg] % doesn't work

\externalfigure[{flower[1].jpg}] may also work

 I then tried to define a variable that holds the filename and pass that 
 variable to externalfigure, but it ran into problems with curly braces.
 
 \def\myimagefilename{flower[1].jpg} 
 \externalfigure[\myimagefilename] % works
 
 \def\myimagefilename{flower{1}.jpg}
 \externalfigure[\myimagefilename] % doesn't work
 
 Does anyone have any idea how I could handle arbitrary filename inputs that 
 contain brackets and curly braces?
 
 Cheers,
 Mike
 
 
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


-- 

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

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

___
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] escaping filenames with externalfigure

2007-12-27 Thread Santy, Michael
If I understand your suggestion correctly, specifying name doesn't work.

\externalfigure[][name=flower[1].jpg]
\externalfigure[name=flower[1].jpg]

Cheers,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of Hans Hagen
Sent: Thu 12/27/2007 8:55 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] escaping filenames with externalfigure
 
Santy, Michael wrote:
 Is there a way to escape special characters in filenames passed to 
 externalfigure.  I'm encountering the situation where users are choosing 
 images that may contain brackets or curly braces (e.g., flower[1].jpg or 
 flower{1}.jpg).  If I pass filename containing these characters directly to 
 externalfigure, the closing bracket is mistaken for the end of the filename.
 \externalfigure[flower{1}.jpg] % works
 \externalfigure[flower[1].jpg] % doesn't work
 
 I then tried to define a variable that holds the filename and pass that 
 variable to externalfigure, but it ran into problems with curly braces.
 
 \def\myimagefilename{flower[1].jpg} 
 \externalfigure[\myimagefilename] % works
 
 \def\myimagefilename{flower{1}.jpg}
 \externalfigure[\myimagefilename] % doesn't work
 
 Does anyone have any idea how I could handle arbitrary filename inputs that 
 contain brackets and curly braces?

maybe name works

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


Re: [NTG-context] stable new-minimals distribution?

2007-12-19 Thread Santy, Michael
Thanks, Mocja.  When do you anticipate the new minimals to be stable and ready? 
 I'm particularly interested in the Sun distribution since one is not provided 
by Pragma.

Cheers,
Mike
___
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] stable new-minimals distribution?

2007-12-18 Thread Santy, Michael

I see on the wiki that there are plans to create a stable, beta, and 
broken branches of the new minimals distribution on 
minimals.contextgarden.net.  Is the eventual goal of this to replace the 
current mechanism for obtaining minimals and cont-tmf as zip files from Pragma? 
 If so, when is this change over set to happen?

Cheers,
Mike

___
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] LaTeX float pages in ConTeXt

2007-12-13 Thread Santy, Michael
Wolfgang Schuster wrote:
 but he want to collect the figures on one page and not
 every on a new page.

That's part of the issue, but not the entire issue.  Attached is the equivalent 
LaTeX source and the resultant PDF (both gzipped due to ridiculously low 40k 
email limit).  LaTeX appears to float a series of figures placed with the 
htbp as follows:

1) Try to float the figures on the current page.  They can be here, or at the 
top or bottom of the page.
2) If the figures weren't placed on the current page, finish out the current 
page with content (see pdf page 1), unlike ConTeXt's force option.  Start a 
new page containing only floats and keep doing so until all floats are flushed. 
 (pages 2-4 of the PDF)
3) Try to place content on what would be the last float page (see page 5 of the 
PDF).

The closest analog that I can see in ConTeXt is the force placement option 
for floats, which is mean to ensure strict ordering.  The main difference is 
that the LaTeX htbp placement option will fill the remaining vertical 
whitespace with content before starting a float page.

Cheers,
Mike



floats.tex.gz
Description: floats.tex.gz


floats.tex.gz
Description: floats.tex.gz
___
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] LaTeX float pages in ConTeXt

2007-12-13 Thread Santy, Michael
Sorry about that, the PDF and TeX (that compiles) is now attached.

Cheers,
Mike


floats.pdf
Description: floats.pdf
\documentclass[12pt]{article}
\usepackage{graphicx}
\begin{document}

\def\ipsum{%
\par Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. }

\def\testfigure{
  \begin{figure}[htbp]
\fbox{
  [EMAIL PROTECTED]
}
\caption{Blah}
  \end{figure}
}

\section{First Section}
\ipsum
\testfigure
\testfigure
\testfigure
\testfigure
\testfigure
\testfigure
\testfigure
\testfigure

\section{Second Section}
\ipsum
\ipsum
\ipsum

\section{Third Section}
\ipsum
\ipsum

\section{Third Section}
\ipsum
\ipsum

\end{document}

___
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] LaTeX float pages in ConTeXt

2007-12-12 Thread Santy, Michael
I've been playing around with the float placement options in ConTeXt, but I 
could find no way to enable float pages.  If you're not familiar with float 
pages, here's a quick blurb:

If there are too many floats to fit on a page, LaTeX pushes them on to the 
next page, and the next; eventually, floats may end up at the end of the 
document. If the [p] option has been provided to individual figures and tables, 
they may be pushed together onto a “float page” that has no text. - 
http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html

I'm not interested in using \setupfloat[figure][default=page].  It forces all 
figures to a float page with one picture per page.  In latex, the behavior that 
I desire can be specified with:

\begin{figure}[htbp]
  \includegraphics[width=5.0in, height=3.0in]{myfile.jpg}
  \caption{Blah}
\end{figure}

Cheers,
Mike
___
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] LaTeX float pages in ConTeXt

2007-12-12 Thread Santy, Michael
Thanks, Aditya.  However, I'm don't think that 
\setupfloat[figure][default=here,top,bottom,page] addresses my need for float 
pages.  If you compile the document below, you'll notice that the figures at 
the end of the first section are floated throughout sections 2-4.  I would like 
the rendering of the floats to catch up by placing the floats on float pages, 
before moving on to other text.  Is this possible in ConTeXt?

\setupfloat[figure][default=here,top,bottom,page]

\def\ipsum{%
\par Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse 
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non 
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. }

\starttext

\section{First Section}

\ipsum

\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=5.0in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]}
\placefigure {Blah} {\externalfigure[figurename][width=5.0in, height=3.0in]}

\section{Second Section}
\ipsum
\ipsum
\ipsum

\section{Third Section}
\ipsum
\ipsum

\section{Third Section}
\ipsum
\ipsum

\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] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread Santy, Michael

OK, fair enough.  What I don't understand is why do I see ligatures when 
compiling the following on live.contextgarden.net using pdftex:

\usetypescript[times][ec]
\setupbodyfont[times,12pt]
\starttext
Some ligatures ffi, ffl, fi, fl
\stoptext

Cheers,
Mike

-Original Message-
From: [EMAIL PROTECTED] on behalf of Hans Hagen
Sent: Tue 12/4/2007 4:12 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Ligatures in ConTeXt minimals distribution
 
Mike Santy wrote:
 Hello, 
 
 Ligatures seem to be missing when using the ConTeXt minimals distribution
 (8/8/2007) with the times font (see below example).  Note that ligatures are
 rendered correctly using live.contextgarden.net, so I assume that something
 needs to be configured on my end.
 
 Could someone please be kind enough to tell me what I should configure to
 get proper ligatures for the times font in the minimals distribution?
 
 Cheers,
 Mike
 
 
 \usetypescript[times][ec]
 \setupbodyfont[times,12pt]
 
 \starttext
 
 \input knuth
 \blank
 And this is some maths with PostScript fonts.
 \startformula
 {a \over b} = {c \over d} \iff ad - bc = 0,
 \qquad \int_0^{2\pi}\!\!\! \sin^2(x)dx =\pi,
 \qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
 \qquad \sum_{k=1}^{\infty}{1 \over k^2} = {\pi^2 \over 6}.
 \stopformula
 Some ligatures: ffi, ffl.
 
 \stoptext

in ec encoding there are no ligs in these fonts, in texnansi encoding 
only see fi and fl

tex gyre open type variants (in luatex) shows ffl and ffi


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


Re: [NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-04 Thread Santy, Michael
Thanks for the suggestion.  Don't worry about looking further into this issue, 
I'm just going to use the texnansi times encoding instead of the ec encoding.  
I'm not going to spend to much time on fancy fonts for my documents until 
LuaTeX is ready for prime time.

Cheers,
Mike

___
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] line breaking hints?

2007-11-27 Thread Santy, Michael

Taco,

Your solution definitely makes sense.  I wanted the content ragged right as you 
suggested.  I'll play around with these penalty settings until it comes out 
like I want.

Cheers,
Mike
___
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] line breaking hints?

2007-11-26 Thread Santy, Michael

Hello,

I'm looking for a way to give ConTeXt's line breaking algorithm a hint on where 
it is allowed to break a line.  For example, I want ConTeXt to break lines, if 
necessary, when it encounters '//' in a string.  I don't want to force a line 
break there, but if context needs to break the line, I want it to be after a 
//.  

A contrived example of some input text is:
THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG//NOW IS THE TIME FOR ALL GOOD MEN 
TO COME TO THE AID OF THEIR COUNTRY.

When this text is rendered by ConTeXt, and it is too big to fit on a single 
line, I would like it to break like this:
THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG//
NOW IS THE TIME FOR ALL GOOD MEN TO COME TO THE AID OF THEIR COUNTRY.

I can preprocess the source to change spaces into non-breaking spaces and can 
replace '//' with anything else that I need to, but don't know how to suggest 
where to break the line.  Also note that I do not want any words to be 
hyphenated nor broken on hyphens.

Does anyone have any ideas on how I might accomplish this?

Cheers,
Mike
___
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] TABLE splitting on entry spanning multiple rows

2007-11-20 Thread Santy, Michael

Hello,

I'm using ConTeXt as part of an XML-PDF workflow that is heavy on tables.  The 
XML table model allows cells to span rows and columns.  While ConTeXt has 
handled row/column spanning perfectly up to this point, I believe I have found 
an issue.  When an entry that spans multiple rows is on the split point between 
pages, you get ragged entries on the page boundaries.  The code below 
demonstrates this on live.contextgarden.net (PDFTex):

\starttext
\setupTABLE[row][odd][background=color,backgroundcolor=red, width=.2\textwidth]
\bTABLE[split=yes]
\dorecurse{31}{\bTR \bTD[nc=4] filler \eTD \eTR}
\bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR
\bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
\bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
\bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR
\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR
\eTABLE
\stoptext

Does anyone have any suggestions for visually cleaning this up?

Cheers,
Mike
___
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] natural table splitting problems

2007-10-31 Thread Santy, Michael

Hagen, Hans wrote:
 it's always a problem to determine what's left on a page
 
 \def\blah{The quick brown fox jumped over the lazy stupid dog.}
 \dorecurse{62}{\blah} \synchronizeoutput
 
 this will force the otr but is not always fails safe (i.e. vertical 
 spacing may be messed)
 
 ... one of the reasons why we work on luatex -)
 
 Hans

Hans, 

The \synchronizeoutput seemed to fix this trivial example, but it doesn't 
seem to fix other illustrations of this behavior.  Is the \synchronizeoutput 
something that I should place at the end of every block of content (paras, 
sections, lists, figures, equations, etc.) in order to ensure that tables split 
properly.  If not, is there a general workaround for this table issue that I 
can apply in the meantime while LuaTeX is still in development?  I'm generating 
ConTeXt from XSL, so its very easy to make a system wide change of how the 
content is generated.

By the way, the LuaTeX on live.contextgarden.net seems to be broken 
(FatalError: Your format does not match the base files!)

Cheers,
Mike
___
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] natural table splitting problems

2007-10-31 Thread Santy, Michael

Peter,

There definitely seems to be something wrong with the splitting behavior, but 
I'm able to illustrate the same problem regardless of whether its wrapped in a 
\placetable (see example below).  From my experiments, wrapping a table in 
placetable didn't seem to fix the broken tables or break the correctly split 
tables.

Cheers,
Mike

\setuppapersize[letter][letter]

\setuplayout[textwidth=6.5in,
 width=middle,
 height=middle,
 footer=3\bodyfontsize,
 footerdistance=\bodyfontsize,
 header=0pt,
 headerdistance=0pt,
 top=\bodyfontsize,
 topdistance=\bodyfontsize,
 topspace=0.8in,
 bottom=\bodyfontsize,
 bottomdistance=0.5\bodyfontsize,
 bottomspace=0.8in,
 location=middle]

\showframe

\usetypescript[times][ec]
\setupbodyfont[times,13pt]

\setupwhitespace[big]

\starttext

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

\blank[line,medium,force]

\bTABLE[split=repeat]
\bTABLEhead
\bTR  
\bTH Header A \eTH 
\bTH Header B \eTH 
\eTR 
\eTABLEhead
\bTABLEbody
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\eTABLEbody
\eTABLE

\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] natural table splitting problems

2007-10-31 Thread Santy, Michael

 have you tried this with your 'real world' documents?

Peter,

Although adding the \blank didn't fix the table splitting on this contrived 
document, it actually seems to fix the problem on the few real world 
documents that have shown this behavior.  Although some of the breaks are still 
not ideal, they are not blatantly wrong.  It bothers me that I don't understand 
why this fix works, but it works in the meantime.

I really appreciate all of your assistance.  Hopefully this issue will be 
revisited in MKIV.

Cheers,
Mike
___
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] natural table splitting problems

2007-10-30 Thread Santy, Michael

Thanks Peter for the pointer to the multipage table in the wiki.  I don't know 
how I overlooked that example.  However, I was still able to duplicate the 
problem with this sample table by including a page full of text before the 
table (see below).  

If the dorecurse is set to 62 or 63, the contents slightly overflow the first 
page text area and only the first row of the table is rendered on the second 
page.  If dorecurse on blah is performed 61 or 64 times, the table is rendered 
properly.

Any thoughts?

Cheers,
Mike

\starttext

\setupcolors[state=start]

\showframe

\def\blah{The quick brown fox jumped over the lazy stupid dog.}
\dorecurse{62}{\blah}

% setup for all cells
\setupTABLE[r][each][style=\tfx\it, align=center]

% setup table head
\setupTABLE[r][first]
  [background=color,
   backgroundcolor=yellow]
% setup table footer
\setupTABLE[r][last]
  [style=bold,
   background=color,
   backgroundcolor=green]

\bTABLE[split=repeat,option=stretch]% head on every page, stretch columns
%
% IMPORTANT: use \bTH ... \eTH to enclose the head|next cells
\bTABLEhead
\bTR
  \bTH  head1 \eTH
  \bTH  head2 \eTH
  \bTH  head3 \eTH
\eTR
\eTABLEhead
% 
\bTABLEnext % setup for next table head
\bTR [background=color,backgroundcolor=cyan]
  \bTH  next1 \eTH
  \bTH  next2 \eTH
  \bTH  next3 \eTH
\eTR
\eTABLEnext
%
% the table body (main part)
%
\bTABLEbody
%
\dorecurse{100}{% 100 rows
\bTR
  \bTC  body body body body body \eTC
  \bTC  body body body body body \eTC
  \bTC  body body body body body \eTC
\eTR
}%
%
\eTABLEbody
%
% the table foot
%
\bTABLEfoot
\bTR
  \bTC  foot1 \eTC
  \bTC  foot2 \eTC
  \bTC  foot3 \eTC
\eTR
\eTABLEfoot
%
\eTABLE

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


[NTG-context] natural table splitting problems

2007-10-30 Thread Santy, Michael

 The same as in my first reply. Look at the first page with the text
 only. There isn't a space behind the sentence(s) and TeX can't break the
 paragraph (text expands it's lower border). This also breaks the
 splitting of the table, as it is (partly) on the same page.

Peter, all of the information that you've sent me has been very educational, 
but I think you may be focusing too much on the approach that I've used to 
illustrate the errant table splitting behavior.  The example below also 
illustrates this behavior and does not extend the text below its lower border 
as did the previous example.  

This is of course a contrived example -- I unfortunately cannot post a real 
example.  You can slightly change the layout and the problem will going away 
(for this particular document).  The problem is that my ConTeXt rendering layer 
has to process arbitrary XML input and this very same behavior pops up in 
documents regardless of the layout.  Making adjustments to the layout, font 
size, etc will just change where the problem manifests itself.  It is still 
possible that I'm doing something wrong, but my gut tells me that it is a bug 
in the context natural table splitting code.

\setuppapersize[letter][letter]

\setuplayout[textwidth=6.5in,
 width=middle,
 height=middle,
 footer=3\bodyfontsize,
 footerdistance=\bodyfontsize,
 header=0pt,
 headerdistance=0pt,
 top=\bodyfontsize,
 topdistance=\bodyfontsize,
 topspace=0.8in,
 bottom=\bodyfontsize,
 bottomdistance=0.5\bodyfontsize,
 bottomspace=0.8in,
 location=middle]

\showframe

\usetypescript[times][ec]
\setupbodyfont[times,13pt]

\setupwhitespace[big]

\starttext

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

Now is the time for all good men to come to the aid of their country. 

\placetable[split]{Broken Split Table}{%
\bTABLE[split=repeat]
\bTABLEhead
\bTR  
\bTH Header A \eTH 
\bTH Header B \eTH 
\eTR 
\eTABLEhead
\bTABLEbody
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\bTR
\bTC A \eTC
\bTC B \eTC
\eTR
\eTABLEbody
\eTABLE
} 

\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

[NTG-context] natural table splitting problems

2007-10-29 Thread Santy, Michael

In our XML-ConTeXt-PDF workflow, we've encountered a few intermittent 
problems when using split natural tables.  I'm not able to post the original 
documents in which the problems are manifesting, but below is a document that 
reproduces one of the problems.  The first page of the document is full of 
text, pushing a split natural table with five rows and a header to the top of 
the second page.  However, only the first row appears on the second page, and 
the rest of the table is continued on the third page. 

I'm using a stock ConTeXt 9/28 distribution, but this problem can also be 
reproduced on live.contextgarden.net.

Can someone please tell me what I'm doing wrong or help me debug this problem?  
These natural table bugs are the only thing stopping us from deploying our 
ConTeXt workflow.

Cheers,
Mike Santy


\setuppapersize[letter][letter]

\showframe

\starttext

\def\blah{
  Now is the time for all good men to come to the aid of their %
  country.  The quick brown fox jumped over the lazy dog.
}
\dorecurse{28}{\blah}

\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
  \bTR[style=\bf]
\bTD Header A \eTD
\bTD Header B \eTD
  \eTR
\eTABLEhead
\bTABLEbody
  \dorecurse{5}{
\bTR
  \bTD A \eTD
  \bTD B \eTD
\eTR
  }
\eTABLEbody
\eTABLE
}

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


[NTG-context] natural table splitting bug

2007-10-26 Thread Santy, Michael
In our XML-ConTeXt-PDF workflow, we've encountered a few intermittent 
problems when using split natural tables.  I'm not able to post the original 
documents in which the problems are manifesting, but below is a document that 
reproduces one of the problems.  The first page of the document is full of 
text, pushing a split natural table with five rows and a header to the top of 
the second page.  However, only the first row appears on the second page, and 
the rest of the table is continued on the third page.  

I'm using a stock ConTeXt 9/28 distribution, but this problem can also be 
reproduced on live.contextgarden.net. 

Can someone please tell me what I'm doing wrong or help me debug this problem?  
These natural table bugs are the only thing stopping us from deploying our 
ConTeXt workflow.

Cheers,
Mike Santy


\setuppapersize[letter][letter]

\showframe

\starttext

\def\blah{
  Now is the time for all good men to come to the aid of their %
  country.  The quick brown fox jumped over the lazy dog.
}
\dorecurse{28}{\blah}

\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
  \bTR[style=\bf]
\bTD Header A \eTD
\bTD Header B \eTD
  \eTR
\eTABLEhead
\bTABLEbody
  \dorecurse{5}{
\bTR
  \bTD A \eTD
  \bTD B \eTD
\eTR
  }
\eTABLEbody
\eTABLE
}

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


[NTG-context] split table widows/orphans and splitting threshold

2007-09-24 Thread Santy, Michael

Hello,

I'm using ConTeXt as part of a XML - PDF workflow for technical documentation. 
 These documents often have large tables, so I am using placetable[split] for 
table placement.  While placetable[split] works as advertised, the output 
quality often suffers.  One of the issues that I've found is that you'll often 
see a table with one row on a separate page from the rest of the table.  Is 
there any way to control table orphans and widows such that there will never be 
just one (or some arbitrary number) rows of a table split across a page.

Another feature that I think would be useful is the ability to set a split 
threshold for a table.  In my use, tables that are less than 1/3 to 1/2 page 
should probably be included as a float (i.e., not split), whereas tables larger 
than this would benefit from being split.  Is it possible to add a new 
placement option for tables that includes a splitting threshold?  I would add 
this as part of my XML-TeX transform, but I don't think the rendering path has 
enough information to know how large table rows will be when rendered.

Any thoughts?

Cheers,
Mike   
___
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] externalfigure and uppercase extensions

2007-09-24 Thread Santy, Michael


Hans,

You asked me to remind you this week to look into problems externalfigures and 
filenames with uppercase extensions.  Have you gotten a chance to look into the 
problem?

Cheers,
Mike 
___
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] externalfigure rotation

2007-09-17 Thread Santy, Michael

Hello,

I'm looking to rotate an externalfigure inside of its bounding box in 
increments of 90 deg.  Its real easy with 0 and 180, you can just do:

\externalfigure[blah.pdf][width=5.0in, height=2.0in]
\rotate[rotation=180]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]}

Both commands result with an image that is 5.0in wide and 2.0in tall.

But the problem comes when rotating a externalfigure at 90 and 270 degrees (or 
more generally, anything besides 0 and 180).  The rotation is applied to the 
whole bounding box instead of rotating the picture within a bounding box.  The 
following images will be rendered 2.0in wide and 5.0in tall.

\rotate[rotation=90]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]}
\rotate[rotation=270]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]}

Are there any plans to add support for specify an externalfigure's rotation 
within its bounding box, similar to this:
\externalfigure[blah.pdf][width=5.0in, height=2.0in, rotation=90]

Cheers,
Mike
___
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] externalfigure and uppercase extensions

2007-09-13 Thread Santy, Michael


Hello,

I'm using conTeXt as the renderer in a XML workflow and have run into a problem 
with externalfigure.  When a user chooses to include a PNG, PDF, or JPG image 
with an extension that is capitalized (or more generally, not all lower case), 
the externalfigure just includes a grey box like it can't find the file.  The 
snippet below illustrates the problem.  Note that I'm able to include the image 
by renaming the file to IMG_0103.jpg and changing the externalfigure to the 
corresponding filename.

\starttext
\externalfigure[IMG_0103.JPG]
\stoptext

I tried adding type=jpg and/or method=jpg to the externalfigure arguments, but 
the file did not compile.

I found that by adding the entry 
\definefileinsertion{tpd}{JPG}{\handlepdfimage} to the spec-tpd.tex file in 
the context distribution, the externalfigure is able to include this image 
correctly.  Should the mappings in these files be case insensitive?

I'm sure that I'm missing something basic.  Could someone please enlighten me?

Cheers,
Mike Santy 
___
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
___