Re: [PATCH] Fix caption format for custom latex src block

2022-07-30 Thread Ihor Radchenko
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.

Re: [PATCH] Fix caption format for custom latex src block

2022-07-08 Thread Matt Huszagh
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

Re: [PATCH] Fix caption format for custom latex src block

2022-06-29 Thread Timothy
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

Re: [PATCH] Fix caption format for custom latex src block

2022-06-29 Thread Timothy
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

Re: [PATCH] Fix caption format for custom latex src block

2022-06-28 Thread Ihor Radchenko
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

Re: [PATCH] Fix caption format for custom latex src block

2022-06-27 Thread Matt Huszagh
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

Re: [PATCH] Fix caption format for custom latex src block

2022-06-13 Thread Ihor Radchenko
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

[PATCH] Fix caption format for custom latex src block

2021-12-29 Thread Matt Huszagh
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