* floats pb in a list
@ 2004-12-16 23:23 olivier Turlier
2004-12-17 7:42 ` Henning Hraban Ramm
0 siblings, 1 reply; 2+ messages in thread
From: olivier Turlier @ 2004-12-16 23:23 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
Hi contexers,
I try writing step by step howtos for Autocad courses. I've borrowed
(one more time) Hans example code written around p83 in cont-eni.pdf for
combined items, and rename definitions.
I'm unable to get correct float placement in a such list, even with
small figures. On each new page, the float move towards topleft, above
it's "anchor".
Thanks for any answers.
--
Olivier TURLIER
[-- Attachment #2: pb-howto.tex --]
[-- Type: text/plain, Size: 2917 bytes --]
%pb-howto.tex
\setupoutput [pdftex]
\useregime[il1]
\enableregime[il1]
\useencoding[ffr]
\usetypescript[palatino][texnansi]
\setupbodyfont[palatino,rm,10pt]
\definepapersize
[cours]
[width=\dimexpr(\paperwidth-.05\paperwidth),
height=\dimexpr(\paperheight-.05\paperheight)]
\setuppapersize
[cours]
[A4]
\setuplayout
[top=6mm,topdistance=6mm,
bottom=6mm,bottomdistance=18mm,
topspace=18mm,
height=263mm,%middle
header=6mm,headerdistance=6mm,
footer=6mm,footerdistance=18mm,
bakspace=46mm,%cutspace=50mm,
width=164mm,%middle
leftmargin=22mm,leftmargindistance=4mm,
leftedge=5mm,leftedgedistance=5mm,
rightmargin=28mm,rightmargindistance=4mm,
rightedge=6mm,rightedgedistance=5mm %,grid=yes
]
% \setuptolerance [verytolerant,stretch]
\setuppagenumbering[alternative=doublesided]
% \setupfloats[location=middle]
\definefloat [etape] [figures]
\defineparagraphs
[Etape] [n=2,rule=off,align=lohi]
\setupparagraphs
[Etape] [2] [width=.5\textwidth]
\defineenumeration
[Explication] [location=left,text=,width=3em,before=,after=]
\starttext
\chapter[]{One}
Some introduction text
\section[]{two}
Some longer introduction text
\section[]{three}
\startEtape
\startExplication
\dorecurse{2}{ First step of this cookbook look ok but is the rest equal ?}
\stopExplication
\nextEtape
\placeetape [here,force,always,none]
{} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]}
\stopEtape
\startEtape
\startExplication
\dorecurse{3}{ First step of this cookbook look ok but is the rest equal ?}
\stopExplication
\nextEtape
\placeetape [here,force,always,none]
{} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]}
\stopEtape
\startEtape
\startExplication
\dorecurse{4}{ First step of this cookbook look ok but is the rest equal ?}
\stopExplication
\nextEtape
\placeetape [here,force,always,none]
{} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]}
\stopEtape
\startEtape
\startExplication
\dorecurse{5}{ First step of this cookbook look ok but is the rest equal ?}
\stopExplication
\nextEtape
\placeetape [here,force,always,none]
{} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]}
\stopEtape
\startEtape
\startExplication
\dorecurse{6}{ First step of this cookbook look ok but is the rest equal ?}
\stopExplication
\nextEtape
\placeetape [here,force,always,none]
{} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]}
\stopEtape
\startEtape
\startExplication
\dorecurse{7}{ First step of this cookbook look ok but is the rest equal ?}
\stopExplication
\nextEtape
\placeetape [here,force,always,none]
{} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]}
\stopEtape
\stoptext
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-17 7:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-16 23:23 floats pb in a list olivier Turlier
2004-12-17 7:42 ` Henning Hraban Ramm
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).