From: Bernard D. <bde...@us...> - 2020-05-26 08:06:12
|
We are speaking here about the situation where templates introduce empty labels. For instance, if you insert a template for the *align* environment (select *Maths Environments > align…* and, say, choose 2 equations), here is what Alpha inserts in your document (the vertical bar here shows the location of the insertion cursor): ``` \begin{align} | & • \label{•}\\ • & • \label{•} \end{align}• ``` Now when you press the Tab key in order to fill the template, if you do not want a label it vanishes automatically. If you want one, just fill it out. This is very handy. --- ** [tickets:#233] tab after \label{}• in TeX mode** **Status:** fixed **Created:** Wed May 20, 2020 03:32 PM UTC by Laurent PRALY **Last Updated:** Tue May 26, 2020 05:03 AM UTC **Owner:** nobody In TeXmode, if after typing \label{}• I move the cursor back to put it between { and } and then I use the key TAB, then \label{}• is removed. If follow the same steps with say ref, i.e. \ref{}• , back between { and } and TAB, I jump to the next stop, i.e., I get \ref{} with the cursor after } Actually this strange behavior seems to occur only with \label. I understand that a "label" should be entered between { and }. But I want to be free to do it rigth away or later. Question: is there a way to disable this feature. Note that, on purpose, I am not using the binding (and proc) which creates \label{}• . In doing so, I want to argue that the problem is not with this proc, but seems to be in the proc elec::nextStopOrIndent given by Tab. But why is the behavior different between \label{}• and \ref{}• --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |