ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Graphics positioning problems in current/recent betas
@ 2012-02-05  5:47 Peter Park Nelson
  0 siblings, 0 replies; only message in thread
From: Peter Park Nelson @ 2012-02-05  5:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I have been studying the Details manual and have found that many of
the examples presented there do not work correctly with the current or
recent betas. The ones I have tested work correctly on texshow and
with the Texlive 2011 (MkIV Luatex) version.

1. In the first example below (based on Details p. 25), note that the
graphic is positioned very high relative to the paragraph, although
vertical space appears to be reserved correctly:

%%-------------------- start ----------------------------------%%

\starttext

\setupfloat[figure]
[sidespacebefore=none,sidespaceafter=none,sidealign=depth]

\input tufte\par

\placefigure[inner,none]{caption}{\framed[height=3cm]{graphic}}

\input tufte\par
\stoptext

%%------------------------ stop -----------------------%%


2. Figure position in the second example below (Details p.65) is
similar, but an empty box is placed instead of the figure:

%% -------------------------- start ------------------------- %%
\starttext
\showboxes

\definelayer[text-1][position=yes]
\defineanchor[rightbottom][text-1][location=lt,hoffset=max,voffset=max]
\definefloat[myfigure][figure]
\setupfloat[myfigure][sidespaceafter=,sidespacebefore=]
\defineanchor[rightbottom][text-1][location=lt,hoffset=max,voffset=max]

\input tufte\par

\placemyfigure
[left,none]
{}
{\anchor[rightbottom]
{\externalfigure[dummy][width=5cm,frame=on]}}

\input tufte\par

\stoptext

%% ----------------------------- stop ----------------------%%

-- 
Peter Park Nelson
peter.park.nelson@gmail.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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-05  5:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-05  5:47 Graphics positioning problems in current/recent betas Peter Park Nelson

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).