Re: [NTG-context] upload ... new feature
On 12/10/21 6:37 PM, Hans Hagen via ntg-context wrote: > On 12/10/2021 6:04 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> I’m afraid I’m not getting anything different. >> [...] >> I wonder whether there has been an LMTX update or something else that >> I’m missing (Linux64). > > ownerpassword is mandate. Everything is clear now and it works as expected. Many thanks for your 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 ___
[NTG-context] inserts and columns
I stumbled upon a curious problem: """ \starttext Some text\footnote{with a footnote} \startcolumns \samplefile{knuth} \samplefile{knuth} \stopcolumns \samplefile{knuth} \stoptext """ The footnote is typeset after the columns, not at the bottom of the page, and collides with text before and after. Hraban ___ 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] All Equations
Am 10.12.21 um 18:03 schrieb Aditya Mahajan via ntg-context: On Fri, 10 Dec 2021, Henning Hraban Ramm via ntg-context wrote: Since I never used math with ConTeXt, I tried to replicate XKCD 2034 as an exercise (see below and attached). I’d like to put it on the wiki and in my book. I know this is nonsense, but I’d like to do it right. https://www.explainxkcd.com/wiki/index.php/2034:_Equations Thank you, Aditya & Wolfgang! (Aditya posted first, but Wolfgang’s message arrived earlier – geography seems to matter ;) So I could fix most of my issues, just the “gauge theory” and “truly deep physics” examples I can’t complete, and the website unfortunately doesn’t contain the (LaTeX) code of those. - How can I put a hat accent on \left( and \right) ? – f̵ and u̧ use combining accents; the characters show correctly in my editor, but not in the resulting PDF. Hraban allformula.tex Description: TeX document ___ 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] upload ... new feature
On 12/10/2021 6:04 PM, Pablo Rodriguez via ntg-context wrote: On 12/10/21 11:46 AM, Hans Hagen via ntg-context wrote: Hi, This time the lmtx upload has a (for some maybe) interesting new features: runtime pdf encryption. context --ownerpassword=foo [--userpassword=bar] [--permissions="see context --help --expert"] Many thanks for the new feature, Hans. I’m afraid I’m not getting anything different. Here is the source: \nopdfcompression \starttext \null \stoptext "context --purgeall --userpassword=foo a" outputs https://pdf.ousia.tk/enc.pdf. "context --purgeall a" outputs https://pdf.ousia.tk/non-enc.pdf. MuPDF-GL version 1.19 shows no encryption at all. I wonder whether there has been an LMTX update or something else that I’m missing (Linux64). Many thanks for your help, ownerpassword is mandate - 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] Defining new float types fails in LMTX
On Fri, 10 Dec 2021 17:01:26 +0100 Hans Hagen wrote: > no example code The MWE was included in the OP on 2021-10-30. But here it is again: \setupfloat [figure] [default=bottom] %% fails %% [default=top] %% works \definefloat [foo] [foos] [figure] \starttext \startplacefigure [title=Foo] \framed{Foo} \stopplacefigure \startplacefoo [title=Bar] \framed{Bar} \stopplacefoo \stoptext Marco ___ 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] All Equations
Henning Hraban Ramm via ntg-context schrieb am 10.12.2021 um 17:59: Since I never used math with ConTeXt, I tried to replicate XKCD 2034 as an exercise (see below and attached). I’d like to put it on the wiki and in my book. I know this is nonsense, but I’d like to do it right. In some cases I’m unsure which symbol the author meant, e.g. p or \rho, 0 or O, 1 or I or | ... Yes, I could have used proper Unicode characters (ρ, π etc.). Can you answer my questions (%? in the source)? (Partly TeX related, partly math/physics related.) https://www.explainxkcd.com/wiki/index.php/2034:_Equations 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] All Equations
On Fri, 10 Dec 2021, Henning Hraban Ramm via ntg-context wrote: > Since I never used math with ConTeXt, I tried to replicate XKCD 2034 as an > exercise (see below and attached). I’d like to put it on the wiki and in my > book. > > I know this is nonsense, but I’d like to do it right. https://www.explainxkcd.com/wiki/index.php/2034:_Equations 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] upload ... new feature
On 12/10/21 11:46 AM, Hans Hagen via ntg-context wrote: > Hi, > > This time the lmtx upload has a (for some maybe) interesting new > features: runtime pdf encryption. > > context > --ownerpassword=foo >[--userpassword=bar] >[--permissions="see context --help --expert"] Many thanks for the new feature, Hans. I’m afraid I’m not getting anything different. Here is the source: \nopdfcompression \starttext \null \stoptext "context --purgeall --userpassword=foo a" outputs https://pdf.ousia.tk/enc.pdf. "context --purgeall a" outputs https://pdf.ousia.tk/non-enc.pdf. MuPDF-GL version 1.19 shows no encryption at all. I wonder whether there has been an LMTX update or something else that I’m missing (Linux64). Many thanks for your 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 ___
[NTG-context] All Equations
Since I never used math with ConTeXt, I tried to replicate XKCD 2034 as an exercise (see below and attached). I’d like to put it on the wiki and in my book. I know this is nonsense, but I’d like to do it right. In some cases I’m unsure which symbol the author meant, e.g. p or \rho, 0 or O, 1 or I or | ... Yes, I could have used proper Unicode characters (ρ, π etc.). Can you answer my questions (%? in the source)? (Partly TeX related, partly math/physics related.) """ \setupinteraction[state=start] \starttext \subject{All equations\footnote{according to \goto{XKCD}[url(https://xkcd.com/2034/)]}...} ... of Kinematics: \startformula E = K_0t + \frac{1}{2}\rho vt^2 \stopformula % ? Should it be v or \nu? ... of Number Theory: \startformula K_\Lambda = \sum^\infty_{i=0}\sum^\infty_{\pi=0}(n-\pi)(i+e^{\pi-\infty})\stopformula ... of Fluid Dynamics: \startformula \frac{\delta}{\delta_t}\nabla\cdot\rho = \frac{8}{23}\oiint\rho d_s d_t\cdot\rho\frac{\delta}{\delta_\nabla}\stopformula % ? Would ds dt be better than d_s d_t? ... of Quantum Mechanics: \startformula I\Psi_{x,y}>=A(\Psi)A(I\times>\oplus Iy>)\stopformula % ? Should those be I, 1 or |, > or some angle bracket? ... of Chemistry: \startformula CH_4 + OH + HEAT \rightarrow H_2O + CH_2 + H_2EAT\stopformula % ? Should we something different for chem. formulae? ... of Quantum Gravity: \startformula SU(2)U(I) \times SU(U(2))\stopformula % It’s not even an equation... ... of Gauge Theory: \startformula S_g = \frac{-I}{2\bar{\epsilon}} i \delta \left( \xi_{\delta_0} \mathring{+} \rho_\epsilon \rho_v^{abc}\cdot\eta_0 \right) f_a^0 a\lambda(\rotate[rotation=180,location=high]{\xi})\Psi(O_a) \stopformula % ? I guess the first \delta should be crossed somehow? % ? Is it possible to get \hat accents over the brackets? \hat{\left(} doesn’t work. % ? What’s that symbol after \right) ? (f with two bars, maybe kind of integral?) ... of Cosmology: \startformula h(t) + \Omega + G \cdot \Lambda ... \startmathcases \NC ... > 0 \TC (Hubble Model) \NR \NC ... = 0 \TC (Flat Squere Model) \NR \NC ... < 0 \TC (Bright Dark Matter Model) \NR \stopmathcases \stopformula ... of Truly Deep Physics: \startformula \hat{H} - \c{u}_0 = O\stopformula % ? How can I get a cedilla under the u? \c{u} is wrong. \page \subject{Original} \externalfigure[https://imgs.xkcd.com/comics/equations.png][width=\textwidth] \stoptext """ Hraban allformula.tex Description: TeX document allformula.pdf Description: Adobe PDF document ___ 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] Defining new float types fails in LMTX
On 12/10/2021 4:00 PM, Marco Patzer via ntg-context wrote: On Tue, 30 Nov 2021 15:51:24 +0100 Marco Patzer via ntg-context wrote: There's an issue with defining new floats in LMTX in combination with bottom placement. The following works in MkIV, but throws an error in LMTX: I don't know if the error changed or if I copied the wrong error message in the OP, but a current LMTX throws: close source> level 1, order 2, name './t.tex' (\end occurred when parameter character luatex warning > print: bad string offset was incomplete)error (nodes): attempt to double-free glue node 2986, ignored LMTX 2021.12.10 11:29 no example code 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] Defining new float types fails in LMTX
On Tue, 30 Nov 2021 15:51:24 +0100 Marco Patzer via ntg-context wrote: > There's an issue with defining new floats in LMTX in combination > with bottom placement. > > The following works in MkIV, but throws an error in LMTX: I don't know if the error changed or if I copied the wrong error message in the OP, but a current LMTX throws: close source> level 1, order 2, name './t.tex' (\end occurred when parameter character luatex warning > print: bad string offset was incomplete)error (nodes): attempt to double-free glue node 2986, ignored LMTX 2021.12.10 11:29 Marco ___ 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] Initial release of SBL bibliographic rendering and biblio wishlist
Hello Joey, Just a quick note to thank you for your work on this. I use Chicago which is close enough to SBL that I can use it. I'll test it for a while and report any issues I encounter. Jelle On Thu, Dec 9, 2021 at 12:47 AM Joey McCollum via ntg-context wrote: > > A while ago, I mentioned in a thread on the mailing list that I was working > on a new bibliographic rendering for the SBL citation style. After additional > testing and implementation of various features (e.g., an authorconversion > that inverts the first author and prints all subsequent authors in normal > order, an author-title sort order for bibliographic entries, support for > shorthands/abbreviations, support for Citation Style Language locators, and > support for biblatex-style citation macros that intelligently move > punctuation that follows them). While optimizations for performance, > simplifications of the code, and new feature additions are still desirable, > the module is in working condition and can now be incorporated in a future > ConTeXt update. The new .lua and .mkvi files for the SBL rendering, updated > publ-aut.lua and publ-imp-author.mkvi files, and some new code intended to be > incorporated into publ-ini.lua and publ-ini.mkiv can all be found in project > GitHub repo at the https://github.com/jjmccollum/context-sbl. > > While I worked on this module, Denis Maier (who provided valuable feedback > and suggestions throughout) and I put together a wish list of new features we > would like to see implemented in the publications support core modules. We > put together the list with Hans and Alan in mind, but any help is > appreciated! The list follows: > > Probably the most urgent need is for field inheritance mappings through > crossrefs to be fixed. These should be customizable in bibliographic > specification .lua files (e.g., publ-imp-sbl.lua), or at the very least, they > should follow the pattern of biblatex. As it is currently implemented, field > inheritance seems to map any field from the cross-referenced entry to a field > of the same name in the current entry if it doesn't have a field of this name > already. But this causes serious problems when one needs to check if an entry > has a given field (such as "shorthand") at all; specifically, the \btxdoif > macro will execute its argument if the current entry or any entry it > cross-references contains a field with that name. What we want is a more > disambiguated mapping of inherited fields: for many common entry types (such > as @book, @collection, @reference, @proceedings, and @inbook, @incollection, > @inreference, and @inproceedings), biblatex maps the title field of the > cross-referenced entry to a different-named field in the lower-level entry > (e.g., maintitle -> booktitle -> title, maineditor -> bookeditor -> editor, > etc.). > A mechanism for setting default field values (e.g., "pagination", "options") > by category in the .lua file for a given specification. (In the SBL spec, for > instance, an entry of category @ancienttext or @classictext should have > options={skipbib=true} by default.) If the user actually specifies this field > in an entry, then the default value would be overwritten. > If it hasn't been done already, the \btxdoifelsecitedone macro defined in the > cont-new.mkiv file in https://github.com/jjmccollum/context-sbl should be > implemented in publ-ini.lua and publ-ini.mkiv. > Related to the previous entry, the ability to remove existing entry tags from > the "collected" or "tobesaved" lists defined in publ-ini.lua. This would > allow us to override the usual list registry rules of \cite based on the > values of, say, an entry's category, "type" field or "options" field. > General support for the useauthor, useeditor, usetranslator, skipbib, and > skipbiblist entry options from biblatex. These could be implemented as > citation-level btx options (currently, useauthor already is implemented for > the SBL style). > Support for disambiguation in "author" citations made with the "name" > authorconversion. Publications support already allows us to map different > versions of the same name (e.g., "John Doe" and "J. Doe" to a single value. > But ideally, the publications support module should also check if surnames > are shared by distinct authors, and if so, it should then check for distinct > first and middle initials, and then distinct full names, until it finds a > difference. The shortest distinct renderings should then be used for the > "name" authorconversion. Different bibliographic renderings have different > rules for this, so implementations of these different rules (detailed at > https://docs.citationstyles.org/en/stable/specification.html#disambiguation) > would be ideal. > General support for ibidem (same entry), idem (same author), and op. cit. > (same title) tracking in the publ-ini module. These could be implemented with > default settings that could be overridden as
Re: [NTG-context] \WORD regression
Am 10.12.21 um 12:53 schrieb Wolfgang Schuster: Henning Hraban Ramm via ntg-context schrieb am 10.12.2021 um 08:20: Am 09.12.21 um 19:00 schrieb Henning Hraban Ramm via ntg-context: \starttext \WORD{größer} \stoptext \WORD used to handle "ß" correctly, i.e. convert it to "SS"; now it makes "sS". (If the current font contains an uppercase ß that would be even better, but those are rare). I can’t tell when it changed (some LMTX versions ago) and can’t check MkIV, since "mtxrun --generate --luatex" doesn’t work. Hans sent me a fix, I guess it will be included in the next upload. And yes, uppercase ß (ẞ, U1E9E) would be even better, even according to the official German orthography rules since 2017, but there are still not many fonts that have it. \usemodule[lingual-de] \enabledirectives[fonts.uppercasesharps] \setupbodyfont[libertinus] \starttext \WORD{größer} \stoptext Cool, thank you! It would have been kind of a wonder if ConTeXt wouldn’t already contain something like that... ;) Hraban ___ 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] \WORD regression
Henning Hraban Ramm via ntg-context schrieb am 10.12.2021 um 08:20: Am 09.12.21 um 19:00 schrieb Henning Hraban Ramm via ntg-context: \starttext \WORD{größer} \stoptext \WORD used to handle "ß" correctly, i.e. convert it to "SS"; now it makes "sS". (If the current font contains an uppercase ß that would be even better, but those are rare). I can’t tell when it changed (some LMTX versions ago) and can’t check MkIV, since "mtxrun --generate --luatex" doesn’t work. Hans sent me a fix, I guess it will be included in the next upload. And yes, uppercase ß (ẞ, U1E9E) would be even better, even according to the official German orthography rules since 2017, but there are still not many fonts that have it. \usemodule[lingual-de] \enabledirectives[fonts.uppercasesharps] \setupbodyfont[libertinus] \starttext \WORD{größer} \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] upload ... new feature
> On 10 Dec 2021, at 11:46, Hans Hagen via ntg-context > wrote: > > Hi, > > This time the lmtx upload has a (for some maybe) interesting new features: > runtime pdf encryption. > > > I would be surprised if the native apple viewer works but I can't test that. Apple Preview works without any problems, with a quick test. It forces a popup dialog for “user password” on opening when that is set, and with context .. --permissions="-print” it shows an "owner password" dialog before allowing to print — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] upload ... new feature
Hi, This time the lmtx upload has a (for some maybe) interesting new features: runtime pdf encryption. context --ownerpassword=foo [--userpassword=bar] [--permissions="see context --help --expert"] One can also use the document banner line, like: % ownerpassword="foo" userpassword="" permissions="print,extract,quality" Now, this is a feature that relies on the viewer to deal properly with it as we only support the not depricated method (why bother with the old stuff). acrobat : it took some effort (and trial and error) to make that one happy but it seems to work ok summatra : the one i use, it works ok in the latest greatest (i use 3.3.13418) mutool : okay but sometimes with a warning (i have a workearound but not enabled it because i consider it to be a bug) qpdf : happy but check gives a permissions warning (understandable as that is a real mess) firefox : opens ok in the latest version (pdf.js) chrome : can't handle the revision level we use (the rest is depricated so i consider it a lack of feature for now) edge : idem okular : my (windows) version is too old xpdf : not up to it yet foxit: (i never use it, but tried ... it's code seems to be what is used in chrome) doesn't work with this revision I would be surprised if the native apple viewer works but I can't test that. Given earlier pdf threads, I wanna check with Michal Vlasák what can be improved. Performance is okay, the luametatex manual takes 1% more runtime and that's within the runtime measurement margin that I use. I didn't test with external images yet but will do that so don't expection yet. It will probably take a few months to reach a stable state anyway. (But ... afaiks tikz pdf generation, which is also somewhat alien to context, seems to work). Hopefully I didn't mess up the unrelated code, 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] xml processing: if elseif else / switch case
Well, it was more a question out of curiosity, not a specific problem that needs to be solved. (Or actually, I found another solution for the problem I've had first.) Anyway, I still think this would be handy as that would be a more maintainble control structure. I'll try to come up with an example next week... Denis > -Ursprüngliche Nachricht- > Von: Wolfgang Schuster > Gesendet: Donnerstag, 9. Dezember 2021 18:32 > An: mailing list for ConTeXt users ; Denis Maier via ntg- > context > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] xml processing: if elseif else / switch case > > Denis Maier via ntg-context schrieb am 09.12.2021 um 18:24: > > Thanks for all the answers. That's helpful. But I think that does not work > with the xml tests, or does it? I mean, is this a general mechanism? > > Since you didn't provide a example with your problem there is no way to tell > how to improve it. > > 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 ___