mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
backport r40804
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40806 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fbe35a1178
commit
4b77821d96
@ -479,7 +479,7 @@ $$
|
|||||||
\ifthenelse
|
\ifthenelse
|
||||||
\includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
|
\includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures
|
||||||
\indent
|
\indent
|
||||||
\index{}
|
\index{translate}
|
||||||
\indexentry{}{} % only in .idx files (JMarc)
|
\indexentry{}{} % only in .idx files (JMarc)
|
||||||
\indexname
|
\indexname
|
||||||
\indexspace
|
\indexspace
|
||||||
@ -572,7 +572,7 @@ $$
|
|||||||
\pdfstringdef{}{} % from the hyperref package
|
\pdfstringdef{}{} % from the hyperref package
|
||||||
\poptabs
|
\poptabs
|
||||||
\prefacename
|
\prefacename
|
||||||
\printindex
|
\printindex[]{}
|
||||||
\protect
|
\protect
|
||||||
\providecommand{}[][]{}
|
\providecommand{}[][]{}
|
||||||
\providecommand*{}[][]{}
|
\providecommand*{}[][]{}
|
||||||
@ -633,6 +633,7 @@ $$
|
|||||||
\shortstack[]{translate}
|
\shortstack[]{translate}
|
||||||
\showhyphens{}
|
\showhyphens{}
|
||||||
\signature{}
|
\signature{}
|
||||||
|
\sindex[]{translate} %splitidx.sty
|
||||||
\sldefault
|
\sldefault
|
||||||
\sloppy
|
\sloppy
|
||||||
\stepcounter{}
|
\stepcounter{}
|
||||||
|
@ -733,6 +733,8 @@ void Preamble::handle_package(Parser &p, string const & name,
|
|||||||
name == "multirow" || name == "nomencl" || name == "setspace" ||
|
name == "multirow" || name == "nomencl" || name == "setspace" ||
|
||||||
name == "splitidx" || name == "subscript" || name == "ulem" ||
|
name == "splitidx" || name == "subscript" || name == "ulem" ||
|
||||||
name == "url") {
|
name == "url") {
|
||||||
|
if (name == "splitidx")
|
||||||
|
h_use_indices = "true";
|
||||||
if (!in_lyx_preamble)
|
if (!in_lyx_preamble)
|
||||||
h_preamble << package_beg_sep << name
|
h_preamble << package_beg_sep << name
|
||||||
<< package_mid_sep << "\\usepackage{"
|
<< package_mid_sep << "\\usepackage{"
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
\usepackage{varioref}
|
\usepackage{varioref}
|
||||||
\usepackage{prettyref}
|
\usepackage{prettyref}
|
||||||
\usepackage{makeidx}
|
\usepackage{makeidx}
|
||||||
|
\usepackage{splitidx}
|
||||||
\makeindex
|
\makeindex
|
||||||
|
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
@ -439,7 +440,7 @@ test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test
|
|||||||
$test\vphantom{Wow\&\%}test$
|
$test\vphantom{Wow\&\%}test$
|
||||||
|
|
||||||
|
|
||||||
\subsection{Line breaks}
|
\subsection{Line breaks\sindex[breaks]{Line breaks}}
|
||||||
|
|
||||||
They can also or be broken by a newline\\
|
They can also or be broken by a newline\\
|
||||||
or by a starred newline \\*
|
or by a starred newline \\*
|
||||||
@ -454,7 +455,7 @@ There are even newlines with weird arguments, but these are not
|
|||||||
handled by LyX\\*[1cm]
|
handled by LyX\\*[1cm]
|
||||||
so we try to use ERT in this case.
|
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
|
They can also or be broken by a newpage \newpage
|
||||||
or by a page break \pagebreak
|
or by a page break \pagebreak
|
||||||
|
@ -3148,12 +3148,16 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
btprint = key;
|
btprint = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (t.cs() == "index") {
|
else if (t.cs() == "index" ||
|
||||||
|
(t.cs() == "sindex" && preamble.use_indices() == "true")) {
|
||||||
context.check_layout(os);
|
context.check_layout(os);
|
||||||
begin_inset(os, "Index idx\n");
|
string const kind = (t.cs() == "index") ? "idx" : p.getArg('[', ']');
|
||||||
os << "status collapsed\n";
|
begin_inset(os, "Index ");
|
||||||
|
os << kind << "\nstatus collapsed\n";
|
||||||
parse_text_in_inset(p, os, FLAG_ITEM, false, context, "Index");
|
parse_text_in_inset(p, os, FLAG_ITEM, false, context, "Index");
|
||||||
end_inset(os);
|
end_inset(os);
|
||||||
|
if (t.cs() == "sindex")
|
||||||
|
preamble.registerAutomaticallyLoadedPackage("splitidx");
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (t.cs() == "nomenclature") {
|
else if (t.cs() == "nomenclature") {
|
||||||
|
@ -57,7 +57,7 @@ What's new
|
|||||||
|
|
||||||
* TEX2LYX
|
* TEX2LYX
|
||||||
|
|
||||||
-
|
- Translate \sindex to index inset instead of using ERT.
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
Loading…
Reference in New Issue
Block a user