all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* speedbar + auctex (+ reftex?): show tables/figures/definitions
@ 2003-04-02 13:49 Kai Großjohann
  2003-04-06 17:29 ` David Kastrup
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Kai Großjohann @ 2003-04-02 13:49 UTC (permalink / raw)


The speedbar shows the tree of sections/subsections.  This is quite
nice.  But it seems I might like to see more labels, such as
definitions, tables, and figures.

Is this possible?

(I have Emacs from CVS, AUCTeX 11.14, speedbar 0.14beta4, semantic
1.4.1.)
-- 
A preposition is not a good thing to end a sentence with.

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-02 13:49 speedbar + auctex (+ reftex?): show tables/figures/definitions Kai Großjohann
@ 2003-04-06 17:29 ` David Kastrup
  2003-04-06 19:26   ` Kai Großjohann
  2003-04-07 14:18 ` Eric Ludlam
  2003-04-15 12:06 ` Brendan Halpin
  2 siblings, 1 reply; 10+ messages in thread
From: David Kastrup @ 2003-04-06 17:29 UTC (permalink / raw)


kai.grossjohann@gmx.net (Kai Großjohann) writes:

> The speedbar shows the tree of sections/subsections.  This is quite
> nice.  But it seems I might like to see more labels, such as
> definitions, tables, and figures.
> 
> Is this possible?
> 
> (I have Emacs from CVS, AUCTeX 11.14, speedbar 0.14beta4, semantic
> 1.4.1.)

You do have RefTeX enabled?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-06 17:29 ` David Kastrup
@ 2003-04-06 19:26   ` Kai Großjohann
  0 siblings, 0 replies; 10+ messages in thread
From: Kai Großjohann @ 2003-04-06 19:26 UTC (permalink / raw)


David Kastrup <dak@gnu.org> writes:

> kai.grossjohann@gmx.net (Kai Großjohann) writes:
>
>> The speedbar shows the tree of sections/subsections.  This is quite
>> nice.  But it seems I might like to see more labels, such as
>> definitions, tables, and figures.
>> 
>> Is this possible?
>> 
>> (I have Emacs from CVS, AUCTeX 11.14, speedbar 0.14beta4, semantic
>> 1.4.1.)
>
> You do have RefTeX enabled?

Yes.  I can see the labels in the C-c = buffer, after hitting the
right key.  But labels in the speedbar frame would also be nice.
-- 
A preposition is not a good thing to end a sentence with.

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-02 13:49 speedbar + auctex (+ reftex?): show tables/figures/definitions Kai Großjohann
  2003-04-06 17:29 ` David Kastrup
@ 2003-04-07 14:18 ` Eric Ludlam
  2003-04-07 20:03   ` Kai Großjohann
  2003-04-15 12:06 ` Brendan Halpin
  2 siblings, 1 reply; 10+ messages in thread
From: Eric Ludlam @ 2003-04-07 14:18 UTC (permalink / raw)


>>> kai.grossjohann@gmx.net (Kai Großjohann) seems to think that:
>The speedbar shows the tree of sections/subsections.  This is quite
>nice.  But it seems I might like to see more labels, such as
>definitions, tables, and figures.
>
>Is this possible?
>
>(I have Emacs from CVS, AUCTeX 11.14, speedbar 0.14beta4, semantic
>1.4.1.)

In semantic 0.14beta4, there is a file called `sb-texi.el', which builds a
tree of data for speedbar.  The existing tex display engine for
speedbar probably uses imenu, so you will see the same thing as in the
imenu menu.  In the simple case, you can update the imenu expressions.

For a more comprehensive TeX, or LaTeX display, you would need to
write something very much like sb-texi.el specific to TeX.  You would
then be able to add any small detail you would like and get a nice
hierarchical display.

Eric

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-07 14:18 ` Eric Ludlam
@ 2003-04-07 20:03   ` Kai Großjohann
  2003-04-08 14:00     ` Eric Ludlam
  0 siblings, 1 reply; 10+ messages in thread
From: Kai Großjohann @ 2003-04-07 20:03 UTC (permalink / raw)


Eric Ludlam <eludlam@mathworks.com> writes:

> In semantic 0.14beta4, there is a file called `sb-texi.el', which builds a
> tree of data for speedbar.  The existing tex display engine for
> speedbar probably uses imenu, so you will see the same thing as in the
> imenu menu.  In the simple case, you can update the imenu expressions.
>
> For a more comprehensive TeX, or LaTeX display, you would need to
> write something very much like sb-texi.el specific to TeX.  You would
> then be able to add any small detail you would like and get a nice
> hierarchical display.

I see.  Okay.

sb-texi.el doesn't do the labels thing, but I guess that could be
added.
-- 
A preposition is not a good thing to end a sentence with.

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-07 20:03   ` Kai Großjohann
@ 2003-04-08 14:00     ` Eric Ludlam
  2003-04-08 15:28       ` Kai Großjohann
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Ludlam @ 2003-04-08 14:00 UTC (permalink / raw)


>>> kai.grossjohann@gmx.net (Kai Großjohann) seems to think that:
>Eric Ludlam <eludlam@mathworks.com> writes:
>
>> In semantic 0.14beta4, there is a file called `sb-texi.el', which builds a
      ^^^ This should say "speedbar"

>> tree of data for speedbar.  The existing tex display engine for
>> speedbar probably uses imenu, so you will see the same thing as in the
>> imenu menu.  In the simple case, you can update the imenu expressions.
>>
>> For a more comprehensive TeX, or LaTeX display, you would need to
>> write something very much like sb-texi.el specific to TeX.  You would
>> then be able to add any small detail you would like and get a nice
>> hierarchical display.
>
>I see.  Okay.
>
>sb-texi.el doesn't do the labels thing, but I guess that could be
>added.

