Re: [NTG-context] lmtx: new text & math font stuff
On 12/30/2020 7:27 PM, Thomas A. Schmitz wrote: On 12/30/20 4:53 PM, Hans Hagen wrote: As usual, it opens up possibilities, but of course at the price of testing. Hans, I had seen the alignment bug as well; this has been fixed in today's upload. I'm in a book project (from xml), so I don't have small examples right now, but I want to point out that there are two more areas where current lmtx has serious problems that luatex doesn't have: Must have been some side effect of some of the font stuff as iI didn't really touch the alignment code. 1. I have a bibliography that is structured in sections. lmtx does not respect the scope of these sections, but prints the entire bibliographical list at the first occurrence of \placelistofpublications. I wasn't sure if I had the right keywords and experimented an entire afternoon before I realized this was a bug in lmtx... hm, should not be too hard to solve (with an example) ... keep in mind that there is no functionality difference between mkiv and lmtx (although lmtx will evolve), so maybe some oversight in upgrading the low level interfacing macros (removing indirectness) 2. For some reason, lmtx introduces lots of empty pages into my document. When I compile my book with luatex, I get 176 pages at the moment, in lmtx, I have 208. Must be something about chapter breaks and so on. here we definitely need an example I will try in the next days to come up with examples, but right now, I'm working on a chapter and don't want to interrupt the flow... sure (sometimes) comparing the tuc files gives a clue As always, thanks for your work on context, and best wishes for 2021 - may it suck less that 2020! Thanks, 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 ___
[NTG-context] Protruding quotation marks obviate narrowed quotations
Several months ago I posed the following question. When I start a paragraph with a \quote or a \quotation the left quotemark does not protrude, but when I use Unicode quotes it does. I would prefer to use the commands. Any suggestions on how I can achieve proper left protrusion without resorting to Unicode characters? Wolfgang suggested the following lines of code; which worked perfically. \setupquotation [method=font] \setupquote [method=font] Returning to this project after several months I observe that when I use a \start- stopquotation environment, the quotation is not narrowed. The \setupquotation command obviously affects both the \quotation command and \start- stopquotation environment. Is there an elegant way to apply the \setupquotation command and retain the quotation indentation? Cheers, Michael Here's a mwe. \showframe \showgrid \setupwhitespace[medium] % Setup hanging punctuation, less severe style \definefontfeature [default] [default] [protrusion=punctuation,expansion=quality] \setupalign[hz,hanging] % Provide protrusion for quotations. \setupquotation[method=font] % Toggle this line to see the effect. \setupquote[method=font] \starttext \startparagraph \quotation[method=font]{Love makes the world go round,} as an old proverb has it\ldots \stopparagraph \startquotation \input tufte \stopquotation \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] lmtx: new text & math font stuff
On 12/30/20 4:53 PM, Hans Hagen wrote: As usual, it opens up possibilities, but of course at the price of testing. Hans, I had seen the alignment bug as well; this has been fixed in today's upload. I'm in a book project (from xml), so I don't have small examples right now, but I want to point out that there are two more areas where current lmtx has serious problems that luatex doesn't have: 1. I have a bibliography that is structured in sections. lmtx does not respect the scope of these sections, but prints the entire bibliographical list at the first occurrence of \placelistofpublications. I wasn't sure if I had the right keywords and experimented an entire afternoon before I realized this was a bug in lmtx... 2. For some reason, lmtx introduces lots of empty pages into my document. When I compile my book with luatex, I get 176 pages at the moment, in lmtx, I have 208. Must be something about chapter breaks and so on. I will try in the next days to come up with examples, but right now, I'm working on a chapter and don't want to interrupt the flow... As always, thanks for your work on context, and best wishes for 2021 - may it suck less that 2020! Thomas ___ 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] Title in enumeration not working?
Hi, Thanks for the fix, Hans (version 2020.12.30 16:45 looks fine!) /Mikael On Mon, Dec 21, 2020 at 3:11 PM Otared Kavian wrote: > Hi Mikael, > > Indeed you are right about the fact that > > \startexample[title={Title}] > ... > \stopexample > > > is more logical and also more convenient. > Sorry for not having checked your example in mkiv, where this structure > works as intended. > So it might be a small buglet in LMTX. > > Best regards: Otared > > On 21 Dec 2020, at 14:06, Mikael Sundqvist wrote: > > Hi Otared, > > Thank you for your suggestion. I would say yes and no. > > I want the result one gets from what you write, but I prefer the syntax > > \startexample[title={Title}] > ... > \stopexample > > and that has been working before. Reading in setup-en.pdf, it also looks > to me as if that should work. > > Best, > > Mikael > > On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian wrote: > >> Hi Mickael, >> >> Maybe this is what you want: >> >> \defineenumeration[example] >> [text=Example, >> title=yes, >> titleleft=, >> titleright={.}, >> ] >> >> \starttext >> \startexample{Title} >> This is a test. >> \stopexample >> \stoptext >> >> Of course is you say >> text=, >> then you get only « Title » and a number in front of it. >> >> Best regards: OK >> >> > On 21 Dec 2020, at 11:05, Mikael Sundqvist wrote: >> > >> > Hi, >> > >> > Has anything changed with titles and enumerations? I expected a title >> "Title" with the following setup. >> > >> > \defineenumeration[example][ >> > text=Example, >> > title=yes, >> > ] >> > >> > \starttext >> > \startexample[title={Title}] >> > This is a test. >> > \stopexample >> > \stoptext >> > >> > But it does not show up. >> > >> > /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 >> > >> ___ >> >> >> ___ >> 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 > > ___ > ___ 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] adding url as a footnote in the caption of figure
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 works fine. Thanks again. Best regards, Dalyoung___ 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] text alignment issue
Fixed in today’s standalone. Many thanks—and best wishes for 2021!! Alan On Wed, Dec 30, 2020 at 10:51 AM Alan Bowen wrote: > In the last few versions of luametatex standalone, paragraphs that were > once justified now appear ragged right. My insertions of > \setupparagraphs[align=wide/normal/yes] and \setupalign[wide/normal/yes] > have had no effect. Is there some new coding that is needed to get > justified text? > > 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 ___
[NTG-context] lmtx: new text & math font stuff
Hi, As you know, lmtx is also a place for experiments. Currently I'm playing a bit with fonts. Recently (as mentioned a whil eback) I added glyph scaling which permits interesting trickery, although one needs to be aware of how it combines with other features. Here's an example: \def\UnKernedTeX {T% {\glyph xoffset -.2ex yoffset -.4ex `E}% {\glyph xoffset -.4ex options "C0 `X}} \dorecurse{100}{ x \UnKernedTeX} There are alse \glyphxscale cum suis but again, beware that it might influence things when not used grouped. At some point this will be an option in scaled fonts (think of \tfc and such). It saves instances. You can get an idea with: \enableexperiments[text.fonts.compact] The 'text' in this command suggests that we can also do that with math and indeed we have \enableexperiments[math.fonts.compact] These directives have to come *before* loading fonts in order to be effective. Especially the math can bring down the number of font instances: text, script and scriptscript all use the same instance, which is good news. The bad news is that it's up to users to check how this plays out. There are some differences due to the fact that scaling happens elsewhere and otherwise which results in tiny differences (4/5th decimal). As said, these are experiments so ity might progress. I post intermediate versions because that way I can control it better. There is another variant in the planning. Yet another expriment (undecided if that will stay, i played with if before and then rejected it): \enabledirectives[fonts.injections.method=advance] If it stays I probbably have to patch some other code to better suit it. Overall, although in math it add to the overhead, due to the fact that math is hardly demanding (makes only a fraction of the rendering) the memory footprint can be quite a bit lower and performance a bit better (not that much). The measures used in rendering are kind of floating (recalculated often) when these mechanisms are enabled but my impression is that todays compilers make that hardly noticeable. As usual, it opens up possibilities, but of course at the price of testing. 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 ___
[NTG-context] text alignment issue
In the last few versions of luametatex standalone, paragraphs that were once justified now appear ragged right. My insertions of \setupparagraphs[align=wide/normal/yes] and \setupalign[wide/normal/yes] have had no effect. Is there some new coding that is needed to get justified text? 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] Math align not working
The developers might tune in; perhaps it was changed. > On 30 Dec 2020, at 15:01, Johann Birnick wrote: > > Okay, but I think it's a bug, because as you see in the linked pdf it worked > the > simple way some years ago... ___ 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] Math align not working
Okay, but I think it's a bug, because as you see in the linked pdf it worked the simple way some years ago... On Wed, 2020-12-30 at 14:38 +0100, Hans Åberg wrote: > One has to indicate the align pattern for all columns, otherwise it defaults > to left, it seems: > > \starttext > > \startformula \startalign[m=2,distance=8em,n=5, > align={right,middle,middle,middle,left,right,middle,middle,middle,left}] > \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 > \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR > \NC 3 \NC < \NC 2y + 3z \NC < \NC 15 > \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR > \stopalign \stopformula > > \stoptext > > > > On 29 Dec 2020, at 14:36, Johann Birnick wrote: > > > > Hi there, > > > > I noticed that Math align is not working properly. In particular I mean the > > alignment. For example, the following code > > > > > > \starttext > > > > > > \startformula \startalign[m=2,distance=8em,n=5, > > align={right,middle,middle,middle,left}] > > \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 > > \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR > > \NC 3 \NC < \NC 2y + 3z \NC < \NC 15 > > \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR > > \stopalign \stopformula > > > > \stoptext > > > > > > is copied from https://dl.contextgarden.net/myway/mathalign.pdf but doesn't > > produce the intended result. > > > > What's wrong? > > > > Best regards, > > Johann > > > > > > ___ > > 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] Math align not working
One has to indicate the align pattern for all columns, otherwise it defaults to left, it seems: \starttext \startformula \startalign[m=2,distance=8em,n=5, align={right,middle,middle,middle,left,right,middle,middle,middle,left}] \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR \NC 3 \NC < \NC 2y + 3z \NC < \NC 15 \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR \stopalign \stopformula \stoptext > On 29 Dec 2020, at 14:36, Johann Birnick wrote: > > Hi there, > > I noticed that Math align is not working properly. In particular I mean the > alignment. For example, the following code > > > \starttext > > > \startformula \startalign[m=2,distance=8em,n=5, > align={right,middle,middle,middle,left}] > \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 > \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR > \NC 3 \NC < \NC 2y + 3z \NC < \NC 15 > \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR > \stopalign \stopformula > > \stoptext > > > is copied from https://dl.contextgarden.net/myway/mathalign.pdf but doesn't > produce the intended result. > > What's wrong? > > Best regards, > Johann > > ___ > 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] Math align not working
Hi Alain, I don't know what you mean by "you have two position in the second and one in the first" ? The 4 is not aligned correctly. Please see https://dl.contextgarden.net/myway/mathalign.pdf where the example comes from. The output looks different. Best regards, Johann On Wed, 2020-12-30 at 11:26 +0100, Alain Delmotte wrote: > Hi Johann, > The 4 is right aligned, but for this column you have two position in the > second and one in the first. > You could try ~4 and it will align with 10. > Best regards, > Alain > Le 29/12/2020 à 22:27, Johann Birnick a écrit : > Hi Otared, > > I'm using the same version. The problem is the "right"-alignment. See the 4 on > the right side. It should be right-aligned. I attached my pdf. > > Best regards, > Johann > > > On Tue, 2020-12-29 at 21:37 +0100, Otared Kavian wrote: > > > Hi Johann, > > > > The example you sent works fine here with LMTX version 2020.12.28 01:41. > > Which version of ConTeXt are you using ? > > > > Best regards: Otared > > > > > > > On 29 Dec 2020, at 14:36, Johann Birnick > > > wrote: > > > > > > Hi there, > > > > > > I noticed that Math align is not working properly. In particular I mean > > > the > > > alignment. For example, the following code > > > > > > > > > \starttext > > > > > > > > > > > > \startformula \startalign[m=2,distance=8em,n=5, > > > align={right,middle,middle,middle,left}] > > > \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 > > > \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR > > > \NC 3 \NC < \NC 2y + 3z \NC < \NC 15 > > > \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR > > > \stopalign \stopformula > > > > > > \stoptext > > > > > > > > > is copied from https://dl.contextgarden.net/myway/mathalign.pdf but > > > doesn't > > > produce the intended result. > > > > > > What's wrong? > > > > > > Best regards, > > > Johann > > > > > > __ > > > __ > > > ___ > > > 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 > > > > ___ > ___ 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] Math align not working
Hi Johann, The 4 is right aligned, but for this column you have two position in the second and one in the first. You could try ~4 and it will align with 10. Best regards, Alain Le 29/12/2020 à 22:27, Johann Birnick a écrit : Hi Otared, I'm using the same version. The problem is the "right"-alignment. See the 4 on the right side. It should be right-aligned. I attached my pdf. Best regards, Johann On Tue, 2020-12-29 at 21:37 +0100, Otared Kavian wrote: Hi Johann, The example you sent works fine here with LMTX version 2020.12.28 01:41. Which version of ConTeXt are you using ? Best regards: Otared On 29 Dec 2020, at 14:36, Johann Birnick wrote: Hi there, I noticed that Math align is not working properly. In particular I mean the alignment. For example, the following code \starttext \startformula \startalign[m=2,distance=8em,n=5, align={right,middle,middle,middle,left}] \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR \NC 3 \NC < \NC 2y + 3z \NC < \NC 15 \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR \stopalign \stopformula \stoptext is copied from https://dl.contextgarden.net/myway/mathalign.pdf but doesn't produce the intended result. What's wrong? Best regards, Johann ___ 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 ___ ___ 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 ___