\ifthenelse
\includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
\indent
-\index{}
+\index{translate}
\indexentry{}{} % only in .idx files (JMarc)
\indexname
\indexspace
\pdfstringdef{}{} % from the hyperref package
\poptabs
\prefacename
-\printindex
+\printindex[]{}
\protect
\providecommand{}[][]{}
\providecommand*{}[][]{}
\shortstack[]{translate}
\showhyphens{}
\signature{}
+\sindex[]{translate} %splitidx.sty
\sldefault
\sloppy
\stepcounter{}
name == "multirow" || name == "nomencl" || name == "setspace" ||
name == "splitidx" || name == "subscript" || name == "ulem" ||
name == "url") {
+ if (name == "splitidx")
+ h_use_indices = "true";
if (!in_lyx_preamble)
h_preamble << package_beg_sep << name
<< package_mid_sep << "\\usepackage{"
\usepackage{varioref}
\usepackage{prettyref}
\usepackage{makeidx}
+\usepackage{splitidx}
\makeindex
\usepackage{graphicx}
$test\vphantom{Wow\&\%}test$
-\subsection{Line breaks}
+\subsection{Line breaks\sindex[breaks]{Line breaks}}
They can also or be broken by a newline\\
or by a starred newline \\*
handled by LyX\\*[1cm]
so we try to use ERT in this case.
-\subsection{Page breaks}
+\subsection{Page breaks\sindex[breaks]{Page breaks}}
They can also or be broken by a newpage \newpage
or by a page break \pagebreak
btprint = key;
}
- else if (t.cs() == "index") {
+ else if (t.cs() == "index" ||
+ (t.cs() == "sindex" && preamble.use_indices() == "true")) {
context.check_layout(os);
- begin_inset(os, "Index idx\n");
- os << "status collapsed\n";
+ string const kind = (t.cs() == "index") ? "idx" : p.getArg('[', ']');
+ begin_inset(os, "Index ");
+ os << kind << "\nstatus collapsed\n";
parse_text_in_inset(p, os, FLAG_ITEM, false, context, "Index");
end_inset(os);
+ if (t.cs() == "sindex")
+ preamble.registerAutomaticallyLoadedPackage("splitidx");
}
else if (t.cs() == "nomenclature") {
* TEX2LYX
--
+- Translate \sindex to index inset instead of using ERT.
* USER INTERFACE