Re: [O] Special blocks with options in LaTeX export

2015-06-28 Thread Rasmus
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 Hi,

 I am trying to export special blocks with options.  But it seems the
 options part is being ignored completely.  I expect the following:

   #+begin_aside :options {Combinatorial background}
   It is all random!
   #+end_aside

 to be exported as:

   \begin{aside}{Combinatorial background}
   It is all random!
   \end{aside}

 However what I get is without the extra argument to the environment.

 Am I missing something, or is this a bug?

#+attr_latex: :options test
#+begin_aside 
random 
#+end_aside

Options are read via 

(org-export-read-attribute :attr_latex special-block :options).

As to whether special blocks should support options via a keyword like in
your example, I do not know.  FWIW ox-html also reads attributes for
special blocks via an ATTR_BACKEND line.

Rasmus


-- 
There are known knowns; there are things we know that we know




Re: [O] Special blocks with options in LaTeX export

2015-06-28 Thread Suvayu Ali
Hi Rasmus,

On Sun, Jun 28, 2015 at 01:30:33PM +0200, Rasmus wrote:
 
 Options are read via 
 
 (org-export-read-attribute :attr_latex special-block :options).
 
 As to whether special blocks should support options via a keyword like in
 your example, I do not know.  FWIW ox-html also reads attributes for
 special blocks via an ATTR_BACKEND line.

I expected it to work because the manual says so, see Special blocks in
LaTeX export in (info (org) LaTeX specific attributes).

A brief quote:

  In LaTeX back-end, special blocks become environments of the same name.
  Value of ‘:options’ attribute will be appended as-is to that
  environment’s opening string.  For example: [...]

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] old ob-clojure in orgmode.org/elpa/?

2015-06-28 Thread Oleh Krehel
Hi Julien,

I asked this before, and the reason is that it was missed in the last
release.  And there's still some time until the next release that will
finally update it.

regards,
Oleh



[O] Special blocks with options in LaTeX export

2015-06-28 Thread Suvayu Ali
Hi,

I am trying to export special blocks with options.  But it seems the
options part is being ignored completely.  I expect the following:

  #+begin_aside :options {Combinatorial background}
  It is all random!
  #+end_aside

to be exported as:

  \begin{aside}{Combinatorial background}
  It is all random!
  \end{aside}

However what I get is without the extra argument to the environment.

Am I missing something, or is this a bug?

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Why navigating in Org mode is so slow in overview mode?

2015-06-28 Thread Stefan-W. Hahn
Mail von Q, Wed, 17 Jun 2015 at 00:51:02 +:

Hello,

according to emacs bug#16803 I'm using
toggle-cache-long-scans in my org-files.

Best (first line in org-file):

-*- eva: (toggle-cache-long-scans); -*-

Greetings
Stefan

-- 
Stefan-W. Hahn  It is easy to make things.
It is hard to make things simple.



Re: [O] [PATCH] org-mobile: Tiny fix in creating index.org file

2015-06-28 Thread Nicolas Goaziou
Sergey Gordienko gordien...@gmail.com writes:

 * lisp/org-mobile.el (org-mobile-create-index-file):
 Eliminate cloning of `#+READONLY' property in the `index.org' file.
 A sublists of `org-todo-keywords' don't need to contain the `|'.

Applied. Thank you.

Regards,



Re: [O] [PATCH] org-add-planning-info: Improve deletion handling

2015-06-28 Thread Nicolas Goaziou
Hello,

Kyle Meyer k...@kyleam.com writes:

 I've attached a patch that fixes up a few issues I've noticed with
 org-add-planning-info.

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] problem with ox-pandoc export

2015-06-28 Thread Alan Schmitt
On 2015-06-27 12:26, Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 ox-org inserts meta-data in its template function (org-org-template).
 Since you're overriding it in the `mytest' back-end, you need to take
 care of that.

Ah, I was not aware of this. Thanks!

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


[O] LaTeX filter for captions

2015-06-28 Thread Suvayu Ali
Hi,

I wanted to apply a filter to normal text and captions.  So I initially
used org-export-filter-body-functions, however this also applies on the
section title.  Handling that case would make my filter a bit more
complicated.  So I switched to using
org-export-filter-paragraph-functions.  However I can't find what would
be the corresponding filter list for captions (both figures and tables).

Any ideas?

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] LaTeX filter for captions

2015-06-28 Thread Nicolas Goaziou
Hello,

Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 I wanted to apply a filter to normal text and captions.  So I initially
 used org-export-filter-body-functions, however this also applies on the
 section title.  Handling that case would make my filter a bit more
 complicated.  So I switched to using
 org-export-filter-paragraph-functions.  However I can't find what would
 be the corresponding filter list for captions (both figures and
 tables).

There is no such filter. By the time filters are called, captions have
already been merged with their element. IOW,
`org-export-filter-paragraph-functions' is applied to a string
containing both the caption and the paragraph.


Regards,

-- 
Nicolas Goaziou



Re: [O] LaTeX filter for captions

2015-06-28 Thread Suvayu Ali
On Sun, Jun 28, 2015 at 11:52:06PM +0200, Nicolas Goaziou wrote:
 Suvayu Ali fatkasuvayu+li...@gmail.com writes:
 
  I wanted to apply a filter to normal text and captions.  So I initially
  used org-export-filter-body-functions, however this also applies on the
  section title.  Handling that case would make my filter a bit more
  complicated.  So I switched to using
  org-export-filter-paragraph-functions.  However I can't find what would
  be the corresponding filter list for captions (both figures and
  tables).
 
 There is no such filter. By the time filters are called, captions have
 already been merged with their element. IOW,
 `org-export-filter-paragraph-functions' is applied to a string
 containing both the caption and the paragraph.

Indeed, this makes sense.  I was mistaken about what I was looking at.
When I noticed my filter was not being applied to captions, I had
forgotten those particular figures were exported via latex blocks, not
as usual figures!  Adding my filter to
org-export-filter-export-block-functions solved my issue.

Thanks!

-- 
Suvayu

Open source is the future. It sets us free.