Re: Putting LaTeX inside a figure environment on export

2022-04-09 Thread Jason Ross
On 4/9/22 12:36, William Denton wrote: Is there a way to get a line of LaTeX inside a figure environment when exporting from Org? For example, let's say I have:     #+caption: This is a large tree     [[file:large_tree.jpg]] I want to use this to generate an entry in an index:   

Re: Configuring ox-context

2021-12-24 Thread Jason Ross
On 12/23/21 12:16 PM, Denis Maier wrote: What do you think about using context's structurelevels instead? That would allow users to define their own mappings. Denis That looks like a brilliant solution. I'll have to give it a deeper look to know for sure though - table of contents command

Re: Configuring ox-context

2021-12-22 Thread Jason Ross
On 12/22/21 3:24 AM, juh wrote: In the meantime I debugged my context styles and discovered that ox- context starts with section not with chapters. My styles are always book styles starting at chapter level. *feeling a little dumb* I browsed through the code and found no hint for a book-like pre

Re: Configuring ox-context

2021-12-21 Thread Jason Ross
On 12/21/21 10:56 AM, juh wrote: Am Dienstag, dem 21.12.2021 um 19:36 +0100 schrieb juh Ok, one thing solved. I normally call context with --mode=trimsize to activate the given trimsize. Can I set this in org-mode? When I manually compile test.mkiv I get the right page dimensions but the la

Re: Configuring ox-context

2021-12-21 Thread Jason Ross
On 12/21/21 9:55 AM, juh wrote: Yes: %=== % Preset Commands %=== \environment juh.env-garamond \environment juh.env-garamond-trimsize

Re: Configuring ox-context

2021-12-21 Thread Jason Ross
On 12/21/21 7:50 AM, juh wrote: Dear all, this configuration does not work. #+begin_src emacs-lisp     (use-package ox-context   :straight (ox-context :type git :host github :repo "Jason-S-Ross/ox-context")     :config     (add-to-list 'org-context-presets-alist '("book" .  

Re: Bibliographies on export with ox-context and ox-epub

2021-12-02 Thread Jason Ross
There is a ConTeXt-specific citation exporter that's in development: https://github.com/Jason-S-Ross/oc-context On 12/2/21 12:11 AM, juh wrote: Am 01.12.21 um 16:01 schrieb Eric S Fraga: What completion engine are you using?  In selectrum, typing C-j at that point finishes the completion.  Oth

Re: Sub-figures in Org Mode

2021-10-26 Thread Jason Ross
Hi Juan, On 10/22/21 5:00 PM, Juan Manuel Macías wrote: Hi Jason, Jason Ross writes: Are there any workarounds people use to create subfigures in Org Mode when exporting to LaTeX? Example output: In this thread I explain a procedure to export images as subfigures using org links: https

Sub-figures in Org Mode

2021-10-22 Thread Jason Ross
Are there any workarounds people use to create subfigures in Org Mode when exporting to LaTeX? Example output: #+begin_example latex \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \begin{subfigure}{.5\textwidth} \centering \includeg

Re: Best way to include METAPOST in ConTeXt exporter

2021-10-05 Thread Jason Ross
Here's a hook that modifies the source blocks to wrap their output in #+BEGIN/END_METAPOST tags if the ConTeXt backend is used, before Org Babel gets to them, but otherwise leaves them alone. I wonder if anyone has any better ideas of how to do this. I'm modifying the Org source with the hook bef

Re: Best way to include METAPOST in ConTeXt exporter

2021-10-05 Thread Jason Ross
t METAPOST drawings. Thanks, Jason On Mon, Oct 4, 2021 at 9:44 AM Ihor Radchenko wrote: > > Jason Ross writes: > > > I had considered using special blocks; they match my mental model the best. > > However, they don't provide any support for syntax highlighting

Re: Best way to include METAPOST in ConTeXt exporter

2021-10-04 Thread Jason Ross
7;t like about this. 1. No SVG preview in the buffer since the `conditional-header` macro doesn't get expanded until export time 2. Boilerplate; both the `conditional-header` and `wrap_metapost` definitions need to be included in the org file 3. Inconvenient to use since I have to add a

Best way to include METAPOST in ConTeXt exporter

2021-10-03 Thread Jason Ross
Hello, I'd like to include METAPOST figures in the ConTeXt exporter backend I'm developing. However, I don't know of an idiomatic way to add captions and references for the figures. Currently, I export METAPOST with `#+BEGIN_EXPORT metapost` / `#+END_EXPORT` tags. However, this feature seems to b

Re: ConTeXt exporter for Org Mode

2021-08-06 Thread Jason Ross
> There are two minor issues: > > - ox-context does not honour #+options: toc: nil or too: 1 >Since it is possible to add chapter TOCs later, >it might be a good idea to omit the main TOC or limit it to one level. This is an excellent catch. Not sure how this slipped by over the months

ConTeXt exporter for Org Mode

2021-08-04 Thread Jason Ross
Hello, I have developed a ConTeXt exporter for Org Mode. It is available at https://github.com/Jason-S-Ross/ox-context The exporter provides custom environments for each document element in an effort to make customization easier, in contrast to the Pandoc exporter which uses built-in environment

Inconsistent numbering of verse, example, source blocks

2021-01-25 Thread Jason Ross
Hello, I'm working on an exporter for ConTeXt and I'm trying to handle references to paragraph elements in a consistent way. However, there seems to be some inconsistencies in how such elements are numbered in the existing exporters. Here's a MWE: ===

Re: Org to ConTeXt exporter?

2021-01-12 Thread Jason Ross
I'm happy to hear you're able to use it! Any feedback or criticism is appreciated, and I'd like to know what your output format looks like if you're able to share. Thanks, Jason On 1/9/21 9:42 AM, Juan Manuel Macías wrote: Hello, Jason, Jason Ross writes: I recently

Re: Org to ConTeXt exporter?

2021-01-07 Thread Jason Ross
r: I'm learning elisp as I go, so please excuse the rough edges. Jason Ross

Re: Org to ConTeXt exporter?

2021-01-07 Thread Jason Ross
start from scratch. Disclaimer: I'm learning elisp as I go, so please excuse the rough edges. Jason Ross