[NTG-context] ConTeXt, KeenWrite, Markdown, and XHTML

2021-03-06 Thread Thangalin
etup{demo}{resource[@type='figure']}{xml:demo:figure} In Schmitz' XHTML-oriented My Way from 2010 there's a getmeas Lua function defined on page 9 that parses a width attribute. That's great for the opening div, but how would you close/stop the correct environment for nested divs? Would Co

Re: [NTG-context] Help figuring why long document stops short in xml export

2021-02-24 Thread Christoph Hintermüller
se..."]:33> (...tail calls...) 58 \definemathcommand[ld][nolop]{\mfunction{ld}} 59 \setupcaption[lefthangingfigure][width=\textwidth,align=figure] 60 \setupheadtext[content=Inhalt] 61 %\traceexternalfilters 62 \enabletrackers[export.*] 63 64 \starttext 65

[NTG-context] Help figuring why long document stops short in xml export

2021-02-24 Thread Christoph Hintermüller
Hi What command line parameters, trackers etc I should activate when i want to figure why my document lacks content worth of several pages in xml export while the pdf which is created in parallel contains all pages. I'm using mtx-context | ConTeXt Process Management 1.04 mtx-context

Re: [NTG-context] Loop?

2021-02-12 Thread Jairo A. del Rio
> . >> . >> >> I'd rather have the list of people stored somewhere (a list? an array?) >> and loop through it and then inserting \mynewcommand at compilation >> time. That way, when I need to replace the list of people with a new >> one, I'd just d

Re: [NTG-context] Loop?

2021-02-12 Thread Jairo A. del Rio
and > again. > > Is it possible to do that with just ConTeXt or would I need to resort to > Lua. I guess it should be possible both ways, but I haven't figure out > how to do it. Any pointer, please? > > Thank you so much in advance. > > Cheers, > Ángel >

Re: [NTG-context] Loop?

2021-02-12 Thread Thomas A. Schmitz
On 2/12/21 7:39 PM, Angel M Alganza wrote: Is it possible to do that with just ConTeXt or would I need to resort to Lua.  I guess it should be possible both ways, but I haven't figure out how to do it.  Any pointer, please? https://wiki.contextgarden.net/Processing_Lists which wasn't

[NTG-context] Loop?

2021-02-12 Thread Angel M Alganza
, when I need to replace the list of people with a new one, I'd just do that instead of building the above structure again and again. Is it possible to do that with just ConTeXt or would I need to resort to Lua. I guess it should be possible both ways, but I haven't figure out how to do it. Any

[NTG-context] [Solved] Fwd: lmtx-20210118 | Corruption with rotated floats

2021-02-01 Thread Richard Mahoney
and figure floats using rotation. Lmtx-20210118 with for example: \placetable[here,90] results in the trashing of all subsequent body text in the PDF. This can be corrected with something such as: \placetable[here] ... \framed[orientation=90] (although one looses the ability to rotate

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
Hans Hagen mailto:j.ha...@xs4all.nl>> wrote: On 1/26/2021 1:19 PM, Rudd, Kevin wrote: Hi--- I have a number of included figures that work in 20200920 but not in the current 20210124 version. There's a project structure that sets everything up but after that they are in

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
have a number of included figures that work in 20200920 but not in the current 20210124 version. There's a project structure that sets everything up but after that they are input as a figure: \startplacefigure[title={NS Hierarchy}, reference={f:ns-hie

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Hans Hagen
On 1/26/2021 1:19 PM, Rudd, Kevin wrote: Hi--- I have a number of included figures that work in 20200920 but not in the current 20210124 version. There's a project structure that sets everything up but after that they are input as a figure:             \startplacefigure[title={NS Hierarchy

[NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
Hi--- I have a number of included figures that work in 20200920 but not in the current 20210124 version. There's a project structure that sets everything up but after that they are input as a figure: \startplacefigure[title={NS Hierarchy}, reference

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Aditya Mahajan
case the buffer only gets typeset when it changes: > > Thank you (and Henri)! But we’d need to include the same setup header every > time, so the filter module is probably really the best way. It is not only the tikz setup; you also need to copy the font setup etc. \typesetbuffer[setu

[NTG-context] new font trickery

2021-01-24 Thread Hans Hagen
}% \hbox{\char103}% \hbox{\char104}% \stopTEXpage \startsetups box:demo:whatever \startMPcode picture p ; p := image (draw figure "hacker.jpg" ysized 10pt); fill boundingbox p enlarged .5pt randomized 2pt withcolor "darkgray" ; clip p to boundin

Re: [NTG-context] lmtx-20210118 | Corruption with rotated floats

2021-01-23 Thread Hans Hagen
]} \input zapf \stoptext I don’t know why, but both MkIV and current latest (LMTX from 2021.01.22 09:41) place the rotated figure on a different page (with 90 and 270). LMTX misplaces next paragraph on next page with both 90 and 270. To show the issues with tables, a minimal sample would help. I’m

