Question: text substitution only on export? #8
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: tec/org-glossary#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi tecosaur, excellent package as always!
I'm trying to get the following behaviour in my document:
Right now, with org-glossary-mode on this replaces d18O with the full definition whenever I type it, and when I copy the text it is also the full replacement text (it's like a yasnippet!)
Is it possible to turn off the substitution preview, while leaving it a link to hover on with the appropriate styling? Obviously on export I would sitll like it to do its thing.
The reason being that I'd like to look at the simplifications while writing.
Kind regards,
japhir
EDIT: even if I use the simpler
\delta^{18}O
as a definition, my org-entities preview kicks in and it looks kind of nice, but this preview appears turned off for the replacement text.perhaps a separate issue, but I've also noticed the text replacements introduce a newline in the latex export, which means that if I type
d18O?
it will export toin the PDF export this leads to an undesired space before the ?
It's just a display property, as can be verified with
buffer-substring
:Beyond that, you can turn off display substitutions by setting
org-glossary-display-substitute-value
tonil
. I've added this to the docs ind87f8ad99a
.Right, at the moment only the text is copied, not the fortification of the text. This is something that could be improved, but is not a priority.
Hmmm, I thought I'd used
string-trim
enough to stop this from happening. I may need to give this a second look. In any case, this should be a separate issue, so I'll close this one as the original concern should be resolved.Frankly, I'm not sure how I ended up doing this, but I've added fortification to the displayed snippets. Sub/super scripts don't work, but other than that it seems to work well.
See
e598ef072d
.