From: Daniel Nemenyi <daniel@pompo.co>
To: "Göktuğ Kayaalp" <self@gkayaalp.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Extending TOC Buffer Outlines
Date: Thu, 03 May 2018 14:52:22 +0100 [thread overview]
Message-ID: <87fu38q221.fsf@pompo.co> (raw)
In-Reply-To: <ygma7toleul.fsf@gkayaalp.com>
Thanks Göktuğ,
Göktuğ Kayaalp writes:
> On 2018-04-27 15:00 +01, Daniel Nemenyi <daniel@pompo.co> 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 whole
>> 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 like
> 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
prev parent reply other threads:[~2018-05-03 13:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-27 14:00 Extending TOC Buffer Outlines Daniel Nemenyi
2018-04-27 17:49 ` Göktuğ Kayaalp
2018-05-03 13:52 ` Daniel Nemenyi [this message]
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=87fu38q221.fsf@pompo.co \
--to=daniel@pompo.co \
--cc=help-gnu-emacs@gnu.org \
--cc=self@gkayaalp.com \
/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.