all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Extending TOC Buffer Outlines
@ 2018-04-27 14:00 Daniel Nemenyi
  2018-04-27 17:49 ` Göktuğ Kayaalp
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Nemenyi @ 2018-04-27 14:00 UTC (permalink / raw)
  To: help-gnu-emacs

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!

Any ideas appreciated,
Regards
d



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Extending TOC Buffer Outlines
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Göktuğ Kayaalp @ 2018-04-27 17:49 UTC (permalink / raw)
  To: Daniel Nemenyi; +Cc: help-gnu-emacs

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.

-- 
İ. Göktuğ Kayaalp	<https://www.gkayaalp.com/>
			 024C 30DD 597D 142B 49AC
			 40EB 465C D949 B101 2427



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Extending TOC Buffer Outlines
  2018-04-27 17:49 ` Göktuğ Kayaalp
@ 2018-05-03 13:52   ` Daniel Nemenyi
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Nemenyi @ 2018-05-03 13:52 UTC (permalink / raw)
  To: Göktuğ Kayaalp; +Cc: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-03 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.