[NTG-context] lmtx-20210118 | Corruption with rotated floats

2021-01-23 Thread Richard Mahoney
List members, I've found that recent versions of LMTX seem to have broken table and figure floats using rotation. Lmtx-20210118 with for example: \placetable[here,90] results in the trashing of all subsequent body text in the PDF. This can be corrected with something such as: \placetable[here

Re: [NTG-context] lmtx-20210118 | Corruption with rotated floats

2021-01-23 Thread Pablo Rodriguez
f \stoptext I don’t know why, but both MkIV and current latest (LMTX from 2021.01.22 09:41) place the rotated figure on a different page (with 90 and 270). LMTX misplaces next paragraph on next page with both 90 and 270. To show the issues with tables, a minimal sample would help. I’m afraid

Re: [NTG-context] question about vardef variables

2021-01-18 Thread Taco Hoekwater
cd; > draw unitsquare scaled 10 xshifted ab; > draw unitsquare scaled 10 yshifted cd; > enddef; > > Test (50,100); > \stopMPpage > \stoptext > > Uncommenting the two declarations makes me run intro a silent error. I was > lucky enough yesterday to get an explicit

Re: [NTG-context] question about vardef variables

2021-01-17 Thread Jeong Dal
Dear Damien Thiriet, If you change ‘vardef’ to ‘def’, you will get the figure. There is a difference between ‘vardef’ and ‘def’. AFAIK, vardef returns the value of the last statement in the macro. Please see the examples in Metafun manual from page 32 ~ . I hope that you find your answer

[NTG-context] question about vardef variables

2021-01-17 Thread Damien Thiriet
\stoptext Uncommenting the two declarations makes me run intro a silent error. I was lucky enough yesterday to get an explicit error message with a more complex macro. It made me figure out where my problems came from. So here are my two questions: - Why shouldn't we tell metafun if expr is a path

[NTG-context] LMTX problem with \input

2021-01-14 Thread Henning Hraban Ramm
Another LMTX/MkIV difference: In a component, I include another file with \input, that starts with \page in the first line. With LMTX I get an error: """ I can't figure out why you would want to use a tab mark here. If some right brace up above has ended a previous alignm

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-05 Thread Hans Hagen
l\vskip \par \meaningfull\relax \par \meaningfull\framed\par and you get an idea (\meaningfull itself is a primitive, the more verbose \meaning, and there's also \meaningless which I let you figure out yourself; of course these add t

Re: [NTG-context] drop shadows with metapost/ metafun

2021-01-02 Thread Henning Hraban Ramm
png file with a transparent background, to have room for > blurring > - blur it > > 4- import this png in context / Metapost (externalfigure), and center it with > p figure > > 5- shift it according to the desired shadows distance and angle > > 6- apply the initia

Re: [NTG-context] drop shadows with metapost/ metafun

2020-12-31 Thread Aditya Mahajan
ckground, to have room for > blurring > - blur it > > 4- import this png in context / Metapost (externalfigure), and center it with > p figure > > 5- shift it according to the desired shadows distance and angle > > 6- apply the initial bounding box of p to th

Re: [NTG-context] adding url as a footnote in the caption of figure

2020-12-30 Thread Jeong Dal
Dear Pablo, Thank you for your reply. I just search wiki not the mailing list. I never used \setupnote before. > I would say that LMTX is causing an issue here (but for sure Hans knows > better). > > The issue with your MWE is solved by adding: > > \setupnote[footnote][width=\textwidth] It

[NTG-context] adding url as a footnote in the caption of figure

2020-12-29 Thread Jeong Dal
Hi, I am trying to add a url as a footnote in the caption. There is no error, but it is written in two lines in the footnote. I also try \hyphenatedurl, \letterslash in the wiki, but it is no use. I am using "ConTeXt ver: 2020.12.22 22:14 LMTX”. Thank you for reading. Best regards, Dalyoung

Re: [NTG-context] adding url as a footnote in the caption of figure

2020-12-29 Thread Pablo Rodriguez
On 12/29/20 8:23 PM, Jeong Dal wrote: > [...] > I am trying to add a url as a footnote in the caption. > There is no error, but it is written in two lines in the footnote. > I also try \hyphenatedurl, \letterslash in the wiki, but it is no use. > I am using "ConTeXt  ver: 2020.12.22 22:14 LMTX”.

[NTG-context] drop shadows with metapost/ metafun

2020-12-29 Thread Garulfo
re), and center it with p figure 5- shift it according to the desired shadows distance and angle 6- apply the initial bounding box of p to the shadow, draw the shadow, draw the p picture Actually, all this seems long and tedious, and contrasts with the already existing links between MetaPost / Me

Re: [NTG-context] Table disappears in floatcombination

2020-12-26 Thread Christoph Reller
On Sat, Dec 26, 2020 at 10:54 AM Hans Hagen wrote: > On 12/25/2020 9:47 PM, Christoph Reller wrote: > > Hi, > > > > Consider the following MWE: > > > > \definefloat[combination][figure] > > \setupcaptions[ > >number=no, %<- comment and table

Re: [NTG-context] Table disappears in floatcombination

2020-12-26 Thread Hans Hagen
On 12/25/2020 9:47 PM, Christoph Reller wrote: Hi, Consider the following MWE: \definefloat[combination][figure] \setupcaptions[   number=no, %<- comment and table appears   align=flushright] \starttext \startplacecombination[title=Combination]   \startfloatcombination     \startplaceta

[NTG-context] Table disappears in floatcombination

2020-12-25 Thread Christoph Reller
Hi, Consider the following MWE: \definefloat[combination][figure] \setupcaptions[ number=no, %<- comment and table appears align=flushright] \starttext \startplacecombination[title=Combination] \startfloatcombination \startplacetable%[title=Table] %<- uncomment and table a

[NTG-context] Off-topic: Struggles with LPEG grammar

2020-12-21 Thread Mojca Miklavec
ifferent way, but many people use Advent of Code as an opportunity to learn a new programming language, and when I read the task description, I wanted to figure out if I could solve it using the cute little lpeg. My initial attempt worked correctly (at least to solve the first puzzle), but the

Re: [NTG-context] LMTX, repeated caption

2020-12-10 Thread Hans Hagen
On 12/10/2020 10:58 AM, Jean-Philippe Rey wrote: Dear list, In some unclear circumstances, a figure caption is repeated above the figure, as with the following example. == \starttext \placefigure {This caption shouldn't be repeated} {\hbox{anything here}} \stoptext

Re: [NTG-context] LMTX, repeated caption

2020-12-10 Thread Bertrand Masson
Hello I have the same problem. I noticed that it depends on the length of the caption. Best regards. Le 10/12/2020 à 10:58, Jean-Philippe Rey a écrit : Dear list, In some unclear circumstances, a figure caption is repeated above the figure, as with the following example

[NTG-context] LMTX, repeated caption

2020-12-10 Thread Jean-Philippe Rey
Dear list, In some unclear circumstances, a figure caption is repeated above the figure, as with the following example. == \starttext \placefigure {This caption shouldn't be repeated} {\hbox{anything here}} \stoptext == The caption is not repeated

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-09 Thread Aditya Mahajan
On Wed, 9 Dec 2020, Wolfgang Schuster wrote: > > Actually, I cannot figure out how \writetolist works. According to > https://wiki.contextgarden.net/Command/writetolist, the 2nd argument is the > "number". But, for some reason, the list number doesn't show in placelist: &

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-09 Thread Wolfgang Schuster
of the renderingsetup, but there are already multiple \writetolist in the annotation module, so I think that I am missing a configuration option. Actually, I cannot figure out how \writetolist works. According to https://wiki.contextgarden.net/Command/writetolist, the 2nd argument is the "n

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-08 Thread Aditya Mahajan
> > I actually wanted it the other way round ... make sure that > \starttest[test][title={...}] gets added to the list. Looking at the comments > of the annotation module, I get the impression that this should work. > > I could do it manually by adding \writetolist as part of

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-08 Thread T. Kurt Bond
nes before the \bTABLE: \setupTABLE[column][1][width=6em] \setupTABLE[column][2][width=6em] This caused all the space not used by the first two columns to be used by the third column. Thinking about it a little more, the first result makes sense: there is probably no way for ConTeXt to figure

Re: [NTG-context] Getting the filename which is being typeset

2020-12-05 Thread Axel Kielhorn
practice this is not that important because most systems don't > distinguish between 32/64 or some mix wrt paths (i might actually remove a > lot of that stuff because in luamatetex we're more normalized across > platforms) > > the apple guesser is tricky because at least in the pas

Re: [NTG-context] LMTX ignores figure size

2020-12-04 Thread Hans Hagen
On 12/4/2020 11:19 AM, Henning Hraban Ramm wrote: Hi, with latest LMTX, the size (width) of external figures is ignored in floats, while it works outside of floats and with MkIV. It also works with metapost figures (e.g. dum library). \setupexternalfigure[location=default] \starttext

[NTG-context] LMTX ignores figure size

2020-12-04 Thread Henning Hraban Ramm
Hi, with latest LMTX, the size (width) of external figures is ignored in floats, while it works outside of floats and with MkIV. It also works with metapost figures (e.g. dum library). \setupexternalfigure[location=default] \starttext \startplacefigure[location=here]

Re: [NTG-context] Getting the filename which is being typeset

2020-12-04 Thread Hans Hagen
(i might actually remove a lot of that stuff because in luamatetex we're more normalized across platforms) the apple guesser is tricky because at least in the past there was no reliable way to figure it out, for instance uname didn't work well and we had this curious mix of 64 bit machines

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-02 Thread Stephen Gaito
ce "stop" PDF generation? > > assuming a properky structured document forcing a \stoptext should > work in most cases > > > (I realize that these callbacks *are* a currently fast moving > > target. I am happy to follow their changes, equally I would be > > tes

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-11-30 Thread Hans Hagen
old so i'm now looking at it and see if i can use some recent tricks) ALTERNATIVE QUESTION: Would it be possible to provide official ConTeXt-LMTX "modes" which suppress further computation at these points? the question is: what do you want to suppress? best first identify the bot

Re: [NTG-context] Current LMTX unable to compile file metafun-positioning.tex - error on line 240

2020-11-23 Thread Giulio Bertellini
s the page 242 boundary. 243 A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: r

Re: [NTG-context] autostart included video

2020-11-19 Thread Aditya Mahajan
pdfpc (https://pdfpc.github.io/), which is able to play the usual \externalfigure[filename.mp4] videos well...just that I need to click the video in order to start it. They do have a latex specific method to autostart a video...I'll try to see if I can figure out what is the actual PDF code tha

[NTG-context] Subfigures, referencing and resetting counter

2020-11-18 Thread Marco Patzer
Hi! I struggle with referencing subfigures. Combinations can't be referenced to my knowledge, that's why I went with another float for the inner subfigure. Example: \useMPlibrary[dum] \definefloat [subfigure] [subfigures] [figure] \setupcaptions [subfigure

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

Re: [NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
gt; Hi Jairo, Thank you very much for the suggestion and the thorough explanation. I extracted the metapost code to a new file because I felt it would be a bit lengthy and noisy to stay with the text content. But you're right, an extra compilation step is not any better. I should probably use

Re: [NTG-context] embed metapost figure into document

2020-11-09 Thread Jairo A. del Rio
Hi, Sylvain. LuaMetaTeX and LuaTeX, the engines used by ConTeXt nowadays, use an embedded library, so external compilations/files are not necessary. Just out of curiosity, wouldn't it be easier to use a ConTeXt environment? E.g.: \starttext \startMPcode %\startuseMPgraphic{} if you want to reuse

[NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
Dear List, I'm trying to embed a metapost image into the document. According the MetaFun manual , "embedding such a graphic is done by: \externalfigure[graphic.123][width=4cm]", but the following example produces an empty page: %

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Hans Hagen
ommand) to the error message. This would mean something like: tex error > tex error on line 22 in file cont-yes.mkiv: Valid keyword expected, got "invalid one" (related to "command"). This would help a lot to figure out where to start searching for clues for a MWE. well

[NTG-context] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
error > tex error on line 22 in file cont-yes.mkiv: Valid keyword expected, got "invalid one" (related to "command"). This would help a lot to figure out where to start searching for clues for a MWE. Many thanks for your help,

[NTG-context] MP background for text typeset by \typefile

2020-11-05 Thread context
\typefile with a "fuzzy" background, which uses overlay/MP. But I am in the sitaution where I am able to figure out MP code just when the text is to be enclosed into \framed. Is it possible to combine both cases? How?

Re: [NTG-context] Bug: context/mtxrun makes Firefox eat up cpu

2020-11-05 Thread Sylvain Hubert
texmf-cache does not help. > > > > Does anyone know what files context modifies apart from tex/texmf-cache? > > None. > > Are you sure your disk(-driver) is OK? > tbh I'm not sure. I tried to figure that out by experimenting with different kinds of stress tests and none of

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
at you mean by literal text "function" here, but in any case isn't it a one-off <1ms cost to parse a function? > "function() local x=1; return function() x=1-x; return ({'black', > > 'gray'})[x] end end" > > can be way much easier for lua speakers than digging

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Hans Hagen
d storing lua delayed function definitions there makes not much sense It might be helpful in cases like alternative coloring. Writing    "function() local x=1; return function() x=1-x; return ({'black', 'gray'})[x] end end" can be way much easier for lua speakers than digging up a bunch o

Re: [NTG-context] How to really set the paper margin?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 17:06, Duncan Hothersall wrote: > Hi Sylvain, > > This page may be useful: https://wiki.contextgarden.net/Layout > I was aware of this page but have mistakenly inferred from the figure that the backspace is an automatically calculated sum of other parameters

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
gray'})[x] end end" can be way much easier for lua speakers than digging up a bunch of documentations to figure out whether it's implemented, or how it can be implemented in a language like TeX, or both which is worse. In such cases, it would also be much natural to write 'before=function()..' than 'be

Re: [NTG-context] lmtx

2020-10-30 Thread Jairo A. del Rio
er 175 \startbuffer 176 discrete\wordboundary\discretionary{}{}{---}\wordboundary discrete A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) The prepackaged PDF manual is also broken: an error

[NTG-context] lmts status

2020-10-22 Thread Hans Hagen
they decide to fix the style, simply because they figure that they did something wrong). You're warned. So, when the next lmtx hits the web, make sure that you keep the old tree because one never knows where I mess up. I don't know when I'll upload. After all Wolfgang and I need to come

[NTG-context] figure library

2020-10-12 Thread Jörg Hagmann
I have used figure libraries in the mkII past. But my recent attempts with mkIV, following the instructions on ConTeXt Wiki (https://wiki.contextgarden.net/Image_Database), have failed. The following happens: 1. When running the command "context --input=figure-lib.xml auto:x-res-01

Re: [NTG-context] footnotes in captions in floatcombinations

2020-10-02 Thread Henning Hraban Ramm
paragraph full of footnotes, the paragraph starts on one page and the image gets placed on the next, then the footnote in the figure’s caption might have e.g. no.11, the paragraph uses footnote no.12 etc. The first footnote(s) of the paragraph find their place on the first page, the footnote(s) of t

Re: [NTG-context] numbering pages included by \copypages

2020-09-28 Thread Alan Bowen
t; \dorecurse {5} {Before #1\page} > > \getfiguredimensions[oeps.pdf] > > \startsetups SomeNumber > \vbox to \overlayheight \bgroup > \vss > \hbox to \overlaywidth \bgroup > \hss > \bfd \red You can figure it out: \pagenumber >

Re: [NTG-context] numbering pages included by \copypages

2020-09-25 Thread Hans Hagen
dimensions[oeps.pdf] \startsetups SomeNumber \vbox to \overlayheight \bgroup \vss \hbox to \overlaywidth \bgroup \hss \bfd \red You can figure it out: \pagenumber \hss \egroup \vss \egroup \stopsetups \defineoverlay[

Re: [NTG-context] Arabic support

2020-09-23 Thread Mohammad Hossein Bateni
%C2%BB). This may be due to setupdirection algorithms or a side effect of how some Context commands work. One needs to document them, so a fix is uploaded. Depending on what you want to typeset, you may need to change the numerals (for page numbers, enumerations, figure and table numbers, etc

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

2020-09-23 Thread Taco Hoekwater
Hi, This sounds quite complicated, really. I am not at all sure how this page rotation should work but I assume you plan a pdf-only document then? Otherwise, I would expect rotating the figure instead of the whole page. Also, rotating the paper does not rotate the layout, at least

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

2020-09-22 Thread José de Mattos Neto
Hi, it's my first message on this list. I've searched in ConTeXt manuals, TeX.SX and here, but couldn't find a way to achieve these 4 requirements altogether: 1. Place a figure as full-page figure 2. Change orientation accordingly (if it's a landscape PDF, for instance) 3. Make

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-18 Thread Geert Verhaag
ans Hagen | PRAGMA ADE   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands    tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----- Hi Hans, It really is in th

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-16 Thread Henning Hraban Ramm
LMTX as well as with other versions – while I’m >> sure it used to work at some point: >> >> As soon as there’s a footnote in the caption of a placefigure within a >> floatcombination, the figure won’t get placed. There’s no problem outside of >> floatcombinati

[NTG-context] footnotes in captions in floatcombinations

2020-09-14 Thread Henning Hraban Ramm
Hi, I got a problem with current LMTX as well as with other versions – while I’m sure it used to work at some point: As soon as there’s a footnote in the caption of a placefigure within a floatcombination, the figure won’t get placed. There’s no problem outside of floatcombinations

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

2020-09-13 Thread Mikael Sundqvist
bottom, with (unnumbered) captions on top in margin. A bit dual to the mail I sent to the list about topfigures with captions in the margin. As you say, maybe using layers is the best way to obtain what I want. I'm not sure, though, how to place a figure in a

[NTG-context] Wrong page number when placefigure spans full page in columnset

2020-09-09 Thread Charles Vejnar
Hi, When I place a figure within a columnset and that figure takes a full page then the page number in the header is incorrect. Page number is the same as the previous page but on the next page it's correct. Please see example below and attached showing page 2 twice with pages numbered 1, 2

Re: [NTG-context] problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")

2020-09-08 Thread Rudd, Kevin
vious question on the topic seemed to indicate that TABLE was suitable, so I figure that something subtle is wrong as I've invoked the embedded TABLE macros. Any suggestions? While most natural tables command can be embedded within other command the cells have to see the end command. I guess t

Re: [NTG-context] problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")

2020-09-08 Thread Wolfgang Schuster
tion on the topic seemed to indicate that TABLE was suitable, so I figure that something subtle is wrong as I've invoked the embedded TABLE macros. Any suggestions? While most natural tables command can be embedded within other command the cells have to see the end command. I guess this shou

[NTG-context] problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")

2020-09-08 Thread Rudd, Kevin
E was suitable, so I figure that something subtle is wrong as I've invoked the embedded TABLE macros. Any suggestions? Many thanks, ---K MWE: this code fails if the \...PaneSlide block is uncommented, succeeds if commented out. \define\startPaneSlide{\bTABLE} \define\startPaneRow{bTR\bTD} \

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

2020-09-08 Thread Mikael Sundqvist
On Mon, Sep 7, 2020 at 9:26 PM Mikael Sundqvist wrote: > Hi, > > Is there a way to have a fullwith topfigure with caption in the margin so > that the figure does not interfere with the text? My try is > > > %%% > \setuplayout[ > rightmargin=2in, > rightmargindis

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

2020-09-07 Thread Mikael Sundqvist
Hi, Is there a way to have a fullwith topfigure with caption in the margin so that the figure does not interfere with the text? My try is %%% \setuplayout[ rightmargin=2in, rightmargindistance=0.375in, width=4.125in, ] \showframe \definecolor [transparentred] [r=1,t=.5,a=1] \definefloat

[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] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
 2. Use \setvariables or \setupdocument to set the document title, revision etc. 3. Use \startsectionblockenvironment to move setups from the document content into the environment file. 4. Use pagestate=start to increase the page counter with \startstandardmakeup. 5. Set search path for figur

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

2020-09-04 Thread Wolfgang Schuster
setups from the document content into the environment file. 4. Use pagestate=start to increase the page counter with \startstandardmakeup. 5. Set search path for figures (\copypages use the figure mechanism) with \setupexternalfigure[location=...]. Below is a modified (but untested) version

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Aditya Mahajan
On Mon, 24 Aug 2020, Taco Hoekwater wrote: > > > > On 24 Aug 2020, at 19:59, Wolfgang Schuster > > wrote: > >> \setcounter[figure][5] % next figure is no.6 > > For this subfigure stuff, perhaps this is useful? > > [...] > > I could not find

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Duncan Hothersall
Hoekwater wrote: > > > > On 24 Aug 2020, at 19:59, Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> wrote: > > > >> > >> > >> \setcounter[figure][5] % next figure is no.6 > > For this subfigure stuff, perhaps this is useful? &g

[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
). In my searching for solutions, I thought I'd found something helpful with \startframed but I can't figure any way to combine the framed and enumeration... Anyway, here's some code. It doesn't demonstrate the page-break problem but gives an idea of the different possible sizes of question/answer

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Taco Hoekwater
> On 24 Aug 2020, at 19:59, Wolfgang Schuster > wrote: > >> >> >> \setcounter[figure][5] % next figure is no.6 For this subfigure stuff, perhaps this is useful? % setup definitions \definecounter[subfigure][way=bytext,prefix=no] \setupcounter[subfigure][s

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
] \stopplacefigure \stopsection \startsection[title=Two] \startplacefigure[title=Test] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[figure][5] % next figure is no.6 \startsection[ownnumber=10,title={A section}] \start \setupcaptions[numberstopper={a}] \startplacefigure[title=Test

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
and I can't find it to reply to, so apologies for the extra noise. I have a large text with floats numbered sequentially by chapter and then figure/table number, but at the last minute I've had a request for two figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 27.2

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
;>> an answer and I can't find it to reply to, so apologies for the extra >>> noise. I have a large text with floats numbered sequentially by chapter and >>> then figure/table number, but at the last minute I've had a request for two >>> figures in a parti

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
numbered sequentially by chapter and then figure/table number, but at the last minute I've had a request for two figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 27.2. It's not a combination - they are separate figures on different pages. I've experimented

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
ally by chapter and then > figure/table number, but at the last minute I've had a request for two > figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 and > 27.2. It's not a combination - they are separate figures on different pages. > > I've experimented with t

[NTG-context] Overriding the number on a float

2020-08-23 Thread Duncan Hothersall
I think there was a question on this very recently but I don;t think it got an answer and I can't find it to reply to, so apologies for the extra noise. I have a large text with floats numbered sequentially by chapter and then figure/table number, but at the last minute I've had a request for two

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-20 Thread Mike Cooper
> Mike Cooper schrieb am 10.08.2020 um 23:40: > >>> > >>> > >>> Thank you Wolfgang! > >>> > >>> I tried to change your code from chapters to sections (since that's what > >>> I was > >> already using) but it didn't

Re: [NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-20 Thread Wolfgang Schuster
Henri Menke schrieb am 20.08.2020 um 07:05: Dear list, To get properties of a figure without actually typesetting it, it is handy to use \registerexternalfigure. However, trying to use it fails. Consider the following MWE: \starttext \registerexternalfigure[cow.pdf] \stoptext

[NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-19 Thread Henri Menke
Dear list, To get properties of a figure without actually typesetting it, it is handy to use \registerexternalfigure. However, trying to use it fails. Consider the following MWE: \starttext \registerexternalfigure[cow.pdf] \stoptext Looking at the definition in grph-inc.mkiv

Re: [NTG-context] Same counter for figures as theorems

2020-08-18 Thread Tim Steenvoorden
365 22 91 | t...@cs.ru.nl On 14 Aug 2020, 23:12 +0200, Taco Hoekwater , wrote: > Hi Tim, > > I misunderstood your goal, sorry. Proposed setup below. > > > But first, what I think is a bug in ConTeXt: > > Neither > \setupcaptions > [counter=object] > nor > \setup

Re: [NTG-context] Same counter for figures as theorems

2020-08-14 Thread Taco Hoekwater
Hi Tim, I misunderstood your goal, sorry. Proposed setup below. But first, what I think is a bug in ConTeXt: Neither \setupcaptions [counter=object] nor \setupcaption [figure] [counter=object] work. the caption always falls back to the ‘current float counter’; figure or table

<    1   2   3   4   5   6   7   8   9   10   >