]> git.lyx.org Git - lyx.git/commitdiff
BiblioInfo: provide macro for ellipses
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 9 Jul 2024 04:39:15 +0000 (06:39 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 9 Jul 2024 04:39:15 +0000 (06:39 +0200)
lib/doc/Customization.lyx
lib/doc/de/Customization.lyx
src/BiblioInfo.cpp

index 702c839ad633cd457c6357be2542618b9cfd64f0..4e35366c1605471c41d26e787dd5fc86dd36a2c7 100644 (file)
@@ -26272,6 +26272,45 @@ status collapsed
  Note that these are not macros,
  in the sense just defined.
  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
 
 \begin_layout Standard
index b5af3d020797e4cecf8f8e3537ba9d9debe946c1..09c9ec8f407ff96f15cc7bd65ed68b17ceefec50 100644 (file)
@@ -25323,6 +25323,34 @@ status collapsed
  Sie werden nicht expandiert.
 \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
 Hier ist abschließend ein Beispiel,
  das mehrere Möglichkeiten ausschöpft:
index b1ea8c3a49107f9196f09f2fe6ca2ce40824ad6c..60c29c8f99f31f549dba1dc887a44e4a56e2c4ea 100644 (file)
@@ -1282,6 +1282,9 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
                        }
                } else if (key == "year")
                        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