* Page break with placement of a figure at the bottom of the page @ 2022-11-09 16:51 Fabrice Couvreur via ntg-context 2022-11-09 18:22 ` Pablo Rodriguez via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Fabrice Couvreur via ntg-context @ 2022-11-09 16:51 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 745 bytes --] Hi, I find that for some time (but maybe the problem comes from me !), the placement of a figure at the bottom of the page causes a page break when it seems to me that there is enough space, which poses some problems in the pagination of my documents. Thanks. Fabrice \useMPlibrary[dum] \definelayout [1] [topspace=10mm, header=15mm, headerdistance=10mm, height=middle, width=middle, location=middle] \setuplayout [topspace=10mm, header=0pt, headerdistance=0pt, height=middle, width=middle, location=middle] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \showframe \starttext \dorecurse{11}{\input ward} \placerecipe{}{\externalfigure[dum]} \stoptext [-- Attachment #1.2: Type: text/html, Size: 1127 bytes --] [-- Attachment #2: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-09 16:51 Page break with placement of a figure at the bottom of the page Fabrice Couvreur via ntg-context @ 2022-11-09 18:22 ` Pablo Rodriguez via ntg-context 2022-11-09 18:38 ` Bruce Horrocks via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Pablo Rodriguez via ntg-context @ 2022-11-09 18:22 UTC (permalink / raw) To: Fabrice Couvreur via ntg-context; +Cc: Pablo Rodriguez On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote: > Hi, > I find that for some time (but maybe the problem comes from me !), the > placement of a figure at the bottom of the page causes a page break when > it seems to me that there is enough space, which poses some problems in > the pagination of my documents. Hi Fabrice, your figure requires about 7¼ lines (one line before, six for the image itself, and some extra space after it). Your layout for the first page only allows 43 lines and sample text ends on line 37. 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.25mm" to the layout for the first page and the image will fit in the first page. Just in case it might help, Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-09 18:22 ` Pablo Rodriguez via ntg-context @ 2022-11-09 18:38 ` Bruce Horrocks via ntg-context 2022-11-10 10:36 ` Fabrice Couvreur via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Bruce Horrocks via ntg-context @ 2022-11-09 18:38 UTC (permalink / raw) To: ntg-context mailing list; +Cc: Bruce Horrocks, Pablo Rodriguez On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context <ntg-context@ntg.nl> wrote: > > On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote: >> Hi, >> I find that for some time (but maybe the problem comes from me !), the >> placement of a figure at the bottom of the page causes a page break when >> it seems to me that there is enough space, which poses some problems in >> the pagination of my documents. > > Hi Fabrice, > > your figure requires about 7¼ lines (one line before, six for the image > itself, and some extra space after it). > > Your layout for the first page only allows 43 lines and sample text ends > on line 37. > > 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.25mm" to the layout for the first page and the image > will fit in the first page. > > Just in case it might help, Or Pablo's answer shown another way... change the end of the example to: \starttext \dorecurse{11}{\input ward} \placerecipe{}{\externalfigure[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 even though there isn't a caption. A work-around is to change \setupfloat to the following: \setupfloat [recipe] [default={right,none,high}] and then the image fits as you want it to. — Bruce Horrocks Hampshire, UK ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-09 18:38 ` Bruce Horrocks via ntg-context @ 2022-11-10 10:36 ` Fabrice Couvreur via ntg-context [not found] ` <CACyK-eoFTi70+i_rtPYYY=w76O86c95FRLh1xru7Q1xJZNEp4g@mail.gmail.com> 0 siblings, 1 reply; 13+ messages in thread From: Fabrice Couvreur via ntg-context @ 2022-11-10 10:36 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 2421 bytes --] Hi Bruce and Pablo, Thank you very much, your explanations are very clear. Cordially Fabrice Le mer. 9 nov. 2022 à 19:39, Bruce Horrocks via ntg-context < ntg-context@ntg.nl> a écrit : > On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context < > ntg-context@ntg.nl> wrote: > > > > On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote: > >> Hi, > >> I find that for some time (but maybe the problem comes from me !), the > >> placement of a figure at the bottom of the page causes a page break when > >> it seems to me that there is enough space, which poses some problems in > >> the pagination of my documents. > > > > Hi Fabrice, > > > > your figure requires about 7¼ lines (one line before, six for the image > > itself, and some extra space after it). > > > > Your layout for the first page only allows 43 lines and sample text ends > > on line 37. > > > > 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.25mm" to the layout for the first page and the image > > will fit in the first page. > > > > Just in case it might help, > > Or Pablo's answer shown another way... change the end of the example to: > > \starttext > \dorecurse{11}{\input ward} > \placerecipe{}{\externalfigure[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 > even though there isn't a caption. A work-around is to change \setupfloat > to the following: > > \setupfloat > [recipe] > [default={right,none,high}] > > and then the image fits as you want it to. > — > Bruce Horrocks > Hampshire, UK > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 3595 bytes --] [-- Attachment #2: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <CACyK-eoFTi70+i_rtPYYY=w76O86c95FRLh1xru7Q1xJZNEp4g@mail.gmail.com>]
[parent not found: <CACyK-eqCH76c7ea=fg=gN+niAhb2nBEqXGJXkp-RbOWUY2jfwQ@mail.gmail.com>]
[parent not found: <CACyK-ep-hb6-7n5k36Rq1UHsmcQVoV1P_thK1A5typBVhJsRVg@mail.gmail.com>]
* Re: Page break with placement of a figure at the bottom of the page [not found] ` <CACyK-ep-hb6-7n5k36Rq1UHsmcQVoV1P_thK1A5typBVhJsRVg@mail.gmail.com> @ 2022-11-10 17:06 ` Fabrice Couvreur via ntg-context 2022-11-11 20:58 ` Bruce Horrocks via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Fabrice Couvreur via ntg-context @ 2022-11-10 17:06 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 3580 bytes --] Hi, Sorry to come back to you, but it seems to me that there is enough space here. Fabrice Le jeu. 10 nov. 2022 à 18:04, Fabrice Couvreur <fabrice1.couvreur@gmail.com> a écrit : > Hi, > Sorry to come back to you, but it seems to me that there is enough space > here. > Fabrice > > Le jeu. 10 nov. 2022 à 17:45, Fabrice Couvreur < > fabrice1.couvreur@gmail.com> a écrit : > >> Hi, >> Sorry to come back to you, but it seems to me that there is enough space >> here. >> Fabrice >> >> Le jeu. 10 nov. 2022 à 11:59, Fabrice Couvreur < >> fabrice1.couvreur@gmail.com> a écrit : >> >>> Sorry to come back to you, but it seems to me that there is enough space >>> here. >>> >>> Le jeu. 10 nov. 2022 à 11:36, Fabrice Couvreur < >>> fabrice1.couvreur@gmail.com> a écrit : >>> >>>> Hi Bruce and Pablo, >>>> Thank you very much, your explanations are very clear. >>>> Cordially >>>> Fabrice >>>> >>>> Le mer. 9 nov. 2022 à 19:39, Bruce Horrocks via ntg-context < >>>> ntg-context@ntg.nl> a écrit : >>>> >>>>> On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context < >>>>> ntg-context@ntg.nl> wrote: >>>>> > >>>>> > On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote: >>>>> >> Hi, >>>>> >> I find that for some time (but maybe the problem comes from me !), >>>>> the >>>>> >> placement of a figure at the bottom of the page causes a page break >>>>> when >>>>> >> it seems to me that there is enough space, which poses some >>>>> problems in >>>>> >> the pagination of my documents. >>>>> > >>>>> > Hi Fabrice, >>>>> > >>>>> > your figure requires about 7¼ lines (one line before, six for the >>>>> image >>>>> > itself, and some extra space after it). >>>>> > >>>>> > Your layout for the first page only allows 43 lines and sample text >>>>> ends >>>>> > on line 37. >>>>> > >>>>> > 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.25mm" to the layout for the first page and the >>>>> image >>>>> > will fit in the first page. >>>>> > >>>>> > Just in case it might help, >>>>> >>>>> Or Pablo's answer shown another way... change the end of the example >>>>> to: >>>>> >>>>> \starttext >>>>> \dorecurse{11}{\input ward} >>>>> \placerecipe{}{\externalfigure[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 even though there isn't a caption. A work-around is to change >>>>> \setupfloat to the following: >>>>> >>>>> \setupfloat >>>>> [recipe] >>>>> [default={right,none,high}] >>>>> >>>>> and then the image fits as you want it to. >>>>> — >>>>> Bruce Horrocks >>>>> Hampshire, UK >>>>> >>>>> >>>>> ___________________________________________________________________________________ >>>>> If your question is of interest to others as well, please add an entry >>>>> to the Wiki! >>>>> >>>>> maillist : ntg-context@ntg.nl / >>>>> https://www.ntg.nl/mailman/listinfo/ntg-context >>>>> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >>>>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>>>> wiki : https://contextgarden.net >>>>> >>>>> ___________________________________________________________________________________ >>>>> >>>> [-- Attachment #1.2: Type: text/html, Size: 6578 bytes --] [-- Attachment #2: ie_3-2.png --] [-- Type: image/png, Size: 35691 bytes --] [-- Attachment #3: ie_3-1.png --] [-- Type: image/png, Size: 13560 bytes --] [-- Attachment #4: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-10 17:06 ` Fabrice Couvreur via ntg-context @ 2022-11-11 20:58 ` Bruce Horrocks via ntg-context 2022-11-12 11:28 ` Pablo Rodriguez via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Bruce Horrocks via ntg-context @ 2022-11-11 20:58 UTC (permalink / raw) To: ntg-context mailing list; +Cc: Bruce Horrocks > On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context <ntg-context@ntg.nl> wrote: > > Hi, > Sorry to come back to you, but it seems to me that there is enough space here. > Fabrice For some reason your PNG images came through in extremely low resolution. Without having the ConTeXt source it's hard to say for sure what's happening - for example, I would have expected the text on the second page to be at the bottom of the first even if there wasn't room for the image - because that was what was happening in your first example. — Bruce Horrocks Hampshire, UK ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-11 20:58 ` Bruce Horrocks via ntg-context @ 2022-11-12 11:28 ` Pablo Rodriguez via ntg-context 2022-11-12 14:09 ` Fabrice Couvreur via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Pablo Rodriguez via ntg-context @ 2022-11-12 11:28 UTC (permalink / raw) To: Bruce Horrocks via ntg-context; +Cc: Pablo Rodriguez On 11/11/22 21:58, Bruce Horrocks via ntg-context wrote: >> On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context wrote: >> >> Hi, >> Sorry to come back to you, but it seems to me that there is enough space here. >> Fabrice > > For some reason your PNG images came through in extremely low > resolution. Without having the ConTeXt source it's hard to say for sure > what's happening - for example, I would have expected the text on the > second page to be at the bottom of the first even if there wasn't room > for the image - because that was what was happening in your first example. Hi Fabrice and Bruce, I agree that the source would be helpful to say what may be hard for ConTeXt. In any case, ConTeXt has a hard time with pagebreaks when you combine elements that need both horizontal and vertical calculation, such as in: \starttext \dorecurse{64} {\input knuth\footnote{\input zapf} \startitemize[a, columns, eight, packed] \dorecurse{64}{\item\currentitemnumber} \stopitemize} \stoptext There is a similar issue with paragraph notes. Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-12 11:28 ` Pablo Rodriguez via ntg-context @ 2022-11-12 14:09 ` Fabrice Couvreur via ntg-context 2022-11-13 8:24 ` Pablo Rodriguez via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Fabrice Couvreur via ntg-context @ 2022-11-12 14:09 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 1937 bytes --] Hi Pablo and Bruce, Please try to figure out what is not working. I'm sorry but I forgot in my previous post files. Fabrice Le sam. 12 nov. 2022 à 12:28, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 11/11/22 21:58, Bruce Horrocks via ntg-context wrote: > >> On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context wrote: > >> > >> Hi, > >> Sorry to come back to you, but it seems to me that there is enough > space here. > >> Fabrice > > > > For some reason your PNG images came through in extremely low > > resolution. Without having the ConTeXt source it's hard to say for sure > > what's happening - for example, I would have expected the text on the > > second page to be at the bottom of the first even if there wasn't room > > for the image - because that was what was happening in your first > example. > > Hi Fabrice and Bruce, > > I agree that the source would be helpful to say what may be hard for > ConTeXt. > > In any case, ConTeXt has a hard time with pagebreaks when you combine > elements that need both horizontal and vertical calculation, such as in: > > \starttext > \dorecurse{64} > {\input knuth\footnote{\input zapf} > > \startitemize[a, columns, eight, packed] > \dorecurse{64}{\item\currentitemnumber} > \stopitemize} > \stoptext > > There is a similar issue with paragraph notes. > > Pablo > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 2975 bytes --] [-- Attachment #2: premiere-modules.tex --] [-- Type: text/x-tex, Size: 695 bytes --] \startenvironment[premiere-modules] \usesymbols[mvs] \usecolors[xwi] \usemodule[tikz] \usemodule[pgfplots] \usepgfplotslibrary[fillbetween] \pgfplotsset{compat=newest} \usetikzlibrary[arrows] \usetikzlibrary[automata] \usetikzlibrary[calc] \usetikzlibrary[backgrounds] \usetikzlibrary[intersections] \usetikzlibrary[patterns] \usetikzlibrary[bending] \usetikzlibrary[arrows.meta] \usetikzlibrary[shapes.geometric] \usetikzlibrary[plotmarks] \usetikzlibrary[shapes] \usetikzlibrary[trees] \usetikzlibrary[animations] \usetikzlibrary[quotes] \usetikzlibrary[mindmap] \usetikzlibrary[matrix,decorations.pathreplacing,fit,positioning] \stopenvironment [-- Attachment #3: premiere-macros.tex --] [-- Type: text/x-tex, Size: 2000 bytes --] \startenvironment[premiere-macros] \unexpanded\def\R{\math{\mathbb{R}}\autoinsertnextspace} \protected\def\N{\doifnextcharelse{*}\MyNstarred\MyNnormal} \def\MyNstarred*{\m{\mathbb{N}^*}\autoinsertnextspace} \def\MyNnormal {\m{\mathbb{N} }\autoinsertnextspace} \define[1]\cscript {\start\switchtobodyfont[stixtwo]\m{{\mathscript{#1}}}\stop} %\protected\def\card#1{\m{\mfunction{Card}\thinspace(#1)}} \define[1]\card {\m{\mathtexttf{Card}\thinspace(#1)}\autoinsertnextspace} \define[1]\norm {\math{\left\Vert#1\right\Vert}} \define\esp{\math{\mathcal{E}}\autoinsertnextspace} \define\espv{\math{\vec{\mathcal{E}}}\autoinsertnextspace} \define\repere {\m{\left(O\,;\vec{i}, \vec{j}\right)}\autoinsertnextspace} \define\base {\m{\left(\vec{i}, \vec{j}, \vec{k}\right)}\autoinsertnextspace} \protected\def\vector#1{% \starttikzpicture[baseline=(arg.base),>=stealth,thick] \node[inner xsep=0pt] (arg) {\m{#1}}; \draw[->,shorten >=-2pt] (arg.north west) -- (arg.north east); \stoptikzpicture% } \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX] \unexpanded\def\intervalff#1#2{\math{\left[#1\nonscript\,;#2\right]}} \unexpanded\def\intervaloo#1#2{\math{\left]#1\nonscript\,;#2\right[}} \unexpanded\def\intervalfo#1#2{\math{\left[#1\nonscript\,;#2\right[}} \unexpanded\def\intervalof#1#2{\math{\left]#1\nonscript\,;#2\right]}} \define[1]\vabs{\math{\left\vert#1\right\vert}} \define\u{\math{\left(u_n\right)}\autoinsertnextspace} \define\v{\math{\left(v_n\right)}\autoinsertnextspace} \define\w{\math{\left(w_n\right)}\autoinsertnextspace} \unexpanded\def\euros#1{#1\,\symbol[europe][EUR]} \protected\def\point#1#2#3{\math{#1\left(#2\,;#3\right)}} \protected\def\coord#1#2{\math{\left(#1\,;#2\right)}} \define[2]\prod{\m{\vector{#1}\cdot\vector{#2}}} \protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace} \stopenvironment [-- Attachment #4: tikz-style.tex --] [-- Type: text/x-tex, Size: 472 bytes --] \startenvironment[tikz-style] \pgfplotsset{ /pgfplots/layers/Bowpark/.define layer set={ axis background,axis grid,main,axis ticks,axis lines,axis tick labels, axis descriptions,axis foreground }{/pgfplots/layers/standard}} \tikzset{cross/.style={cross out, draw, thick, minimum size=2*(#1-\pgflinewidth), inner sep=0pt, outer sep=0pt}, % default radius will be 1pt. cross/.default={1pt}} \stopenvironment [-- Attachment #5: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-12 14:09 ` Fabrice Couvreur via ntg-context @ 2022-11-13 8:24 ` Pablo Rodriguez via ntg-context 2022-11-13 10:32 ` Fabrice Couvreur via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Pablo Rodriguez via ntg-context @ 2022-11-13 8:24 UTC (permalink / raw) To: Fabrice Couvreur via ntg-context; +Cc: Pablo Rodriguez On 11/12/22 15:09, Fabrice Couvreur via ntg-context wrote: > Hi Pablo and Bruce, > Please try to figure out what is not working. > I'm sorry but I forgot in my previous post files. Hi Fabrice, I get empty files when compiling premiere-modules.tex and premiere-macros.tex and error message with tikz-style.tex. I guess a fourth file invoking the other three files may be missing here. Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-13 8:24 ` Pablo Rodriguez via ntg-context @ 2022-11-13 10:32 ` Fabrice Couvreur via ntg-context 2022-11-13 13:37 ` Pablo Rodriguez via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Fabrice Couvreur via ntg-context @ 2022-11-13 10:32 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 1145 bytes --] Hi Pablo, Indeed but I posted these two files in a previous post. Fabrice Le dim. 13 nov. 2022 à 09:24, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 11/12/22 15:09, Fabrice Couvreur via ntg-context wrote: > > Hi Pablo and Bruce, > > Please try to figure out what is not working. > > I'm sorry but I forgot in my previous post files. > > Hi Fabrice, > > I get empty files when compiling premiere-modules.tex and > premiere-macros.tex and error message with tikz-style.tex. > > I guess a fourth file invoking the other three files may be missing here. > > Pablo > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 2088 bytes --] [-- Attachment #2: ie_3.tex --] [-- Type: text/x-tex, Size: 3944 bytes --] \environment[template.mkiv] \definemargindata[marginfigure][inright] \useMPlibrary[dum] \setupmargindata [marginfigure][command=\vbox,align=middle,stack=yes] \setvariables [headertext] [title={Interrogation écrite}, number={3}, day={8}, month={11}, year={2022}, location={Premières}, time={55 minutes}] \showgrid \startcomponent[ie_3] \startex Nous considérons la suite \u définie sur \N par son premier terme \m{u_0=-2} et la relation de récurrence \startformula \text{pour tout} \; n \in \N, \; u_{n+1}=\sqrt{3+u_n}. \stopformula Les termes de cette suite sont itérés par la fonction \m{f\,\colon x \longmapsto \sqrt{x+3}} qui est définie sur \intervalfo{-3}{+\infty}, et dont la représentation graphique \m{C_f} est donnée ci-après. \startlinecorrection[blank] \startmidaligned \externalfigure[spirale.pdf] \stopmidaligned \stoplinecorrection Représenter graphiquement les cinq premiers termes de cette suite. \stopex \startex La suite \u est arithmétique de raison \m{r=-7} et de premier terme \m{u_0=5}. \startitemize[n] \startitem Calculer \m{u_{16}}. \stopitem \startitem Calculer la somme \startformula \sum_{k=0}^{k=16}u_k=u_0+u_1+u_2+\cdots + u_{15}+u_{16}. \stopformula \stopitem \stopitemize \stopex \startex On considère la suite arithmétique \u, définie sur \N, telle que \m{u_{12}=52} et \m{u_{23}=107}. \startitemize[n] \startitem Calculer la raison \m{r} de la suite. \stopitem \startitem Déterminer le terme initial \m{u_0}. \stopitem \startitem Déterminer \m{u_n} en fonction de \m{n}, puis calculer \m{u_{55}}. \stopitem \startitem Donner le sens de variation de \u. \stopitem \startitem Conjecturer la limite éventuelle de la suite \u. \stopitem \stopitemize \stopex \startex On s'intéresse à des pyramides construites avec des allumettes comme ci-après . En poursuivant ainsi, on obtient des pyramides à autant d'étages que l'on souhaite à condition, bien sûr, d'avoir assez d'allumettes. \startlinecorrection[blank] \startmidaligned \startcombination[3*1] {\externalfigure[pyramide_1.pdf]}{\tfx 1 étage} {\externalfigure[pyramide_2.pdf]}{\tfx 2 étages} {\externalfigure[pyramide_3.pdf]}{\tfx 3 étages} \stopcombination \stopmidaligned \stoplinecorrection Le 1\high{\tfxx er} étage est formé de 3 allumettes, le 2\high{\tfxx e} de 7 allumettes, et le 3\high{\tfxx e} de 11 allumettes. \startitemize[n] \startitem De combien d'allumettes est formé le 4\high{\tfxx e} étage ? Le 5\high{\tfxx e} ? \stopitem \startitem Pour tout entier naturel \m{n\geqslant 1}, on note \m{u_n} le nombre d'allumettes du \m{n-\text{ième}} étage. Ainsi, nous avons \m{u_1=3}. Justifier que la suite \u est arithmétique en précisant sa raison. \stopitem \startitem Déterminer le calcul explicite de \m{u_n} en fonction de \m{n}, \m{u_1} et \m{r}. \stopitem \placerecipe{}{ \externalfigure[pyramide.png][scale=850]} \startitem Déterminer le nombre d'allumettes du 10\high{\tfxx e} étage. \stopitem \startitem Combien d'allumettes au total ont été nécessaires pour réaliser la construction jusqu'au 10\high{\tfxx e} étage ? \stopitem \startitem On considère la fonction {\tt \darkred pyramide()} ci-contre programmée en langage Python. À quoi correspond le nombre renvoyé par {\tt \darkred pyramide(3)} ? \stopitem \stopitemize \stopex \stopcomponent % Local Variables: % mode: context % TeX-command-default: "lmtx" % End: [-- Attachment #3: template.mkiv --] [-- Type: application/octet-stream, Size: 5641 bytes --] \startenvironment[template.mkiv] \environment[premiere-modules] \environment[premiere-macros] \environment[tikz-style] \definelayout [1] [topspace=10mm, bottomspace=10mm, header=15mm, headerdistance=10mm, height=middle, width=middle, location=middle] \setuplayout [topspace=10mm, bottomspace=10mm, header=0pt, headerdistance=0pt, height=middle, width=middle, location=middle] \setuppagenumbering [alternative=, location=] \definetypeface [metafunbodyfont] [rm] [serif] [modern] [default] \definetypeface [metafunbodyfont] [ss] [sans] [modern] [default] \definetypeface [metafunbodyfont] [tt] [mono] [modern] [default] \definetypeface [metafunbodyfont] [mm] [math] [modern] [default] \setupbodyfont [metafunbodyfont,12pt] \usebodyfont [stixtwo] \mainlanguage [fr] \setupmathematics[stylealternative=calligraphic] \setcharacterspacing [frenchpunctuation] \setupinteraction[state=start] \definefont [TextStyle] [SansBold*default sa 1.2] \startuseMPgraphic {testbackground} draw (origin -- (TextWidth,0)) leftenlarged BackSpace rightenlarged CutSpace withpen pencircle scaled 1bp withcolor OverlayColor; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay [testbackground] [\useMPgraphic{testbackground}] \startsetups [header] \startframed [frame=off,background=testbackground,backgroundcolor=darkred,width=max] {\getbuffer[HeaderTable]} \stopframed \stopsetups \setupheadertexts [\doif{\pagenumber}{1}{\directsetup{header}}] \setupfootertexts[{Page \pagenumber\ sur \goto{\lastpagenumber}[lastpage]}] \startbuffer[HeaderTable] \bTABLEnested[frame=off,textwidth=\textwidth,height=\headerheight,option=stretch] \bTR \bTD[width=2cm,style=\ssx,align={lohi,flushleft}] \getvariable{headertext}{location}\par \getvariable{headertext}{time} \eTD \bTD[background=color,backgroundcolor=lightgray,style=\ssbfa\setupinterlinespace,align={lohi,middle}] Spécialité mathématiques\par \getvariable{headertext}{title} n\high{\tfxx \bf o}\,\getvariable{headertext}{number} \eTD \bTD[width=2cm,style=\ssx,align={lohi,flushright}] Lycée LA SALLE\par \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}] \eTD \eTR \eTABLEnested \stopbuffer \startsetups [headertext] \setupheadertexts [{\getbuffer[HeaderTable]}] \stopsetups \startuseMPgraphic{small grid} numeric w ; w := \overlaywidth ; numeric h ; h := \overlayheight ; numeric d ; d := .25cm ; drawoptions(withcolor (.6+uniformdeviate.35)*white) ; for i=0cm step d until w : for j=0cm step d until h : fill unitsquare scaled d shifted (i,j) ; endfor ; endfor ; drawoptions(withpen pencircle scaled .125mm withcolor .625yellow) ; for i=0 step d until w+d : draw (i,0) -- (i,h) ; endfor ; for i=0 step d until h+d : draw (0,i) -- (w,i) ; endfor ; \stopuseMPgraphic \defineoverlay[small grid][\useMPgraphic{small grid}] \starttexdefinition unexpanded OnGrid#1 \hbox to \hsize \bgroup \ifodd\realpageno \hss \fi \setbox\scratchbox=\hbox { \color[black]{#1} } \scratchoffset.25cm \scratchwidth\wd\scratchbox \ifdim\scratchwidth>\zeropoint \advance \scratchwidth by .5\scratchoffset \divide \scratchwidth by \scratchoffset \multiply\scratchwidth by \scratchoffset \advance \scratchwidth by 2\scratchoffset \else \scratchwidth8\scratchoffset \fi \dp\scratchbox \scratchoffset \ht\scratchbox 2\scratchoffset \framed [ background=small grid, frame=off, offset=overlay ] { \hbox to \scratchwidth { \hss \box\scratchbox \hss } } \unless \ifodd\realpageno \hss \fi \egroup \stoptexdefinition \startuseMPgraphic{acframe} fill OverlayBox leftenlarged ExHeight rightenlarged ExHeight withcolor "lightgray"; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay [acframe] [\useMPgraphic{acframe}] \defineframed [ACFRAME] [frame=off, width=fit, align=flushleft, location=low, background=acframe, ] \setupenumerations [before={\blank}, after={\blank}, alternative=top, distance=1em, title=yes, titleleft=, titleright=, titlestyle=normal, headcommand=\groupedcommand{}{.}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=fit] \defineenumeration [ex] [text=Exercice, alternative=top, headcommand=\ACFRAME, number=yes, numbercommand=\groupedcommand{}{.}, style=normal] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none,high}] \definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00] \defineframedtext [algorithmframe] [width=fit, foregroundstyle={\tt\switchtobodyfont[11pt]}, framecolor=cyan, rulethickness=2pt, location=middle, before=\blank, after=\blank, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \stopenvironment [-- Attachment #4: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-13 10:32 ` Fabrice Couvreur via ntg-context @ 2022-11-13 13:37 ` Pablo Rodriguez via ntg-context 2022-11-16 13:55 ` Fabrice Couvreur via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Pablo Rodriguez via ntg-context @ 2022-11-13 13:37 UTC (permalink / raw) To: Fabrice Couvreur via ntg-context; +Cc: Pablo Rodriguez On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote: > Hi Pablo, > Indeed but I posted these two files in a previous post. Hi Fabrice, the output from your ie_3.tex is too big for the list, so https://pdf.ousia.tk/ie_3.pdf contains it. I see no problem there, but I think that the output from https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come from a different source. BTW, I couldn’t find "ie_3.tex" in https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to be generated with messages previous to current date). If you sent the files before, it is fine to include a link to the relevant message in the list (such as the first link included in this message). BTW, it might be worth considering a GitHub or GitLab repository for not minimal samples. There files may be stored (and the whole repository might be deleted when not needed). I hope it helps, Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-13 13:37 ` Pablo Rodriguez via ntg-context @ 2022-11-16 13:55 ` Fabrice Couvreur via ntg-context 2022-11-16 13:59 ` Fabrice Couvreur via ntg-context 0 siblings, 1 reply; 13+ messages in thread From: Fabrice Couvreur via ntg-context @ 2022-11-16 13:55 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 1819 bytes --] Hi Bruce and Pablo, I'm sorry for the late reply but I'm running out of time right now. Thanks for trying to solve the problem. I think the problem comes from the pyramid.png file. Fabrice Le dim. 13 nov. 2022 à 14:37, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote: > > Hi Pablo, > > Indeed but I posted these two files in a previous post. > > Hi Fabrice, > > the output from your ie_3.tex is too big for the list, so > https://pdf.ousia.tk/ie_3.pdf contains it. > > I see no problem there, but I think that the output from > https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come > from a different source. > > BTW, I couldn’t find "ie_3.tex" in > https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to > be generated with messages previous to current date). > > If you sent the files before, it is fine to include a link to the > relevant message in the list (such as the first link included in this > message). > > BTW, it might be worth considering a GitHub or GitLab repository for not > minimal samples. There files may be stored (and the whole repository > might be deleted when not needed). > > I hope it helps, > > Pablo > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 3024 bytes --] [-- Attachment #2: pyramide.png --] [-- Type: image/png, Size: 89409 bytes --] [-- Attachment #3: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Page break with placement of a figure at the bottom of the page 2022-11-16 13:55 ` Fabrice Couvreur via ntg-context @ 2022-11-16 13:59 ` Fabrice Couvreur via ntg-context 0 siblings, 0 replies; 13+ messages in thread From: Fabrice Couvreur via ntg-context @ 2022-11-16 13:59 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur [-- Attachment #1.1: Type: text/plain, Size: 2168 bytes --] Hi Bruce and Pablo, I'm sorry for the late reply but I'm running out of time right now. Thanks for trying to solve the problem. I think the problem comes from the pyramid.png file. Fabrice Le mer. 16 nov. 2022 à 14:55, Fabrice Couvreur <fabrice1.couvreur@gmail.com> a écrit : > Hi Bruce and Pablo, > I'm sorry for the late reply but I'm running out of time right now. Thanks > for trying to solve the problem. I think the problem comes from the > pyramid.png file. > Fabrice > > Le dim. 13 nov. 2022 à 14:37, Pablo Rodriguez via ntg-context < > ntg-context@ntg.nl> a écrit : > >> On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote: >> > Hi Pablo, >> > Indeed but I posted these two files in a previous post. >> >> Hi Fabrice, >> >> the output from your ie_3.tex is too big for the list, so >> https://pdf.ousia.tk/ie_3.pdf contains it. >> >> I see no problem there, but I think that the output from >> https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come >> from a different source. >> >> BTW, I couldn’t find "ie_3.tex" in >> https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to >> be generated with messages previous to current date). >> >> If you sent the files before, it is fine to include a link to the >> relevant message in the list (such as the first link included in this >> message). >> >> BTW, it might be worth considering a GitHub or GitLab repository for not >> minimal samples. There files may be stored (and the whole repository >> might be deleted when not needed). >> >> I hope it helps, >> >> Pablo >> >> ___________________________________________________________________________________ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> >> ___________________________________________________________________________________ >> > [-- Attachment #1.2: Type: text/html, Size: 3768 bytes --] [-- Attachment #2: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2022-11-16 13:59 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-11-09 16:51 Page break with placement of a figure at the bottom of the page Fabrice Couvreur via ntg-context 2022-11-09 18:22 ` Pablo Rodriguez via ntg-context 2022-11-09 18:38 ` Bruce Horrocks via ntg-context 2022-11-10 10:36 ` Fabrice Couvreur via ntg-context [not found] ` <CACyK-eoFTi70+i_rtPYYY=w76O86c95FRLh1xru7Q1xJZNEp4g@mail.gmail.com> [not found] ` <CACyK-eqCH76c7ea=fg=gN+niAhb2nBEqXGJXkp-RbOWUY2jfwQ@mail.gmail.com> [not found] ` <CACyK-ep-hb6-7n5k36Rq1UHsmcQVoV1P_thK1A5typBVhJsRVg@mail.gmail.com> 2022-11-10 17:06 ` Fabrice Couvreur via ntg-context 2022-11-11 20:58 ` Bruce Horrocks via ntg-context 2022-11-12 11:28 ` Pablo Rodriguez via ntg-context 2022-11-12 14:09 ` Fabrice Couvreur via ntg-context 2022-11-13 8:24 ` Pablo Rodriguez via ntg-context 2022-11-13 10:32 ` Fabrice Couvreur via ntg-context 2022-11-13 13:37 ` Pablo Rodriguez via ntg-context 2022-11-16 13:55 ` Fabrice Couvreur via ntg-context 2022-11-16 13:59 ` Fabrice Couvreur via ntg-context
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).