[NTG-context] Re: How to force indents to always appear, even after figure?

2025-05-12 Thread Denis Maier via ntg-context
Use indentnext=yes on setupfloats: https://wiki.contextgarden.net/Command/setupfloat Joel via ntg-context hat am 13.05.2025 03:39 CEST geschrieben:     \starttext     \setupindenting[yes, big, always

[NTG-context] Re: setting the space after a figure

2025-02-13 Thread Hans Hagen via ntg-context
On 2/13/2025 12:11 PM, mf wrote: Hello, I want to set to space between a figure (float) and the main text. I thought this worked: \setupfloat[figure][spaceafter=2cm] but it does not, while this: \setupfloat[spaceafter=2cm] works, but -- I suppose -- it does effect every float, not just

[NTG-context] setting the space after a figure

2025-02-13 Thread mf
Hello, I want to set to space between a figure (float) and the main text. I thought this worked: \setupfloat[figure][spaceafter=2cm] but it does not, while this: \setupfloat[spaceafter=2cm] works, but -- I suppose -- it does effect every float, not just figures. Here's a MWE to te

[NTG-context] Floats: indentnext=yes suppressed by location=page

2025-02-08 Thread Tomáš Hála
for any hint. Tomáš %%% % Tested with TL2024 and with current LMTX \setupindenting[yes,2em] %\setupfloat[figure][indentnext=yes] \setupfloat[indentnext=yes] \starttext \input knuth %\startplacefigure[location=here] %OK \startplacefigure[location=page] %does not indent \framed{An ima

[NTG-context] placement of float captions in margin

2024-08-01 Thread Henning Hraban Ramm
, ] \setuppagenumbering[alternative=doublesided] \definemargindata[margincaption][inner][ margin=margin, %width=\innermarginwidth, align=flushleft, stack=yes, voffset=-.5em, ] \setupmarginframed[inmargin][ align={flushleft,low}, ] \definefloat[rightfigure][figure] \setupfloat[rightfigure][ default

[NTG-context] Re: combining float counters

2024-07-31 Thread Hans Hagen
use \startmyfigure etc \setupfloat[myfigure][   counter=figure, ] Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https

[NTG-context] Re: combining float counters

2024-07-31 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 31.07.2024 um 20:43: Hi, I defined new float types for special figure/caption placement, but would like to use the general figure counter. I didn’t find a setup for that. How can I do this? pseudocode: \setupfloat[myfigure][   counter=figure, ] \useMPlibrary

[NTG-context] combining float counters

2024-07-31 Thread Henning Hraban Ramm
Hi, I defined new float types for special figure/caption placement, but would like to use the general figure counter. I didn’t find a setup for that. How can I do this? pseudocode: \setupfloat[myfigure][ counter=figure, ] Hraban

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-29 Thread Wolfgang Schuster
urba...@ca.rr.com schrieb am 28.04.2024 um 19:54: I swear I used to understand this stuff.  I plead old age.   Why do I get two different results from the float placements here: \definefloat[mysidebar][mysidebars] \setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
I don't think that 'sidebar' has much to do with it. The part that is not working as expected is the 'mysidebar', which is not getting the 'outer' location, nor the 'none' captioning that I get with placefloat. setupfloat[mysidebar][leftmargindistance

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread Henning Hraban Ramm
4 um 19:54 schrieb urba...@ca.rr.com: I swear I used to understand this stuff.  I plead old age.   Why do I get two different results from the float placements here: \definefloat[mysidebar][mysidebars] \setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none] \define

[NTG-context] Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
I swear I used to understand this stuff. I plead old age. Why do I get two different results from the float placements here: definefloat[mysidebar][mysidebars] setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none] defineframedtext [sidebartext] [width=.4textwidth

[NTG-context] floats re-ordering and numbering

2024-04-22 Thread denis.maier
Denis %%% \setupexternalfigures [location={local,global,default}] \setupfloats[compress=no] \setupfloat[figure][default=top] \starttext \input knuth \placefigure{Cow 1}{\externalfigure[cow][ width=.5\textwidth, ]} \placefigure{Cow 2}{\externalfigur

[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Thomas Meyer
Meyer: how can I suppress a blank line between a text paragraph and \placefigure? I get one there, but I don't want it. Did you try \setupfloat[figure][spacebefore=,] ? or "none" or "{disable,nowhite,back}" You can set the space only for *all* floats, e.g.   

[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 06.04.2024 um 12:56: Am 06.04.24 um 12:48 schrieb Thomas Meyer: how can I suppress a blank line between a text paragraph and \placefigure? I get one there, but I don't want it. Did you try \setupfloat[figure][spacebefore=,] ? or "none" or "{

[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Henning Hraban Ramm
Am 06.04.24 um 12:48 schrieb Thomas Meyer: how can I suppress a blank line between a text paragraph and \placefigure? I get one there, but I don't want it. Did you try \setupfloat[figure][spacebefore=,] ? or "none" or "{disable,nowhite,back}" https://wiki.contextgard

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
similar effect as \starttextdisplay. \usemodule[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Henning Hraban Ramm
[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage{4cm}{3cm}{6cm}{4cm} \stopplacefigure \fakewords

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Wolfgang Schuster
is Mikael because I saw the command the first time in the source of a presentation from him. Oh, that’s probably where I saw it, too. Here is a short example which two other solution to get a similar effect as \starttextdisplay. \usemodule[visual] \setupfloat[figure][location=left

[NTG-context] Re: Text in Margin

2024-02-19 Thread Wolfgang Schuster
ner}{\flushnextbox}% \else \flushnextbox \fi} \hbox} \setupfloat[table][command=\FloatTableALignment] \setupfloat[figure][default=rightmargin] \starttext \inright{Lorem ipsum \unknown}\samplefile{lorem} \startplacefigure \externalfigure[dummy][width=\rightmarginwi

[NTG-context] caption for moved sidefloat in the margin

2023-07-30 Thread Henning Hraban Ramm
the edge. If I don’t, I can’t get it to move to the left edge of the image. How can I do that? Hraban """ \useMPlibrary[dum] \setuplayout[ backspace=5cm, width=12cm, ] \definefloat[marginfigure] \setupfloat[marginfigure][ leftmargindistance=-\leftmargintotal, righ

Re: [NTG-context] Float control

2023-03-01 Thread Max Chernoff via ntg-context
enerally work okay. If you're using columns, weird stuff can sometimes happen with top/bottom floats, but you should still be able to make them work. You can also try adding \setupfloat[ntop=100] at the start of you're document. I've had that fix an otherwise- unexplainable

Re: [NTG-context] Margin figure in itemize

2022-11-22 Thread Alain Delmotte via ntg-context
] % \showframe \definefloat   [marginfigure]   [figure] \setupfloat   [marginfigure]   [outermargindistance=-\outermargintotal,   default={outermargin,height,high,low,none}] \starttext \startstaticMPfigure{square}   draw fullsquare scaled 3cm; \stopstaticMPfigure \startitemize   \placemarginfigure

[NTG-context] Margin figure in itemize

2022-11-21 Thread Alexandre Christe via ntg-context
] \setuplayout [header=0pt, margin=4cm, footerdistance=.5cm, topspace=1cm, backspace=1cm, cutspace=2cm, width=fit, height=\dimexpr \paperheight-\topspace+\footerheight+\footerdistance-4cm\relax] % \showframe \definefloat [marginfigure] [figure] \setupfloat [marginfigure

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-10 Thread Fabrice Couvreur via ntg-context
gt; > >>>>> > Replace \showframe with \showgrid and you will see that there might >>>>> be >>>>> > not enough space to fit the image in the first page. >>>>> > >>>>> > Add "bottomspace=7.25

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-10 Thread Fabrice Couvreur via ntg-context
lfigure[dum]} > \dorecurse{5}{\input ward} %% extra > \stoptext > > and the extra text shows how much space the image requires. Holding a > ruler up to the screen you can see that it won't fit. > > The problem seems to be that the image is reserving space for a

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Bruce Horrocks via ntg-context
text and the extra text shows how much space the image requires. Holding a ruler up to the screen you can see that it won't fit. The problem seems to be that the image is reserving space for a caption even though there isn't a caption. A work-around is to change \setupfloat to the fo

[NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Fabrice Couvreur via ntg-context
] \setupfloat [recipe] [default={right,none}] \showframe \starttext \dorecurse{11}{\input ward} \placerecipe{}{\externalfigure[dum]} \stoptext ___ If your question is of interest to others as well, please add an

Re: [NTG-context] Space around figure

2022-04-28 Thread Alain Delmotte via ntg-context
Thanks Duncan! Alain Le 28/04/2022 à 13:05, Duncan Hothersall a écrit : You should be able to change the space above and below a float with the spacebefore and spaceafter keys to \setupfloat. I think the default

Re: [NTG-context] Space around figure

2022-04-28 Thread Duncan Hothersall via ntg-context
You should be able to change the space above and below a float with the spacebefore and spaceafter keys to \setupfloat. I think the default value is big for each, but you can override that with null. Something like \setupfloat[figure][spacebefore=,spaceafter=] Hope that helps. Duncan On Thu

Re: [NTG-context] Centering figures that extend into the margin

2022-04-20 Thread Willi Egger via ntg-context
n\LeftMarginSize > \LeftMarginSize=\dimexpr \backspace + \rightmarginwidth + > \rightmargindistance \relax > \newdimen\TextAreaSize > \TextAreaSize=\dimexpr \textwidth + \rightmarginwidth + \rightmargindistance > \relax > \definefloat[marginfigure][marginfigures][figure] > \

[NTG-context] Centering figures that extend into the margin

2022-04-20 Thread yann--- via ntg-context
\relax \newdimen\TextAreaSize \TextAreaSize=\dimexpr \textwidth + \rightmarginwidth + \rightmargindistance \relax \definefloat[marginfigure][marginfigures][figure] \setupfloat[marginfigure][location=inner,default=top,width=\TextAreaSize] \setupcaptions[marginfigure][ leftmargin=\dimexpr \LeftMar

Re: [NTG-context] Indented Paragraph After Float?

2022-02-07 Thread śrīrāma via ntg-context
aph. A fix is to use \indentation after \stopplacefigure. \setupfloat[figure][indentnext=yes] \starttext %\setupbodyfont[11pt] \setupindenting[yes, medium] \input ward \endgraf \startplacefigure[title=A Figure,location={page,auto}] \startframedtext \input wa

[NTG-context] Indented Paragraph After Float?

2022-02-07 Thread Michael Urban via ntg-context
As always, it is hard to tell whether this is my stupidity, the wrong version of ConText, or a bug. \setupfloat[figure][indentnext=yes] \starttext %\setupbodyfont[11pt] \setupindenting[yes, medium] \input ward \startplacefigure[title=A Figure,location=page] \startframedtext \input ward.tex

Re: [NTG-context] Defining new float types fails in LMTX

2021-12-10 Thread Marco Patzer via ntg-context
On Fri, 10 Dec 2021 17:01:26 +0100 Hans Hagen wrote: > no example code The MWE was included in the OP on 2021-10-30. But here it is again: \setupfloat [figure] [default=bottom] %% fails %% [default=top] %% works \definefloat [foo] [foos] [figure] \starttext \startplacefig

[NTG-context] Defining new float types fails in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
| fatal error: return code: 256 \setupfloat [figure] [default=bottom] %% fails %% [default=top] %% works \definefloat [foo] [foos] [figure] \starttext \startplacefigure [title=Foo] \framed{Foo} \stopplacefigure \startplacefoo [title=Bar] \framed{Bar} \stopplacefoo \stopte

Re: [NTG-context] (no subject)

2021-07-18 Thread Wolfgang Schuster
T. Kurt Bond schrieb am 17.07.2021 um 08:38: I have the following file: \setupfloat[table][default=nonumber] \starttext \section[title={Tables without force}] Here is a table without a caption, unforced. \startplacetable[location=none]   \bTABLE   \bTR\bTD r1c1

Re: [NTG-context] (no subject)

2021-07-18 Thread Pablo Rodriguez
On 7/17/21 8:38 AM, T. Kurt Bond wrote: > I have the following file: > > \setupfloat[table][default=nonumber] > > \starttext > \startplacetable[title={Table With A Caption},location=force] > \bTABLE > \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR > \e

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Sylvain Hubert
nehighlight[emph][style={\em}] > \definehighlight[strong][style={\bf}] > > \setupfloat[table][default={here}] > > \definereferenceformat[figura][text={Figura~}] > \definereferenceformat[tabla][text={Tabla~}] > > \setupcaptions[style={\sans\small}, > width=max

[NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
MWE (sorry for the long table, I hadn't anything else at hand): \definehighlight[emph][style={\em}] \definehighlight[strong][style={\bf}] \setupfloat[table][default={here}] \definereferenceformat[figura][text={Figura~}] \definereferenceformat[tabla][text={

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
> > \startMPcode > > > draw fullcircle scaled 1cm; > > > \stopMPcode > > > } > > > > > > \dorecurse{50}{d e f } % not indented > > > > > > \dorecurse{50}{g h i } > > > \stoptext > >

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Aditya Mahajan
>     \dorecurse{50}{d e f } % not indented > > > >     \dorecurse{50}{g h i } > >     \stoptext > > > > The second bracket group of \placefigure is for references. > Instead of > > \placefigure[here,none][indentnext=yes]{}{... > > write > >

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
t; > \dorecurse{50}{d e f } % not indented > > > > \dorecurse{50}{g h i } > > \stoptext > > > > The second bracket group of \placefigure is for references. > Instead of > > \placefigure[here,none][indentnext=yes]{}{... > > write > > \set

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread mf
\setupfloat[figure][indentnext=yes] \placefigure[here,none]{}{... That way you enable indentation after every figure. Massi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-03 Thread Garulfo
_maitriser-lempreinte-carbone-de-la-france-1.pdf Please, what would be a preferred way ? - overlay ? - overlay and layer ? - \setuphead with before/after ? - \setupfloat[bleedfigure] and \placebleedfigure{}{\blackrule} I try to describe the specification here : 1. doublesided docume

[NTG-context] How to reproduce a particular head/title style

2020-11-03 Thread Garulfo
wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf Please, what would be a preferred way ? overlay ? \setuphead with before/after ? \setupfloat[bleedfigure] and \placebleedfigure{}{\blackrule} I try t

Re: [NTG-context] Full page image and caption in another page?

2020-09-23 Thread Taco Hoekwater
• Place a figure as full-page figure > • Change orientation accordingly (if it's a landscape PDF, for instance) > • Make that using \setupfloat (or other setup), not directly in > \placefloat > • Place captions in another page (ideally on opposite page) >

[NTG-context] Full page image and caption in another page?

2020-09-22 Thread José de Mattos Neto
nce) 3. Make that using \setupfloat (or other setup), not directly in \placefloat 4. Place captions in another page (ideally on opposite page) Problems: - I can't get # 1 and # 3 at same time - \setupfloat doesn't have before option, which I could use to change orientat

Re: [NTG-context] Fullwidth topfigure with caption in the margin

2020-09-08 Thread Mikael Sundqvist
tance=0.375in, > width=4.125in, > ] > > \showframe > > \definecolor [transparentred] [r=1,t=.5,a=1] > > \definefloat[topfigure][topfigures][figure] > > \setupfloat[topfigure][ > default={margin}, > location=flushleft, > maxwidth=6.5in, > ] > > \setup

[NTG-context] Fullwidth topfigure with caption in the margin

2020-09-07 Thread Mikael Sundqvist
[topfigure][topfigures][figure] \setupfloat[topfigure][ default={margin}, location=flushleft, maxwidth=6.5in, ] \setupcaption[topfigure][ number=no, location=bottom, style={\switchtobodyfont[8bp]}, ] \starttext \dorecurse{4}{\samplefile{knuth}} \startplacetopfigure[title={\samplefile{ward

[NTG-context] Force bottom float to be at the bottom

2020-09-07 Thread Mikael Sundqvist
t the bottom of the page? I hope what I ask makes sense. /Mikael \useMPlibrary[dum] \definefloat[bottomfigure][bottomfigures][figure] \setupfloat[bottomfigure][default=bottom] \starttext \dorecurse{4}{\samplefile{knuth}} \startplacebottomfigure \externalfigure[dummy][width=\text

Re: [NTG-context] spacing before items

2020-06-24 Thread Mike Cooper
pted the more advanced features/coding. ?? > > > > I spent *days* trying to figure out how to add more whitespace > around a floated graphic (the default is too cramped in my opinion). I > finally just > threw up my hands and decided that no one else has this opinion

Re: [NTG-context] spacing before items

2020-06-24 Thread Henning Hraban Ramm
the jargon. I probably mainly think in terms of HTML/CSS lingo and > then MS Word. When I hunt through the wiki or the manuals or Google for > solutions, I naturally use the terms I know. But it seems that the things > I've wanted are referred to differently in ConTeXt. I spent *days

Re: [NTG-context] Float positioning

2020-04-06 Thread Tomas Hala
\hbox{{\externalfigure[#2][#3]}} \advance\myht by -\wd0 \myht=.5\myht \myxx=\myht \divide\myxx by \lineheight \mysp=\myxx \advance\mysp by 1 \setupfloat[figpage][toffset=\myht] \setupcaption[figpage][spaceafter=\the\mysp*big] \startplacefigpage[location={here},title=#1] {\externalfigu

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
e floats in the header or footer, they serve no purpose and you can include images without it. Below is a solution with nested frames but you can also use a table to create the header layout. However, replacing the figure in the page header by a normal text suddenly solves the problem: puttin

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
header by a normal text suddenly solves the problem: putting "split" in the setupfloat and "header=repeat" in the setupxtable gives me a table with repeated headers that starts exactly where I want it to start. Apparently in this case, the "headers=repeat" is necessary

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
align=middle, frame=off] {\tfx \crlf Annex T.2.3. \crlf \tfx Date of issue: \crlf \currentdate \crlf page \pagenumber of \lastpage} } }] %\setupfloat[table][default={force,split}] \setupxtable[offset=0cm, frame=off, bottomframe=on, framecolor=gray, option=stretch, split=yes, header=repeat,

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
#2{\math{\left[#1\nonscript\,;#2\right]}} \unexpanded\def\point#1#2#3{\math{#1\left(#2\,;#3\right)}} \switchtobodyfont[pagella,11pt] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,nonumber}] \setuppagenumbering [alternative=, location

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-17 Thread Fabrice Couvreur
side, but it does not work. > Thanks for your help. > Fabrice > > \usemodule[tikz] > \usetikzlibrary[trees] > > \definefloat > [recipe] > [figure] > > \setupfloat > [recipe] > [default={right,nonumber}] > \starttext > \startframed

[NTG-context] Text and tree side by side in a framedtext environment

2019-11-16 Thread Fabrice Couvreur
Hello, I want to use a text frame to put text and a probability tree side by side, but it does not work. Thanks for your help. Fabrice \usemodule[tikz] \usetikzlibrary[trees] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,nonumber}] \starttext

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Marco Patzer
i! > >>> > >>> Some images run into each other when using floats. The following > >>> example illustrates this. The second image (or frame) runs into > >>> the side figure frame. How to prevent this? > >>> > >>> \setu

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Wolfgang Schuster
figure frame. How to prevent this? \setupfloat [figure] [default=left] \starttext \samplefile{knuth} \startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure \samplefile{ward} \blank Add: \dontleavehmode Thanks for the nudge in the right direction. Is

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Marco Patzer
> > side figure frame. How to prevent this? > > > > \setupfloat [figure] [default=left] > > > > \starttext > > \samplefile{knuth} > > > > \startplacefigure [title=Foo] > >\framed [width=5cm, height=5cm]{} > > \stopplacefigure > >

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 30.10.2019 um 16:55: On Wed, 30 Oct 2019, Marco Patzer wrote: Hi! Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this? \setupfloat [figure

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Aditya Mahajan
On Wed, 30 Oct 2019, Marco Patzer wrote: Hi! Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this? \setupfloat [figure] [default=left] \starttext \samplefile{knuth

[NTG-context] Images run into each other when using side floats

2019-10-30 Thread Marco Patzer
Hi! Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this? \setupfloat [figure] [default=left] \starttext \samplefile{knuth} \startplacefigure [title=Foo] \framed

Re: [NTG-context] poem as a sidefloat

2019-09-25 Thread Wolfgang Schuster
you can only set it for *all* floats. \definefloat [poem] % \setupfloat %   [sidespacebefore=medium] \setupfloat   [poem]   [background=color,    backgroundcolor=cyan] \setupcaption   [poem]   [number=none] \starttext \dorecurse{2}{\samplefile{knuth}} \startplacefloat [poem] [location=left

Re: [NTG-context] poem as a sidefloat

2019-09-25 Thread Henning Hraban Ramm
ught I don’t need to define or setup my >> own float. >> >> \setupfloat inherits from \setupframed, but the parameters width, style and >> background(color) don’t work. >> Aren’t they supposed to work in \startplacefloat? >> >> How can I suppress the c

Re: [NTG-context] poem as a sidefloat

2019-09-25 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 25.09.2019 um 19:35: Hi, I’d like to have a small poem beside my text. My approach doesn’t work, with or without \framed: Since I need this only once, I thought I don’t need to define or setup my own float. \setupfloat inherits from \setupframed, but the

[NTG-context] poem as a sidefloat

2019-09-25 Thread Henning Hraban Ramm
Hi, I’d like to have a small poem beside my text. My approach doesn’t work, with or without \framed: Since I need this only once, I thought I don’t need to define or setup my own float. \setupfloat inherits from \setupframed, but the parameters width, style and background(color) don’t work

Re: [NTG-context] special book layout problem in ConTeXt

2019-09-21 Thread nicolas mondon
ith the imposition > > mechanism but a separate document is easier)." > > > Step 1: > > Create a document with a very big left margin where you can place all > floats. > > \setuppapersize >[A3,landscape] > > \setuplayout >[backspace=23.5cm, >

Re: [NTG-context] special book layout problem in ConTeXt

2019-09-19 Thread Wolfgang Schuster
ut a separate document is easier)." Step 1:  Create a document with a very big left margin where you can place all floats. \setuppapersize   [A3,landscape] \setuplayout   [backspace=23.5cm,    width=15cm,edge=14cm] \showframe \setupfloat   [default=leftedge,    minwidth=

[NTG-context] MetaPost with Multiple Variable Sections

2019-09-18 Thread Jeroen
I have been working with MetaPost as following, which worked fine with one startMPcode section with variables, but with 2 startMPcode Metapost sections, it keeps telling me the numbers dont add up: \definefloat [floatright][figure] \setupfloat [floatright][default={right,none

Re: [NTG-context] Unwanted white box above float

2019-07-22 Thread Duncan Hothersall
Brilliant! Thanks Taco. On Mon, 22 Jul 2019 at 16:32, Taco Hoekwater wrote: > Hi, > > \setupfloat[thematicimage] > [freeregion=no] > > But I do not know what that actually means. > I just noticed that it makes the white background box not be white

Re: [NTG-context] Unwanted white box above float

2019-07-22 Thread Taco Hoekwater
Hi, \setupfloat[thematicimage] [freeregion=no] But I do not know what that actually means. I just noticed that it makes the white background box not be white any more. Taco > On 22 Jul 2019, at 16:39, Duncan Hothersall wrote: > > Hi all. > > Have been experimentin

[NTG-context] Unwanted white box above float

2019-07-22 Thread Duncan Hothersall
Background] [background=color, backgroundcolor=cyan, frame=off, leftoffset=1em, rightoffset=1em, topoffset=1em, bottomoffset=1em, location=paragraph] \definefloat[thematicimage][figure] \setupfloat[thematicimage] [default=right,none},

Re: [NTG-context] Split extreme tables across pages

2019-07-10 Thread Thangalin
Got it. \setupfloat[table][default={here,split}] See: https://wiki.contextgarden.net/Command/setupfloat#Example On Wed, Jul 10, 2019 at 7:32 PM Thangalin wrote: > > Sorry! The subject line should be, "Split extreme tables across pages"... > > > This does the job, but

Re: [NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-30 Thread Zhichu
\definepapersize [911] [width=9in, height=11in] \setuppapersize [911] \setuplayout [backspace=1in% ,leftmargin=.5in% ,leftmargindistance=0.25in% ,width=5.5in% ,rightmargindistance=0.25in% ,rightmargin=2in% ] \definefloat [edgefigure] [figure] \setupfloat [edgefigure] [rightmargindistance=-\oute

Re: [NTG-context] Text around a figure

2019-04-24 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 24.04.2019 um 19:44: Hi, Why does bold text touch the figure ? Thank you. Fabrice \definefloat    [recipe]    [figure] \setupfloat [recipe]    [default={right,none}] \starttext \placerecipe{}{   \setupbodyfont[8pt,pagella] \startMPcode     path p, q

[NTG-context] Text around a figure

2019-04-24 Thread Fabrice Couvreur
Hi, Why does bold text touch the figure ? Thank you. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \placerecipe{}{ \setupbodyfont[8pt,pagella] \startMPcode path p, q ; p:= unitsquare xyscaled (1.5cm

[NTG-context] Question to floating figure and grid

2019-03-22 Thread Tomas Hala
makes nothing. What am I doing wrong? Best wishes, Tomáš %%% \setuplayout[grid=yes] \starttext \def\myfig#1#2#3#4{ \startplacefigure[location={right,none}] \setupfloat[roffset=0cc] % leftmargindistance=2cm \startfloatcombination[1*1] \setupfloatcaption[align=middle

Re: [NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Marco Patzer
On Wed, 19 Dec 2018 18:29:33 +0100 Hans Hagen wrote: > \setupfloat >[figure] >[default=left,margin=1cm] Thanks for the eye-opener. I realised I applied the margin on the item group instead of the float. Sometimes it's the simple

Re: [NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Hans Hagen
On 12/19/2018 1:15 PM, Marco Patzer wrote: Hi! The bullet of itemize lists runs into the boxes and caption of floats. How to add spacing so the bullet doesn't touch the float? Example: \setupexternalfigures [location=default] \setupfloat [figure] [default=left] \setupit

[NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Marco Patzer
Hi! The bullet of itemize lists runs into the boxes and caption of floats. How to add spacing so the bullet doesn't touch the float? Example: \setupexternalfigures [location=default] \setupfloat [figure] [default=left] \setupitemize [packed, autointro] \starttext \startit

Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Hans van der Meer
>> I used \setupindenting[always,medium]. This works everywhere except >> after a figure placed with \placefigure. Why does placing the figure >> suppress the indent after it? And how can this behaviour be changed? > > I wonder whehter \setupfloat[figure][indentnext=yes] wo

Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 6:10 PM, Hans van der Meer wrote: > I used \setupindenting[always,medium]. This works everywhere except > after a figure placed with \placefigure. Why does placing the figure > suppress the indent after it? And how can this behaviour be changed? I wonder whehter \setupflo

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-06 Thread Hans Hagen
ility) What is the difference of singular and plural commands like \setupfloat and \setupfloats. Does the singular always inherit from the plural? And why? in most cases they're synonyms I have a limited understanding of the \defineX \setupX and \X line, but would love to hear more. ju

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-05 Thread Jan U. Hasecke
Neat factsheet to print out, if you give a workshop about ConTeXt. I am looking for a small text explaining the naming system of the commands, because I only partly understand the interdependence of eg. singular and plural commands. What is the difference of singular and plural comma

[NTG-context] Text running of the page with default=top float paremeter

2018-12-05 Thread Marco Patzer
oes. I actually have set "default=auto, top, bottom". MWE: \definefloat [smallfigure] [smallfigures] [figure] \setupfloat [smallfigure] [default=outer] \setupfloat [figure] [default=top] %% commenting this fixes the issue \showframe \starttext \startplacefigure \extern

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-23 Thread Fabrice Couvreur
w.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ > > \def

Re: [NTG-context] Text around a table (xtables)

2018-10-10 Thread Fabrice Couvreur
lo > > > > Thank you. > > Fabrice > > > > \definefloat > > [recipe] > > [figure] > > > > \setupfloat > > [recipe] > > [default={right,none}] > > > > \starttext > > \placerecipe{}{% > > \startxtable

Re: [NTG-context] Text around a table (xtables)

2018-10-10 Thread Pablo Rodriguez
cells is 3.5cm. I hope it helps, Pablo > Thank you. > Fabrice > > \definefloat >     [recipe] >     [figure] > >   \setupfloat >     [recipe] >     [default={right,none}] > >   \starttext > \placerecipe{}{% >   \startxtable[align={middle,lohi},width

[NTG-context] Text around a table (xtables)

2018-10-10 Thread Fabrice Couvreur
Hello, Why is the text wrapping around the board or far too far ? Thank you. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \placerecipe{}{% \startxtable[align={middle,lohi},width=1.7 cm] \startxrow[background=color

[NTG-context] Blocks in margin with overflow of text

2018-08-22 Thread Fabrice Couvreur
, header=3\bodyfontsize, headerdistance=\bodyfontsize, bottom=3\bodyfontsize, location={middle}, margin=\measure{Margin}, rightmargin=4.5cm, marking=on, ] \definefloat [recipe] [figure] \setupfloat [recipe] [default={margin,none}] \defineconversionset [digit

Re: [NTG-context] Spacebefore and spaceafter a Float

2018-05-30 Thread Aditya Mahajan
\setupfloat [spacebefore=2*line, spaceafter=2*line] but not this one where I change only the values for the table instance. \setupfloat [table] [spacebefore=2*line, spaceafter=2*line] I am curious as to why this design choice was made. Does it make sense to change these to per

[NTG-context] Spacebefore and spaceafter a Float

2018-05-28 Thread John Grasty
wrong? Sincerely, John Grasty \setupfloat[table][before={\blank[2*big]}] \setupxtable[frame=off] \setupxtable[head][topframe=on,bottomframe=on] \setupxtable[body][] \setupxtable[foot][bottomframe=on] \starttext \input douglas \startplacetable[title={Cost Overview}] \startxtable \startxtablehead

Re: [NTG-context] margin of left/right floats

2018-04-04 Thread Hans Hagen
margin beside a float (image) that is placed left or right? \setupfloats[margin=3cm] I thought there should be a setting like that, but it’s missing in http://wiki.contextgarden.net/Command/setupfloat I’ll add it. I didn’t check what left/rightmargindistance does, just anticipated it would be

Re: [NTG-context] margin of left/right floats

2018-04-04 Thread Henning Hraban Ramm
ide a float (image) that is placed left >> or right? >\setupfloats[margin=3cm] I thought there should be a setting like that, but it’s missing in http://wiki.contextgarden.net/Command/setupfloat I’ll add it. I didn’t check what left/rightmargindistance does, just anticipated it would be

Re: [NTG-context] margin of left/right floats

2018-04-03 Thread Hans Hagen
] \placefigure[left]{}{} \input ward \input ward \definefloat[myleft] \setupfloat [myleft] [default=left, leftmargindistance=1cm] \placefloat [myleft]{}{} \input ward \input ward \setupfloat [myleft] [default=left, margin=1cm

Re: [NTG-context] Strange behaviour of \start/stopplacefigure

2018-04-03 Thread Hans Hagen
On 4/3/2018 12:38 AM, Aditya Mahajan wrote: On Mon, 2 Apr 2018, Wolfgang Schuster wrote: The problem is that float with the “bottom” or “auto” positions don’t indent the paragraph which appears after the float while “top” does it. begin example \setupindenting[yes,6cm] \setupfloat

  1   2   3   4   >