Re: [NTG-context] Centering figures that extend into the margin
Hi Willi, > I have not a solution for you but I would like to point you to the “details” > manual, where many of special placements of floats are discussed. Thanks a lot for the pointer, I'll have a look at that manual in more detail as I had only had a cursory glance until now. Kind regards, Yann -- Yann Herklotz https://yannherklotz.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering figures that extend into the margin
Hi Yann, I have not a solution for you but I would like to point you to the “details” manual, where many of special placements of floats are discussed. Kind regards Willi > On 20 Apr 2022, at 11:39, yann--- via ntg-context wrote: > > Hi, > > I've been playing around with 'marginnote' layout similar to tufte's books. > The > main thing that I can't figure out is how to centre figures that extend into > the > margin. These should take over the whole page, but the content of the figure > should be centred, which is normally the case in normal figures. > > Below is my try of defining a marginnote that does this, by calculating the > textarea size and setting the width to that. However, I can't seem to then > figure out how to center the externalfigure inside of the figure. > > Thanks in advance! > Yann > > \useMPlibrary[dum] > > \setuplayout[ > edgedistance=1cm, > backspace=2cm, > rightmargin=4.5cm, > leftmargin=0cm, > topspace=1cm, > header=1cm, > footer=1cm, > headerdistance=0.5cm, > width=fit, > height=fit, > ] > > \newdimen\LeftMarginSize > \LeftMarginSize=\dimexpr \backspace + \rightmarginwidth + > \rightmargindistance \relax > \newdimen\TextAreaSize > \TextAreaSize=\dimexpr \textwidth + \rightmarginwidth + \rightmargindistance > \relax > \definefloat[marginfigure][marginfigures][figure] > \setupfloat[marginfigure][location=inner,default=top,width=\TextAreaSize] > \setupcaptions[marginfigure][ > leftmargin=\dimexpr \LeftMarginSize / 2 \relax, > location=bottom, > width=\textwidth, > ] > \setuplabeltext[marginfigure=Figure~] > \showframe > > \starttext > > \startplacemarginfigure > \externalfigure[][width=13cm] > \stopplacemarginfigure > > \stoptext > > -- > Yann Herklotz > https://yannherklotz.com > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
SureOp 20 apr. 2022 20:50 schreef Taco Hoekwater via ntg-context :Hi, I have an rsync cron job running each hour that alerts me if there is a new upload. If nobody objects, I could direct the cron notification email to the list? Taco > On 20 Apr 2022, at 19:41, Pablo Rodriguez via ntg-context wrote: > > On 4/20/22 19:22, Christoph Hintermüller via ntg-context wrote: >> >> That's fine. As soon as post that update is ready for pulling I will >> pull. >> Till then i can wait. > > Hi Christoph, > > to check when there is a new release I use: > > curl -I https://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip 2>&1 > | grep -i Last-Modified > > Just in case it might help you, > > Pablo > ___ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
Hi, I have an rsync cron job running each hour that alerts me if there is a new upload. If nobody objects, I could direct the cron notification email to the list? Taco > On 20 Apr 2022, at 19:41, Pablo Rodriguez via ntg-context > wrote: > > On 4/20/22 19:22, Christoph Hintermüller via ntg-context wrote: >> >> That's fine. As soon as post that update is ready for pulling I will >> pull. >> Till then i can wait. > > Hi Christoph, > > to check when there is a new release I use: > > curl -I https://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip 2>&1 > | grep -i Last-Modified > > Just in case it might help you, > > Pablo > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
On 4/20/22 19:22, Christoph Hintermüller via ntg-context wrote: > > That's fine. As soon as post that update is ready for pulling I will > pull. > Till then i can wait. Hi Christoph, to check when there is a new release I use: curl -I https://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip 2>&1 | grep -i Last-Modified Just in case it might help you, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] embed source-file in pdf
Hi Pablo and Rik many thanks, much appreciated. attachment works like a charm to include the source files in the delivered PDF. Rik pointed me to the longterm archive standard, which is also desirable. PDF/A is possible with setupbackend\setupbackend[format={pdf/a-3a}] but needs fixing with acrobat-preflight to pass validation (in Acrobat and veraPDF). Kind regards Heinrich Sent from my iPhone > On 20. Apr 2022, at 16:46, Pablo Rodriguez via ntg-context > wrote: > > On 4/19/22 16:47, Heinrich Paeßens via ntg-context wrote: >> Hi there >> >> just a quick question: >> >> Is there a command or package to embed the source-file (*.tex) into the >> resulting pdf-file, > > Hi Heinrich, > > I think this may be what you need: > > \setupinteraction[state=start] > \attachment[file=\jobname.tex] > \starttext > \input zapf > \stoptext > >> just like in LaTeX using package »embedall« > > I think it is way better that you explain what you want to achieve. > > I’d say that not all ConTeXt users are also proficient in LaTeX. In my > case, I haven’t use it for more than a decade. > > 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 / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
Hi Hans [Inline Response to message by Hans Hagen via ntg-context, Mi, 2022-04- 20 19:18 +0200: Answers and comments below corresponding cited paragraphs.] > We had to adapt the lfg file for lm (other fonts are ok) so i'll make > an > update. > > If you're in a hurry, in lm.lfg: > > parameters = { > FractionNumeratorDisplayStyleShiftUp = 600, -- used to > be a > function > NoLimitSupFactor = 0, > NoLimitSubFactor = 900, > -- AccentBaseHeight = 0, > AccentBaseDepth = 50, > }, > > can be adapted. > That's fine. As soon as post that update is ready for pulling I will pull. Till then i can wait. Best Xristoph ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
On 4/20/2022 7:07 PM, Christoph Hintermüller via ntg-context wrote: Hi Michael [Inline Response to message by Mikael Sundqvist via ntg-context, Mi, 2022-04-20 17:12 +0200: Answers and comments below corresponding cited paragraphs.] The strange thing with fractions seems to be due to the parameter FractionNumeratorDisplayStyleShiftUp in lm.lfg. If you always set it to 600, it seems to work also for luatex. (This will be fixed.) Another thing: Instead of using \over, I suggest that you use \frac (less surprises). Something like: \starttext \startformula a=b + 1 \stopformula \startformula a = \frac{ b + \mu }{ c } \stopformula \startformula a = \frac{\frac{ b + \mu }{ c } + e}{ d + i } \stopformula \stoptext Thank you very much for the hints. \frac didn't help either even after moving broken installation aside and doing a fresh install with sh ./first-setup.sh --modules=all --context=latest Results still similar see attached. We had to adapt the lfg file for lm (other fonts are ok) so i'll make an update. If you're in a hurry, in lm.lfg: parameters = { FractionNumeratorDisplayStyleShiftUp = 600, -- used to be a function NoLimitSupFactor = 0, NoLimitSubFactor = 900, -- AccentBaseHeight = 0, AccentBaseDepth = 50, }, can be adapted. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
Hi Michael [Inline Response to message by Mikael Sundqvist via ntg-context, Mi, 2022-04-20 17:12 +0200: Answers and comments below corresponding cited paragraphs.] > > The strange thing with fractions seems to be due to the parameter > FractionNumeratorDisplayStyleShiftUp in lm.lfg. If you always set it > to 600, it seems to work also for luatex. (This will be fixed.) > > Another thing: Instead of using \over, I suggest that you use \frac > (less surprises). Something like: > > \starttext > \startformula > a=b + 1 > \stopformula > > \startformula > a = \frac{ b + \mu }{ c } > \stopformula > > \startformula > a = \frac{\frac{ b + \mu }{ c } + e}{ d + i } > \stopformula > \stoptext > Thank you very much for the hints. \frac didn't help either even after moving broken installation aside and doing a fresh install with sh ./first-setup.sh --modules=all --context=latest Results still similar see attached. > /Mikael > _ > __ > If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > _ > __ test_strange.tar.bz Description: application/bzip-compressed-tar ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] embed source-file in pdf
Hi Pablo Many thanks. That is exactly what I need, ie. to deliver the source code embedded in the PDF. attachment works like a charm Rik pointed me — additionally — into the direction of being PDF/A compliant. PDF/A is possible with setupbackend\setupbackend[format={pdf/a-3a}] but needs fixing with acrobat-preflight to pass validation (in Acrobat and veraPDF). Just in case someone needs to archive longterm. https://en.m.wikipedia.org/wiki/PDF/A Kind regards Heinrich Sent from my iPhone > On 20. Apr 2022, at 16:46, Pablo Rodriguez via ntg-context > wrote: > On 4/19/22 16:47, Heinrich Paeßens via ntg-context wrote: >> Hi there >> >> just a quick question: >> >> Is there a command or package to embed the source-file (*.tex) into the >> resulting pdf-file, > > Hi Heinrich, > > I think this may be what you need: > > \setupinteraction[state=start] > \attachment[file=\jobname.tex] > \starttext > \input zapf > \stoptext > >> just like in LaTeX using package »embedall« > > I think it is way better that you explain what you want to achieve. > > I’d say that not all ConTeXt users are also proficient in LaTeX. In my > case, I haven’t use it for more than a decade. > > 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 / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
On Wed, Apr 20, 2022 at 5:03 PM Pablo Rodriguez via ntg-context wrote: > > On 4/20/22 12:34, Christoph Hintermüller via ntg-context wrote: > > Hi > > Have updated my standalone installation from one of the 2020 releases > > to the latest one running > > > > ./first-setup.sh --context=latest --modules=all > > Hi Christoph, > > sorry for the obvious suggestion «post facto»: never update ConTeXt > without a backup first. > > > [...] > > Therefore i have the following questions > > - would it help to sacrifice the updated standalone installation and > >do a fresh install > > I don’t think it would work, since it only works with LuaMetaTeX. > > I got the same results (in Windows [because I cannot make it work in > Linux]) with LuaTeX 1.15 (the one that comes with ConTeXt LMTX). > > My suggestion would be a fresh install (in a different directory, no > need to remove anything) of ConTeXt LMTX. > > > - What else i would have to check and probably fix to make the math > >working as expected > > Math is being improved in ConTeXt these days. It might be a bug. > > I wonder whether Mikael or Hans could review your issue. > > 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 / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ The strange thing with fractions seems to be due to the parameter FractionNumeratorDisplayStyleShiftUp in lm.lfg. If you always set it to 600, it seems to work also for luatex. (This will be fixed.) Another thing: Instead of using \over, I suggest that you use \frac (less surprises). Something like: \starttext \startformula a=b + 1 \stopformula \startformula a = \frac{ b + \mu }{ c } \stopformula \startformula a = \frac{\frac{ b + \mu }{ c } + e}{ d + i } \stopformula \stoptext /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
On 4/20/22 12:34, Christoph Hintermüller via ntg-context wrote: > Hi > Have updated my standalone installation from one of the 2020 releases > to the latest one running > > ./first-setup.sh --context=latest --modules=all Hi Christoph, sorry for the obvious suggestion «post facto»: never update ConTeXt without a backup first. > [...] > Therefore i have the following questions > - would it help to sacrifice the updated standalone installation and >do a fresh install I don’t think it would work, since it only works with LuaMetaTeX. I got the same results (in Windows [because I cannot make it work in Linux]) with LuaTeX 1.15 (the one that comes with ConTeXt LMTX). My suggestion would be a fresh install (in a different directory, no need to remove anything) of ConTeXt LMTX. > - What else i would have to check and probably fix to make the math >working as expected Math is being improved in ConTeXt these days. It might be a bug. I wonder whether Mikael or Hans could review your issue. 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xmlpos values doubled
On 4/20/22 11:51, Ben Moon via ntg-context wrote: > Hello again, > > I wonder whether anyone has some thoughts to help with my problem? > Either why \xmlpos gives double values or alternatives to arrange my > table format? Hi Ben, I think that both \xmlpos and \xmldepth give weird results. With this minimal sample: \startbuffer[text] first level second level third level third level second level third level third level second level third level third level \stopbuffer \startxmlsetups xml:text \xmlsetsetup{#1}{doc|s|ss}{xml:*} \stopxmlsetups \xmlregistersetup{xml:text} \startxmlsetups xml:doc \chapter{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:s \section{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:ss \subsection{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} \stopxmlsetups \setuphead[chapter,section,subsection][before=,after=,] \starttext \xmlprocessbuffer{main}{text}{} \stoptext \xmldepth shows values that I think are +1 than they should be. \xmlpos counts in pairs and not in units (as you wrote, 2, 4, 6...). Hans, could you check whether this is working as expected? Sorry, but if this isn’t a bug, I have no idea of what I may be missing. Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] embed source-file in pdf
On 4/19/22 16:47, Heinrich Paeßens via ntg-context wrote: > Hi there > > just a quick question: > > Is there a command or package to embed the source-file (*.tex) into the > resulting pdf-file, Hi Heinrich, I think this may be what you need: \setupinteraction[state=start] \attachment[file=\jobname.tex] \starttext \input zapf \stoptext > just like in LaTeX using package »embedall« I think it is way better that you explain what you want to achieve. I’d say that not all ConTeXt users are also proficient in LaTeX. In my case, I haven’t use it for more than a decade. 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Need some hints to fix my standalon installation
Hi Have updated my standalone installation from one of the 2020 releases to the latest one running ./first-setup.sh --context=latest --modules=all Now i see the strange behavior that fraction in second equation is not typeset instead typesetting math aborts after typesetting the upper part of the fraction. A short example showing this is attached (pdf, tex, and log) Therefore i have the following questions - would it help to sacrifice the updated standalone installation and do a fresh install - What else i would have to check and probably fix to make the math working as expected - any thing else to change test_strange.tar.bz Description: application/bzip-compressed-tar ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Need some hints to fix my standalon installation
Hi Have updated my standalone installation from one of the 2020 releases to the latest one running ./first-setup.sh --context=latest --modules=all Now i see the strange behavior that fraction in second equation is not typeset instead typesetting math aborts after typesetting the upper part of the fraction. A short example showing this is attached (pdf, tex, and log) Therefore i have the following questions - would it help to sacrifice the updated standalone installation and do a fresh install - What else i would have to check and probably fix to make the math working as expected - any thing else to change -- -- Christoph Hintermüller Dipl.-Ing. Dr. MBA. MSc JKU Institute of Biomedical Mechatronics Altenberger Straße 69, 4040 Linz, Austria, Cell: +43 650 8827347 Tel. +43 732 2468 4813 Email: christoph.hintermuel...@jku.at test_strange.tar.bz Description: application/bzip-compressed-tar ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xmlpos values doubled
Hello again, I wonder whether anyone has some thoughts to help with my problem? Either why \xmlpos gives double values or alternatives to arrange my table format? Best wishes, Ben On Mon, 28 Mar 2022, at 10:44, Ben Moon via ntg-context wrote: > Hello All, > > I'm trying to render a table stored in XML JATS format > (https://jats.nlm.nih.gov/archiving/) and eventually want to use the > tag to setup column aligning from the @align attribute, e.g., > > \setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}] > > Including \xmlpos{#1} I get double the value returned, i.e.: the first > element in colgroup returns 2, the second returns 4 etc. > > Below is a MWE to show my issue. I show \xmlpos for each tag in > above the table, which returns 2, 4, 6, 8 but I expected 1, 2, 3, > 4. Am I missing something or is there another way I could do this? > > > \startbuffer[table] > > > > > > > > > > > H1 (centre) > H2 (right) > H3 > H4 > > > > > A1 > A2 > A3 > A4 > > > B1 > B2 > B3 > B4 > > > > > \stopbuffer > > \startxmlsetups xml:tabletestsetups > \xmlsetsetup{#1}{*}{-} > % tables > \xmlsetsetup{#1}{table-wrap|table}{xml:*} > \xmlsetsetup{#1}{thead|tbody|tr|th|td}{xml:table:*} > \xmlsetsetup{#1}{colgroup|col}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:tabletestsetups} > > \startxmlsetups xml:table-wrap > \startplacetable > % \contextversion \par > \xmlflush{#1} > \stopplacetable > \stopxmlsetups > > \startxmlsetups xml:table > \bTABLE > \xmlflush{#1} > \eTABLE > \stopxmlsetups > > \startxmlsetups xml:colgroup > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:col > \xmlpos{#1} \xmlatt{#1}{align}\par > \stopxmlsetups > > \startxmlsetups xml:table:thead > \bTABLEhead > \xmlflush{#1} > \eTABLEhead > \stopxmlsetups > > \startxmlsetups xml:table:tr > \bTR > \xmlflush{#1} > \eTR > \stopxmlsetups > > \startxmlsetups xml:table:th > \bTH > \xmlflush{#1} > \eTH > \stopxmlsetups > > \startxmlsetups xml:table:tbody > \bTABLEbody > \xmlflush{#1} > \eTABLEbody > \stopxmlsetups > > \startxmlsetups xml:table:td > \bTC > \xmlflush{#1} > \eTC > \stopxmlsetups > > \xmlprocessbuffer{main}{table}{} > > > All the best, > Ben > > > Ben Moon > b...@themoons.uk > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Centering figures that extend into the margin
Hi, I've been playing around with 'marginnote' layout similar to tufte's books. The main thing that I can't figure out is how to centre figures that extend into the margin. These should take over the whole page, but the content of the figure should be centred, which is normally the case in normal figures. Below is my try of defining a marginnote that does this, by calculating the textarea size and setting the width to that. However, I can't seem to then figure out how to center the externalfigure inside of the figure. Thanks in advance! Yann \useMPlibrary[dum] \setuplayout[ edgedistance=1cm, backspace=2cm, rightmargin=4.5cm, leftmargin=0cm, topspace=1cm, header=1cm, footer=1cm, headerdistance=0.5cm, width=fit, height=fit, ] \newdimen\LeftMarginSize \LeftMarginSize=\dimexpr \backspace + \rightmarginwidth + \rightmargindistance \relax \newdimen\TextAreaSize \TextAreaSize=\dimexpr \textwidth + \rightmarginwidth + \rightmargindistance \relax \definefloat[marginfigure][marginfigures][figure] \setupfloat[marginfigure][location=inner,default=top,width=\TextAreaSize] \setupcaptions[marginfigure][ leftmargin=\dimexpr \LeftMarginSize / 2 \relax, location=bottom, width=\textwidth, ] \setuplabeltext[marginfigure=Figure~] \showframe \starttext \startplacemarginfigure \externalfigure[][width=13cm] \stopplacemarginfigure \stoptext -- Yann Herklotz https://yannherklotz.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new upload
On 4/20/2022 3:47 AM, śrīrāma wrote: On 4/19/22 11:53 PM Hans Hagen via ntg-context wrote: I uploaded a new lmtx. Some more adaptive magic ... I'm not sure how usefull it is but users always find ways to apply such things. I attached a test file. Hi Hans, Thanks very much for the upload and the tutorial on 'adaptive'. It seems very impressive and right away, one application which I could think of in my case is its use in denoting prosodic elements in verses (of poems). For this purpose I was using \definebar, \setupbar so far to indicate certain types of elements of verses; now I think this being far more advanced might be more applicable. if you need more control / features it can probably be provided Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___