[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[proof of concept] inline-special-block (was: [proof of concept] inline
From: |
Juan Manuel Macías |
Subject: |
[proof of concept] inline-special-block (was: [proof of concept] inline language blocks) |
Date: |
Wed, 21 Feb 2024 20:32:09 +0000 |
I am attaching a patch in case anyone wants to try this proposal. A
function for ox-latex is included.
Syntax:
&[optional parameters]{contents}
With this patch, something like &foo{lorem ipsum dolor} is exported to
LaTeX as \foo{lorem ipsum dolor}.
Blocks can be nested, e.g.: &foo{lorem ipsum &bar{dolor}}.
Regarding the "optional parameters", there is nothing defined, although
I think they should be adapted to each backend. A possible use that
occurs to me:
&foo[prelatex: [lorem] postlatex: {ipsum} html: style="color:red;"]{blah blah}
This should produce in LaTeX:
\foo[lorem]{blah blah}{ipsum}
and in HTML:
<span class="foo" style="color:red;">blah blah</span>
Best regards,
Juan Manuel
--
Juan Manuel Macías -- Composición tipográfica, tratamiento de datos, diseño
editorial y ortotipografía
0001-org-element.el-New-element-Inline-Special-Block-proo.patch
Description: Text Data
- [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/20
- Re: [proof of concept] inline language blocks, Ihor Radchenko, 2024/02/21
- Re: [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/21
- Re: [proof of concept] inline language blocks, Ihor Radchenko, 2024/02/21
- Re: [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/21
- Re: [proof of concept] inline language blocks, Ihor Radchenko, 2024/02/21
- Re: [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/21
- [proof of concept] inline-special-block (was: [proof of concept] inline language blocks),
Juan Manuel Macías <=
- Re: [proof of concept] inline-special-block, Juan Manuel Macías, 2024/02/21
- Re: [proof of concept] inline-special-block, Juan Manuel Macías, 2024/02/22
- Re: [proof of concept] inline language blocks, Samuel Wales, 2024/02/21
- Re: [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/21
- Re: [proof of concept] inline language blocks, Samuel Wales, 2024/02/21
- Re: [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/21
- Re: [proof of concept] inline language blocks, Max Nikulin, 2024/02/28
- Re: [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/28
- Re: [proof of concept] inline language blocks, Max Nikulin, 2024/02/28
- Re: [proof of concept] inline language blocks, Juan Manuel Macías, 2024/02/28