From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: List of figures Date: Thu, 27 Feb 2014 20:55:50 -0500 Message-ID: References: <87y511x67h.fsf@gmail.com> <87k3cit23l.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e155fc2694304f36dbc2a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJCg8-0000Km-Dx for emacs-orgmode@gnu.org; Thu, 27 Feb 2014 20:55:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJCg4-0001s6-Je for emacs-orgmode@gnu.org; Thu, 27 Feb 2014 20:55:56 -0500 Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:43584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJCg4-0001rt-4u for emacs-orgmode@gnu.org; Thu, 27 Feb 2014 20:55:52 -0500 Received: by mail-pb0-f42.google.com with SMTP id rr13so72860pbb.29 for ; Thu, 27 Feb 2014 17:55:50 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org-mode , Nicolas Goaziou --047d7b2e155fc2694304f36dbc2a Content-Type: text/plain; charset=ISO-8859-1 Maybe I am missing something, what would the utility of #+toc: figures be? Is it only for export? I would make a link: [[elisp:org-list-of-figures]] where org-list-of-figures is an emacs-lisp function that would parse the buffer and present you with a list of clickable links to the figures. You could alternatively make this a new org-link, so you could also specify how it exports, eg. [[lof:click-me][List of Figures]] That would be pure org-markup, and make org more useful, and it would also happen to support LaTeX export too. I guess you would recognize figures as extensions in the file links. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Wed, Feb 26, 2014 at 11:37 AM, Thomas S. Dye wrote: > Aloha Nicolas, > > Nicolas Goaziou writes: > > > Hello, > > > > tsd@tsdye.com (Thomas S. Dye) writes: > > > >> I can imagine that a list of figures is a difficult problem in some > >> other back-ends. However, its absence in LaTeX export seems unusual. > > > > Org doesn't cover all LaTeX facilities. There are #+LATEX: > > and #+BEGIN_LATEX...#+END_LATEX to fill the gap. > > > >> Would it make sense to have this work as expected for LaTeX export (and > >> perhaps other back-ends where it does make sense) > > > > We can start to discuss what a good implementation could be for major > > back-ends. But implementing it for LaTeX only is, IMO, not worth the > > trouble: > > > > #+toc: figures > > > > vs. > > > > #+latex: \listoffigures > > AFAICT the new exporter works flawlessly. I'm confident that it will > let me produce LaTeX to any practical specification. > > My original query came about because I was trying to write Org markup > and *not* drop down to LaTeX. In this context--Org as a lightweight > markup language--the possibility of creating all but one of the > "lists-of" with #+TOC: seems like the markup language core is missing a > piece. > > I look forward to the discussion of implementations for the major > back-ends. Let me know if I can help in any way. > > All the best, > Tom > > -- > Thomas S. Dye > http://www.tsdye.com > > --047d7b2e155fc2694304f36dbc2a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Maybe I am missing something, what would th= e utility of #+toc: figures be? Is it only for export?

I would= make a link:=A0 [[elisp:org-list-of-figures]] where org-list-of-figures is= an emacs-lisp function that would parse the buffer and present you with a = list of clickable links to the figures. You could alternatively make this a= new org-link, so you could also specify how it exports, eg.

[[lof:click-me][List of Figures]]

That would be pure= org-markup, and make org more useful, and it would also happen to support = LaTeX export too. I guess you would recognize figures as extensions in the = file links.


John=

-----------------------------------
John Kitchin
Associate Pr= ofessor
Doherty Hall A207F
Department of Chemical Engineering
Carn= egie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Wed, Feb 26, 2014 at 11:37 AM, Thomas= S. Dye <tsd@tsdye.com> wrote:
Aloha Nicolas,

Nicolas Goaziou <n.goaziou@gmail.= com> writes:

> Hello,
>
> tsd@tsdye.com (Thomas S. Dye) wri= tes:
>
>> I can imagine that a list of figures is a difficult problem in som= e
>> other back-ends. =A0However, its absence in LaTeX export seems unu= sual.
>
> Org doesn't cover all LaTeX facilities. There are #+LATEX:
> and #+BEGIN_LATEX...#+END_LATEX to fill the gap.
>
>> Would it make sense to have this work as expected for LaTeX export= (and
>> perhaps other back-ends where it does make sense)
>
> We can start to discuss what a good implementation could be for major<= br> > back-ends. But implementing it for LaTeX only is, IMO, not worth the > trouble:
>
> =A0 #+toc: figures
>
> vs.
>
> =A0 #+latex: \listoffigures

AFAICT the new exporter works flawlessly. =A0I'm confident that it will=
let me produce LaTeX to any practical specification.

My original query came about because I was trying to write Org markup
and *not* drop down to LaTeX. =A0In this context--Org as a lightweight
markup language--the possibility of creating all but one of the
"lists-of" with #+TOC: seems like the markup language core is mis= sing a
piece.

I look forward to the discussion of implementations for the major
back-ends. Let me know if I can help in any way.

All the best,
Tom

--
Thomas S. Dye
http://www.tsdye.com=


--047d7b2e155fc2694304f36dbc2a--