[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About 'inline special blocks'
From: |
Ihor Radchenko |
Subject: |
Re: About 'inline special blocks' |
Date: |
Thu, 26 May 2022 12:56:00 +0800 |
João Pedro <jpedrodeamorim@gmail.com> writes:
>> #+attr_latex[name]: <complex config goes here>
>> Vestibulum convallis, lorem blockname_[<<name>>]{text} a tempus semper, dui
>> dui euismod elit, vitae placerat urna tortor vitae lacus.
>>
>> "<<name>>" will be treated as "<complex config goes here>" during
>> export/parsing.
>
> Although I do agree that this sort of solves the same problem as the
> other approach, but I, personally, find that defining new special blocks
> is not only easier to reuse, but more readable as well. But I'm thinking
> in terms of org-special-block-extras here, so take my 2 cents with a
> grain of salt.
I agree. But it is a known problem on defining new specific command vs.
running a new generic command with arguments. You can indeed define a
new command (block in our case), but if you just need to adjust some
parameter once in the whole document, there is no point creating a whole
new block type just for that purpose. Think about defun vs. lambda.
> [1] https://github.com/alhassy/org-special-block-extras
I am not sure if I mentioned this earlier, but org-special-block-extras
could be a good addition to Org core.
Best,
Ihor
- About 'inline special blocks', Juan Manuel Macías, 2022/05/23
- Re: About 'inline special blocks', Kaushal Modi, 2022/05/23
- Re: About 'inline special blocks', Juan Manuel Macías, 2022/05/23
- Re: About 'inline special blocks', Tim Cross, 2022/05/23
- Re: About 'inline special blocks', Ihor Radchenko, 2022/05/23
- Re: About 'inline special blocks', João Pedro, 2022/05/24
- Re: About 'inline special blocks',
Ihor Radchenko <=
- Re: About 'inline special blocks', João Pedro, 2022/05/26
- Re: About 'inline special blocks', Ihor Radchenko, 2022/05/26
- Re: About 'inline special blocks', João Pedro, 2022/05/26
- About opening issues vs email [Was: About 'inline special blocks'], Kaushal Modi, 2022/05/26
- Re: About opening issues vs email [Was: About 'inline special blocks'], Ihor Radchenko, 2022/05/27
- Re: About opening issues vs email [Was: About 'inline special blocks'], João Pedro, 2022/05/27
- Re: About 'inline special blocks', Juan Manuel Macías, 2022/05/25
- Re: About 'inline special blocks', Timothy, 2022/05/23
- Re: About 'inline special blocks', Eric S Fraga, 2022/05/24
- Re: About 'inline special blocks', Christian Moe, 2022/05/26