Re: [NTG-context] Achieving the effect of \overset outside math mode
On Friday, November 12, 2021 8:17:24 AM IST kauśika wrote: > Dear list, > > I don't have a MWE per se, but as the title suggests, I want to be able to > achieve the effect of \overset outside math mode. As I understand, \overset > itself is implemented using \mathop and \limits. > > Currently to achieve this I have defined some macros using \offset thus : > \define[1]\pabv{\dontleavehmode\offset[width=0em,y=-16pt,x=3pt]{#1}} > Unfortunately, I have to hard code the x values. So I have define several > such > macros with different offsets. Not an elegant solution, but it is what I > could > muster. > > So, my objective is to place a smaller piece of text above another larger > piece of text so that the text above is centered w.r.t the text below. > > Please advise. > > Thanks, > kauśika I was able to get some working examples using the second answer here: https://tex.stackexchange.com/questions/42456/creating-non-math-mode-substitutes-for-overset-and-underset-not-dependent-on-t But, I was just curious if there is a more elegant ConTeXt specific way to achieve this. Thanks, kauśika ___ 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] plain tex, context and latex
Yes. \overset and \underset were ported to context some months back. If you have a recent install, both should work. Aditya On Fri, 31 Aug 2007, Liesbeth van der Plas wrote: Is there an equivalent of the amstex *\overset* macro? I couldn't find it in your articles. Liesbeth 2007/8/27, Aditya Mahajan [EMAIL PROTECTED]: On Mon, 27 Aug 2007, Liesbeth van der Plas wrote: The reason to write a booklet in Latex instead of in context was that I wanted to use some amstex macro's. Is it possible to use amstex in context as well? ConTeXt has the functionality for most of amstex macros. The syntax is a bit different from amstex, it is a bit more contextish. See http://dl.contextgarden.net/myway/context-latex-math.pdf and http://dl.contextgarden.net/myway/mathalign.pdf 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- [EMAIL PROTECTED] www.wiskunde-interactief.nl -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] plain tex, context and latex
It doesn't work, so I haven't got it. Can I get the source .tex of \overset and \underset and use \input instead of reinstalling things? It costed me a lot of time to get everything work all right, so I am not very eager to risk spoiling things (I used the ProText cd-rom for Windows). Liesbeth 2007/8/31, Aditya Mahajan [EMAIL PROTECTED]: Yes. \overset and \underset were ported to context some months back. If you have a recent install, both should work. Aditya On Fri, 31 Aug 2007, Liesbeth van der Plas wrote: Is there an equivalent of the amstex *\overset* macro? I couldn't find it in your articles. Liesbeth 2007/8/27, Aditya Mahajan [EMAIL PROTECTED]: On Mon, 27 Aug 2007, Liesbeth van der Plas wrote: The reason to write a booklet in Latex instead of in context was that I wanted to use some amstex macro's. Is it possible to use amstex in context as well? ConTeXt has the functionality for most of amstex macros. The syntax is a bit different from amstex, it is a bit more contextish. See http://dl.contextgarden.net/myway/context-latex-math.pdf and http://dl.contextgarden.net/myway/mathalign.pdf 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- [EMAIL PROTECTED] www.wiskunde-interactief.nl -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- [EMAIL PROTECTED] www.wiskunde-interactief.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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] plain tex, context and latex
On Fri, 31 Aug 2007, Liesbeth van der Plas wrote: It doesn't work, so I haven't got it. Can I get the source .tex of \overset and \underset and use \input instead of reinstalling things? It costed me a lot of time to get everything work all right, so I am not very eager to risk spoiling things (I used the ProText cd-rom for Windows). Copy the definitions of preparebinrel, overset and underset from http://source.contextgarden.net/tex/context/base/core-mat.tex?search=overset Aditya 2007/8/31, Aditya Mahajan [EMAIL PROTECTED]: Yes. \overset and \underset were ported to context some months back. If you have a recent install, both should work. Aditya On Fri, 31 Aug 2007, Liesbeth van der Plas wrote: Is there an equivalent of the amstex *\overset* macro? I couldn't find it in your articles. Liesbeth 2007/8/27, Aditya Mahajan [EMAIL PROTECTED]: On Mon, 27 Aug 2007, Liesbeth van der Plas wrote: The reason to write a booklet in Latex instead of in context was that I wanted to use some amstex macro's. Is it possible to use amstex in context as well? ConTeXt has the functionality for most of amstex macros. The syntax is a bit different from amstex, it is a bit more contextish. See http://dl.contextgarden.net/myway/context-latex-math.pdf and http://dl.contextgarden.net/myway/mathalign.pdf 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- [EMAIL PROTECTED] www.wiskunde-interactief.nl -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- [EMAIL PROTECTED] www.wiskunde-interactief.nl -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Context alternative for Latex's \overset \underset
Hi, In doing my Latex to Context conversion, I stumbled on two Latex math commands : \overset and \underset as in \mathcal{T} = \overset{\infty}{ \underset{r,s = 0}{\cup} } \: \mathcal{T}^{r}_s The page http://wiki.contextgarden.net/Math_with_amsl mentions the commands stackrel and underset when using the AMSL module from Giuseppe Bilotta. I tried to load the AMSL module with \usemodule[amsl] like to test its workings. \usemodule[amsl] \starttext \startformula T = { \underset{r,s = 0}{\cup} } \: T^{r}_{s} \stopformula \stoptext but the log file indicates it cannot find the module amsl ??? Is the AMSL module not part of the standard Context distribution ? I thought it was. I am using ConTeXt ver: 2006.07.24 10:49 fmt: 2006.7.27 int: english mes: english. Kind regards Wim Neimeijer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context alternative for Latex's \overset \underset
On Wed, 2 Aug 2006, WN wrote: Hi, In doing my Latex to Context conversion, I stumbled on two Latex math commands : \overset and \underset as in \mathcal{T} = \overset{\infty}{ \underset{r,s = 0}{\cup} } \: \mathcal{T}^{r}_s Why not simply use \mathcal{T} = \bigcup_{r,s=0}^{\infty} \mathcal{T}^{r}_s The page http://wiki.contextgarden.net/Math_with_amsl mentions the commands stackrel and underset when using the AMSL module from Giuseppe Bilotta. You can either download t-amsl from http://modules.contextgarden.net/ Is the AMSL module not part of the standard Context distribution ? I thought it was. No it is not part of standard distribution. I have a question to other users of amsl module (since GB is no longer active on this list). Can the module be considered obsolete now that most (all??) features are part of Context. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context alternative for Latex's \overset \underset
[where is the amsl module] $ kpsewhere t-amsl /usr/share/texmf-tetex/tex/context/maths/t-amsl.tex and that's the only one ('locate amsl.tex' confirms it). The /usr/share context tree is the ancient version that comes with tetex 3.0 (Context 2005.01.31 I think). My ~/texmf tree has the newer Context 2006.07.24 and it lacks t-amsl.tex. Also the cont-tmf.zip file doesn't contain it. So it looks like it's not part of the distribution. I've attached the old t-amsl.tex in case it works for you. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. #application/x-tex; name=t-amsl.tex [t-amsl] /tmp/t-amsl.tex ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context