BiblioInfo: provide macro for ellipses

This commit is contained in:
Juergen Spitzmueller 2024-07-09 06:39:15 +02:00
parent d05809da3c
commit a4b99aee94
3 changed files with 70 additions and 0 deletions

View File

@ -26272,6 +26272,45 @@ status collapsed
Note that these are not macros, Note that these are not macros,
in the sense just defined. in the sense just defined.
They will not be expanded. They will not be expanded.
\change_inserted -712698321 1720499621
\end_layout
\begin_layout Standard
\change_inserted -712698321 1720499725
For some characters which are otherwise hard to get,
we have predefined macros.
Currently,
this only includes:
\end_layout
\begin_layout Itemize
\change_inserted -712698321 1720499707
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
\change_inserted -712698321 1720499707
%elp%
\change_unchanged
\end_layout
\end_inset
which outputs the ellipsis character (
\begin_inset Quotes eld
\end_inset
\SpecialChar ldots
\begin_inset Quotes erd
\end_inset
)
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard

View File

@ -25323,6 +25323,34 @@ status collapsed
Sie werden nicht expandiert. Sie werden nicht expandiert.
\end_layout \end_layout
\begin_layout Standard
Für manche Sonderzeichen haben wir Makros vordefiniert.
Momentan betrifft das nur
\end_layout
\begin_layout Itemize
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
%elp%
\end_layout
\end_inset
,
welches Auslassungspunkte (
\begin_inset Quotes gld
\end_inset
\SpecialChar ldots
\begin_inset Quotes grd
\end_inset
) ausgibt.
\end_layout
\begin_layout Standard \begin_layout Standard
Hier ist abschließend ein Beispiel, Hier ist abschließend ein Beispiel,
das mehrere Möglichkeiten ausschöpft: das mehrere Möglichkeiten ausschöpft:

View File

@ -1282,6 +1282,9 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
} }
} else if (key == "year") } else if (key == "year")
ret = getYear(); ret = getYear();
else if (key == "elp")
// ellipsis
ret = docstring(1, char_type(0x2026));
} }
// If we have no result, check in the cross-ref'ed entries // If we have no result, check in the cross-ref'ed entries