[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-23 Thread Joel via ntg-context
where I need to reduce page count. So I thought an alternative route: (1) have a code that checks "what is current footnote number?" that sets that as a variable \def\currentfoodnote{\somevariableincontextthatgetsfoodnotenumber} (2) adjust my placefigure macro such that the footnote

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread vm via ntg-context
On 22/04/2024 14:38, Joel via ntg-context wrote: Is this the correct way to be using the \startpostponing code (see example below)? \starttext     \input knuth \startpostponing     \placefigure{Caption\footnote{message A}}{\externalfigure[cow][width=\textwidth]} \stoppostponing

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Joel via ntg-context
I've managed to get a minimum working example. If you check, you'll see the 5th footnote inside a placefigure doesn't render anywhere: \starttext     \input knuth     \placefigure{Caption\footnote{message A}}{\externalfigure[cow][width=\textwidth]}     \input knuth     \placefigure{Caption

[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: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
cal,global,default}] \starttext \placefigure{A Cow}{\externalfigure[cow][ height=.5\textheight, ]} \placefigure{A Cow}{\externalfigure[cow][ height=.3\textheight, %height=.4\textheight, ]} \placefigure{A Co

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Denis Maier via ntg-context
[location={local,global,default}] \starttext \placefigure{A Cow}{\externalfigure[cow][ height=.5\textheight, ]} \placefigure{A Cow}{\externalfigure[cow][ height=.3\textheight, %height=.4\textheight

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Wolfgang Schuster
re instances of "_startsection"? https://wiki.contextgarden.net/Command/_placefloat is the general page for the instances placefigure, placetable etc. My bad, thank you for the correction! Wolfgang ___ I

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Henning Hraban Ramm
ki.contextgarden.net/Command/_placefloat is the general page for the instances placefigure, placetable etc. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] Weird (?) float placement for specific widths of image

2024-04-10 Thread Denis Maier via ntg-context
Hi, another graphics/floats question: consider the following example % \setupexternalfigures [location={local,global,default}] \starttext \placefigure{A Cow}{\externalfigure[cow][ height=.5\textheight

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

2024-04-06 Thread Thomas Meyer
] \starttext \input{knuth} \startlinecorrection \placefigure[left, none] []{}\externalfigure[cow.pdf][width=40mm] \input{knuth} \stoplinecorrection \stoptext Thomas Am 06.04.24 um 13:43 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 06.04.2024 um 12:56: Am 06.04.24 um 12:48 schrieb Thomas

[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] blank line and \placefigure

2024-04-06 Thread Thomas Meyer
Hi folks, how can I suppress a blank line between a text paragraph and \placefigure? I get one there, but I don't want it. Thanks and greetings on a sunny weekend Thomas ___ If your question is of interest to others

[NTG-context] Re: How to get an image to fill the maximum available space?

2024-03-30 Thread Hans Hagen
On 3/30/2024 12:07 PM, Bruce Horrocks wrote: On 30 Mar 2024, at 09:38, Henning Hraban Ramm wrote: Am 30.03.24 um 03:15 schrieb Joel via ntg-context: I have code like this: \placefigure[here, force]{my caption}{% \externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth

[NTG-context] Re: How to get an image to fill the maximum available space?

2024-03-30 Thread Bruce Horrocks
> On 30 Mar 2024, at 09:38, Henning Hraban Ramm wrote: > > Am 30.03.24 um 03:15 schrieb Joel via ntg-context: >> I have code like this: >> \placefigure[here, force]{my caption}{% >> \externalfigure[#1][frame=on, maxheight=1.2\textwidth, >> maxwidth

[NTG-context] Re: How to get an image to fill the maximum available space?

2024-03-30 Thread Henning Hraban Ramm
Am 30.03.24 um 03:15 schrieb Joel via ntg-context: I have code like this:     \placefigure[here, force]{my caption}{%         \externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth=\textwidth]%     }% I need some images to appear in a book. I need them to keep their proper

[NTG-context] How to get an image to fill the maximum available space?

2024-03-29 Thread Joel via ntg-context
I have code like this:     \placefigure[here, force]{my caption}{%         \externalfigure[#1][frame=on, maxheight=1.2\textwidth, maxwidth=\textwidth]%     }% I need some images to appear in a book. I need them to keep their proper ratios, but scale up to the maximize the available space

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Jean-Pierre Delange
e process of >> enriching and clarifying a few pages of the ConTeXt wiki and the French >> wikibook, I'm interested in the details concerning the position of figures, >> images and photos etc. So please let me know (in private mail) how you make >> your documents (a MWE

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Henning Hraban Ramm
vate mail) how you make your documents (a MWE will do). Position options: * relative placement as floats, i.e. \placefigure * absolute placement on layers, i.e. \setlayer * relative corrections with \offset (also within floats) Hr

[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
span mid column. Notes can go in columns %D or at the end. We can start with a single column (for titles and such). I can't figure out which part of the file should be used/adapted to start with a single column. What I did is to put datas and abstract in a frame and use \placefigure. As stated

[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Henning Hraban Ramm
Am 11.01.24 um 16:15 schrieb vm via ntg-context: How can I wrap an externalfigure into a box that can be placed within running text? \externalfigure[dummy][frame=on] With or without a \placefigure Should I wrap the externalfigure into a start/stop buffer, then place it? I don’t see why

[NTG-context] Question about drawing flowchart using chart module

2023-12-27 Thread Jeong Dal via ntg-context
OWcell \name{h} \location{3,5} \shape{76} \text{$a$ is equal \\ to $b$} \connection[bt]{f} \stopFLOWcell \startFLOWcell \name{f} \location{2,6} \shape{loop} \text{stop} \stopFLOWcell \stopFLOWchart \placefigure [here][fig:bigger] {Which is bigger?}

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-10 Thread Hans Hagen via ntg-context
On 12/9/2023 4:33 PM, Aditya Mahajan wrote: On Sat, 9 Dec 2023, Wolfgang Schuster wrote: \starttext \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3}}:

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 09.12.2023 um 17:19: Very clear ! In typography for Mathematics books, what choice should we make for the best possible result ? A question better answered by Mikael or Aditya! Wolfgang

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Aditya Mahajan
On Sat, 9 Dec 2023, Wolfgang Schuster wrote: > \starttext > > \startlines > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} > \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}} > \type{\frac{1}{3}}:

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 09.12.2023 um 16:13: Hi Wolfgang, I'm reading this thread and I'm interested because I type a lot of text with mathematical formulas. In fact, I find that \dfrac{} creates unsightly leading space and that \frac{} is too small. What is the difference between \frac{}

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread anton . chigurh
Thanks :-) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage :

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Fabrice Couvreur
Hi Wolfgang, I'm reading this thread and I'm interested because I type a lot of text with mathematical formulas. In fact, I find that \dfrac{} creates unsightly leading space and that \frac{} is too small. What is the difference between \frac{} and \tfrac{} ? Fabrice Le sam. 9 déc. 2023 à 14:00,

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Henning Hraban Ramm
Am 09.12.23 um 14:43 schrieb Wolfgang Schuster: anton.chig...@mail.com schrieb am 09.12.2023 um 14:15: \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3}}:

