[NTG-context] Setup left, right, between entries in custom cite of multiple references
I'm trying to customise \cite and unable to get inbetween= to appear between entries in a multi-ref citation. My own customisations via a copy of publ-imp-apa.mkvi and .lua have this problem, so in case it was due to my customisation I went back to solid ground — the Chemistry example, pp. 70-74 in the Publications manual (http://pragma-ade.nl/general/manuals/mkiv-publications.pdf). The cite examples on p.74 work as shown, but when I add each of the following: \cite [name][108-95-2,566-33-5]\par \cite [formula][108-95-2,566-33-5]\par \cite [chemical][108-95-2,566-33-5]\par \cite [molarvolume][108-95-2,566-33-5,24599-57-3]\par I simply get the citation details, no separator between, and no left or right. Either of the following works for left= and right=. However inbetween= does not activate, and similarly for separator:2, separator:3, separator:4. \definebtx [chemistry:cite:formula] [left={\color[blue]{(}}, % the colour to differentiate from \setupbtx below right={\color[red]{)}}, inbetween={\btxcomma\btxspace}, % no effect ] \setupbtx [chemistry:cite:formula] [left={(}, right={)}, inbetween={\btxcomma\btxspace}, ] Grateful for any guidance as to how I can remedy this issue. Regards, and thanks, Mike testChem-btx.tex Description: Binary data ___ 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] Two issues with respect to sections in ConTeXt
Jairo A. del Rio schrieb am 05.06.2020 um 05:28: First: I made the following question wrt swapping section labels and section numbers: https://tex.stackexchange.com/questions/547761/how-to-swap-section-labels-and-section-numbers-in-context What I tried to do is the following section structure 1. Chapter (Name of chapter) 1. 2 Section (Name of section) Wolfgang Schuster offered the following solution for chapters in Spanish, thanks :) \setuplabeltext[es][chapter={, capítulo}] However, I asked if there is a way to use predefined section labels according to chapters, sections, parts, etc. e.g. Chapter (EN) or Capítulo (ES) without manually writing a \setuplabeltext for every language, so he suggested that I move my question here and there we are. Making the labels accessible is the simple part but not as part of the labeltext class. The harder part is to move the text to the right side of the number because by default most labels appear only on the left side. Below are a few examples of the current state of labeltexts. 1. Position When you set a label the text for a label you have to specify on which side of the content it should appear. In the following example I set a label which has text for the left and right side, both texts are separated by a comma. To get the text for a cetain side you use either the \left... or \right... command or but you can also use the \...texts command which adds both to the content in the second argument. What isn't possible is to set a single text and apply it to the right side of the text. \starttext \setuplabeltext[example={Left , Right}] \labeltext{example}1 \leftlabeltext{example}2\rightlabeltext{example} \labeltexts{example}{3} \stoptext 2. Languages Labels are only applied to the main language of a document which is set with the \mainlanguage command. Local changes of a language (which is used to apply local hyphenation patterns) don't change the label. \starttext \setuplabeltext [en] [language=English] \setuplabeltext [nl] [language=Dutch] \labeltext{language} \language[nl] \labeltext{language} \mainlanguage[nl] \labeltext{language} \stoptext To use language dependent texts you can use the \translate command but you to set the texts in the argument of the command. \starttext \translate [en=English,nl=Dutch] \language[nl] \translate [en=English,nl=Dutch] \stoptext 3. Sections Thee reason why you can't provide existing label texts for all sections labels is that a few of the main levels (part, chapter, section) have default values for the bodypartlabel key. When ConTeXt typesets the content of the section it applies the label which is set with this key to the section number, this means each chapter will now have "Chapter " as prefix for the number which changes all documents. % \setuphead % [section] % [bodypartlabel=] % default: bodypartlabel=section \starttext \section{A section without label} \setuplabeltext [en] [section={Section }] \section{A section with label} \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] Numbers inside \sqrt are small
Hi Mikael, Thanks to your message I discovered that in all my recent documents typeset with lmtx the \sqrt has a bug… Indeed the argument under the square root is too small. (The version I have right now is 2020.05.25 23:39, after running sh install.sh). It may be that it is related to the recent changes discussed in anther thread about the square root and friends. I hope Hans will have time to fix the issue… Best regards: Otared K. > On 2 Jun 2020, at 14:47, Mikael Sundqvist wrote: > > Hi, > > \starttext > $2+\sqrt{2}$ > \stoptext > > The output is attached. This happened with a release that are a bit old, as > well as with the most recent upgrade. LMTX. > > /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 ___
Re: [NTG-context] Installing Modules with ConTeXt LMTX
Marco Patzer writes: > On Mon, 01 Jun 2020 19:58:59 +0200 > Sebastian Miele wrote: > >> I want to try the t-letter module. I have a fresh install of ConTeXt >> LMTX from today. The page https://wiki.contextgarden.net/Modules has >> sections "Installation by hand" and "ConTeXt standalone", but no >> section on ConTeXt LMTX. >> >> The section on ConTeXt standalone mentions a --modules switch to >> first-setup.sh in order to include modules. This cannot work with the >> install.sh from ConTeXt LMTX, as it does not pass any command line >> arguments to mtxrun. > > As far as I understand there is no built-in method. You have to > install them manually. Relevant thread: > > https://mailman.ntg.nl/pipermail/ntg-context/2020/097022.html Thank you. That pointed into the right direction. The thread contains a little script to get all modules (https://mailman.ntg.nl/pipermail/ntg-context/2020/097023.html). However, the script does not really work. (In every iteration of the loop of the script, the --delete to rsync deletes the files of the module from the previous iteration. Just omitting the --delete would not be correct, either.) Using the information from the script, I wrote, tested, and wikified something else (https://wiki.contextgarden.net/Modules#ConTeXt_LMTX). ___ 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] \frac and vertical spacing issue in mathfractions
In the current beta ( LuaMetaTeX, Version 2.06.05), \m{\frac{28}{8\times29}} puts the numerator and denominator too close to the dividing line. Similarly for the variants of \frac and \over. \m{{28}\over{8\times29}} 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 ___