branch: externals/auctex
commit cfa82d807cb2d2f9cdcd2f7816030485505e2eb4
Author: Matthew Leach <[email protected]>
Commit: Mosè Giordano <[email protected]>
Prompt for optional short caption parameter.
* latex.el (LaTeX-compose-caption-macro): New.
(LaTeX-short-caption-prompt-length): New.
(LaTeX-env-figure): Prompt for optional short caption parameter, when
the caption length is >= `LaTeX-short-caption-prompt-length', and pass
to `LaTeX-compose-caption-macro'.
* style/longtable.el ("longtable"): Likewise.
* style/psfig.el (LaTeX-env-psfigure): Likewise.
* doc/auctex.texi (Floats): Document short-caption prompting and
`LaTeX-short-caption-prompt-length'.
* doc/changes.texi: Likewise.
Signed-off-by: Mosè Giordano <[email protected]>
---
doc/auctex.texi | 13 +++++++++++++
doc/changes.texi | 6 ++++++
latex.el | 37 ++++++++++++++++++++++++++++---------
style/longtable.el | 12 +++++++-----
style/psfig.el | 20 +++++++++++---------
5 files changed, 65 insertions(+), 23 deletions(-)
diff --git a/doc/auctex.texi b/doc/auctex.texi
index d0d0673..8c5218a 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -1005,6 +1005,14 @@ at the bottom of the float. You can specify floats
where the caption
should be placed at the top with @code{LaTeX-top-caption-list}.
@vindex LaTeX-top-caption-list
+@item short caption
+If the specified caption is greater than a specific length, then a short
+caption is prompted for and it is inserted as an optional argument to
+the @samp{
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel