[NTG-context] Concerning \startTEXpage ... \stopTEXpage... again
Hi. Thanks to Hans for the quick fixes. However, some examples are still misbehaving. See the following: \setupbodyfont[70pt] \starttext \startTEXpage \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$} \stopTEXpage \stoptext It works in MkIV, but it has the right margin cut with LMTX. Also, both MkIV and LMTX give cropped formulas when \framed is absent in the example above. Thank you in advance for any feedback. Best regards, Jairo :) ___ 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] How can I make "natural table" be exactly as wide as the textwidth?
On Sun, 6 Dec 2020, T. Kurt Bond wrote: > On Sun, Dec 6, 2020 at 2:20 AM Aditya Mahajan wrote: > > > On Sun, 6 Dec 2020, T. Kurt Bond wrote: > > > > > Setting maxwidth and textwidth on the \bTABLE doesn't seem to do > > anything. > > > > Use: > > > > \bTABLE[width=broad] > > > > \eTABLE > That did the trick! It did distribute the new width oddly, with adding > more width to the the first and second columns, while the third column, > which had the most text to wrap, was not as wide as it could have been. I > had to set widths for the first and second columns, and had to experiment > to get them right. A MWE (Minimal working example) is needed to see what is going on. Aditya ___ 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] troubles with setuphead, page=right
> \setuppagenumbering[alternative=doublesided] That solved the problem, thanks. Damien Thiriet ___ 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] Confusion with fonts
On 12/6/2020 6:24 PM, Pablo Rodriguez wrote: On 12/6/20 1:03 PM, T. Kurt Bond wrote: backend > blocked > function 'setmapfile' is not accessible Using LMTX, it seems to be "Latin Modern Roman Math". I wonder whether this is an intended new feature or an issue. hm, seems like something is loading a map file ... i'll make that calla dummy (context doesn't need map files so i removed left-overs in lmtx) 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] Bugs using \startTEXpage ... \stopTEXpage, Metapost and text
On 12/6/20 3:29 PM, Jairo A. del Rio wrote: > [...] > gives a normal output in MkIV, but buggy output in LMTX. It seems only > TeX commands in Metapost (textext, thetextext, etc.) are affected. Am I > missing something? Hi Jairo, the sample can be much simpler: \starttext \startMPcode draw textext("some text"); \stopMPcode \stoptext This might be related to the issue that I reported about text scaling in lmt_followtext (https://mailman.ntg.nl/pipermail/ntg-context/2020/100573.html). Just in case it helps, Pablo -- http://www.ousia.tk ___ 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] troubles with setuphead, page=right
Hi, \setuphead[subject] [page={yes,right}] \starttext \startsubject[title=test 1] \input ward \stopsubject \startsubject[title=test 2] \input ward \stopsubject \stoptext makes the job on ConTeXt online, but doesn't with my lmtx version. Did the syntax change in lmtx? Best regards, Damien Thiriet ___ 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] troubles with setuphead, page=right
Hi, The following MWE does not give the output I expect, that is subject starting on page 1 and 3. What did I miss? \setuphead[subject] [page=right] \starttext \startsubject[title=test 1] \input ward \stopsubject \startsubject[title=test 2] \input ward \stopsubject \stoptext Damien Thiriet ___ 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] Confusion with fonts
On 12/6/20 1:03 PM, T. Kurt Bond wrote: > [...] > \definefontfamily[mainface][mm][Latin Modern Math] Hi Kurt, this triggers an error in current latest (2020.12.04 20:22): backend > blocked > function 'setmapfile' is not accessible Using LMTX, it seems to be "Latin Modern Roman Math". I wonder whether this is an intended new feature or an issue. > When I run it through context it works and produces output that uses the > EBGaramond font. The following also work: antykwapoltawskiego, asana, > cambria, charter, ebgaramond, gentium, inconsolata, iwona, kurier, lato, > punknova, stix, and xits. But other things, like palatino and pagella > and dejavu. Those end up using Latin Modern Roman. Latin Modern Roman is the default font family for serif typeface. > I realize I don't understand ConTeXt's font handling and typescripts > very well, could someone explain why some of those things work, and > others don't? ConTeXt doesn’t recognize the invoked typeface and uses the default one. > I'll note that pandoc generates this because it lets users of pandoc > specify different fonts for the main body font, the math font, the sans > font, and the mono font. This is a bridge to use both LaTeX and ConTeXt capabilities to deal with the document typefaces. > Can anybody suggest a different way of doing that, which works more > often or more simply? I’ll try. But let us know whether something is not clear. My explanation seeks to be effective. It might be not 100% technically right. Others might correct my point of view. You have three main options in both \definefontfamily and \definefallbackfamily, which are the three pair of brackets. \definefontfamily[identifier][rm][TeX Gyre Pagella] The first option is the identifier, you may use whichever you want, but the same should be used defining the same typeface family (fallback typefaces) and in \setupbodyfont (\switchtobodyfont is irrelevant for pandoc, as far as I know). The second option is the typeface class of the family: serif, sans-serif, math, mono. The last one is the typeface name. I would suggest that you stick to the font name as displayed by the font in your operative system. So, TeX Gyre Pagella is the typeface for what ConTeXt defines as palatino and pagella. DejaVu Serif (and many others) is the serif typeface for the dejavu identifier. My personal approach to font handling in ConTeXt (which Wolfgang can correct) is the following: * If you use \definefontfamily, use the full font name in the font selection option (third pair of brackets). * Otherwise, use the font identifier (I guess this comes from a typescript) with only \setupbodyfont (or \switchtobodyfont). I hope it helps, Pablo -- http://www.ousia.tk ___ 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] troubles with setuphead, page=right
On 12/6/20 3:20 PM, Damien Thiriet wrote: > Hi, > > \setuphead[subject] [page={yes,right}] > [...] > makes the job on ConTeXt online, but doesn't with my lmtx version. Hi Damien, https://live.contextgarden.net/cgi-bin/result.cgi?id=EXmDKW gives the expected output: no double-sided document by default. > Did the syntax change in lmtx? I don’t think so. But Hans or Wolfgang can confirm that. I hope it helps, Pablo -- http://www.ousia.tk ___ 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] troubles with setuphead, page=right
On 12/6/20 3:07 PM, Damien Thiriet wrote: > Hi, > > The following MWE does not give the output I expect, > that is subject starting on page 1 and 3. > What did I miss? Hi Damien, by default, ConTeXt generates single-sided documents. If double-sided documents are needed, proper setup reads: \setuppagenumbering[alternative=doublesided] > \setuphead[subject] [page=right] Double-sided documents are required to make sense of right pages. I hope it helps, Pablo -- http://www.ousia.tk ___ 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] Bugs using \startTEXpage ... \stopTEXpage, Metapost and text
Hi. The following: \starttext %Using \startMPpage instead doesn't help \startTEXpage[width=1920px,height=1080px,margin=1em] \startplacefigure[location=force,number=no] \startMPcode draw textext("some text"); \stopMPcode \stopplacefigure \stopTEXpage \stoptext gives a normal output in MkIV, but buggy output in LMTX. It seems only TeX commands in Metapost (textext, thetextext, etc.) are affected. Am I missing something? Thank you in advance. Regards, Jairo :) ___ 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] Confusion with fonts
I've got a small ConTeXt source file, that is a minimization of a file generated by the the ConTeXt output of pandoc using pandoc features to set the main font to ebgaramond: \definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes] \definefontfamily[mainface][rm][ebgaramond] \definefontfamily[mainface][mm][Latin Modern Math] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter][features=none] \setupbodyfont[mainface] \starttext Is this text in Pagella? \stoptext When I run it through context it works and produces output that uses the EBGaramond font. The following also work: antykwapoltawskiego, asana, cambria, charter, ebgaramond, gentium, inconsolata, iwona, kurier, lato, punknova, stix, and xits. But other things, like palatino and pagella and dejavu. Those end up using Latin Modern Roman. I realize I don't understand ConTeXt's font handling and typescripts very well, could someone explain why some of those things work, and others don't? I'll note that pandoc generates this because it lets users of pandoc specify different fonts for the main body font, the math font, the sans font, and the mono font. Can anybody suggest a different way of doing that, which works more often or more simply? -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io ___ 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] Quote mark missing from first paragraph in quotation when location=text
Hi, I have some long dialogue that I'm trying to typeset and I want to use the convention of repeating the open quotation mark on each paragraph of continued dialogue. I know I can set this up by doing something like \setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote] This works well, except in cases where the dialog starts in the middle of a paragraph. By default \startquotation starts a new paragraph. I think the way to suppress that is to set location=text, but when I try that I get the odd effect that the first paragraph doesn't get quotes but the following ones do. Minimal example below. \setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote, location=text] \starttext Some text that's not part of the quotation. \startquotation \input knuth \stopquotation \stoptext I’m on LMTX 2.08.04, Context version 2020.12.04 20:22 Any ideas? Michael ___ 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] Bug in generating the highlight colour in the rules-mkiv document
Hi all, When compiling the rules-mkiv.tex (context/sources/general/manuals/rules) file, the highlight lines that use mp graphics are rendered in black instead of the colour defined by the file. This is visible on the three test sentences on the top of the third page "test test me and test or grep". The versions I've tested where this is broken are: context from the current TexLive 2020 distribution mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: texmf-dist/tex/context/base/mkiv/ context.mkiv mtx-context | current version: 2020.03.10 14:44 mtx-context | main context file: texmf-dist/tex/context/base/mkiv/ context.mkxl mtx-context | current version: 2020.03.10 14:44 context installed via first-setup.sh mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: tex/texmf-context/tex/context/base/mkiv/ context.mkiv mtx-context | current version: 2020.01.30 14:13 mtx-context | main context file: tex/texmf-context/tex/context/base/mkiv/ context.mkxl mtx-context | current version: 2020.01.30 14:13 context from TexLive 2019 distribution mtx-context | ConTeXt Process Management 1.02 mtx-context | mtx-context | main context file: texmf-dist/tex/context/base/mkiv/ context.mkiv mtx-context | current version: 2019.03.21 21:39 The latest version I found to be working: context installed with TexLive 2018 mtx-context | ConTeXt Process Management 1.02 mtx-context | mtx-context | main context file: texmf-dist/tex/context/base/mkiv/ context.mkiv mtx-context | current version: 2018.04.04 00:51 Cheers, Ivan -- dr Ivan Čukić MATF, i...@math.rs, https://cukic.co, http://poincare.math.rs/~ivan gpg key fingerprint: 8FE4 D32F 7061 EA9C 8232 07AE 01C6 CE2B FF04 1C12 ___ 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] How can I make "natural table" be exactly as wide as the textwidth?
That did the trick! It did distribute the new width oddly, with adding more width to the the first and second columns, while the third column, which had the most text to wrap, was not as wide as it could have been. I had to set widths for the first and second columns, and had to experiment to get them right. Thanks for the help! On Sun, Dec 6, 2020 at 2:20 AM Aditya Mahajan wrote: > On Sun, 6 Dec 2020, T. Kurt Bond wrote: > > > Setting maxwidth and textwidth on the \bTABLE doesn't seem to do > anything. > > Use: > > \bTABLE[width=broad] > > \eTABLE > > Aditya > > ___ > 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 > > ___ > -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io ___ 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 ___