From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Nemenyi Newsgroups: gmane.emacs.help Subject: Re: Extending TOC Buffer Outlines Date: Thu, 03 May 2018 14:52:22 +0100 Message-ID: <87fu38q221.fsf@pompo.co> References: <87bme4rbpf.fsf@pompo.co> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1525355454 23220 195.159.176.226 (3 May 2018 13:50:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 May 2018 13:50:54 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.1.1 Cc: help-gnu-emacs@gnu.org To: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 03 15:50:50 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fEEdF-0005s8-7W for geh-help-gnu-emacs@m.gmane.org; Thu, 03 May 2018 15:50:49 +0200 Original-Received: from localhost ([::1]:56476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEEfK-0007nW-L4 for geh-help-gnu-emacs@m.gmane.org; Thu, 03 May 2018 09:52:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEEer-0007nO-JE for help-gnu-emacs@gnu.org; Thu, 03 May 2018 09:52:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEEeo-000406-Hl for help-gnu-emacs@gnu.org; Thu, 03 May 2018 09:52:29 -0400 Original-Received: from mail.pompo.co ([87.243.223.35]:48109 helo=ronja.pompo.co) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fEEeo-0003z1-8z for help-gnu-emacs@gnu.org; Thu, 03 May 2018 09:52:26 -0400 Original-Received: from kneidl (unknown [37.205.58.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ronja.pompo.co (Postfix) with ESMTPSA id 773E5402E5; Thu, 3 May 2018 13:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pompo.co; s=mail; t=1525355543; bh=okwGz7QfJ97pEip3wHxmDbPOZeGMSH+6hg7JMQcrg88=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=EpgcE2PBqnMUFoBnB6EodWRcvgg2QVLFbVo3M0fsEddimv+kO077i07+gkn3gcWGU udJJhn95PuU/2zGbpPk9XGUJtnnQNTlALtI3RuGc+kDSWP0Fw+P+E90zwABOIcUWLD IZVleT9yFih/dAOa9yyz2r+fE52PGvC+vtfM+Hhs= In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 87.243.223.35 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116646 Archived-At: Thanks G=C3=B6ktu=C4=9F, G=C3=B6ktu=C4=9F Kayaalp writes: > On 2018-04-27 15:00 +01, Daniel Nemenyi wrote: >> Dear all, >> >> I'm writing a LaTeX document and using the \section{} titles to write >> inline abstracts of the text beneath them. The ever-handy emacs TOC >> buffer is great but it crops these down to 100 characters, which for >> most use cases is completely reasonable, but I'd like to see their who= le >> text - and, yes, wrapped too if that's not too big a hassle! > > Hi, > > you may want to try Imenu which will add a menu to the menu bar that > lists parts of the documents and you can click to jump to them (see > (info "(emacs) Imenu")), and conveniently in TeX buffer it lists > \sections. To add it, add this: > > (imenu-add-to-menubar "Sections") > > to your TeX mode's hook. By default it uses up to 60 chars from the > sections name, but you can set _imenu-max-item-length_ to something lik= e > 1000 so that it shows all of the section title. It does _not_ wrap > though. But on my ~15" laptop screen it can show sth. about 200 > characters, so it might be good enough. I don't know what command > brings up the mode you use, so I can't compare. I'm going to expose my ignorance here and say that I'm not sure how to implement that in code :/ A different workaround might be to display the optional abbreviated title instead if it exists. Ie, where \section[short title]{full title} Will print the short title in the actual PDF TOC and title, but the full title inline and in reftex-toc, have reftex-toc print the short title instead. Regards Dan