[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Any fast ways to switch between inline and displayed math?
From: |
Adam Johnson |
Subject: |
[AUCTeX] Any fast ways to switch between inline and displayed math? |
Date: |
Tue, 23 Jan 2007 17:41:04 -0600 |
I didn't find them in AUCTeX, but it is nice and useful to have such
features:
1. Change an inline equation $a*b + c*d$ to a displayed math environment,
such as equation/equation*/displaymath/\[...\]/etc? How about using the
key, for example, C-c d (or C-u C-c i)?
I know this can be done by inserting an environment, but you need to select
the region first and delete the $'s as well.
When I select $a*b + c*d$ and then insert an environment "equation", the
\label was inserted after $a*b + c*d$ with a new line as below:
\begin{equation}
$a*b + c*d$\label{eqn:test}
\end{equation}
I prefer it looks like this:
\begin{equation}
\label{eqn:test}
a*b + c*d
\end{equation}
2. Change a displayed math enviroment to an inline equation? How about
using the key C-c i (or C-u C-c d)?
This can change
\begin{equation}
\label{eqn:test}
a*b + c*d
\end{equation}
back to $a*b + c*d$ with (all) the \label command(s) removed and if "//"
exists, it will also be removed or replaced with some user-defined
"delimeter", such as "\quad", ",", "\;", etc.
Thanks.
--
Adam
_________________________________________________________________
Get in the mood for Valentine's Day. View photos, recipes and more on your
Live.com page.
http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX] Any fast ways to switch between inline and displayed math?,
Adam Johnson <=