unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: auto wrapping in latex mode
Date: Sun, 13 May 2007 09:31:36 +0200	[thread overview]
Message-ID: <85hcqhqiw7.fsf@lola.goethe.zz> (raw)
In-Reply-To: 1179041299.765499.237070@q75g2000hsh.googlegroups.com

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

  reply	other threads:[~2007-05-13  7:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-13  7:28 auto wrapping in latex mode Snail
2007-05-13  7:31 ` David Kastrup [this message]
2007-05-13  8:12   ` Ralf Angeli
2007-05-14 21:43 ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85hcqhqiw7.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).