unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* auto wrapping in latex mode
@ 2007-05-13  7:28 Snail
  2007-05-13  7:31 ` David Kastrup
  2007-05-14 21:43 ` Peter Dyballa
  0 siblings, 2 replies; 4+ messages in thread
From: Snail @ 2007-05-13  7:28 UTC (permalink / raw)
  To: help-gnu-emacs

Dear all,

I have a question in using emacs as a latex mode, espeically auto
wrapping.

I have used emacs for my latex editting, and used alt-q for auto
wrapping.
A nice feature this auto wrapping is that when I use
\begin{something}
\end{something},
then those blocks are not auto wrapped, which I like. However,
obviously if I make my own commands using \recommand or something,
e.g., \beq for \begin{eqnarray}, then it's auto wrapped.

What kind of file and how do I have to edit to prevent auto wrapping
of my own command, e.g., \beq?

Thanks in advance.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: auto wrapping in latex mode
  2007-05-13  7:28 auto wrapping in latex mode Snail
@ 2007-05-13  7:31 ` David Kastrup
  2007-05-13  8:12   ` Ralf Angeli
  2007-05-14 21:43 ` Peter Dyballa
  1 sibling, 1 reply; 4+ messages in thread
From: David Kastrup @ 2007-05-13  7:31 UTC (permalink / raw)
  To: help-gnu-emacs

Snail <yiyung@gmail.com> writes:

> Dear all,
>
> I have a question in using emacs as a latex mode, espeically auto
> wrapping.
>
> I have used emacs for my latex editting, and used alt-q for auto
> wrapping.
> A nice feature this auto wrapping is that when I use
> \begin{something}
> \end{something},
> then those blocks are not auto wrapped, which I like. However,
> obviously if I make my own commands using \recommand or something,
> e.g., \beq for \begin{eqnarray}, then it's auto wrapped.

Why would you do that?
C-c C-e eqn TAB RET
inserts both opening and closing lines with proper indentation.

> What kind of file and how do I have to edit to prevent auto wrapping
> of my own command, e.g., \beq?

eqnarray sucks, anyway (it does not even manage to keep the equation
number out of the equations).  You should be using the constructs
provided by amsmath.sty (documentation in amsldoc.dvi or equivalent).
And those don't even _work_ with those kinds of abbreviations.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: auto wrapping in latex mode
  2007-05-13  7:31 ` David Kastrup
@ 2007-05-13  8:12   ` Ralf Angeli
  0 siblings, 0 replies; 4+ messages in thread
From: Ralf Angeli @ 2007-05-13  8:12 UTC (permalink / raw)
  To: help-gnu-emacs

* David Kastrup (2007-05-13) writes:

> Snail <yiyung@gmail.com> writes:
>
>> I have used emacs for my latex editting, and used alt-q for auto
>> wrapping.
>> A nice feature this auto wrapping is that when I use
>> \begin{something}
>> \end{something},
>> then those blocks are not auto wrapped, which I like. However,
>> obviously if I make my own commands using \recommand or something,
>> e.g., \beq for \begin{eqnarray}, then it's auto wrapped.
>
> Why would you do that?
> C-c C-e eqn TAB RET
> inserts both opening and closing lines with proper indentation.

Or `C-c C-o' in case of the built-in LaTeX mode.

-- 
Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: auto wrapping in latex mode
  2007-05-13  7:28 auto wrapping in latex mode Snail
  2007-05-13  7:31 ` David Kastrup
@ 2007-05-14 21:43 ` Peter Dyballa
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-05-14 21:43 UTC (permalink / raw)
  To: Snail; +Cc: help-gnu-emacs


Am 13.05.2007 um 09:28 schrieb Snail:

> obviously if I make my own commands using \recommand or something,
> e.g., \beq for \begin{eqnarray}, then it's auto wrapped.

Why can't you use AUCTeX's C-c C-e to insert an environment?

>
> What kind of file and how do I have to edit to prevent auto wrapping
> of my own command, e.g., \beq?

Have you read the AUCTeX manual?

--
Greetings

   Pete

Without vi there is only GNU Emacs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-14 21:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-13  7:28 auto wrapping in latex mode Snail
2007-05-13  7:31 ` David Kastrup
2007-05-13  8:12   ` Ralf Angeli
2007-05-14 21:43 ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).