Hello (sorry for my bad english)
1) Insert a macro applied at a selection :
selection --> <caret and choice>{selection} --> \macro{selection}
If i want to apply a macro like \fbox or colorbox, i would like to make this :
i've an expression $\gamma\leq3$ and i want \fbox{$\gamma\leq3$}
i would like to select $\gamma\leq3$ and with a shortcut get this:
<caret>{$\gamma\leq3$} and now i can write fbox or colorbox ?
I miss the feature ?
2) Is it a possible in a special environment to use a special langage grammar, and/or a special coloring syntax and/or a special completion ??
for exemple
\begin{pspicture} .... \end{pdpicture}
or
\begin{tikzpicture} .... \end{tikzpicture}
I give these environments because there are rich with a lot of macros like beamer, listings
Greetings Alain Matthes
On Nov 21, 2006, at 3:40 AM, Alain Matthes wrote:
Hello (sorry for my bad english)
- Insert a macro applied at a selection :
selection --> <caret and choice>{selection} --> \macro{selection}
If i want to apply a macro like \fbox or colorbox, i would like to make this :
i've an expression $\gamma\leq3$ and i want \fbox{$\gamma\leq3$}
i would like to select $\gamma\leq3$ and with a shortcut get this:
<caret>{$\gamma\leq3$} and now i can write fbox or colorbox ?
I miss the feature ?
ctrl-shift-W (Wrap Selection In -> Command)
- Is it a possible in a special environment to use a special
langage grammar, and/or a special coloring syntax and/or a special completion ??
Yes, in fact we already do this for the lstlisting environments. It requires changing the grammar a bit, by adding some rules, and of course also to know what the special syntax/completions you want to perform are. We already have three special completion behaviors: 1) When typing a command, like "\bet", pressing escape will complete based on a fixed set of commands, in this case it will complete to \beta. If you find some commands missing, we can add them. 2) When inside a \ref{}, escape completes using all \label{} entries. 3) When inside a \cite{}, escape completes using bibliography entries.
So what you want is doable, provided you specify the syntax needed between the \begin-\end groups.
for exemple
\begin{pspicture} .... \end{pdpicture}
or
\begin{tikzpicture} .... \end{tikzpicture}
I give these environments because there are rich with a lot of macros like beamer, listings
Greetings Alain Matthes
Haris
Le 21 nov. 06 à 14:48, Charilaos Skiadas a écrit :
On Nov 21, 2006, at 3:40 AM, Alain Matthes wrote:
I miss the feature ?
ctrl-shift-W (Wrap Selection In -> Command)
Sorry i know it but i think alaways that is only for emph :((
- Is it a possible in a special environment to use a special
langage grammar, and/or a special coloring syntax and/or a special completion ??
Yes, in fact we already do this for the lstlisting environments. It requires changing the grammar a bit, by adding some rules, and of course also to know what the special syntax/completions you want to perform are. We already have three special completion behaviors:
- When typing a command, like "\bet", pressing escape will
complete based on a fixed set of commands, in this case it will complete to \beta. If you find some commands missing, we can add them. 2) When inside a \ref{}, escape completes using all \label{} entries. 3) When inside a \cite{}, escape completes using bibliography entries.
So what you want is doable, provided you specify the syntax needed between the \begin-\end groups.
Ok thanks it's intereting for drawing with pstricks, pgf, gnuplot and asymptote !
Thanks
Alain
PS I've a problem with CMD } this shortcut don't work
On Nov 21, 2006, at 9:49 AM, Alain Matthes wrote:
Ok thanks it's intereting for drawing with pstricks, pgf, gnuplot and asymptote !
Well, if you can create the grammars for these things, then those can be included.
Thanks
Alain
PS I've a problem with CMD } this shortcut don't work
Does the command still work if you select from the menu?
Haris
On Nov 22, 2006, at 4:53 PM, Charilaos Skiadas wrote:
On Nov 21, 2006, at 9:49 AM, Alain Matthes wrote:
Ok thanks it's intereting for drawing with pstricks, pgf, gnuplot and asymptote !
Well, if you can create the grammars for these things, then those can be included.
Thanks
Alain
PS I've a problem with CMD } this shortcut don't work
Does the command still work if you select from the menu?
We need a FAQ - I bet he's using some kind of non-american keyboard- layout and there is the combination "cmd+}" often the same as "cmd +shift+8" which is the shortcut for Universal Access/Turn Zoom on or off Just deactivate that or remap it and you are happy :)
Niels
Le 22 nov. 06 à 17:24, Niels Kobschätzki a écrit :
On Nov 22, 2006, at 4:53 PM, Charilaos Skiadas wrote:
On Nov 21, 2006, at 9:49 AM, Alain Matthes wrote:
Ok thanks it's intereting for drawing with pstricks, pgf, gnuplot and asymptote !
Well, if you can create the grammars for these things, then those can be included.
Thanks
Alain
PS I've a problem with CMD } this shortcut don't work
Does the command still work if you select from the menu?
yes
We need a FAQ - I bet he's using some kind of non-american keyboard- layout and there is the combination "cmd+}" often the same as "cmd +shift+8" which is the shortcut for Universal Access/Turn Zoom on or off Just deactivate that or remap it and you are happy :)
No the shortcut for Universal Access/Turn Zoom on or off are CMD ALT ) and CMD ALT -
My keyboard is a French keyboard azerty
Alain