* problem using protrusion and hz
@ 2008-04-08 18:11 David C. Walden
2008-04-08 20:30 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: David C. Walden @ 2008-04-08 18:11 UTC (permalink / raw)
To: ntg-context
Hi,
Adytia pointed me to some examples at
http://wiki.contextgarden.net/Protrusion
I tried the following code with a couple of page test page,
-----
\definepapersize[specialbook][width=5.5in,height=8.5in]
\setuppapersize[specialbook][specialbook]
\setuplayout[height=7.5in,width=4.5in,backspace=40pt,location=middle]
%\usetypescript[serif][hz][quality] %line 1
%\setupalign[hanging,hz] %line 2
\usetypescript[serif,sans,mono][hanging][pure] %line 3
\setupalign[hanging] %line 4
\usetypescript[modern-base][texnansi] %line 5
\setupbodyfont[reset] %line 6
\setupbodyfont[modern] %line 7
%\setupbodyfont[serif,11pt]
\setupwhitespace[4.5pt]
\setupcolors[state=start]
\setupexternalfigures[directory={../marsh-slideshow}]
\setupindenting[none]
\setuphead[chapter][number=no]
\setupheader[state=none]
% Enable colors and activate hyperlinks
\setupcolors [state=start] \setupinteraction [state=start, color=blue]
\definecolor [darkRed][r=.5,g=.0,b=.0]
\useURL[TPJ][{http://www.tug.org/pracjourn}][][{\it Prac\TeX{} Journal}]
\useURL[mywebsite][{http://www.walden-family.com/dave}][][www.walden-family.com]
\starttext
...
\stoptext
----
and I get slightly different results if lines 1 and 2 versus 3 and 4
are in or out, or if both pairs of lines are commented out. If, however,
I try this with the real 215 page book I am compiling rather than
a smaller example, pdfTeX halts 200 or so pages in with a fatal
error saying it has run out of space and saying something more about
a hash table. If I comment out lines 5-7, I don't get the fatal
error but also I don't think I see protrusion and font expansion
happening. The real book doesn't have very much body text but
is does have 215 images with code like
\placefigure{none}{\externalfigure[#1.jpg][width=\textwidth]}
where #1 comes from a macro call.
Any thoughts? (I suppose I can split my source file in half
and find a ConTeXt command to start the page numbering for
the second half a 107 or so and then combine the two PDFs
with Acrobat.)
Best regards, Dave
--
home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168
email address: dave@walden-family.com;
website(s): http://www.walden-family.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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem using protrusion and hz
2008-04-08 18:11 problem using protrusion and hz David C. Walden
@ 2008-04-08 20:30 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2008-04-08 20:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
David C. Walden wrote:
> and I get slightly different results if lines 1 and 2 versus 3 and 4
> are in or out, or if both pairs of lines are commented out. If, however,
> I try this with the real 215 page book I am compiling rather than
> a smaller example, pdfTeX halts 200 or so pages in with a fatal
> error saying it has run out of space and saying something more about
> a hash table. If I comment out lines 5-7, I don't get the fatal
> error but also I don't think I see protrusion and font expansion
> happening. The real book doesn't have very much body text but
> is does have 215 images with code like
> \placefigure{none}{\externalfigure[#1.jpg][width=\textwidth]}
> where #1 comes from a macro call.
>
> Any thoughts? (I suppose I can split my source file in half
teh easiest solution is probbably to increase the hash size, this is
done in texmf.cnf; after doing that you need to remake the formats
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-08 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-08 18:11 problem using protrusion and hz David C. Walden
2008-04-08 20:30 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).