From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Malte Spiess Newsgroups: gmane.emacs.help Subject: Re: Tab-key not working in auctex? Date: Fri, 10 Nov 2006 17:02:48 +0100 Organization: Arcor Message-ID: <8764dn8f2v.fsf@trick.ulm.malte.spiess> References: <87y7qj8v8x.fsf@trick.ulm.malte.spiess> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163176849 8665 80.91.229.2 (10 Nov 2006 16:40:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Nov 2006 16:40:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 10 17:40:44 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GiZQV-0003ky-S2 for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Nov 2006 17:40:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiZQV-0006xq-AF for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Nov 2006 11:40:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.n-ix.net!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:nd70UuprYQIztmTPNhd5VwivrC8= Original-Lines: 55 Original-NNTP-Posting-Date: 10 Nov 2006 17:02:42 CET Original-NNTP-Posting-Host: a18d9074.newsspool1.arcor-online.net Original-X-Trace: DXC=S>\=9jo>iQSE47KDAk81NWic==]BZ:af^4Fo<]lROoRQ^YC2XCjHcbY?B>DIC7]; U^jQd8 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38619 Archived-At: Johs writes: > Malte Spiess wrote: > >> "Johs" 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