Hi Al,
>> - the preview before the tex code (current behavior of
>> preview-leave-open-previews-visible t)
>> - the preview after the tex code
> My understanding of the `preview-leave-open-previews-visible` option is
> that the previews remain open only when the tex code is changed rather than
> being replaced with a sign. If the tex source is not changed, the
> previews are not kept open. In particular, this shouldn't affect the
> position of the image AFAIK.
The main effect of preview-leave-open-previews-visible isn't tied to
whether the tex source has been modified, but is rather that when point
enters a preview overlay, the preview remains visible instead of
collapsing to the construction symbol.
Let me restate the proposal using your terminology and proposed setting
'preview-display-style' (for which the 'both option is not what I had in
mind, but could also be considered). Two independent knobs:
- preview-display-style ('preview, 'src): controls what's shown for
previews away from point, that the cursor is *not* inside.
- preview-reveal-display ('none, 'after, 'before, 'buframe). What to
show when point enters a previewed region (i.e., the overlay or the
underlying tex source):
- 'none means just show the tex source and the construction sign
- 'before means show the preview before the tex source while editing
- 'after means show the preview after the tex source while editing
- 'buframe means to show the preview in a buframe while editing
Let's translate current behaviors to the above setup:
Traditional preview with preview-leave-open-previews-visible nil:
(setopt preview-display-style 'preview)
(setopt preview-reveal-display 'none)
Traditional preview with preview-leave-open-previews-visible t:
(setopt preview-display-style 'preview)
(setopt preview-reveal-display 'before)
(In particular, if this proposal makes sense, then I think
preview-reveal-display could supersede
preview-leave-open-previews-visible.)
preview-point with buframe:
(setopt preview-display-style 'src)
(setopt preview-reveal-display 'buframe)
One benefit of separating these concerns is that we could keep
traditional preview behavior away from point while using a buframe for
live editing of tex source:
(setopt preview-display-style 'preview)
(setopt preview-reveal-display 'buframe)
We could similarly position the preview after the tex source, if
desired.
Does that sound consistent with what you had in mind?
Thanks, best,
Paul
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex