Re: [NTG-context] Adjust kern for one character
On 12/22/2019 21:34, Henri Menke wrote: On 12/23/19 3:33 PM, Henri Menke wrote: On 12/23/19 2:30 PM, Rik Kabel wrote: On 12/22/2019 17:40, mf wrote: Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close to the preceding characters and I would rather not insert a thinspace before each. (Inserting a thinspace is sufficient, but finer control is welcome.) \definecharacterspacing[distantJ] \setupcharacterspacing[distantJ]["004A][left=.15,alternative=1] % 004A is the unicode hex index of letter J \starttext normal: AJB\par \setcharacterspacing[distantJ] more space on the left: AJB\par \resetcharacterspacing normal again: AJB\par \stoptext Thank you for that, Massi. Unfortunately, that is too blunt an instrument in this case -- in addition to the body font where the problem exists, it works on the heading and titling font, which does not share the problem. As Henri's answer hints, I was a bit unclear in my request. It is a kern between a word space and the cap J that is the issue. Perhaps a font feature file is the place to do such a thing. \startluacode fonts.handlers.otf.addfeature { name = "kern", type = "kern", data = { [" "] = { ["J"] = 1000 % exaggerated value Should of course be a Lua comment ["J"] = 1000 -- exaggerated value } } } \stopluacode \setupbodyfont[modern] % have to reload the font \starttext No Jokes! \stoptext Henri, This looks very promising. It works, mostly. That is, all fonts that use default fontfeatures pick up the change. So, for example, the companion sansserif for my body font also gets it even though that is not what I want. I can remove kerning from the default fontfeatures and add it back just for the problematic font, but that means no kerning for the sans font. Is there a way to apply this to one font only (serif upright, bold, italic, ...) or even a single face (upright), perhaps by giving it a unique name? I have tried a few variations but had no success. The fonts-mkiv manual has very little on this, and the cld manual nothing. -- 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] \setupitemgroup[itemize],/setupitemize
Wolfgang, thank you for this expalantion. Kind regards Willi > On 18 Dec 2019, at 23:15, Wolfgang Schuster > wrote: > > Willi Egger schrieb am 18.12.2019 um 19:58: >> Wolfgans, Hraban, >> >> thank you very much for this instruction! >> >> - In the real itemlist I have of course \startitemize (sorry for the >> ommission in the MWE >> - I misinterpreted the Wiki. There is no mentioning in the red section that >> n is possible. However the n in the green section must be used as the symbol >> with n=123 or symbol=2. > > The n-key is used to set the number of columns when you set your items in > multiple columns and it has the same effect as the two, three etc. keywords. > > The way how numbered items work is different. To change the symbol for the > bullets or use numbers instead ConTeXt checks if the applies keywords include > the name of a symbol (something you create with \definesymbol) or the name of > a number conversion (something you create with \defineconversion) and applies > it to the current entry. > > This check also you to create your own symbols or numbers orders by simply > creating a new symbol and conversion. > > 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 > ___ ___ 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] Problem loading a font
On 12/23/2019 5:13 PM, Mohammad Hossein Bateni wrote: Hi, Here's a simple MWE: == \starttext Default {\definedfont[ALMFixed]ALM} Default \stoptext == I have the "ALM Fixed" font installed (otf from https://ctan.org/tex-archive/fonts/almfixed). I do not see any errors in the output. In particular, Context sees the font and the logs contain the following line: mkiv lua stats > loaded fonts: 3 files: almfixed.otf, latinmodern-math.otf, lmroman12-regular.otf Yet, the output from lmtx does not display the "ALM" string, though its place is reserved on the line. The same file typesets fine with mkiv. something weird in that font - 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] Problem loading a font
Hi, Here's a simple MWE: == \starttext Default {\definedfont[ALMFixed]ALM} Default \stoptext == I have the "ALM Fixed" font installed (otf from https://ctan.org/tex-archive/fonts/almfixed). I do not see any errors in the output. In particular, Context sees the font and the logs contain the following line: mkiv lua stats > loaded fonts: 3 files: almfixed.otf, latinmodern-math.otf, lmroman12-regular.otf Yet, the output from lmtx does not display the "ALM" string, though its place is reserved on the line. The same file typesets fine with mkiv. Thanks --MHB open source > level 1, order 1, name 'cont-yes.mkiv' system > system > ConTeXt ver: 2019.12.17 16:30 MKIV beta fmt: 2019.12.22 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name '/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'alm', input './alm', result 'alm' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name './alm.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded backend > xmp > using file '/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source> level 2, order 3, name './alm.tex' close source> level 1, order 3, name 'cont-yes.mkiv' system > start used files system > text: alm system > stop used files system > start used files system >1: filename=char-prv.lua filetype=tex format=tex foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=otherwise system >2: filename=cont-yes.mkiv filetype=tex format=tex foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv fullname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=otherwise system >3: filename=publ-imp-default.lua filetype=scripts foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=otherwise system >4: filename=cont-new.mkiv filetype=tex foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv fullname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=otherwise system >5: filename=lang-exc.lua filetype=scripts foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=otherwise system >6: filename=lang-us.lua filetype=scripts foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=otherwise system >7: filename=/home/bateni/ctx-debug/dabeer/tests/alm.tex format=tex foundname=/home/bateni/ctx-debug/dabeer/tests/alm.tex fullname=/home/bateni/ctx-debug/dabeer/tests/alm.tex usedmethod=direct system >8: filename=lm.lfg filetype=tex foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=otherwise system >9: filename=lmroman12-regular filetype=otf format=otf foundname=/home/bateni/context-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/home/bateni/context-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=otherwise system > 10: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/bateni/context-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/home/bateni/context-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=otherwise system > 11: filename=ALMFixed filetype=otf format=otf foundname=/home/bateni/context-lmtx/tex/texmf/fonts/opentype/public/almfixed/almfixed.otf fullname=/home/bateni/context-lmtx/tex/texmf/fonts/opentype/public/almfixed/almfixed.otf usedmethod=otherwise system > 12: filename=lpdf-pdx.xml filetype=tex foundname=/home/bateni/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml
Re: [NTG-context] Symbol Footnote Command
Thank you very much! Hans Hagen , 23 Ara 2019 Pzt, 17:12 tarihinde şunu yazdı: > On 12/23/2019 2:21 PM, Aykut Aykutt wrote: > > Hi, > > > > I can change the mark of the second footnote from "2" to asterix by > > defining a conversion like so: > > > > %-- Working example, but it is not what I need -- > > \setupindenting[yes,small] > > \defineconversion[mymix][1,\m{*},2] > > > > \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] > > > > \startdocument > > This is the first sentence with a footnote.\footnote{This is the > > first footnote and its mark is "1".} > > This is the second sentence with a footnote.\footnote{This is the > > second footnote and its mark is "*". } > > This is the third sentence with a footnote.\footnote{This is the > > third footnote and its mark is "2". } > > \stopdocument > > > > Clearly this conversion repeats the marks "1", "*" and "2" repeatedly. > > Is there a way to define a new/special footnote command (say, > > "\symfootnote") which blends with normal footnotes, but prints footnotes > > with symbol marks (say, Set 2) and not with numbers. In other words, is > > it possible to achieve the same result as the working example above with > > something like the (pseudo) example below? > > > > %-- Pseudo example -- > > > > \setupindenting[yes,small] > > \def\symfootenote ?? > > > \setupnotation[symfootnote][align={hz,hanging},indenting={yes,small,next}] > > > \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next}] > > > > \startdocument > > This is the first sentence with a footnote.\footnote{This is the > > first footnote and its mark is "1".} > > This is the second sentence with a footnote.\symfootnote{This is the > > second footnote and its mark is "*". } > > This is the third sentence with a footnote.\footnote{This is the > > third footnote and its mark is "2". } > > \stopdocument > > > > Thank you. > \setupindenting >[yes,small] > > \defineconversion >[mymix] >[a,b,c] > > \definenotation >[symfootnote] >[footnote] >[counter=] > > \setupnotation >[footnote] >[align={hz,hanging}, > indenting={yes,small,next}] > > \setupnotation >[symfootnote] >[align={hz,hanging}, > indenting={yes,small,next}, > numberconversion=mymix] > > \startdocument > This is the first sentence with a footnote.\footnote{This is the > first footnote and its mark is "1".} > This is the second sentence with a footnote.\symfootnote{This is > the second footnote and its mark is "a". } > This is the third sentence with a footnote.\footnote{This is the > third footnote and its mark is "2". } > This is the second sentence with a footnote.\symfootnote{This is > the fourth footnote and its mark is "b". } > \stopdocument > > > - >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] Symbol Footnote Command
On 12/23/2019 2:21 PM, Aykut Aykutt wrote: Hi, I can change the mark of the second footnote from "2" to asterix by defining a conversion like so: %-- Working example, but it is not what I need -- \setupindenting[yes,small] \defineconversion[mymix][1,\m{*},2] \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\footnote{This is the second footnote and its mark is "*". } This is the third sentence with a footnote.\footnote{This is the third footnote and its mark is "2". } \stopdocument Clearly this conversion repeats the marks "1", "*" and "2" repeatedly. Is there a way to define a new/special footnote command (say, "\symfootnote") which blends with normal footnotes, but prints footnotes with symbol marks (say, Set 2) and not with numbers. In other words, is it possible to achieve the same result as the working example above with something like the (pseudo) example below? %-- Pseudo example -- \setupindenting[yes,small] \def\symfootenote ?? \setupnotation[symfootnote][align={hz,hanging},indenting={yes,small,next}] \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next}] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\symfootnote{This is the second footnote and its mark is "*". } This is the third sentence with a footnote.\footnote{This is the third footnote and its mark is "2". } \stopdocument Thank you. \setupindenting [yes,small] \defineconversion [mymix] [a,b,c] \definenotation [symfootnote] [footnote] [counter=] \setupnotation [footnote] [align={hz,hanging}, indenting={yes,small,next}] \setupnotation [symfootnote] [align={hz,hanging}, indenting={yes,small,next}, numberconversion=mymix] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\symfootnote{This is the second footnote and its mark is "a". } This is the third sentence with a footnote.\footnote{This is the third footnote and its mark is "2". } This is the second sentence with a footnote.\symfootnote{This is the fourth footnote and its mark is "b". } \stopdocument - 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] Symbol Footnote Command
Hi, I can change the mark of the second footnote from "2" to asterix by defining a conversion like so: %-- Working example, but it is not what I need -- \setupindenting[yes,small] \defineconversion[mymix][1,\m{*},2] \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\footnote{This is the second footnote and its mark is "*". } This is the third sentence with a footnote.\footnote{This is the third footnote and its mark is "2". } \stopdocument Clearly this conversion repeats the marks "1", "*" and "2" repeatedly. Is there a way to define a new/special footnote command (say, "\symfootnote") which blends with normal footnotes, but prints footnotes with symbol marks (say, Set 2) and not with numbers. In other words, is it possible to achieve the same result as the working example above with something like the (pseudo) example below? %-- Pseudo example -- \setupindenting[yes,small] \def\symfootenote ?? \setupnotation[symfootnote][align={hz,hanging},indenting={yes,small,next}] \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next}] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\symfootnote{This is the second footnote and its mark is "*". } This is the third sentence with a footnote.\footnote{This is the third footnote and its mark is "2". } \stopdocument Thank you. ___ 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] Line numbering in two column layout conflicts with marking
Oliver von Criegern schrieb am 18.12.2019 um 17:39: So there seems to be no solution for this? Not a solution but pagecolumns show the correct marks even with line numbering. 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] Using TestBackground inside Offset
Jon Wong schrieb am 23.12.2019 um 09:13: Is it possible? Yes. I get “missing endgroup inserted” error. Without a minimal example there is no way to tell why you get this error message. As can be seen in the example below you can use textbackgrounds with the \offset command. \definetextbackground [DisplayBackground] [location=paragraph] \definetextbackground [InlineBackground] [location=text] \starttext X\offset[x=1em]{\starttextbackground[InlineBackground]Text\stoptextbackground} X\offset[x=1em]{\vtop{\starttextbackground[DisplayBackground]Text\crlf Text\stoptextbackground}} X\offset[x=1em]{\framed[location=top,align=normal]{Text\crlf Text}} \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] Adjust kern for one character
On 12/23/2019 10:13 AM, Mojca Miklavec wrote: On Sun, 22 Dec 2019 at 22:28, Henri Menke wrote: On 12/23/19 10:19 AM, Rik Kabel wrote: List, Is there a way in ConTeXt to adjust the left-side kern for one character? No, kerns always come in pairs. Bounding boxes come per-character, though ;) I'm not familiar with details, but I would guess that it might be possible to change the bounding box of a character on the fly. you can tweak the width when you load, boundingboxes can only be used for height and depth guessing (fonts provide width information) 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] Adjust kern for one character
On Sun, 22 Dec 2019 at 22:28, Henri Menke wrote: > On 12/23/19 10:19 AM, Rik Kabel wrote: > > List, > > > > Is there a way in ConTeXt to adjust the left-side kern for one > > character? > > No, kerns always come in pairs. Bounding boxes come per-character, though ;) I'm not familiar with details, but I would guess that it might be possible to change the bounding box of a character on the fly. Mojca ___ 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] Using TestBackground inside Offset
Is it possible? I get “missing endgroup inserted” error. ___ 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 ___