Matt Huszagh writes:
> This patch fixes an issue in which captions for custom listing
> environments are not converted correctly. To illustrate the issue,
> take the following MWE.
Since the original issue cannot be reproduced (see the other email in
the thread) I am closing this.
Canceled.
Timothy writes:
> As mentioned by Ihor, you’ll want to take a look at the curent version of
> ox-latex, specifically `org-latex-src-block--custom' which now contains `(?c .
> ,caption)'. You may want to consider modifying
> `org-latex--caption/label-string' to
> accept the form `(element info
Hi Matt,
As mentioned by Ihor, you’ll want to take a look at the curent version of
ox-latex, specifically `org-latex-src-block--custom' which now contains `(?c .
,caption)'. You may want to consider modifying
`org-latex--caption/label-string' to
accept the form `(element info content-only)' or
Hi Ihor,
> Timothy, looking at the new implementation of org-latex-src-block, I do
> not see custom-env being passed as an argument of
> org-latex-src-block–custom. This is likely a bug.
Ah yes, this was an oversight. Corrected in
30953bd7b701c870152cd60f52f2d484970caeb9.
All the best,
Timothy
Matt Huszagh writes:
> Ihor Radchenko writes:
>
>> I think that it will be better if you use
>> org-latex--caption/label-string instead. It will take care about short
>> captions as well.
>
> Changing this to (?c . ,caption-str) yields for the original example
>
> \caption{\caption{Perform
Ihor Radchenko writes:
> I think that it will be better if you use
> org-latex--caption/label-string instead. It will take care about short
> captions as well.
Changing this to (?c . ,caption-str) yields for the original example
\caption{\caption{Perform inter-sample interpolation.}
}
I could
Matt Huszagh writes:
> This patch fixes an issue in which captions for custom listing
> environments are not converted correctly. To illustrate the issue,
> take the following MWE.
Thanks!
> -(?c . ,caption)
> +(?c . ,(org-export-data
This patch fixes an issue in which captions for custom listing
environments are not converted correctly. To illustrate the issue,
take the following MWE.
file.org:
```
#+caption: Perform inter-sample interpolation.
#+begin_src python
import numpy as np
#+end_src
```
file.el:
```
;; Loading