* How to define shortcut for equations
@ 2014-01-31 12:39 o.castillo.felisola
2014-01-31 12:47 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: o.castillo.felisola @ 2014-01-31 12:39 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
Dear community,
I'd like to use the shortcut =<E= to insert a =\begin{equation}
\end{equation}= environment.
How could that be done?
I tried the following but does not work
-----8<------------ Code Start --------->8------
#+BEGIN_SRC emacs-lisp
(eval-after-load "org"
'(add-to-list 'org-structure-template-alist
'("E" "\\begin\{equation\}\n?\n\\end\{equation\}" "")))
#+END_SRC
-----8<------------ Code End --------->8------
--
_____________________________________
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
______________________________________
[-- Attachment #2: Type: text/html, Size: 982 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to define shortcut for equations
2014-01-31 12:39 How to define shortcut for equations o.castillo.felisola
@ 2014-01-31 12:47 ` Bastien
2014-01-31 12:53 ` o.castillo.felisola
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-01-31 12:47 UTC (permalink / raw)
To: o.castillo.felisola@gmail.com; +Cc: emacs-orgmode
"o.castillo.felisola@gmail.com" <o.castillo.felisola@gmail.com>
writes:
> I tried the following but does not work
>
> -----8<------------ Code Start --------->8------
> #+BEGIN_SRC emacs-lisp
> (eval-after-load "org"
> '(add-to-list 'org-structure-template-alist
> '("E" "\\begin\{equation\}\n?\n\\end\{equation\}" "")))
> #+END_SRC
> -----8<------------ Code End --------->8------
It works fine here. I insert <E at the beginning of the line then hit
TAB then the snippet is expanded.
What version of Org are you using?
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to define shortcut for equations
2014-01-31 12:47 ` Bastien
@ 2014-01-31 12:53 ` o.castillo.felisola
0 siblings, 0 replies; 3+ messages in thread
From: o.castillo.felisola @ 2014-01-31 12:53 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 946 bytes --]
Bastien... You were right! I guess the previous session didn't charge the
updated configuration.
Thx. Cheers.
On Fri, Jan 31, 2014 at 9:47 AM, Bastien <bzg@gnu.org> wrote:
> "o.castillo.felisola@gmail.com" <o.castillo.felisola@gmail.com>
> writes:
>
> > I tried the following but does not work
> >
> > -----8<------------ Code Start --------->8------
> > #+BEGIN_SRC emacs-lisp
> > (eval-after-load "org"
> > '(add-to-list 'org-structure-template-alist
> > '("E" "\\begin\{equation\}\n?\n\\end\{equation\}" "")))
> > #+END_SRC
> > -----8<------------ Code End --------->8------
>
> It works fine here. I insert <E at the beginning of the line then hit
> TAB then the snippet is expanded.
>
> What version of Org are you using?
>
> --
> Bastien
>
--
_____________________________________
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
______________________________________
[-- Attachment #2: Type: text/html, Size: 1731 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-31 12:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-31 12:39 How to define shortcut for equations o.castillo.felisola
2014-01-31 12:47 ` Bastien
2014-01-31 12:53 ` o.castillo.felisola
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.