Page 1 of 1

String doesn't delete completely

Posted: Sep 29th, ’17, 09:09
by RMDoubleYou
Hello,

I have automated quite a lot of things in LaTeX, like my complete pre-amble, or the code for multiple figure.
For example, when i type 'lsu' an autocomplete popup comes for 'lsubfigure' (which should type down the latex sub-figure environment).
This works. However the first few characters do not get deleted. Like this.

lsubfi\begin{figure}
... [some code]
\end{figure}

i have the same problem with multiple Text Expand commands. Could it be because im busy in microsoft Edge working on my documents using ShareLaTeX? And how do i fix this?


string: 'lsubfigure'

Substitute:

\begin{{}figure{}}[H]
\noindent
\begin{{}subfigure{}}[t]{{}0.49\textwidth{}}
\includegraphics[width=1\textwidth,center]{{}figures/%INPUT_figurename1%{}}
\caption{{}%INPUT_caption1%{}}
\label{{}fig:%INPUT_figurename1%{}}
\end{{}subfigure{}}
\hfill
\begin{{}subfigure{}}[t]{{}0.49\textwidth{}}
\includegraphics[width=1\textwidth,center]{{}figures/%INPUT_figurename2%{}}
\caption{{}%INPUT_caption2%{}}
\label{{}fig:%INPUT_figurename2%{}}
\end{{}subfigure{}}
\caption{{}%INPUT_maincaption%{}}
\label{{}fig:%INPUT_mainLabel%{}}
\end{{}figure{}}

Re: String doesn't delete completely

Posted: Sep 29th, ’17, 09:34
by Tom
In your case FastKeys is sending characters too fast for the application.

You will need to add key delays on Preferences/Text Expander/Advanced. Play with different key delays settings (try 30ms) to increase reliability in slower applications.

Please let me know if this helps.

Re: String doesn't delete completely

Posted: Sep 29th, ’17, 13:02
by RMDoubleYou
This doesn't work, even when the key press delay is set to 1000 ms (1 sec). i have noticed however the characters that are not deleted are those i have typed before i autofill. As if when i type 'lsubf', the suggestion lsubfigure pops up, then when i press tab it types this out but immediately deletes that as well. So you get

1) 'lsubf' (pop up, i press tab)
2) 'lsubf lsubfigure '
3) 'lsubf (string deleted by Fastkeys)
4) 'lsubf\begin{figure}
....
\end{figure}

Re: String doesn't delete completely

Posted: Sep 29th, ’17, 17:53
by Tom
Did you set all four delays to 100ms?
Do you have "Display suggestions as you type" option enabled (Preferences/Text Expander)? Could you try with this option disabled?

Re: String doesn't delete completely

Posted: Oct 1st, ’17, 19:06
by Tom
I made some further test in ShareLaTex. ;)

The problem is that Edge is slow - you need to set Dialog Delay to 100ms. Leave all other key delays on 0.
Alternatively use Chrome or Firefox (no problems there).