ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: olivier Turlier <o.turlier@free.fr>
Subject: floats pb in a list
Date: Fri, 17 Dec 2004 00:23:40 +0100	[thread overview]
Message-ID: <41C218FC.9010003@free.fr> (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

             reply	other threads:[~2004-12-16 23:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-16 23:23 olivier Turlier [this message]
2004-12-17  7:42 ` Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41C218FC.9010003@free.fr \
    --to=o.turlier@free.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).