What label thing?  I'm guessing that w/ Imenu it might say:

Chapters
  chap 1
  chap 2
Sections
  sect 1
  sect 2
  sect 1

so "Chapters" is a label?

Whereas w/ sb-texi style output, it instead says:

chap 1
  sect 1
  sect 2
chap 2
  sect 1

and the "Chap 1" labels can be jumped to.

Is that right?
Eric

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-08 14:00     ` Eric Ludlam
@ 2003-04-08 15:28       ` Kai Großjohann
  2003-04-09 17:11         ` Eric Ludlam
  0 siblings, 1 reply; 10+ messages in thread
From: Kai Großjohann @ 2003-04-08 15:28 UTC (permalink / raw)


Eric Ludlam <eludlam@mathworks.com> writes:

>>>> kai.grossjohann@gmx.net (Kai Großjohann) seems to think that:
>>
>>sb-texi.el doesn't do the labels thing, but I guess that could be
>>added.
>
> What label thing?

"Label" as in "\label" :-)

/----
| \section{Foo Bar}
| \label{sec:foo-bar}
| 
| Bla bla.
| 
| \begin{definition}[Dummy title]
|   \label{def:dummy}
|   This is a dummy definition.
| \end{definition}
| 
| Bla bla.
\----

Speedbar will show the "Foo Bar" section title.  I'm interested in
seeing the labels sec:foo-bar and def:dummy, too.
-- 
A preposition is not a good thing to end a sentence with.

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-08 15:28       ` Kai Großjohann
@ 2003-04-09 17:11         ` Eric Ludlam
  0 siblings, 0 replies; 10+ messages in thread
From: Eric Ludlam @ 2003-04-09 17:11 UTC (permalink / raw)


>>> kai.grossjohann@gmx.net (Kai Großjohann) seems to think that:
>Eric Ludlam <eludlam@mathworks.com> writes:
>
>>>>> kai.grossjohann@gmx.net (Kai Großjohann) seems to think that:
>>>
>>>sb-texi.el doesn't do the labels thing, but I guess that could be
>>>added.
>>
>> What label thing?
>
>"Label" as in "\label" :-)
>
>/----
>| \section{Foo Bar}
>| \label{sec:foo-bar}
>| 
>| Bla bla.
>| 
>| \begin{definition}[Dummy title]
>|   \label{def:dummy}
>|   This is a dummy definition.
>| \end{definition}
>| 
>| Bla bla.
>\----
>
>Speedbar will show the "Foo Bar" section title.  I'm interested in
>seeing the labels sec:foo-bar and def:dummy, too.

Ah, righto then.  Your original assessment that it could be added is
correct.  It is a matter of parsing all the things you care about into
an ordered hierarchy as described by the variable 

speedbar-dynamic-tags-function-list

and your insert method probably wants to use 

speedbar-insert-generic-list

Though it doesn't seem too well documented.  I'll have to fix that.

Eric

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-02 13:49 speedbar + auctex (+ reftex?): show tables/figures/definitions Kai Großjohann
  2003-04-06 17:29 ` David Kastrup
  2003-04-07 14:18 ` Eric Ludlam
@ 2003-04-15 12:06 ` Brendan Halpin
  2003-04-15 13:38   ` Eric Ludlam
  2 siblings, 1 reply; 10+ messages in thread
From: Brendan Halpin @ 2003-04-15 12:06 UTC (permalink / raw)


kai.grossjohann@gmx.net (Kai Großjohann) writes:

> The speedbar shows the tree of sections/subsections.  

I hadn't known this -- very cool. 

But should they really be in reverse order? 
e.g.:
document
  Conclusion
  Middle
  Introduction
document
article

If not, what am I doing wrong?

Brendan
-- 
Brendan Halpin,  Department of Sociology,   University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-390476;  Room F2-025 x 3147
<mailto:brendan.halpin@ul.ie>        <http://wivenhoe.staff8.ul.ie/~brendan>

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

* Re: speedbar + auctex (+ reftex?): show tables/figures/definitions
  2003-04-15 12:06 ` Brendan Halpin
@ 2003-04-15 13:38   ` Eric Ludlam
  0 siblings, 0 replies; 10+ messages in thread
From: Eric Ludlam @ 2003-04-15 13:38 UTC (permalink / raw)


>>> Brendan Halpin <brendan.halpin@ul.ie> seems to think that:
>kai.grossjohann@gmx.net (Kai Großjohann) writes:
>
>> The speedbar shows the tree of sections/subsections.  
>
>I hadn't known this -- very cool. 
>
>But should they really be in reverse order? 
>e.g.:
>document
>  Conclusion
>  Middle
>  Introduction
>document
>article
>
>If not, what am I doing wrong?

Probably not.  There is a bug in one of the methods of
`speedbar-tag-hierarchy-method'.  I think it's the 'prefix-group' one
that causes every other layer to be in reverse order.

Eric

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

end of thread, other threads:[~2003-04-15 13:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-02 13:49 speedbar + auctex (+ reftex?): show tables/figures/definitions Kai Großjohann
2003-04-06 17:29 ` David Kastrup
2003-04-06 19:26   ` Kai Großjohann
2003-04-07 14:18 ` Eric Ludlam
2003-04-07 20:03   ` Kai Großjohann
2003-04-08 14:00     ` Eric Ludlam
2003-04-08 15:28       ` Kai Großjohann
2003-04-09 17:11         ` Eric Ludlam
2003-04-15 12:06 ` Brendan Halpin
2003-04-15 13:38   ` Eric Ludlam

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.