[NTG-context] Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
anton.chig...@mail.com schrieb am 09.12.2023 um 14:15: I worked, ;-), thanks. Let me ask you another thing, how can I avoid messing up the line spacing by using \sqrt and \frac, the line that follows these has increased line spacing in the pdf output code: Find the normal and shearing stresses

[NTG-context] Re: \placefigure[location=here...] problem

2023-12-09 Thread anton . chigurh
I worked, ;-), thanks. Let me ask you another thing, how can I avoid messing up the line spacing by using \sqrt and \frac, the line that follows these has increased line spacing in the pdf output code: Find the normal and shearing stresses on an oblique plane defined by $l=\sqrt{\frac{3}{13}}$,

[NTG-context] Re: \placefigure[location=here...] problem

2023-12-09 Thread Wolfgang Schuster
anton.chig...@mail.com schrieb am 09.12.2023 um 11:50: Hi all, I am generating a quiz, with eight questions, each with text and a figure following it. The output was fine till the fifth question, but then the margin separating the text of each question disappeared and the figure got put on the

[NTG-context] \placefigure[location=here...] problem

2023-12-09 Thread anton . chigurh
Hi all, I am generating a quiz, with eight questions, each with text and a figure following it. The output was fine till the fifth question, but then the margin separating the text of each question disappeared and the figure got put on the next page one after the other. Can anyone suggest what I

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Mia Bikey
t;> with right side inline images. > >> > >> Here is a Minimal Working Example: > >> > >> ConTeXt ver: 2023.09.26 18:19 LMTX > >> > >> \setupbodyfont[mono] > >> > >> \starttext > >> > >> Image on the ri

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Hans Hagen
] \starttext Image on the right side gets issues. \placefigure[right]{}{\externalfigure[dummy]} \input tufte \\ Image on the left side is fine. \placefigure[left]{}{\externalfigure[dummy]} \input tufte \stoptext I fear there’s something generally wrong with mono font calculations, also affecting

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Mia Bikey
to have issues > > with right side inline images. > > > > Here is a Minimal Working Example: > > > > ConTeXt ver: 2023.09.26 18:19 LMTX > > > > \setupbodyfont[mono] > > > > \starttext > > > > Image on the right side gets issues. > > \pla

