alhassy / alhassy/org-special-block-extras

Need help with o-thread-blockcall

未关闭
#23 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug documentation
主要语言
HTML
星标
236
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

Thanks for some mind-blowing elisp work!

Just trying to figure out how to use `o-thread-blockcall`

Basically I want to use `#begin_rename` with a fixed list
And then wrap it in `#begin_eqnarray*`

Currently I hacked this far
Which basically cutpasted your `rename` block and hardcoded (one element of) the list I want replaced.
`goftex` is the block I want -- gofer as Latex equations
```
(o-defblock goftex (list "-> to \\leftarrow") nil
(s-replace-all
(--map (cons (car it) (cadr it))
(--map (s-split " to " (s-trim it))
(s-split "," list)))
contents))

```

Obviously I'd prefer to _reuse_ your `rename` not cutpaste it!
The other thing is that in the current attempt, org is not recognizing `#begin_eqnarray` if it is mixed with my `goftex`.
Result of that is that I get extra `\(` and `\)` enclosing the `\leftarrow` inside the `begin{eqnarray*}`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。