mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
BiblioInfo: Add citestyle conditional
This commit is contained in:
parent
ae70eb0d36
commit
a1e57a8fe5
@ -25725,6 +25725,51 @@ Biblatex
|
||||
\family default
|
||||
format for multi-reference citations),
|
||||
the false part if this is not the case.
|
||||
\change_inserted -712698321 1720625677
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\change_inserted -712698321 1720628578
|
||||
\begin_inset Flex Code
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
\change_inserted -712698321 1720628557
|
||||
{%ifstyle:<styles>%[[true]][[false]]}
|
||||
\change_unchanged
|
||||
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
:
|
||||
process the
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
true
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
if the current biblatex citation style matches a style in the comma-separated list of
|
||||
\begin_inset Flex Code
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
\change_inserted -712698321 1720628580
|
||||
<styles>
|
||||
\change_unchanged
|
||||
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
,
|
||||
else the false part.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
@ -24692,6 +24692,48 @@ Falsch
|
||||
-Teil.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
\begin_inset Flex Code
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
{%ifstyle:<styles>%[[wahr]][[falsch]]}
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
:
|
||||
führt den
|
||||
\begin_inset Quotes gld
|
||||
\end_inset
|
||||
|
||||
Wahr
|
||||
\begin_inset Quotes grd
|
||||
\end_inset
|
||||
|
||||
-Teil aus,
|
||||
wenn der aktuelle Biblatex-Zitierstil einer der Stile in der komma-separierten Liste
|
||||
\begin_inset Flex Code
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
<styles>
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
ist,
|
||||
sonst den
|
||||
\begin_inset Quotes gld
|
||||
\end_inset
|
||||
|
||||
Falsch
|
||||
\begin_inset Quotes grd
|
||||
\end_inset
|
||||
|
||||
-Teil.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Wir haben oben gesagt,
|
||||
dass
|
||||
|
@ -1171,6 +1171,17 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
|
||||
ret = modifier_;
|
||||
else if (key == "numericallabel")
|
||||
ret = cite_number_;
|
||||
else if (prefixIs(key, "ifstyle:")) {
|
||||
// Return whether we use a particular cite style
|
||||
vector<string> const stls = getVectorFromString(to_ascii(subtype));
|
||||
string const cs = buf.masterParams().biblatex_citestyle;
|
||||
for (auto const & s : stls) {
|
||||
if (cs == s) {
|
||||
ret = from_ascii("x"); // any non-empty string will do
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (prefixIs(key, "ifmultiple:")) {
|
||||
// Return whether we have multiple authors
|
||||
docstring const kind = operator[](subtype);
|
||||
|
Loading…
Reference in New Issue
Block a user