[NTG-context] Re: Mono font goes inside right inline image

2023-10-28 Thread Henning Hraban Ramm
. \placefigure[right]{}{\externalfigure[dummy]} \input tufte \\ Image on the left side is fine. \placefigure[left]{}{\externalfigure[dummy]} \input tufte \stoptext I fear there’s something generally wrong with mono font calculations, also affecting line breaking, since I get overfull hboxes

[NTG-context] Mono font goes inside right inline image

2023-10-28 Thread Mia Bikey
Hi, I was using mono font as my default font but it appears to have issues with right side inline images. Here is a Minimal Working Example: ConTeXt ver: 2023.09.26 18:19 LMTX \setupbodyfont[mono] \starttext Image on the right side gets issues. \placefigure[right]{}{\externalfigure[dummy

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
h] {\x }; } \draw [color=red!50, line width=2pt] (0,0) -- (2,0); \stoptikzpicture \par \item \starttikzpicture \draw (0,0) -- (5,0); \foreach \x in {0, 1, 2,..., 5} { \draw (\x , -0.2) -- (\x , 0.2); \draw (\x ,-0.2) node[anchor=north] {\x }; } \draw [color=green!50, line width=2pt] (0,0) -- (3,0); \sto

[NTG-context] Very strange error:

2023-08-14 Thread Xavier B.
vegeu la figura~\\in [figura:diagrama-punts-5x10]) representeu la informació donada en cada cas. \\par \\placefigure [force] [figura:diagrama-punts-5x10] {Diagrama de punts $5 \\times 10$} { \\bTABLE [frame=off,align={middle,lohi},width=fit, offset=2mm] \\bTR \\bTD \\starttikzpicture \\foreach \\x i

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Henning Hraban Ramm via ntg-context
r cases (which uses the same tricks) I have one macro to place an page-width image with bleed, it uses \placefigure[top] and then \offset to move the image, so that it starts with bleed on the top side and with/without on the left side depending on a parameter that I change manually if the p

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-24 Thread Henning Hraban Ramm via ntg-context
on the next page, that is fine, but I don't want the next group of text to appear until *after* the figure. This is really confusing my readers. \starttext     \input knuth     \input knuth     {\boldface This is a short note about the picture. It should appear right after this.}  \placefigure

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-21 Thread Wolfgang Schuster via ntg-context
of text to appear until *after* the figure. This is really confusing my readers. \starttext     \input knuth     \input knuth     {\boldface This is a short note about the picture. It should appear right after this.}  \placefigure[here,force]{caption}{  \externalfigure[1.jpg][width=\textwidth

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-21 Thread Joel via ntg-context
. This is really confusing my readers. \starttext     \input knuth     \input knuth     {\boldface This is a short note about the picture. It should appear right after this.}     \placefigure[here,force]{caption}{         \externalfigure[1.jpg][width=\textwidth]     }     \input knuth     \input knuth

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-21 Thread Mikael Sundqvist via ntg-context
Hi, On Sun, May 21, 2023 at 3:48 AM Joel via ntg-context wrote: > > I have been using \placefigure[here, force] to place some graphics, but its > instead showing other text from the next section, then the picture. In > testing, this is causing readers to be confused, as they e

[NTG-context] How to really force figure to appear "here"?

2023-05-20 Thread Joel via ntg-context
I have been using \placefigure[here, force] to place some graphics, but its instead showing other text from the next section, then the picture. In testing, this is causing readers to be confused, as they expect to see a picture, but its somehow appearing two pages later. I don't care

[NTG-context] SVG ViewBox figure battle

2023-05-19 Thread Thangalin via ntg-context
Hi there! The following document contains SVG. Save the SVG as "problem.svg" and run the document through LMTX version 2023.05.08 17:39: % SOF \startbuffer[csvg] \stopbuffer \starttext % honours viewbox \placefigure[none]{}{\includesvgbuffer[csvg]} \page % dishonou

[NTG-context] Problem with float and new layout on same page

2022-12-25 Thread peter.hopcroft--- via ntg-context
][footerdistance=100mm, ] \definelayout[odd][reset] % ?? \definelayout[even][reset] \starttext \dorecurse{3}{\input{knuth} } % change to \dorecurse{2} - it works properly \definelayout[2][mypage] \dorecurse{2}{\input{knuth} } \placefigure [leftmargin] {} {\externalfigure[greybox][width

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Thangalin via ntg-context
t; gradientUnits="userSpaceOnUse"/> > offset="0"/> > stop-opacity="0"/> > transform="translate(-48.91 -90.879)"> > fill-opacity=".5" d="M48.769 90.936H164.64V206.96H48.769z"/> > cx="106.745" cy="148.713" r=&q

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Hans Hagen via ntg-context
On 12/14/2022 5:46 AM, Thangalin via ntg-context wrote: Hi there! Any thoughts on implementing SVG gradients in MetaPost? % SOF \startbuffer[csvg] http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; viewBox="0 0 115.669 115.669"> \stopbuffer \startte

[NTG-context] Radial and linear gradients

2022-12-13 Thread Thangalin via ntg-context
Hi there! Any thoughts on implementing SVG gradients in MetaPost? % SOF \startbuffer[csvg] http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; viewBox="0 0 115.669 115.669"> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[csvg][conversion=mp]} \s

Re: [NTG-context] How to set the vertical spacing between a sequence of images?

2022-10-25 Thread Henning Hraban Ramm via ntg-context
Am 25.10.22 um 02:32 schrieb Joel via ntg-context: I have code like this which randomly pulls a page from `comic2.pdf` and displays it, scaled to fit \textwidth, then displays four more random pages afterwares. \starttext    \dorecurse{5}{             \placefigure[force, none

[NTG-context] How to set the vertical spacing between a sequence of images?

2022-10-24 Thread Joel via ntg-context
I have code like this which randomly pulls a page from `comic2.pdf` and displays it, scaled to fit \textwidth, then displays four more random pages afterwares. \starttext   \dorecurse{5}{             \placefigure[force, none]{}{\framed[frame=off]{\externalfigure[comic2.pdf][page

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context
roll. \stopbuffer \starttext \startOliver {\bf Definition: Hello World} \blank[medium] \placefigure[right,none]{This is an example of a logo.}{\externalfigure[dummy]} \getbuffer[sampletext] \stopOliver \startDefinition[title={Hello World}] \placefigure[right,none]{This is an example

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
Dear Uschi Thanks for the example. But unfortunately it behaves similiar. As soon as I want to place the figure to the right by using \placefigure [right]… with floating text to the left. The framed environment behaves strange, i.e. it seems to ignore the image. Just using a centered image

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Ursula Hermann via ntg-context
humans had ever evolved or not. \placefigure [][fig:church] {Stephanus Church.} {\externalfigure[ma-cb-24][width=.4\textwidth]} \stopprettyblock \setupindenting[next] Below, we have two separate columns; but up here, for the nonce, we have but the one. \startcolumns [n=2] Text, text, text \dots

[NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
,framecolor=black] {{\bf Definition: Hello World} \blank[medium] \placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]} Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake chupa

[NTG-context] Lopsided circles

2022-10-18 Thread Thangalin via ntg-context
Using 2022.09.11 20:44, there appears to be a problem with rendering some circular forms, such as: % SOT \startbuffer[circle] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[circle][conversion=mp]} \stoptext % EOT In Inkscape, this renders as a full circle without any deformation

[NTG-context] SVG path conversion misalignment

2022-09-11 Thread Thangalin via ntg-context
Hi there, % SOT \startbuffer[dna] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[dna][conversion=mp]} \stoptext % EOT In the PDF that's generated, the curve of the gray semi-circle is malformed with respect to the blackground. It's like there's a small chip. The expected result

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread Hans Hagen via ntg-context
] \chapter{通用规} \placefigure [left,none] {汉字表} {\framed [width=4cm, height=2\lineheight, frame=off, backgroundcolor=darkgreen, foregroundcolor=white, background=color] {汉字表}} \dorecurse{40}{% 通用规\ruby{范

Re: [NTG-context] Bug (?) with \placefigure[right]

2022-08-16 Thread Wolfgang Schuster via ntg-context
} \placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]} \input lorem } \stoptext I actually want \placefigure[right,none] in my real doc but that also goes awry. LMTX current version: 2022.08.05 11:44 My actual requirement is to have a set of short biographies, including a small 'passport' photo

[NTG-context] Bug (?) with \placefigure[right]

2022-08-16 Thread Bruce Horrocks via ntg-context
Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly with three or so nearly blank (except for the subject) pages produced. \setuppapersize [A5] [A5] \starttext \dorecurse{12}{ \subject{Some heading} \placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]} \input

[NTG-context] SVG text clipping issue

2022-06-29 Thread Thangalin via ntg-context
Text that's tight against its viewbox gets clipped: https://i.ibb.co/BGQVzzx/text-clipped.png Here's the code: % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbu

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Thangalin via ntg-context
] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF ___ If your question is of

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Hans Hagen via ntg-context
isn't the issue.) % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF This has nothing to do with SVG. Looking at the de

Re: [NTG-context] SVG text alignment issue

2022-06-28 Thread Aditya Mahajan via ntg-context
ot; >x="-48.831322" >y="15.60547" > > > style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;font-family:Roboto;-inkscape-font-specification:'Roboto, > Normal';font-variant-ligatures:normal;

[NTG-context] SVG text alignment issue

2022-06-28 Thread Thangalin via ntg-context
0/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] How to print a random whole number between x and y?

2022-06-17 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 17.06.2022 um 16:10: I was using this code for a long time in my document. I have a PDF with 10 pages, and this would randomly display one of those pages:    \ctxlua{math.randomseed( os.time() )}         \getrandomnumber \n {1} {10}      \placefigure

[NTG-context] How to print a random whole number between x and y?

2022-06-17 Thread Joel via ntg-context
I was using this code for a long time in my document. I have a PDF with 10 pages, and this would randomly display one of those pages:    \ctxlua{math.randomseed( os.time() )}                  \getrandomnumber \n {1} {10}              \placefigure[force, none]{}{\framed[frame=off

Re: [NTG-context] Why are some images rendered very tiny?

2022-06-15 Thread Henning Hraban Ramm via ntg-context
Am 15.06.22 um 18:11 schrieb Joel via ntg-context: I wrote this macro to display images in my book. It should place the image to the left, filling ~50% of \textwidth, then the caption is to the right. \setupcaption[location=right, minwidth=.5\textwidth] \define[4]\figureis{%     \placefigure

[NTG-context] Why are some images rendered very tiny?

2022-06-15 Thread Joel via ntg-context
I wrote this macro to display images in my book. It should place the image to the left, filling ~50% of \textwidth, then the caption is to the right. \setupcaption[location=right, minwidth=.5\textwidth] \define[4]\figureis{%     \placefigure{#2, Courtesy #3, photo no. #1\nocite[#4

[NTG-context] is \version[temporary] still alive?

2022-05-22 Thread Steffen Wolfrum via ntg-context
successfully placed floats \placefigure[here][fig1]{First windmill}{ \externalfigure[mill][width=1cm] } \placefigure[here][fig2]{Second windmill}{ \externalfigure[mill][width=1cm] } \startcolumns[n=3] % Overfull lines will have slugs in colum margins. \input linden % Underful

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
SVG generators. >> Renjin uses JFreeSVG when exporting as SVG. As you pointed out, there are no >> issues with R because it will export an SVG file without any double >> semicolons. >> >> In other words, try this: >> >> \startbuffer[svg] >> &

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
, try this: > > \startbuffer[svg] > >style="stroke:rgb(0,0,0);;fill:none" /> > > \stopbuffer > > \starttext > \placefigure{}{\includesvgbuffer[svg][conversion=mp]} > \stoptext > > If you get a black square, that's the bug. If you ge

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext If you get a black square, that's the bug. If you get a white square, then there's something different about our environment setups. Cheers! On Mon, May 9, 2022 at 1:55 AM Heinrich Paeßens wrote: >

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
buffer[svg] > >style="stroke:rgb(0,0,0);;fill:none" /> > > \stopbuffer > > \starttext > \placefigure{}{\includesvgbuffer[svg][conversion=mp]} > \stoptext > > Remove the extra semicolon to get the expected result: > > >

[NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
Hey hey, The following produces a filled square, rather than an empty one: \startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext Remove the extra semicolon to get the expected result: It appears that a style immediately following

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Bruce Horrocks via ntg-context
]{\copyright A great artist}} \placefigure [ ] [fig:cow] {A fine figure of a cow} {\composedcollector{example}} \stoptext In the above the cow is drawn with the figure caption below as normal and with the copyright text running upwards along the edge of the right-hand edge of the image

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Richard Mahoney via ntg-context
dgement / photographer > credit on an image but I'm not sure what's the best way to do it. > > Option 1: I can add the acknowledgement to the end of the > \placefigure caption text: > > e.g.   \placefigure{A picture of a cow. Image of a cow that may or > may not be under copyright >

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Henning Hraban Ramm via ntg-context
Am 04.05.22 um 23:59 schrieb Bruce Horrocks via ntg-context: I need to include the copyright acknowledgement / photographer credit on an image but I'm not sure what's the best way to do it. Option 1: I can add the acknowledgement to the end of the \placefigure caption text: e.g

Re: [NTG-context] Crediting copyright on photographs

2022-05-04 Thread Adam Reviczky via ntg-context
ledgement / photographer credit on > an image but I'm not sure what's the best way to do it. > > Option 1: I can add the acknowledgement to the end of the \placefigure > caption text: > > e.g. \placefigure{A picture of a cow. Image of a cow that may or may not > be under copyright

[NTG-context] Crediting copyright on photographs

2022-05-04 Thread Bruce Horrocks via ntg-context
I need to include the copyright acknowledgement / photographer credit on an image but I'm not sure what's the best way to do it. Option 1: I can add the acknowledgement to the end of the \placefigure caption text: e.g. \placefigure{A picture of a cow. Image of a cow that may or may

Re: [NTG-context] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
ult as that with the makeup: \setuppagenumbering[alternative=doublesided] \setupexternalfigures[location=default] \setupheadertexts[] \setupheadertexts[chapter][\date] \setupfootertexts[pagenumber] \starttext \startchapter [title={Chapter title}] \dorecurse{2}{\samplefile{knuth}} \placefig

Re: [NTG-context] Full-page Figure?

2022-03-30 Thread Michael Urban via ntg-context
pagestate=start, > align=middle, > footerstate=normal] > > \setupheadertexts[] > \setupheadertexts[chapter][\date] > \setupfootertexts[pagenumber] > > \starttext > \startchapter [title={Chapter title}] >\startpostponing[+1] > \startFloatPagemakeup >

Re: [NTG-context] Full-page Figure?

2022-03-28 Thread śrīrāma via ntg-context
ate=normal, pagestate=start, align=middle, footerstate=normal] \setupheadertexts[] \setupheadertexts[chapter][\date] \setupfootertexts[pagenumber] \starttext \startchapter [title={Chapter title}] \startpostponing[+1] \startFloatPagemakeup \placefig

Re: [NTG-context] "Flushbottom" / \setupalign[line] in LMTX

2022-03-09 Thread Denis Maier via ntg-context
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} \def\Fig{\placefigure{A figure.}{\framed{\vbox to 5cm{bla \def\Tab{\placetable{A table.}{\framed{\vbox to 5cm{bla \starttext \section{Section}\Par\Par\Par\Fig\Par

[NTG-context] "Flushbottom" / \setupalign[line] in LMTX

2022-03-09 Thread Denis Maier via ntg-context
la bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} \def\Fig{\placefigure{A figure.}{\framed{\vbox to 5cm{bla \def\Tab{\placetable{A table.}{\framed{\vbox to 5cm{bla \starttext \section{Section}\Par\Par\Par\F

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-30 Thread Henning Hraban Ramm via ntg-context
Am 30.01.22 um 00:44 schrieb Bruce Horrocks via ntg-context: On 29 Jan 2022, at 21:30, Joel via ntg-context wrote: When I used `\placefigure`, ConTeXt often puts the figure on a completely different page, my readership of young students is getting confused where the image is. How can I have

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Bruce Horrocks via ntg-context
On 29 Jan 2022, at 21:30, Joel via ntg-context wrote: > > When I used `\placefigure`, ConTeXt often puts the figure on a completely > different page, my readership of young students is getting confused where the > image is. How can I have all of my `\placefigure` in the ent

[NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Joel via ntg-context
When I used `\placefigure`, ConTeXt often puts the figure on a completely different page, my readership of young students is getting confused where the image is. How can I have all of my `\placefigure` in the entire document appear exactly where called, even if that means having to place

Re: [NTG-context] Counter names

2022-01-20 Thread Hans Hagen via ntg-context
accessible \starttext \chapter{test} \setupheadnumber[chapter][+5] \placefigure{}{} \chapter{test} \placefigure{}{} \setcounter[figure][4] \placefigure{}{} \stoptext chemical combination endnote figure footnote formula graphic intermezzo itemgroup:itemize itemgroup:itemize:note linenote paragrap

Re: [NTG-context] \externafigure and \at do not work together

2021-10-31 Thread Bruce Horrocks via ntg-context
I thought it was necessary to use one of the derivations of \placefloat in order to get the reference generated. In your case this would be \placefigure thus: \starttext \placefigure [ ] [clock] { } {\externalfigure[clock.jpg]} \at[clock] refers to a clock \stoptext > On 31 Oct 2021, at 12

[NTG-context] new upload

2021-10-13 Thread Hans Hagen via ntg-context
wmakeup[penalty] \placefigure[left]{}{} \input tufte \par \egroup } \page EMPTY \page % the ntop is new and when >= 0 it is a multiplier for the number % of lines stretch, here we have one line; watch the next page \dorecurse{4}{ \bgroup \shapingpenal

Re: [NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread Hans Hagen via ntg-context
On 10/7/2021 11:24 AM, noib3 via ntg-context wrote: How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE ``` \useURL   [github]   [https://github.com/test <https://github.com/test>]   []   [github.com/test <http://github.com/test>] \sta

Re: [NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread Henning Hraban Ramm via ntg-context
> Am 07.10.2021 um 11:24 schrieb noib3 via ntg-context : > > How can I place an SVG icon "inline", i.e. side by side to some text? Here's > my MWE > > ``` > \useURL > [github] > [https://github.com/test] > [] > [github.com/test] > > \s

[NTG-context] Placing SVG icons and text side by side

2021-10-07 Thread noib3 via ntg-context
How can I place an SVG icon "inline", i.e. side by side to some text? Here's my MWE ``` \useURL [github] [https://github.com/test] [] [github.com/test] \starttext \placefigure[none]{}{\externalfigure[github.svg][width=17.5pt]} \from[github] \stoptext ``` I have attached a

[NTG-context] Blank line after \item: MkIV vs LMTX and how to properly get rid of it

2021-09-30 Thread Vladimir Lomov via ntg-context
Hello. Consider the following small example: 8< -- \starttext \startitemize[n] \item \input tufte \item \placefigure[right,none]{}{\externalfigure[cow]}% \input tufte \item \blank[overlay]% \placefigure[right,n

Re: [NTG-context] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Richard Mahoney via ntg-context
, which has a ‘list’ key   https://wiki.contextgarden.net/Command/_startplacefloat Best wishes, Taco > On 25 Aug 2021, at 05:20, Richard Mahoney via ntg-context > wrote: > > List, > > I've been wondering if there is some syntax that one can use in: > > \pl

Re: [NTG-context] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Taco Hoekwater via ntg-context
yntax that one can use in: > > \placetable or \placefigure > > to control the Table of Figure Title appearing in: > > \completelistoftables and \completelistoffigures > > > At the moment one can do this for the output of: > > \completecontent > > with

[NTG-context] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-24 Thread Richard Mahoney via ntg-context
List, I've been wondering if there is some syntax that one can use in: \placetable or \placefigure to control the Table of Figure Title appearing in: \completelistoftables and \completelistoffigures At the moment one can do this for the output of: \completecontent with something

  1   2   3   4   5   6   7   8   9   10   >