all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Malte Spiess <i1tnews@arcor.de>
Subject: Re: Tab-key not working in auctex?
Date: Fri, 10 Nov 2006 17:02:48 +0100	[thread overview]
Message-ID: <8764dn8f2v.fsf@trick.ulm.malte.spiess> (raw)
In-Reply-To: ej250t$6vi$1@news.net.uni-c.dk

Johs <asdasd@asd.com> writes:

> Malte Spiess wrote:
>
>> "Johs" <gjh@sdfsf.com> writes:
>> 
>>> I have installed auctex for emacs in Ubuntu. But when I press the
>>> Tab-key nothing happens.
>>> I know that multiple whitespaces are treated as one in latex but in
>>> my .tex file it is sometimes nice to use Tab-key indentation to make
>>> the text easier to read (when writing pseudocode).
>>  Do you mean that never anything happens when you press TAB or just in
>> certain situations nothing happens?
>> 
>>> How do I make my Tab-key respond i auctex?
>>  What does it say when you hit "C-h k TAB"? (Display documentation of
>> the function invoked by TAB.)
>
> It says:
>
> TAB runs the command indent-for-tab-command
>    which is an interactive compiled Lisp function in `indent'.
> (indent-for-tab-command &optional PREFIX-ARG)
> [...]
>
> but nothing happens when I press the Tab-key. Maybe Tab-key is not meant
> to work in auctex.

Don't worry, it works fine here! Found this for you in the AucTeX info
page:
,----
|    Indentation is done by LaTeX environments and by TeX groups, that is
| the body of an environment is indented by the value of
| `LaTeX-indent-level' (default 2).  Also, items of an `itemize-like'
| environment are indented by the value of `LaTeX-item-indent', default
| -2.  If more environments are nested, they are indented `accumulated'
| just like most programming languages usually are seen indented in
| nested constructs.  
`----

Basically it says you should customize the variables
`LaTeX-indent-level' and `LaTeX-item-indent'.
(e.g. via M-x customize-variable)

>> Really wonder why it does not work out of the box. Have you tried it
>> in any \begin... \end... environment?
>
> Yes and nothing happens there either.

Okay, no problem, just customize the variables - should be fine! Else
just write again.

Good luck

Malte

  reply	other threads:[~2006-11-10 16:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10  0:46 Tab-key not working in auctex? Johs
2006-11-10 10:13 ` Malte Spiess
2006-11-10 15:14   ` Johs
2006-11-10 16:02     ` Malte Spiess [this message]
2006-11-10 17:21       ` Johs
2006-11-10 17:41         ` Ralf Angeli
2006-11-10 19:23           ` Johs
2006-11-10 19:26             ` Ralf Angeli
2006-11-10 19:41               ` Johs
2006-11-10 19:50                 ` Ralf Angeli
2006-11-10 19:57                   ` Johs
2006-11-10 20:16                     ` Ralf Angeli

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

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

  git send-email \
    --in-reply-to=8764dn8f2v.fsf@trick.ulm.malte.spiess \
    --to=i1tnews@arcor.de \
    /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.
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.