emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] New Exporter: plain list depth


From: Yasushi SHOJI
Subject: Re: [O] New Exporter: plain list depth
Date: Tue, 23 Apr 2013 21:25:55 +0900
User-agent: Wanderlust/2.15.9

Hi,

At Mon, 22 Apr 2013 00:10:25 +0200,
Nicolas Goaziou wrote:
> 
> Yasushi SHOJI <address@hidden> writes:
> 
> > To generate "--" at the list 2.1, I'd like to find out the list 2.1 is
> > at depth 2, so that I can use (make-string 2 ?-) for my bullet.
> 
> Something like the following should work, assuming ITEM is the item
> element you have to transcode:
> 
> #+begin_src emacs-lisp
> (let ((parent item) (depth 0))
>   (while (and (setq parent (org-export-get-parent parent))
>               (case (org-element-type parent)
>                 (item t)
>                 (plain-list (incf depth)))))
>   depth)
> #+end_src

Thanks!  will try based on your advice.

> > Does org-list-to-generic work in this situation?
> 
> As a good rule of thumb, it's best to rely on tools provided in ox.el.

ok.

regards,
-- 
            yashi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]