commit 03e457d7d506cc47bdcbed694dd331552fb426b9
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Sep 14 11:36:20 2026 +0200
Improve listings description a bit more
---
lib/doc/EmbeddedObjects.lyx | 588 ++++++++++++++++++++++++++++++++++++-----
lib/doc/de/EmbeddedObjects.lyx | 131 +++++----
2 files changed, 606 insertions(+), 113 deletions(-)
diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx
index d92c41a0b4..bc1dd61cc5 100644
--- a/lib/doc/EmbeddedObjects.lyx
+++ b/lib/doc/EmbeddedObjects.lyx
@@ -42448,14 +42448,26 @@ typeset program code you can use the
\family sans
Listings
\family default
- inset that can be inserted via the menu
+ inset that can be inserted via
+\change_deleted -712698321 1789378374
+the menu
+\change_unchanged
+
\family sans
Insert\SpecialChar menuseparator
Program Listing
\family default
.
- The \SpecialChar LaTeX
- packages
+ The
+\change_inserted -712698321 1789372951
+ inset employs either the
+\change_unchanged
+ \SpecialChar LaTeX
+ package
+\change_deleted -712698321 1789372957
+s
+\change_unchanged
+
\series bold
listings
\series default
@@ -42482,7 +42494,11 @@ listings
\end_inset
- or
+
+\change_inserted -712698321 1789373808
+(this one is default)
+\change_unchanged
+or
\series bold
minted
\series default
@@ -42509,7 +42525,22 @@ minted
\end_inset
- provide a powerful and flexible way to
+
+\change_inserted -712698321 1789373043
+.
+ They
+\change_unchanged
+ provide
+\change_deleted -712698321 1789372993
+a
+\change_inserted -712698321 1789372998
+differently
+\change_unchanged
+ powerful and flexible way
+\change_inserted -712698321 1789373006
+s
+\change_unchanged
+ to
\change_deleted -712698321 1789284058
insert
\change_inserted -712698321 1789284059
@@ -42523,24 +42554,42 @@ program source code in
\change_deleted -712698321 1789284062
to
\change_unchanged
- your document.
- One can only use one of these packages in a document.
+ your document
+\change_inserted -712698321 1789373086
+,
+ and support a different set of programming languages,
+ respectively
+\change_unchanged
+.
+
+\change_inserted -712698321 1789373283
+Since you
+\change_deleted -712698321 1789373284
+One
+\change_unchanged
+ can only use one of these packages in a document
+\change_inserted -712698321 1789373307
+,
+ you need to check which fits your own needs best
+\change_unchanged
+.
\change_inserted -712698321 1784652862
- The package
-\change_unchanged
+
+\change_deleted -712698321 1789373782
\series bold
listings
\series default
is used by default.
-
-\change_inserted -712698321 1789284439
- In order to use the more powerful package
+\change_inserted -712698321 1789378440
+Overall,
+
\series bold
minted
\series default
-,
+ is more powerful.
+ In order to use it,
you need to select it as the syntax highlighting package in the document
settings under
\family sans
Listings
@@ -42854,7 +42903,33 @@ security risk!
\end_layout
\begin_layout Standard
-Right-clicking on a listings inset opens the context menu containing where you
can set the listings format.
+Right-clicking on a listings inset opens the context menu
+\change_inserted -712698321 1789373958
+.
+ Clicking on
+\family sans
+Settings\SpecialChar ldots
+
+\family default
+ (or alternatively on
+\family sans
+Edit\SpecialChar menuseparator
+Listings Settings\SpecialChar ldots
+
+\family default
+ in the main menu) will open the dialog
+\change_unchanged
+
+\change_deleted -712698321 1789373892
+containing
+\change_unchanged
+where you can
+\change_deleted -712698321 1789373895
+set
+\change_inserted -712698321 1789373952
+adjust
+\change_unchanged
+ the listings format.
\end_layout
\begin_layout Standard
@@ -42871,7 +42946,11 @@ Displayed
\family default
,
- a listing starts a new paragraph in the output.
+ a listing starts a new paragraph in the output
+\change_inserted -712698321 1789374164
+ and might consist of multiple lines
+\change_unchanged
+.
\change_inserted -712698321 1789280057
With
@@ -42925,6 +43004,9 @@ int a=5;
\end_inset
+\change_inserted -712698321 1789374249
+ – this is suitable for short,
+ single-line fragments
\change_deleted -712698321 1789285134
\begin_inset Newline newline
@@ -42937,21 +43019,14 @@ int a=5;
\begin_layout Standard
-\change_inserted -712698321 1789286380
-With
+\change_inserted -712698321 1789376752
+In the PDF output,
+ the two packages behave differently as well.
+ Program listings with
\series bold
-listings
+minted
\series default
-,
- the program listings by default inherit the font which is used in the
listing's surrounding (usually a serif font,
- as you can see when checking the PDF output of the current manual).
- Displayed listings by default try to emulate some kind of mono-space
typesetting,
- which looks rather awkward but ensures consecutive code lines are aligned
properly (you can disable this with the setting
-\family typewriter
-columns=fullflexible
-\family default
-).
- If you want to use a monospaced (a.
+ by default use a monospaced (a.
\begin_inset space \thinspace{}
\end_inset
@@ -42960,12 +43035,31 @@ k.
\end_inset
a.
- typewriter) font instead,
- following the widespread convention of code typesetting (which
+ typewriter) font,
+ as common in code listings,
+ and colored highlighting.
+ With
\series bold
-minted
+listings
+\series default
+,
+ by contrast,
+ the program listings by default inherit the font which is used in the
listing's surrounding (usually a serif font,
+ as you can see when checking the PDF output of the current manual);
+ colored highlighting is not supported.
+ Also,
+ displayed listings with the
+\series bold
+listings
\series default
- employs by default),
+ package by default try to emulate some kind of mono-space typesetting,
+ which looks rather awkward but ensures consecutive code lines are aligned
properly with a non-monospaced font (you can disable this with the setting
+\family typewriter
+columns=fullflexible
+\family default
+).
+ If you want to use a proper monospaced font instead,
+ which provides proper alignment by design,
you can either set the font for individual listings in their
\family sans
Settings
@@ -42984,7 +43078,7 @@ Listings
\begin_layout Standard
-\change_inserted -712698321 1789286108
+\change_inserted -712698321 1789376805
global listings settings can be done).
The document settings does not provide a nifty GUI for the most important
settings as the Listings Settings do.
Rather than that,
@@ -42996,7 +43090,11 @@ basicstyle=
\backslash
ttfamily
\family default
-.
+ (and optionally
+\family typewriter
+columns=fullflexible
+\family default
+ to maintain proper kerning).
The options are documented in the listings manual
\begin_inset CommandInset citation
LatexCommand cite
@@ -43023,56 +43121,88 @@ The option
Float
\family default
creates a listings float where you can specify the placement options
+\change_deleted -712698321 1789377127
+
\begin_inset Quotes eld
\end_inset
+\change_unchanged
+
\family sans
h
+\change_deleted -712698321 1789377128
+
\family default
\begin_inset Quotes erd
\end_inset
+
+\change_unchanged
,
+\change_deleted -712698321 1789377129
+
\begin_inset Quotes eld
\end_inset
+\change_unchanged
+
\family sans
t
+\change_deleted -712698321 1789377131
+
\family default
\begin_inset Quotes erd
\end_inset
+
+\change_unchanged
,
+\change_deleted -712698321 1789377132
+
\begin_inset Quotes eld
\end_inset
+\change_unchanged
+
\family sans
b
+\change_deleted -712698321 1789377133
+
\family default
\begin_inset Quotes erd
\end_inset
+
+\change_unchanged
,
and
+\change_deleted -712698321 1789377133
+
\begin_inset Quotes eld
\end_inset
+\change_unchanged
+
\family sans
p
+\change_deleted -712698321 1789377134
+
\family default
\begin_inset Quotes erd
\end_inset
+
+\change_unchanged
corresponding to the float placement options described in section
\begin_inset space ~
\end_inset
@@ -43096,26 +43226,46 @@ g.
\end_inset
+\change_deleted -712698321 1789377169
+
\begin_inset Quotes eld
\end_inset
+\change_unchanged
+
\family sans
htbp
+\change_deleted -712698321 1789377172
+
\family default
\begin_inset Quotes erd
\end_inset
+
+\change_unchanged
.
The option
+\change_deleted -712698321 1789377155
+
\begin_inset Quotes eld
\end_inset
+
+\change_unchanged
+
+\family sans
h
+\change_deleted -712698321 1789377156
+
+\family default
+
\begin_inset Quotes erd
\end_inset
+
+\change_unchanged
has sometimes no effect,
but you don't need to use the
\family sans
@@ -43125,13 +43275,33 @@ Float
\end_layout
\begin_layout Standard
-You can add captions to listings that are not inline with the menu
+You can add captions to
+\change_inserted -712698321 1789377257
+ displayed
+\change_unchanged
+ listings
+\change_deleted -712698321 1789377429
+that are not inline with the menu
+\change_inserted -712698321 1789377430
+via
+\change_unchanged
+
\family sans
Insert\SpecialChar menuseparator
Caption
\family default
.
- Listings can be referenced like floats:
+ Listings
+\change_deleted -712698321 1789377295
+can
+\change_inserted -712698321 1789377295
+may
+\change_unchanged
+ be referenced
+\change_deleted -712698321 1789377453
+ like floats
+\change_unchanged
+:
Listing
\begin_inset space ~
\end_inset
@@ -43145,22 +43315,58 @@ nolink "false"
\end_inset
.
- A list of listings which contains all listings with captions can be created
via the menu
+ A list of listings which contains all listings with captions
+\change_deleted -712698321 1789377308
+can
+\change_inserted -712698321 1789377309
+might
+\change_unchanged
+ be created via
+\change_deleted -712698321 1789377571
+the menu
+\change_unchanged
+
\family sans
Insert\SpecialChar menuseparator
List
+\change_deleted -712698321 1789377631
+
\begin_inset space ~
\end_inset
+
+\change_inserted -712698321 1789377632
+\SpecialChar breakableslash
+
+\change_deleted -712698321 1789377631
/
\begin_inset space ~
\end_inset
-TOC\SpecialChar menuseparator
+TOC
+\change_inserted -712698321 1789377628
+Contents\SpecialChar breakableslash
+References
+\change_unchanged
+\SpecialChar menuseparator
List of Listings
\family default
.
- The list entries are the listing caption and the listing number.
+ The list entries
+\change_deleted -712698321 1789377647
+are
+\change_inserted -712698321 1789377648
+hold
+\change_unchanged
+ the listing
+\change_inserted -712698321 1789377656
+number and
+\change_unchanged
+caption
+\change_deleted -712698321 1789377659
+ and the listing number
+\change_unchanged
+.
\end_layout
\begin_layout Standard
@@ -43218,7 +43424,25 @@ The
\series bold
listings
\series default
- package places captions before the listing by default.
+ package
+\change_inserted -712698321 1789377825
+by default
+\change_deleted -712698321 1789377838
+places
+\change_inserted -712698321 1789377839
+prints
+\change_unchanged
+ captions
+\change_deleted -712698321 1789377845
+before
+\change_inserted -712698321 1789377851
+on top of
+\change_unchanged
+ the listing
+\change_deleted -712698321 1789377830
+ by default
+\change_unchanged
+.
\begin_inset Newline newline
\end_inset
@@ -43226,16 +43450,71 @@ The
\series bold
minted
\series default
- package places them after the listing by default if it is floating.
+ package
+\change_inserted -712698321 1789377862
+,
+ by contrast,
+
+\change_unchanged
+ places them
+\change_deleted -712698321 1789377869
+after the listing
+\change_inserted -712698321 1789377871
+at the bottom
+\change_unchanged
+ by default if
+\change_inserted -712698321 1789377878
+the listing
+\change_deleted -712698321 1789377879
+it
+\change_unchanged
+ is floating.
If it is not floating,
- caption will be typeset before the listing if it is inserted to its first
line,
- otherwise it will be typeset after the listing.
- If you want to force the placement in every case before the listing,
- you have to add the following lines as last thing to the preamble:
+ caption will be typeset
+\change_deleted -712698321 1789377888
+before
+\change_inserted -712698321 1789377889
+on top
+\change_unchanged
+
+\change_deleted -712698321 1789377897
+the listing
+\change_unchanged
+if it is inserted to its first line,
+ otherwise it will be typeset
+\change_deleted -712698321 1789377908
+after the listing
+\change_inserted -712698321 1789377910
+at the bottom
+\change_unchanged
+.
+ If you want to force t
+\change_deleted -712698321 1789377924
+he
+\change_inserted -712698321 1789377925
+op-
+\change_deleted -712698321 1789377927
+
+\change_unchanged
+placement in every case
+\change_deleted -712698321 1789377932
+ before the listing
+\change_unchanged
+,
+
+\change_deleted -712698321 1789377935
+you have to
+\change_unchanged
+add the following
+\change_deleted -712698321 1789377942
+lines as last thing
+\change_unchanged
+to the preamble:
\begin_inset Newline newline
\end_inset
+\family typewriter
\series bold
\backslash
@@ -43267,6 +43546,7 @@ usepackage{float}}{}
\backslash
floatstyle{plaintop}
+\family default
\series default
\begin_inset Note Note
@@ -43278,7 +43558,13 @@ The package
float
\series default
will be loaded automatically by \SpecialChar LyX
- when you use special document-wide float placement settings.
+
+\change_deleted -712698321 1789377955
+when
+\change_inserted -712698321 1789377955
+if
+\change_unchanged
+ you use special document-wide float placement settings.
To avoid that it is loaded twice the command
\series bold
@@ -43299,8 +43585,24 @@ float
\end_layout
\begin_layout Standard
-When you have set a programming language in the listings dialog,
- the keywords of this language will be recognized and specially typeset in the
output.
+
+\change_deleted -712698321 1789377742
+When
+\change_inserted -712698321 1789377742
+If
+\change_unchanged
+ you have se
+\change_inserted -712698321 1789377748
+lecte
+\change_unchanged
+t a programming language in the listings dialog,
+ the keywords of this language will be recognized and
+\change_deleted -712698321 1789377724
+specially typeset
+\change_inserted -712698321 1789377727
+highlighted
+\change_unchanged
+ in the output.
In the example listings the Python keyword
\begin_inset Quotes eld
\end_inset
@@ -43361,13 +43663,43 @@ Line
numbering
\family default
- of the listings dialog you can specify the line numbering style.
- You can insert a number to specify which lines are numbered in the field
+ of the listings dialog
+\change_inserted -712698321 1789377989
+,
+
+\change_unchanged
+ you can specify the line numbering style.
+
+\change_inserted -712698321 1789378013
+iIn the field
+\family sans
+Step
+\family default
+
+\change_deleted -712698321 1789378013
+Y
+\change_inserted -712698321 1789378014
+y
+\change_unchanged
+ou can insert a number to specify which lines are numbered
+\change_deleted -712698321 1789378017
+ in the field
\family sans
Step
+\change_unchanged
+
\family default
.
- When you insert e.
+
+\change_deleted -712698321 1789378021
+When
+\change_inserted -712698321 1789378031
+For instance,
+ if
+\change_unchanged
+ you insert
+\change_deleted -712698321 1789378034
+e.
\begin_inset space \thinspace{}
\end_inset
@@ -43376,6 +43708,8 @@ g.
\end_inset
+\change_unchanged
+
\begin_inset Quotes eld
\end_inset
@@ -43384,12 +43718,28 @@ g.
\end_inset
,
- only every 3rd line will be numbered.
+
+\change_deleted -712698321 1789378038
+only
+\change_unchanged
+every 3rd line will be numbered.
\end_layout
\begin_layout Standard
-You can furthermore specify a range of lines;
- only these will then appear in the output.
+You
+\change_deleted -712698321 1789378050
+can
+\change_inserted -712698321 1789378050
+might
+\change_unchanged
+ furthermore specify a range of lines
+\change_inserted -712698321 1789378067
+ to which the output is to be restricted
+\change_deleted -712698321 1789378071
+;
+ only these will then appear in the output
+\change_unchanged
+.
The option
\family sans
Extended character table
@@ -43398,7 +43748,19 @@ Extended character table
\series bold
listings
\series default
- package and should be used when you use national characters like the German
umlauts in the listing.
+ package and should be used
+\change_deleted -712698321 1789378085
+when
+\change_inserted -712698321 1789378085
+if
+\change_unchanged
+ you use
+\change_deleted -712698321 1789378091
+national
+\change_inserted -712698321 1789378093
+non-ASCII
+\change_unchanged
+ characters like the German umlauts in the listing.
\begin_inset Newline newline
\end_inset
@@ -43506,7 +43868,13 @@ pass
\end_layout
\begin_layout Standard
-When you have tabulators in your listing,
+
+\change_deleted -712698321 1789378115
+When
+\change_inserted -712698321 1789378115
+If
+\change_unchanged
+ you have tabulators in your listing,
you can specify the number of characters that are spanned by a tabulator in
the field
\family sans
Tabulator
@@ -43620,13 +43988,25 @@ child document
you can specify the listing parameters in a text box.
To show a list of all available parameters,
type in a question mark
+\change_deleted -712698321 1789378145
+
\begin_inset Quotes eld
\end_inset
+
+\change_unchanged
+
+\family typewriter
?
+\change_deleted -712698321 1789378146
+
+\family default
+
\begin_inset Quotes erd
\end_inset
+
+\change_unchanged
in the text box.
\end_layout
@@ -43643,7 +44023,35 @@ external file
child document
\change_unchanged
dialog.
- The label can then be referenced using the menu
+ Th
+\change_inserted -712698321 1789378182
+is
+\change_deleted -712698321 1789378182
+e
+\change_unchanged
+ label
+\change_deleted -712698321 1789378187
+can
+\change_inserted -712698321 1789378188
+might
+\change_unchanged
+
+\change_deleted -712698321 1789378189
+then
+\change_unchanged
+ be
+\change_deleted -712698321 1789378192
+referenced
+\change_inserted -712698321 1789378197
+referreed to
+\change_unchanged
+
+\change_inserted -712698321 1789378199
+via
+\change_deleted -712698321 1789378202
+using the menu
+\change_unchanged
+
\family sans
Insert\SpecialChar menuseparator
Cross-Reference
@@ -43664,7 +44072,13 @@ nolink "false"
\end_inset
- is an example for a
+ is an example
+\change_deleted -712698321 1789378209
+for
+\change_inserted -712698321 1789378209
+of
+\change_unchanged
+ a
\change_inserted -712698321 1789281712
n external
\change_unchanged
@@ -43674,6 +44088,8 @@ n external
there
\change_unchanged
the lines 10
+\change_deleted -712698321 1789378214
+
\begin_inset space \thinspace{}
\end_inset
@@ -43681,6 +44097,10 @@ the lines 10
\begin_inset space \thinspace{}
\end_inset
+
+\change_inserted -712698321 1789378214
+–
+\change_unchanged
15 of this \SpecialChar LyX
file are listed.
\end_layout
@@ -43705,7 +44125,25 @@ literal "true"
\end_layout
\begin_layout Standard
-Inserting a formula into a listing can be done the following way:
+Inserting a formula into a listing
+\change_deleted -712698321 1789378224
+can
+\change_inserted -712698321 1789378225
+might
+\change_unchanged
+ be done
+\change_deleted -712698321 1789378230
+the
+\change_inserted -712698321 1789378231
+as
+\change_unchanged
+ follow
+\change_inserted -712698321 1789378235
+s
+\change_deleted -712698321 1789378233
+ing way
+\change_unchanged
+:
\end_layout
\begin_layout Enumerate
@@ -43744,18 +44182,40 @@ arg "copy"
\begin_layout Enumerate
In the listing write
+\change_deleted -712698321 1789378245
+
\begin_inset Quotes eld
\end_inset
+\change_unchanged
+
\family sans
$$
+\change_deleted -712698321 1789378246
+
\family default
\begin_inset Quotes erd
\end_inset
- and copy from the clipboard between the dollar-signs (shortcut
+
+\change_unchanged
+ and
+\change_deleted -712698321 1789378275
+copy
+\change_inserted -712698321 1789378276
+paste
+\change_unchanged
+
+\change_deleted -712698321 1789378282
+from
+\change_unchanged
+the clipboard
+\change_inserted -712698321 1789378286
+ content
+\change_unchanged
+ between the dollar-signs (shortcut
\begin_inset Info
type "shortcut"
arg "paste"
@@ -43848,7 +44308,13 @@ listings
minted
\series default
packages,
- we refer to their documentation
+
+\change_deleted -712698321 1789378340
+we
+\change_inserted -712698321 1789378341
+please
+\change_unchanged
+ refer to their documentation
\begin_inset CommandInset citation
LatexCommand cite
key "listings,minted"
diff --git a/lib/doc/de/EmbeddedObjects.lyx b/lib/doc/de/EmbeddedObjects.lyx
index d10f648928..a3a45bfb7a 100644
--- a/lib/doc/de/EmbeddedObjects.lyx
+++ b/lib/doc/de/EmbeddedObjects.lyx
@@ -42945,8 +42945,8 @@ Pro\SpecialChar softhyphen
grammlisting
\family default
verwenden.
- Mithilfe der \SpecialChar LaTeX
--Pakete
+ Die Programmlisting-Einfügung verwendet entweder das \SpecialChar LaTeX
+-Paket
\series bold
listings
\series default
@@ -42973,7 +42973,7 @@ listings
\end_inset
- und
+ (das ist die Voreinstellung) oder
\series bold
minted
\series default
@@ -43000,13 +43000,13 @@ minted
\end_inset
- können Sie Programm-Code mit Syntax-Hervorhebung auf vielfältige und flexible
Weise in Ihrem Dokument darstellen.
- Man kann nur eines der Pakete in einem Dokument verwenden.
- Das Paket
-\series bold
-listings
-\series default
- ist voreingestellt.
+.
+ Die beiden Pakete bieten unterschiedlich vielfältige und flexible
Möglichkeiten,
+ Programm-Code mit Syntax-Hervorhebung in einem Dokument darzustellen,
+ und sie unterstützen eine unterschiedliche Auswahl von Programmiersprachen.
+ Da man nur eines der Pakete in einem Dokument verwenden kann,
+ müssen Sie klären,
+ welches Ihre Bedürfnisse am Besten bedient.
Um das mächtigere
\series bold
minted
@@ -43156,8 +43156,21 @@ Sicherheitsrisiko!
\end_layout
\begin_layout Standard
-Ein Rechtsklick auf ein Listing öffnet das Kontextmenü,
- in dem Sie das Ausgabeformat der Programm-Code-Liste festlegen.
+Ein Rechtsklick auf ein Listing öffnet das Kontextmenü.
+ Wenn Sie auf
+\family sans
+Einstellungen\SpecialChar ldots
+
+\family default
+ (oder alternativ auf
+\family sans
+Bearbeiten\SpecialChar menuseparator
+Listing-Einstellungen\SpecialChar ldots
+
+\family default
+ im Hauptmenü) klicken,
+ öffnet sich ein Dislogfenster,
+ in dem Sie das Format des Programmlistings anpassen können.
\end_layout
\begin_layout Standard
@@ -43168,7 +43181,7 @@ Programmlisting\SpecialChar menuseparator
Abgesetzt
\family default
verwenden,
- fängt ein Listing mit einem neuen Absatz an.
+ fängt ein Listing mit einem neuen Absatz an und kann mehrere Zeilen enthalten.
Mit
\family sans
Einfügen\SpecialChar menuseparator
@@ -43196,28 +43209,54 @@ int a=5;
\end_inset
-
+ – das eignet sich für kurze,
+ einzeilige Fragmente.
\end_layout
\begin_layout Standard
-Mit
+Auch in der PDF-Ausgabe unterscheiden sich die beiden Pakete.
+ Programmlistings mit
+\series bold
+minted
+\series default
+ verwenden per Voreinstellung eine dicktengleiche Schrift (d.
+\begin_inset space \thinspace{}
+\end_inset
+
+h.,
+
+\begin_inset Quotes gls
+\end_inset
+
+Schreibmaschinenschrift
+\begin_inset Quotes grs
+\end_inset
+
+) und bieten farbige Hervorhebung.
+ Mit
\series bold
listings
\series default
- übernehmen die Listings per Voreinstellung die Schriftart,
+ dagegen übernehmen die Listings per Voreinstellung die Schriftart,
die in der Umgebung des Listings verwendet wird (üblicherweise eine
Serifenschrift,
wie Sie auch am vorliegenden Handbuch sehen können,
- wenn Sie die PDF-Ausgabe betrachten).
- Abgesetzte Listings versuchen per Voreinstellung zusätzlich,
+ wenn Sie die PDF-Ausgabe betrachten);
+ farbige Hervorhebung wird nicht unterstützt.
+ Abgesetzte Listings versuchen im Fall des Pakets
+\series bold
+listings
+\series default
+ weiterhin per Voreinstellung,
eine Art von dicktengleichem Satz zu emulieren,
was nicht gut aussieht aber versichert,
- dass aufeinander folgende Code-Zeilen sinnvoll ausgerichtet sind (Sie können
dieses Verhalten über die Einstellung
+ dass aufeinander folgende Code-Zeilen auch mit nicht-dicktengleicher Schrift
sinnvoll ausgerichtet sind (Sie können dieses Verhalten über die Einstellung
\family typewriter
columns=fullflexible
\family default
abstellen).
- Falls Sie statt dessen eine dicktengleiche Schrift (also Schreibmaschine)
verwenden wollen,
- wie es in der Darstellung von Code üblich ist,
+ Falls Sie statt dessen eine echte dicktengleiche Schrift verwenden wollen,
+ die so gestaltet ist,
+ dass die Zeilen gut ausgerichtet sind,
können Sie entweder die Schrift für einzelne Listings in deren
\family sans
Einstellungen
@@ -43239,7 +43278,13 @@ basicstyle=
\backslash
ttfamily
\family default
-.
+ (und optional,
+ um das Kerning der Schrift nicht zu zerstören,
+
+\family typewriter
+columns=fullflexible
+\family default
+).
Die Optionen sind im Handbuch des Pakets
\series bold
listings
@@ -43311,40 +43356,28 @@ nolink "false"
B.
-\begin_inset Quotes gld
-\end_inset
-
-
\family sans
htbp
\family default
-
-\begin_inset Quotes grd
-\end_inset
-
.
Die Option
-\begin_inset Quotes gld
-\end_inset
-
+\family sans
h
-\begin_inset Quotes grd
-\end_inset
-
+\family default
hat manchmal keinen Effekt,
aber sie muss nicht verwendet werden,
da auch nicht gleitende Listen Beschriftungen haben und referenziert werden
können.
\end_layout
\begin_layout Standard
-Mit dem Menü
+Über
\family sans
Einfügen\SpecialChar menuseparator
Legende
\family default
- kann man für das Listing eine Beschriftung hinzufügen.
+ kann man für abgesetzte Listings eine Beschriftung hinzufügen.
Man kann Listings mit Marken versehen,
- um auf sie wie auf andere Gleitobjekte zu verweisen:
+ um auf sie zu verweisen:
Listing
\begin_inset space ~
\end_inset
@@ -43361,19 +43394,13 @@ nolink "false"
Mit dem Menü
\family sans
Einfügen\SpecialChar menuseparator
-Liste
-\begin_inset space ~
-\end_inset
-
-/
-\begin_inset space ~
-\end_inset
-
-Inhaltsverzeichnis\SpecialChar menuseparator
-Listings Verzeichnis
+Verzeichnis\SpecialChar menuseparator
+Listings-Verzeichnis
\family default
- kann ein Verzeichnis aller Listings eingefügt werden.
- Die Verzeichniseinträge sind die Nummer des Listings und dessen Beschriftung.
+ kann ein Verzeichnis aller Listings,
+ die Legenden haben,
+ eingefügt werden.
+ Die Verzeichniseinträge enthalten die Nummer des Listings und dessen
Beschriftung.
\end_layout
\begin_layout Standard
@@ -43515,7 +43542,7 @@ float
\begin_layout Standard
Wenn Sie eine Programmiersprache gewählt haben,
- werden die Schlüsselworte der Sprache erkannt und besonders gedruckt,
+ werden die Schlüsselworte der Sprache erkannt und hervorgehoben,
wie
\emph on
#
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs