[NTG-context] floats re-ordering and numbering

2024-04-22 Thread denis.maier
%%% \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}{\externalfigure[cow

[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.     \se

[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 "{disab

[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.contextgarden.ne

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

2024-04-02 Thread Hans Hagen via ntg-context
a 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
at 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
ork 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 bug once. > I know, T

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
re[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 caption &g

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
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 following: \

[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

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
ginSize=\dimexpr \backspace + \rightmarginwidth + > \rightmargindistance \relax > \newdimen\TextAreaSize > \TextAreaSize=\dimexpr \textwidth + \rightmarginwidth + \rightmargindistance > \relax > \definefloat[marginfigure][marginfigures][figure] > \setupfloat[marginfigure][locat

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

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

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

2022-02-07 Thread śrīrāma via ntg-context
agraph. 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
: 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 \stoptext Marco LMTX

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
hlight[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={Tabla

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

Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
> > > > \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 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 do

[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
e 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) > Problems: >

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

2020-09-22 Thread José de Mattos Neto
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 orientation - I have no idea how

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
at 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=\textwidth

Re: [NTG-context] spacing before items

2020-06-24 Thread Mike Cooper
> > 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 but me so > nobody has ever "fixed" it and thus

Re: [NTG-context] spacing before items

2020-06-24 Thread Henning Hraban Ramm
ki 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* trying to > figure out how to add more whitespace around a floated graphic (the default > is too cramped in my

Re: [NTG-context] Float positioning

2020-04-06 Thread Tomas Hala
{{\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] {\externalfigure[#2

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

2020-04-05 Thread Wolfgang Schuster
ats 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: put

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 necess

[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

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

2019-10-30 Thread Marco Patzer
the > > 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
but 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

[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
gt; 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, > width=15cm,edge=14cm]

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

2019-09-19 Thread Wolfgang Schuster
ument 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=14cm] \starttext \

[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=color, backgroundcolor=cyan, frame=off, leftoffset=1em, rightoffset=1em, topoffset=1em, bottomoffset=1em, location=paragraph] \definefloat[thematicimage][figure] \setupfloat[thematicimage] [default=right,none}, offset=1em

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,

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

2019-05-30 Thread Zhichu
th=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=-\outercombitotal ,leftmargindistan

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
but it 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 thing

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] \setupitemize

[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 \startitemize

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
) 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. just try one

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 c

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

2018-12-05 Thread Marco Patzer
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 \externalfig

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
? 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[head

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

2018-04-04 Thread Hans Hagen
can I setup/change the 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

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

2018-04-04 Thread Henning Hraban Ramm
/change the 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,

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

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

2018-04-02 Thread Aditya Mahajan
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[figure][indentnext=yes] \starttext

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

2018-03-30 Thread Tomas Hala
indentation. What am I doing wrong? Thanks for a help, Tomáš %% TL2017 \starttext \indenting[yes,2em,first] \setupfloat[indentnext=yes] 1none. \input knuth \startplacefigure[location={none,}] \setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
foregroundstyle={\switchtobodyfont[10pt]}, > align=verytolerant, > alternative=serried, % text wrapped > frame=off, > corner=round, > ] > > \definefloat > [recipe] > [figure] > > \setupfloat >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
rnative=serried, % text wrapped frame=off, corner=round, ] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \showframe \starttext \placerecipe{} {\FrameTitle{Info}{\startFramedText[width=10cm]

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
eMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[10pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}]

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
[MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[8pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \showframe \starttext \p

Re: [NTG-context] width of floats

2017-07-30 Thread Pablo Rodriguez
h > as the main text, even with "offset", I’d like to limit the whole box to > the textwidth (or any other measure). Hi Hraban, I’m not sure wheter it might be a bug in width and maxwith not working, but the following seems to work: \definefloat[Beispiel][Beispiele] \set

[NTG-context] width of floats

2017-07-28 Thread Henning Hraban Ramm
Ahoi, I wonder how I can limit the width of a custom float, neither "width" nor "maxwidth" seems to have any effect: \definefloat[Beispiel][Beispiele] \setupfloat[Beispiel][ %width=36mm, maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yel

[NTG-context] float pages again

2017-04-05 Thread Florian Grammel
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

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
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

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Tom
> \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

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
] \setupfloat[figure][freeregion=no] \starttext \placefigure [margin]{}{} \starttextbackground [test] \dorecurse{3}{\readfile{ward}{}{}} \placefigure {}{} \dorecurse{3}{\readfile{ward}{}{}} \stoptextbackground \stoptext

  1   2   3   4   >