[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-cvs
Subject: [LyX/master] Enable pagination property with inset sortkey
From: Juergen Spitzmueller <spitz () lyx ! org>
Date: 2022-10-31 17:40:15
Message-ID: 20221031174015.30C702800DA () lyx ! lyx ! org
[Download RAW message or body]
commit e39c755b85aa3632c9f57695e3a769379b31e05f
Author: Juergen Spitzmueller <spitz@lyx.org>
Date: Sat Oct 29 12:48:45 2022 +0200
Enable pagination property with inset sortkey
---
src/insets/InsetIndex.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 94bfa13..dd29579 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -161,6 +161,10 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & \
runparams_in) cons os << "|";
os << insetindexpagerangetranslator_latex().find(params_.range);
getSeeRefs(os, runparams);
+ } else if (!params_.pagefmt.empty() && params_.pagefmt != "default") {
+ os << "|";
+ os << insetindexpagerangetranslator_latex().find(params_.range);
+ os << from_utf8(params_.pagefmt);
}
} else {
// We check whether we need a sort key.
@@ -429,7 +433,7 @@ void InsetIndex::docbook(XMLStream & xs, OutputParams const & \
runparams) const xs << XMLStream::ESCAPE_NONE << (from_utf8("<!-- Output Error: ") + \
error + from_utf8(" -->\n")); }
- // Write all of this down.
+ // Write all of this down.
if (terms.empty() && !hasEndRange) {
docstring error = from_utf8("No index term found! Complete entry: \"") + \
latexString + from_utf8("\""); LYXERR0(error);
--
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic