[NTG-context] \glueexpr in lmtx
Hi, I stumbled upon some odd behaviour of \glueexpr in lmtx. Take the following document: \starttext \the\glueexpr 0.0pt \relax \newskip\myskip \myskip=\glueexpr 0.0pt \relax \stoptext Without lmtx this works fine. Under lmtx, the *first* use of `\glueexpr`, after `\the`, works fine too. On the other hand, the other `\glueexpr`, after `\myskip=`, complains about a "Illegal unit of measure (pt inserted)". It does not seem to accept the fractional part, everything works again if I use \starttext \the\glueexpr 0.0pt \relax \newskip\myskip \myskip=\glueexpr 0pt \relax \stoptext Am I missing something here or is this a bug? Best regards, Marcel Krueger ___ 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] Place footnote after reference
So why not place footnotes in a (sufficiently large) reserved bottom space? The typeset text area would then be uniform across all pages and notes would appear where needed. Would be possibe in some cases, but not in mine: I have many small footnones, only a few words, and some very long with several lines. With your solution I would waste 50%+ of the area or - as an alternative - I had to split the long footnotes across several pages and their footnote-areas. Actually that might be an interesting workaround ... I will try it, but it would cost still a lot of space and pages. Huseyin Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de Am 22.07.2019 um 19:14 schrieb Alan Braslau: On Mon, 22 Jul 2019 18:34:34 +0200 Huseyin Özoguz wrote: The problem is, that Context (or Tex) skips lines, which is poor typesetting, too many even than necessary in some cases, and that is not suitable. Endnotes are no solutions aswell, I need footnotes. So the solution to have reference and footnote not on the same page seems the least bad workaround, if possible at all. So why not place footnotes in a (sufficiently large) reserved bottom space? The typeset text area would then be uniform across all pages and notes would appear where needed. Alan ___ 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] Place footnote after reference
Alan Braslau schrieb am 22.07.2019 um 16:37: I do not know the details, but take a look at the following keywords (which do the *opposite* of what you are seeking): \setupnote [footnote] [split=verystrict,scope=page] The scope setting isn't used in the current beta and the code is commented in the source. Wolfgang ___ 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] Place footnote after reference
On 7/22/2019 12:34, Huseyin Özoguz wrote: Hi, But I admit that I do not understand the problem all that well. I have never run into a situation where I want the footnote to explicitly *not* appear with its reference (except in endnotes). If my grid settings were that specific, I would be using endnotes anyway. I have this problem everywhere in a 400-page project with hundrets of footnotes and no special grid settings at all. How would you solve this situation (my minexamle): \showgrid \starttext \input tufte \input tufte \footnote{Footnote 1} \input tufte \input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2} \input tufte \stoptext The problem is, that Context (or Tex) skips lines, which is poor typesetting, too many even than necessary in some cases, and that is not suitable. Endnotes are no solutions aswell, I need footnotes. So the solution to have reference and footnote not on the same page seems the least bad workaround, if possible at all. Thanks Huseyin -- Huseyin Özoguz E-Mail:h.oezo...@mmnetz.de Have you tried \setupnote[footnote][before={\blank[none]}] ? -- Rik ___ 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] Place footnote after reference
On Mon, 22 Jul 2019 18:34:34 +0200 Huseyin Özoguz wrote: > The problem is, that Context (or Tex) skips lines, which is poor > typesetting, too many even than necessary in some cases, and that is > not suitable. Endnotes are no solutions aswell, I need footnotes. So > the solution to have reference and footnote not on the same page > seems the least bad workaround, if possible at all. So why not place footnotes in a (sufficiently large) reserved bottom space? The typeset text area would then be uniform across all pages and notes would appear where needed. Alan ___ 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] background problem with layers
Peter Rolf schrieb am 22.07.2019 um 13:32: Hi, I have a problem with a not printed color background when using layers. Small test file is attached. Below is a simpler example of your problem. The frame disappears when you repeat the layer which change how the content if flushed, in the example below you can test it by changing \box\scratchbox to \copy\scratchbox. \starttext \setbox\scratchbox\hbox{\frule width 6cm height 4cm \relax} \dontleavehmode \box\scratchbox % works %\copy\scratchbox % fails \stoptext Wolfgang ___ 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] Place footnote after reference
Hi, But I admit that I do not understand the problem all that well. I have never run into a situation where I want the footnote to explicitly *not* appear with its reference (except in endnotes). If my grid settings were that specific, I would be using endnotes anyway. I have this problem everywhere in a 400-page project with hundrets of footnotes and no special grid settings at all. How would you solve this situation (my minexamle): \showgrid \starttext \input tufte \input tufte \footnote{Footnote 1} \input tufte \input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2} \input tufte \stoptext The problem is, that Context (or Tex) skips lines, which is poor typesetting, too many even than necessary in some cases, and that is not suitable. Endnotes are no solutions aswell, I need footnotes. So the solution to have reference and footnote not on the same page seems the least bad workaround, if possible at all. Thanks Huseyin -- Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de ___ 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] Unwanted white box above float
Brilliant! Thanks Taco. On Mon, 22 Jul 2019 at 16:32, Taco Hoekwater wrote: > Hi, > > \setupfloat[thematicimage] > [freeregion=no] > > But I do not know what that actually means. > I just noticed that it makes the white background box not be white any > more. > > Taco > > ___ 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] Unwanted white box above float
Hi, \setupfloat[thematicimage] [freeregion=no] But I do not know what that actually means. I just noticed that it makes the white background box not be white any more. Taco > On 22 Jul 2019, at 16:39, Duncan Hothersall wrote: > > Hi all. > > Have been experimenting with the many and varied options for placefloat to > try to resolve this problem with no success. As per minimal example below I > have nearly what I'm after - an image which floats to the right of a > background box with a 1em offset - but I can't get rid of the white box which > appears above it no matter what permutations I try. > > (Secondary query: why do I have to set leftoffset=, rightoffset= etc. > individually for the text background? offset= seems to have no effect.) > > Thanks for any help you can offer. > > > \definetextbackground[TintBoxedBackground] > [background=color, > backgroundcolor=cyan, > frame=off, > leftoffset=1em, > rightoffset=1em, > topoffset=1em, > bottomoffset=1em, > location=paragraph] > > \definefloat[thematicimage][figure] > \setupfloat[thematicimage] > [default=right,none}, > offset=1em, > margin=0em, > background=color, > backgroundcolor=cyan, > rightmargindistance=-1em] > > \starttext > > \starttextbackground[TintBoxedBackground] > > {\bf Lorem ipsum dolor sit amet}\blank > > \placethematicimage{}{\externalfigure[cow][width=0.30\makeupwidth]} Lorem > ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor > incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis > nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. > Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore > eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, > sunt in culpa qui officia deserunt mollit anim id est laborum. > > \stoptextbackground > > \stoptext > > > Duncan > ___ > 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 > ___ Taco Hoekwater Elvenkind BV ___ 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] Place footnote after reference
Hi, > On 22 Jul 2019, at 16:37, Alan Braslau wrote: > > On Mon, 22 Jul 2019 16:27:45 +0200 > Denis Maier wrote: > >> llI don't know a solution for this, but would be very interested. >> With LaTeX you can use the `atbegshi`-package that gives you a >> command ` \AtBeginShipoutNext`: >> >> ``` >> \footnotemark >> \clearpage >> \AtBeginShipoutNext{\footnotetext{Text.}} ConTeXt has a token register called \everybeforeoutput, which sounds somewhat similar to me. The only problem is that it does not auto-reset, so you have to do that yourself (by globally redefining the macro that is called) \def\outstuff {\footnotetext{Whatever}% \gdef\outstuff{}} \prependtoks \outstuff \to \everybeforeoutput (there is also \everyafteroutput) Whether that is usable or not for this problem, I do not know … But I admit that I do not understand the problem all that well. I have never run into a situation where I want the footnote to explicitly *not* appear with its reference (except in endnotes). If my grid settings were that specific, I would be using endnotes anyway. Best wishes, Taco ___ 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] Unwanted white box above float
Hi all. Have been experimenting with the many and varied options for placefloat to try to resolve this problem with no success. As per minimal example below I have nearly what I'm after - an image which floats to the right of a background box with a 1em offset - but I can't get rid of the white box which appears above it no matter what permutations I try. (Secondary query: why do I have to set leftoffset=, rightoffset= etc. individually for the text background? offset= seems to have no effect.) Thanks for any help you can offer. \definetextbackground[TintBoxedBackground] [background=color, backgroundcolor=cyan, frame=off, leftoffset=1em, rightoffset=1em, topoffset=1em, bottomoffset=1em, location=paragraph] \definefloat[thematicimage][figure] \setupfloat[thematicimage] [default=right,none}, offset=1em, margin=0em, background=color, backgroundcolor=cyan, rightmargindistance=-1em] \starttext \starttextbackground[TintBoxedBackground] {\bf Lorem ipsum dolor sit amet}\blank \placethematicimage{}{\externalfigure[cow][width=0.30\makeupwidth]} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \stoptextbackground \stoptext Duncan ___ 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] Place footnote after reference
On Mon, 22 Jul 2019 16:27:45 +0200 Denis Maier wrote: > llI don't know a solution for this, but would be very interested. > With LaTeX you can use the `atbegshi`-package that gives you a > command ` \AtBeginShipoutNext`: > > ``` > \footnotemark > \clearpage > \AtBeginShipoutNext{\footnotetext{Text.}} > ``` > > This only works for individual footnotes, but it's already quite > useful. Is there something similar for ConTeXt? > I can think of at least three situations: > > 1. Put footnote text to the next page for a single footnote. > 2. Allow footnote text on next page for all footnotes. > 3. Allow footnote text on next page of a double page spread for all > footnotes. > > Best, > Denis > > > > > > > Am Mo., 22. Juli 2019 um 08:43 Uhr schrieb Huseyin Özoguz < > h.oezo...@mmnetz.de>: > > > Hello, > > > > ConText seems to try to place the footnote on the same page as the > > footenotereference. See this example: > > > > \showgrid > > \starttext > > \input tufte > > \input tufte \footnote{Footnote 1} > > \input tufte > > \input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2} > > \input tufte > > \stoptext > > > > But that results into one (or two?) fewer line on the first page. > > > > Is there a possibility to implement the following rule? -> NEVER > > move lines onto the next page to achieve footnote and reference > > beging on the same page. If necessary set the footnote on the next > > page, after the reference. > > > > Or would you suggest a better solution? I have a book with > > grid=yes, so the default-setting is not suitable. > > > > Thanks > > Huseyin I do not know the details, but take a look at the following keywords (which do the *opposite* of what you are seeking): \setupnote [footnote] [split=verystrict,scope=page] Alan ___ 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] Place footnote after reference
llI don't know a solution for this, but would be very interested. With LaTeX you can use the `atbegshi`-package that gives you a command ` \AtBeginShipoutNext`: ``` \footnotemark \clearpage \AtBeginShipoutNext{\footnotetext{Text.}} ``` This only works for individual footnotes, but it's already quite useful. Is there something similar for ConTeXt? I can think of at least three situations: 1. Put footnote text to the next page for a single footnote. 2. Allow footnote text on next page for all footnotes. 3. Allow footnote text on next page of a double page spread for all footnotes. Best, Denis Am Mo., 22. Juli 2019 um 08:43 Uhr schrieb Huseyin Özoguz < h.oezo...@mmnetz.de>: > Hello, > > ConText seems to try to place the footnote on the same page as the > footenotereference. See this example: > > \showgrid > \starttext > \input tufte > \input tufte \footnote{Footnote 1} > \input tufte > \input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2} \input > tufte > \stoptext > > But that results into one (or two?) fewer line on the first page. > > Is there a possibility to implement the following rule? -> NEVER move > lines onto the next page to achieve footnote and reference beging on the > same page. If necessary set the footnote on the next page, after the > reference. > > Or would you suggest a better solution? I have a book with grid=yes, so > the default-setting is not suitable. > > Thanks > Huseyin > > > -- > Huseyin Özoguz > > E-Mail: h.oezo...@mmnetz.de > > > ___ > 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] background problem with layers
Hi, I have a problem with a not printed color background when using layers. Small test file is attached. ConTeXt version: 2019.07.16 18:23 Peter test.pdf Description: Adobe PDF document \defineframed[framedclass][ foregroundcolor=black, foregroundstyle=\bfa, backgroundcolor=darkgray, background=color, backgroundoffset=1mm, backgroundcorner=round, backgroundradius=1mm, frame=on, framecolor=black, ] \definelayer[foo][width=\the\paperwidth, height=\the\paperheight, state=repeat] \setlayer[foo][x=70mm, y=40mm] {\framedclass{no style here}} \setupbackgrounds[paper][background={foo}] \starttext \framedclass{works fine} \setlayer[foo][x=40mm, y=70mm] {\framedclass{no background here}} \stoptext ___ 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] translating LyX/LaTex book into ConTeXt
On Sun, 21 Jul 2019 12:35:09 +0200 Hans Hagen wrote: > You can extend the default feature to also add missing composed > characters to the font. In mkiv we have way more control and these > missign characters are then made virtual ones but in the text they > are proper unicodes. > > \definefontfeature[default][compose=yes] > > \starttext > char ṁ (U+01E41) > \stoptext That's great. Thank you! > in sort-lan you can find examples of how sorting works in mkiv .. you > can find examples in the test suite end elsewhere about how to > influence the sorting order (basically it uses a language sorting > order, but the sequence of the about 6 steps involving code, case, > shape, can be changed ... in your case the m is quite likely to be > sorted as m because it has the 'm' shape Good. > should be problem ... i'm pretty sure that on the list someone can > tell you how he/she did it (users of critical editions) OK. Sincerely, Gour -- He who is regulated in his habits of eating, sleeping, recreation and work can mitigate all material pains by practicing the yoga system. pgp0A0mIM2p4w.pgp Description: OpenPGP digital signature ___ 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] VORG and vmtx table in fontloader
Hello all, It seems that ConTeXt's fontloader (hence luaotfload's fontloader) skips to load the VORG table and topSideBearing in the vmtx table These informations are used to get the vertical origin of a glyph. > readers.vorg = function(f,fontdata,specification) > reportskippedtable(f,fontdata,"vorg",specification.glyphs) > end > readers.vmtx = function(f,fontdata,specification) > ... > for i=0,nofmetrics-1 do > ... > if vheight ~= 0 and vheight ~= vdefault then > glyph.vheight = vheight > end > -- if topsidebearing ~= 0 then > -- glyph.tsb = topsidebearing > -- end I don't know whether vertical metrics are used in ConTeXt. But, they will be useful for other packages (e.g., LuaTeX-ja) to improve vertical typesetting. Regards Hironori KITAGAWA ___ 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] footnotes in columns not working
Hi, I cannot offer a proper fix, but I can testify that there are serious problems with footnotes in the latest betas. The default subsystem for columns has been rewritten, but it still has some teething problems with regard to footnotes and float placement. While Hans is sorting out the problems, you can get back the old columns code with \loadmarkfile{page-mul} somewhere in the setup section of your document. Best wishes, Taco > On 18 Jul 2019, at 14:27, Charles Doherty wrote: > > > Dear Hans, > > I have been typesetting a Newsletter using ConTeXt since 2003. I have updated > the programme regularly and made adjustments to my template as needed. > > Following the most recent update I have problems with footnotes in columns. > Depending on the number and length of the footnotes I have varied between > placing them at the end of each column or as a list at the end of each page > using: > > \setupnote[footnote][location=columns] > > or commenting out > > %\setupnote[footnote][location=columns] > > to get what I need. In the attached image I had commented out > %\setupnote[footnote][location=columns] expecting to get footnotes arranged > one beneath the other at the bottom of the page but I get them in two columns > and both run off the page. > > Can you help on this? > > I attach an .png of the result. > > Thanks, > Charlie > > ___ > 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 > ___ Taco Hoekwater Elvenkind BV ___ 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 ___