that LeTeX puts in to collect abundant top-
and here-floats. There can -- in contrast to contex’s default=page -- be more
than one float on such a page and there is no running text.
In a LaTeX-setup correcponding to:
%\setupfloats[nlines=15]
\setupfloat[figure][default={here,top,bottom,page
r (Ctx Beta): http://d.pr/i/1gyi
Is this a bug?
\definetextbackground [test] [location=paragraph]
\setupfloat[figure][freeregion=no]
Thank you, Hans, this works absolutely great!
Two little questions:
I have set it now globally for _all_ floats as \setupfloats[freeregion=no].
At a first
> \stoptextbackground
>>
>> \stoptext
>>
>>
>> With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue,
>> everything’s fine there.
>>
>> Here are two screenshots:
>>
>> Desired behavior (Ctx Current): http://d
]
\setupfloat[figure][freeregion=no]
\starttext
\placefigure [margin]{}{}
\starttextbackground [test]
\dorecurse{3}{\readfile{ward}{}{}}
\placefigure {}{}
\dorecurse{3}{\readfile{ward}{}{}}
\stoptextbackground
\stoptext
[kasten][kaesten]
\setupfloat[kasten][
location=outermargin,
width=4cm,maxwidth=0.33\textwidth, % doesn’t work
frame=off,
background=color,backgroundcolor=yellow,
offset=0.5em]
\setupcaption[kasten][
location=top,
spaceafter=-1em,
align
Dear list,
I have the following sample:
\setupindenting[yes, always, big]
\setupfloatcaption[table][location=none]
\setupfloat[table][indentnext=no, spacebefore=5em]
\starttext
\input zapf
\placetable{}{
\startembeddedxtable
\startxrow
\startxcell knuth
ces
centered combinations by default.
The problem is, that within the combination I would like to use floats
defined with \setupfloat. This is not supported by \startcombination.
I noticed that line 490 of pack-com.mkiv has an added \dontleavehmode
in the definition of \pack_combinations_start_float. W
Hello,
I want to place floats in an xtable but cannot get rid of the gap between the
float and the frame.
I sort of can eliminate the gap on the top with
\setupfloat [offset=-2.5pt]
but this doesnt seem to be the right way.
Is there a parameter to control this?
Thanks
Michael
\showframe
MyFrame[Title=Info]
> >> \setupalign[hyphenated,morehyphenation,verytolerant]
> >> ...
> >>
> >> Piotr
> >>
> >> 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com
> >:
> >> > Hello,
>
;> > Hello,
>> > How to make the width of framedtext automatically adapts to its
>> > contents.
>> > Fabrice
>> >
>> > \definefloat
>> >[recipe]
>> >[figure]
>> >
>> > \setupfloat
>> >[rec
o make the width of framedtext automatically adapts to its contents.
> > Fabrice
> >
> > \definefloat
> >[recipe]
> >[figure]
> >
> > \setupfloat
> >[recipe]
> >[default={right,none}]
> >
> > \definecolor[MyColorA
gt;
> \definefloat
>[recipe]
> [figure]
>
> \setupfloat
>[recipe]
>[default={right,none}]
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
>
> \defineframedtext
> [MyFram
Hello,
How to make the width of framedtext automatically adapts to its contents.
Fabrice
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00
ithmic[numbering=yes]
\STATE a = 2
\STATE this line is really very large. Very very very very very very
very very very very very large
\STATE this is the real third state.
\stopalgorithmic
\definefloat[algorithm][algorithms]
\setupfloat[algorithm][
background=color,
backgroundcolo
lution, e.g.
-\def\page_one_place_float_auto {\page_one_place_float_otherwise}
+\def\page_one_place_float_auto
{\page_one_place_float_otherwise\rootfloatparameter\c!next}
which can be used with \setupfloat[next=\indentation]
In the move to MkII to MkIV, there have been many c
t_auto {\page_one_place_float_otherwise}
+\def\page_one_place_float_auto
{\page_one_place_float_otherwise\rootfloatparameter\c!next}
which can be used with \setupfloat[next=\indentation]
Wolfgang
___
If your question is of interest to
low, by using the keyword « high ».
> >
> > Best regrads: Otared K.
> > % begin fabrice-inmargin.tex
> > \setuplayout
> > [width=13cm,
> >rightmargin=5cm]
> >
> > \setupbodyfont[pagella,11pt]
> >
> > \definefloat
> >[recipe]
&
t; Best regrads: Otared K.
> % begin fabrice-inmargin.tex
> \setuplayout
> [width=13cm,
>rightmargin=5cm]
>
> \setupbodyfont[pagella,11pt]
>
> \definefloat
>[recipe]
>[figure]
>
> \setupfloat
>[recipe]
>[default={rightmargin,none,high}]
the example below, by using the keyword « high ».
>
> Best regrads: Otared K.
> % begin fabrice-inmargin.tex
> \setuplayout
> [width=13cm,
>rightmargin=5cm]
>
> \setupbodyfont[pagella,11pt]
>
> \definefloat
>[recipe]
>[figure]
>
> \s
]
[figure]
\setupfloat
[recipe]
[default={rightmargin,none,high}]
\setupframed
[frame=on,
width=\rightmarginwidth,
align=justify,
offset=2pt,
location=low,
rulethickness=1pt,
framecolor=darkred,
corner=00]
\showgrid
\showframe
\starttext
A\\ B \\ C
\placerecipe
[recipe]
[figure]
\setupfloat
[recipe]
[default={rightmargin,none}]
\setupframed
[frame=on,
width=\rightmarginwidth,
align=justify,
offset=2pt,
location=low,
rulethickness=1pt,
framecolor=darkred,
corner=00]
\starttext
\showframe
A\\A\\A
\placerecipe{}{\framed{La
xt in the boxes ?
> Fabrice
>
>
> \useMPlibrary [dum]
>
> \setuplayout
> [width=13cm,
>rightmargin=5cm]
>
> \setupbodyfont[pagella,11pt]
>
> \definefloat
>[recipe]
>[figure]
>
> \setupfloat
>[recipe]
,
rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={rightmargin,none}]
\setupframed
[frame=on,
width=\rightmarginwidth,
align=flushleft,
location=low,
rulethickness=1pt,
framecolor=blue,
corner=00]
\starttext
showing this.
In any case here is an example showing the problem with \placeformula and
floats, with its PDF attached.
Best regards: OK
% begin bug-placeformula-float.tex
\definefloat[intermezzo]
\setupfloat[intermezzo]
[leftmargindistance=-12mm,
rightmargindistance=-12mm
\startplacefigure inherits a lot of location settings but among these flushleft
and flushright are missing.
Thus the \setupfloat in the example cannot be omitted. Wouldn't it be a logical
step to make possible also:
\startplacefigure[location=flushleft]
dito for flushright?
\starttext
it to the
affected images, but I wonder if I can get around this.
try this:
\setupfloat[figure][criterium=10cm,fallback=here]
\placefigure[left]{}{\framed[width=5cm]{}} \input tufte
\placefigure[left]{}{\framed[width=\textwidth]{}} \input tufte
are all centered.
What happens is that a caption < width kicks in.
But we already have a way to get around that: width=max
\setupfloat[figure][default={left,nonumber}]
\setupcaption[figure][align=flushleft, width=max]
\starttext
\placefigure{my figure caption a really long
capt
left
(flushleft).
What happens: The captions are all centered.
What happens is that a caption < width kicks in.
But we already have a way to get around that: width=max
\setupfloat[figure][default={left,nonumber}]
\setupcaption[figure][align=flushleft, width=max]
\starttext
\placefigure
ontent
\strc_floats_make_complete_caption}%
\else
\setbox\b_strc_floats_caption\hpack
{\strc_floats_make_complete_caption}%
\fi}
\protect
% then you can do this (maybe Wolfgang can check the logic too):
\starttext
\setupfloat[figure][default={left,nonumber}]
\placefigure{my
of default={left,nonumber}
in\setupfloat[figure][default=..., the captions are aligned left, just
like they should.
It does not matter if the text warps around the captioned image, the
centered is present for all figure-captions, regardless of their width.
Code demonstrating the behaviour
listof… command.
The correct definition for the new float is:
\definefloat[recipe][recipes][figure]
\setupfloat[recipe][default={right,none}]
Wolfgang
___
If your question is of interest to others as well, plea
; The code below works perfectly without the placement of the label,
> but if I want to place the label, it no longer works.
> Thank you
>
> \definefloat
>[recipe]
>[figure]
>
> \setupfloat
>[recipe]
>[default={right,none}]
>
> \starttext
>
&g
Hello,
The code below works perfectly without the placement of the label, but if I
want to place the label, it no longer works.
Thank you
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\starttext
\switchtobodyfont [pagella, 9pt]
\placerecipe
Hi,
I wish beyond the image on the frame at the edge of the text.
Thank you.
Fabrice
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\definecolor[FondTableaux][c=0.00, m=0.00, y=0.20, k=0.00]
\starttext
\placerecipe{}{\rotate[rotation=-15
Hi,
If you compile the following file with new beta, the placement of the table
and the figure is incorrect.
Thank you,
Fabrice
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\startsetups[table:initialize]
\setupTABLE[start][align={middle,lohi},offset
Hi,
If you compile the following file with new beta, the placement of the table
and the figure is incorrect.
Thank you,
Fabrice
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\startsetups[table:initialize]
\setupTABLE[start][align={middle,lohi},offset
]
\setupfloat
[MyFloat]
[default={right,none}]
\startsetups[table:initialize]
\setupTABLE[start][align={middle,lohi},width=2cm,offset=1ex]
\setupTABLE[column][first][width=4cm]
\setupTABLE[row][first][background=color,backgroundcolor=lightgray]
\stopsetups
\showframe
\starttext
it.
Ok, thanks
\definefloat[bleedfigure][figure]
\setupfloat[bleedfigure][
outermargindistance=-2\measure{Bleed},
%leftmargindistance=-2\measure{Bleed},
%rightmargindistance=-2\measure{Bleed},
maxwidth=\measure{maxWidth}
]
There is only a “outermargin” key
]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\starttext
\startitemize[n][stopper={.},style=bold]
\placerecipe
{}
{\externalfigure[cow.pdf][width=4cm]}
\item \input knuth
\placerecipe
{}
{
\starttikzpicture[level 1/.style={level distance=35mm,sibling
distance=40mm},level 2/.style
]
\pgfplotsset{compat=1.8}
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\starttext
\startitemize[n][stopper={.},style=bold]
\placerecipe
{}
{\externalfigure[cow.pdf][width=4cm]}
\item \input knuth
\placerecipe
{}
{
\starttikzpicture[level 1/.style={level
+ \measure{Bleed}\relax]
You don’t have to use \dimexpr because the measure macros already us it.
[…]
\definefloat[bleedfigure][figure]
\setupfloat[bleedfigure][
outermargindistance=-2\measure{Bleed},
%leftmargindistance=-2\measure{Bleed},
%rightmargindistance=-2\measure
=\measure{maxWidth},
maxheight=\measure{maxHeight}
]
\setupcaptions[style=\ss\tfx,align=flushleft,number=no,width=\textwidth]
\definefloat[bleedfigure][figure]
\setupfloat[bleedfigure][
outermargindistance=-2\measure{Bleed},
%leftmargindistance=-2\measure{Bleed
-man-27.htm
Thank you, that helped, but not enough.
I have now:
\def\bleed{3mm}
\def\maxWidth{\dimexpr(\paperwidth+\bleed)}
\definefloat[bleedfigure][figure]
\setupfloat[bleedfigure]
[
outermargindistance=-\bleed, % does that exist?
leftmargindistance=-\bleed,
rightmargindistance=-\bleed,
default
to redefine the \bleed command.
\definefloat[bleedfigure][figure]
\setupfloat[bleedfigure]
[
outermargindistance=-\bleed, % does that exist?
leftmargindistance=-\bleed,
rightmargindistance=-\bleed,
default={cutspace,none},
maxwidth=\maxWidth
]
\def\topfig#1#2{\placebleedfigure[top]{#1}{\offset
[width=\FullWidth]
\definefloat [rightFigure][rightFigures]
[figure]
\setupfloat [rightFigure]
[
location=right, % this does nothing!
maxwidth=\RPicMaxWidth,
]
\setupcaption[rightFigure
\zeropoint\par]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\defineframed
[myframed]
[width=6cm,
foregroundstyle={\switchtobodyfont[10pt]},
align={high,flushleft},
frame=on,
framecolor=red,
background=color,
backgroundcolor
]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\defineframed
[myframed]
[width=6cm,
foregroundstyle={\switchtobodyfont[10pt]},
align={high,flushleft},
frame=on,
framecolor=red,
background=color,
backgroundcolor=lightgray]
\definecolor[Border][c=0.00, m
]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\defineframed
[myframed]
[width=6cm,
foregroundstyle={\switchtobodyfont[10pt]},
align={high,flushleft},
frame=on,
framecolor=red,
background=color,
backgroundcolor
]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\defineframed
[myframed]
[width=6cm,
foregroundstyle={\switchtobodyfont[10pt]},
align={high,flushleft},
frame=on,
framecolor=red,
background=color,
backgroundcolor=lightgray]
\starttext
I'm trying to set a default width for figures with \setupfloat. However,
the command doesn't seem to be picking up the width specification, even
though the manual indicates it accepts a width= argument:
\setupfloat[figure][width=2cm]
\starttext
\placefigure{}{\externalfigure[picture.png
On 11/29/2014 10:49 AM, Mark Szepieniec wrote:
I'm trying to set a default width for figures with \setupfloat. However,
the command doesn't seem to be picking up the width specification, even
though the manual indicates it accepts a width= argument:
\setupfloat[figure][width=2cm]
\starttext
On Sat, Nov 29, 2014 at 11:03 AM, Hans Hagen pra...@wxs.nl wrote:
On 11/29/2014 10:49 AM, Mark Szepieniec wrote:
I'm trying to set a default width for figures with \setupfloat. However,
the command doesn't seem to be picking up the width specification, even
though the manual indicates
width for graphics, so
\setupexternalfigures[width=XXXcm] wouldn't work well either.
I realize I could define my own macros or something to solve this, but I'm
just puzzled that setting width in \setupfloat[figure] doesn't work. Am I
reading the manual wrong, or is is just not implemented yet
On Sat, Nov 29, 2014 at 11:03 AM, Hans Hagen pra...@wxs.nl wrote:
On 11/29/2014 10:49 AM, Mark Szepieniec wrote:
I'm trying to set a default width for figures with \setupfloat. However,
the command doesn't seem to be picking up the width specification, even
though the manual indicates
On Sat, Nov 29, 2014 at 8:22 PM, Christoph Reller
christoph.rel...@gmail.com wrote:
On Sat, Nov 29, 2014 at 11:03 AM, Hans Hagen pra...@wxs.nl wrote:
On 11/29/2014 10:49 AM, Mark Szepieniec wrote:
I'm trying to set a default width for figures with \setupfloat.
However,
the command
On Sat, 29 Nov 2014, Mark Szepieniec wrote:
So I guess my problem is resolved, but I'd still like to understand better
why my earlier solution of doing
\setupfloat[figure][width=2cm]
didn't set a default for later instances of \placefigure. I feel like I
might be missing some aspect
On Sun, Nov 30, 2014 at 12:48 AM, Aditya Mahajan adit...@umich.edu wrote:
On Sat, 29 Nov 2014, Mark Szepieniec wrote:
So I guess my problem is resolved, but I'd still like to understand better
why my earlier solution of doing
\setupfloat[figure][width=2cm]
didn't set a default for later
Hi Wolfgang,
How to reduce the size of the float ?
Best regards,
Fabrice
\usemodule[algorithmic]
\definefloat[algorithm][algorithms]
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\setupfloat
[algorithm]
[background=color,
frame
[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\setupfloat
[algorithm]
[background=color,
frame=on,
framecolor=H1prime,
backgroundcolor=H4,
width=0.5\textwidth]
You have to put a framedtext environment around the algorithmic environment,
you can do this by replacing \setupfloat
}]
\bTABLE
\dorecurse{40}{\bTR\bTD Foo \eTD\bTD Text. \eTD\eTR}
\eTABLE
\stopplacetable
\stoptext
Wolfgang
Thank you Wolfgang for this tip. Could you please explain why the following
is not working:
\starttext
\definefloat[inlinetable][inlinetables][table]
\setupfloat[inlinetable][location
the following
is not working:
\starttext
\definefloat[inlinetable][inlinetables][table]
\setupfloat[inlinetable][location={none,split}]
You have to use the default key here, i.e.
\setupfloat[inlinetable][default={none,split}]
because context resets the value of the location key at the begin
On 2014-07-25, 16:18, Hans Hagen wrote:
\showframe
\starttext
\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure
\definefloat[widefigure][figure][figure]
\setupfloat [widefigure][location=flushleft]
\setupcaptions[widefigure][width=\textwidth
Am 27.07.2014 um 16:54 schrieb Joshua Krämer joshua.krae...@gmail.com:
On 2014-07-25, 16:18, Hans Hagen wrote:
\showframe
\starttext
\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure
\definefloat[widefigure][figure][figure]
\setupfloat
pages, right margin on right pages).
\setupfloat[widefigure][location=inner]
Thank you. But this solution has the problem, too, that the alignment
is ignored for tikz pictures (see example below).
Kind regards,
Joshua
\setuppagenumbering[alternative=doublesided]
\definefloat [widefigure
into the outer margin (i. e. left margin on left
pages, right margin on right pages).
\setupfloat[widefigure][location=inner]
Thank you. But this solution has the problem, too, that the alignment
is ignored for tikz pictures (see example below).
This is a known issue. Wrap your tikz pictures inside
them manually with \kern.
Is there a way to make them automatically extend into the outer
margin? I have tried different options for location=... without
success.
{snip, snip}
\starttext
\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure
\setupfloat[figure
On 2014-07-25 07:10, Hans Hagen wrote:
Am 24.07.2014 um 10:36 schrieb Wolfgang Schuster
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com:
\starttext
\startplacefigure
\framed[width=.8\textwidth,framecolor=red]{one}
\stopplacefigure
\setupfloat[figure][location=flushleft
\setupfloat[figure][location=flushleft]
\startplacefigure
\framed[width=1.2\textwidth,framecolor=blue]{two}
\stopplacefigure
\stoptext
You can use the command key for \setupfloat to apply a macro to the
finished content of the float.
The purpose of this macro is to save the content
\framed [width=\Bigtextwidth, framecolor=red] %
{Right margin}
\stopplacefigure
\stoptext
You can use the command key for \setupfloat to apply a macro to the finished
content of the float.
The purpose of this macro is to save the content and compare the width to the
width of the text
? I have tried different options for location=... without
success.
{snip, snip}
You can use the command key for \setupfloat to apply a macro to the finished
content of the float.
The purpose of this macro is to save the content and compare the width to the
width of the text are,
when
to
the bottom of the first paragraph.
Here's a minimal example. The second ugly workaround shows what I'm
trying to achieve, but ideally using a cleaner approach. Does there
exist a magic keyword for that?
You can change the value with
\setupfloat[spacebefore=]
but it’s a global value for all float
of the footnote is blank and that, while the
image is placed as it should be, the text runs through it.
1. The vertical distance before and after floats can be changed with
\setupfloat[spacebefore=…,spaceafter=…].
2. Some features like floats or columns don’t work or can be used only with
limitations
and that, while the
image is placed as it should be, the text runs through it.
1. The vertical distance before and after floats can be changed with
\setupfloat[spacebefore=...,spaceafter=...].
2. Some features like floats or columns don't work or can be used only
with limitations in footnotes
]
\setupfloat
[marginfigure]
[default=margin,
criterium=\marginwidth]
\setupcaption
[marginfigure]
[number=no]
\showframe
\starttext
\dorecurse{9}{%%
\input knuth
\startplacemarginfigure
\externalfigure [cow] [width=\recurselevel cm]
\stopplacemarginfigure}
\stoptext
Marco
. By default the edge has zero
width and has to be enabled using \setuplayout.
Preferably the criterium option should also work
\setupexternalfigures
[location=default]
\setuppagenumbering
[alternative=doublesided]
\definefloat
[marginfigure]
[marginfigures]
[figure]
\setupfloat
tmp1.tex
Description: Binary data
%%
\setuppapersize[A4][A4]
\setuppagenumbering[alternative=doublesided,location=footer]
\definefloat[edgefigure][figure]
\setupfloat
[edgefigure]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default={outer,none
]
\setupfloat
[marginfigure]
[default=margin,
criterium=\marginwidth]
\setupcaption
[marginfigure]
[number=no]
\showframe
\starttext
\dorecurse{9}{%%
\input knuth
\startplacemarginfigure
\externalfigure [cow] [width=\recurselevel cm]
\stopplacemarginfigure}
\stoptext
work
\setupexternalfigures
[location=default]
\setuppagenumbering
[alternative=doublesided]
\definefloat
[marginfigure]
[marginfigures]
[figure]
\setupfloat
[marginfigure]
[default=margin,
criterium=\marginwidth]
\setupcaption
[marginfigure]
[number=no]
\showframe
[marginfigure]
[marginfigures]
[figure]
\setupfloat
[marginfigure]
[default=margin,
criterium=\marginwidth]
\setupcaption
[marginfigure]
[number=no]
\showframe
\starttext
\dorecurse{9}{%%
\input knuth
\startplacemarginfigure
\externalfigure [cow] [width
]
\setuppagenumbering
[alternative=doublesided]
\definefloat
[marginfigure]
[marginfigures]
[figure]
\setupfloat
[marginfigure]
[default=margin,
criterium=\marginwidth]
\setupcaption
[marginfigure]
[number=no]
\showframe
\starttext
\dorecurse{9}{%%
\input knuth
to be enabled using \setuplayout.
Preferably the criterium option should also work
\setupexternalfigures
[location=default]
\setuppagenumbering
[alternative=doublesided]
\definefloat
[marginfigure]
[marginfigures]
[figure]
\setupfloat
[marginfigure]
[default=margin,
criterium
to move almost off the page.
So I added:
\setupfloat[combinationfloat][location=middle,spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium]
and now it works beautifully.
There is, however, another complication which makes that unfortunately I cannot
use your
yor float to move almost off the page.
So I added:
\setupfloat[combinationfloat][location=middle,spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium]
and now it works beautifully.
There is, however, another complication which makes that unfortunately I cannot use your
tmp1.tex
Description: Binary data
%%
\setuppapersize[A4][A4]
\setuppagenumbering[alternative=doublesided,location=footer]
\definefloat[edgefigure][figure]
\setupfloat
[edgefigure]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default={outer
]
\definefloat[edgefigure][figure]
\setupfloat
[edgefigure]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default={outer,none,low,high}]
\setupcaption[edgefigure][number=no]
\useexternalfigure[cow][./cow.pdf]
\starttext
\startsection[title={insight
tmp1.tex
Description: Binary data
%%
\setuppapersize[A4][A4]
\setuppagenumbering[alternative=doublesided,location=footer]
\definefloat[edgefigure][figure]
\setupfloat
[edgefigure]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default
[extrafiguretext]
[\setups{extrafiguretext}]
\setupfloat
[figure]
[background={foreground,extrafiguretext}]
\dorecurse {20} {
\startplacefigure[title=Dummy figure][text={margin dummy text #1}]
\externalfigure[dummy][width=.8\textwidth
\llap{\framed[frame=off,width=\rightmarginwidth,height=\scratchdimen]{\floatuserdataparameter{text}}\hskip\leftmargindistance}\midaligned{\flushnextbox}%
\fi
\egroup}
\hbox}
\setupfloat[figure][command=\FigureText]
\setuppagenumbering[alternative=doublesided]
\starttext
\nextbox\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}}
\stoplinealignment}
\hbox}
\setupfloat[figure][command=\FigureText]
\starttext
\startplacefigure[title=Dummy figure][text=Margin dummy]
\externalfigure
beta
\stopplacefigure
\startplacefigure
\noindenting
a manual\par\tex{noindenting}\par works
\stopplacefigure
\input ward
\stoptext
There is no key for \setupfloat the disable the indentation because floats are
only
a container for other objects, e.g. figures or tables. For text
On 2013–06–03 Wolfgang Schuster wrote:
how to disable indentation inside floats without using \noindenting
each time?
[…]
There is no key for \setupfloat the disable the indentation because floats
are only
a container for other objects, e.g. figures or tables. For text objects like
14 in file test.tex: Undefined control
sequence ...
4
\copy\nextbox\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}}
5 \stoplinealignment}
6 \hbox}
7
8 \setupfloat[figure][command=\FigureText
\hbox}
7
8 \setupfloat[figure][command=\FigureText]
9
10 \starttext
11
12 \startplacefigure[title=Dummy figure][text=Margin dummy]
13 \externalfigure[dummy][width=.8\textwidth]
14 \stopplacefigure
15
16 \stoptext
17
\syst_boxes_with_next_box -\startlinealignment
\stoplinealignment}
6 \hbox}
7
8 \setupfloat[figure][command=\FigureText]
9
10 \starttext
11
12 \startplacefigure[title=Dummy figure][text=Margin dummy]
13 \externalfigure[dummy][width=.8\textwidth]
14 \stopplacefigure
15
16 \stoptext
17
}}}
\stoplinealignment}
\hbox}
\setupfloat[figure][command=\FigureText]
\starttext
\startplacefigure[title=Dummy figure][text=Margin dummy]
\externalfigure[dummy][width=.8\textwidth]
\stopplacefigure
\stoptext
Wolfgang
___
If your
[width=5cm, height=13cm,rightmargin=5cm]
\setupexternalfigures[option=empty]
\setupfloat[figure][location=inner]
%
\setupcaption
[figure]
[width=5cm,
location={rightmargin,low},
spacebefore=big]
%\setupcaption
%[figure]
%[width=5cm]
\starttext
\showframe
\placefigure{A small
”. I don't recall what the exact
issue was.
4) Probably many more that I haven't discovered, yet.
Feel free to suggest fixes for the mentioned issues.
Marco
\useMPlibrary [dum]
\unprotect
\setupfloat
[figure]
[default={top,bottom}]
\setupfloat
[table]
[default={bottom,top
frame but you
don’t need
the command because floats do also use the \framed command. You can use this
feature
and set the background with \setupfloat, only the text color can’t be set with
\setupfloat
because it’s applied to late in the process and a manual setting is necessary.
I can add a “color
On 2012–12–08 Marco Patzer wrote:
Thanks. It does not break anything in the final document and all
numbers are correct.
Referring to the figures is messed up:
\useMPlibrary
[dum]
\setupfloat
[figure]
[default=top]
\ctxlua{structures.lists.autoreorder = true}
\starttext
\input knuth
On 12/18/2012 6:13 PM, Marco Patzer wrote:
On 2012–12–08 Marco Patzer wrote:
Thanks. It does not break anything in the final document and all
numbers are correct.
Referring to the figures is messed up:
\useMPlibrary
[dum]
\setupfloat
[figure]
[default=top]
\ctxlua
101 - 200 of 360 matches
Mail list logo