1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
7 % Präambel nicht verändern!!!
9 % Die Präambel stellt sicher, dass das Benutzerhandbuch korrekt
10 % in die Formate pdf, ps und dvi exportiert werden kann.
11 % Wenn Probleme beim Exportieren auftreten, können Sie sich
12 % an das LyX-Dokumentationsteam wenden.
13 % EMail: lyx-docs@lists.lyx.org
15 % wenn pdflatex benutzt wird:
19 % Schrift für hübschere PDF-Ansichten
20 \IfFileExists{lmodern.sty}
21 {\usepackage{lmodern}}{}
23 \fi % Ende von: wenn pdflatex benutzt wird
25 % Setzt den Link für Spruenge zu Gleitabbildungen
26 % auf den Anfang des Gelitobjekts und nicht aufs Ende
27 \usepackage[figure]{hypcap}
29 % Die Seiten des Inhaltsverzeichnisses werden römisch numeriert,
30 % ein PDF-Lesezeichen für das Inhaltsverzeichnis wird hinzugefügt
31 \let\myTOC\tableofcontents
32 \renewcommand\tableofcontents{%
34 \pdfbookmark[1]{\contentsname}{}
38 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
39 \use_default_options false
43 \maintain_unincluded_children false
46 InsetLayout CharStyle:MenuItem
55 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 # In case we need to do with sans...
59 #InsetLayout CharStyle:Code
64 #\renewcommand{\code}[1]{{\sffamily #1}}
69 \language_package default
74 \font_typewriter default
75 \font_default_family default
76 \use_non_tex_fonts false
83 \default_output_format default
85 \bibtex_command default
86 \index_command default
90 \pdf_title "LyX-Anpassung: Möglichkeiten für fortgeschrittene Benutzer"
91 \pdf_author "LyX Team, deutsche Übersetzung: Peter Sütterlin, Leif Albers und Hartmut Haase"
92 \pdf_subject "LyX-Dokumentation, Anpassung"
93 \pdf_keywords "LyX, Dokumentation"
95 \pdf_bookmarksnumbered true
96 \pdf_bookmarksopen false
97 \pdf_bookmarksopenlevel 1
102 \pdf_pdfusetitle false
103 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
113 \paperorientation portrait
121 \index Stichwortverzeichnis
127 \paragraph_separation indent
128 \paragraph_indentation default
129 \quotes_language german
132 \paperpagestyle headings
133 \tracking_changes false
134 \output_changes false
137 \html_be_strict false
144 \begin_inset Newline newline
147 Möglichkeiten für fortgeschrittene Benutzer
155 \begin_layout Plain Layout
182 \begin_inset Newline newline
186 \begin_inset Newline newline
192 \begin_layout Standard
193 \begin_inset CommandInset toc
194 LatexCommand tableofcontents
201 \begin_layout Chapter
205 \begin_layout Standard
206 In diesem Teil der Dokumentation wird beschrieben, welche Möglichkeiten
207 LyX bietet, um es den eigenen Wünschen anzupassen.
208 Es werden Dinge wie Tastaturkürzel, Vorschau am Bildschirm, Optionen zum
209 Drucken, das Senden von Befehlen an LyX durch den LyX-Server, Internationalisie
210 rung, Installation neuer LaTeX-Klassen und LyX-Layouts usw.
211 \begin_inset space \space{}
215 Es kann hier nicht alles beschrieben werden, das an LyX individuell eingestellt
216 und verändert werden kann --- die Entwickler fügen Neuerungen schneller
217 ein, als wir sie dokumentieren können --- doch werden die grundlegenden
218 Fähigkeiten von LyX dokumentiert sowie für einige der etwas obskuren Hinweise
222 \begin_layout Standard
223 Mit der Version 1.1.6 von LyX wurde eine neue Schnittstelle zu den konfigurierbare
224 n Eigenschaften eingeführt, die Sie über den Menüpunkt
226 Werkzeuge\SpecialChar \menuseparator
229 \SpecialChar \ldots{}
231 Diese macht die weiter unten aufgeführten Erläuterungen zu den Konfigurationsda
232 teien von LyX nicht überflüssig, aber es vereinfacht doch den Prozess, LyX
237 Bedürfnisse anzupassen.
240 \begin_layout Chapter
241 Die Konfigurationsdateien von LyX
244 \begin_layout Standard
245 Dieses Kapitel soll Ihnen dabei helfen, sich mit den Konfigurationsdateien
246 von LyX vertraut zu machen.
247 Bevor Sie jedoch weiterlesen, sollten Sie herausfinden, wo sich das Systemverze
248 ichnis von LyX auf Ihrem Rechner befindet.
249 Sie erfahren dies über den Menüpunkt
251 Hilfe\SpecialChar \menuseparator
260 \begin_layout Plain Layout
270 In diesem Verzeichnis speichert LyX alle systemweiten Konfigurationsdateien,
271 wir werden es im weiteren
277 \begin_layout Plain Layout
289 \begin_layout Section
296 \begin_layout Plain Layout
308 \begin_layout Standard
315 \begin_layout Plain Layout
324 sowie seine Unterverzeichnisse enthalten eine Anzahl Dateien, mit denen
325 das Verhalten von LyX beeinflusst werden kann.
326 Diese Dateien können direkt von LyX aus über den Dialog
328 Werkzeuge\SpecialChar \menuseparator
331 \SpecialChar \ldots{}
332 gelesen und geändert werden.
333 Fast alles, was Sie möglicherweise an LyX ändern wollen, können Sie hier
335 Jedoch können auch viele interne Dinge in LyX angepasst werden, indem man
336 diverse andere Dateien in
342 \begin_layout Plain Layout
352 Sie sind in verschiedene Kategorien unterteilt, die in den folgenden Unterabsch
353 nitten behandelt werden.
356 \begin_layout Subsection
357 Automatisch erzeugte Dateien
360 \begin_layout Standard
361 Diese Dateien werden automatisch bei der Konfiguration von LyX erzeugt.
362 Sie enthalten verschiedene Standardwerte, die durch Untersuchung des Systems
364 Normalerweise sollte man sie nicht verändern, da sie jederzeit von LyX
365 überschrieben werden können.
368 \begin_layout Labeling
369 \labelwidthstring 00.00.0000
376 enthält Standardwerte für diverse Befehle.
377 Einstellungen, die Ihnen nicht zusagen, können einfach über
379 Werkzeuge\SpecialChar \menuseparator
382 \SpecialChar \ldots{}
386 \begin_layout Labeling
387 \labelwidthstring 00.00.0000
394 enthält eine Auf\SpecialChar \textcompwordmark{}
395 listung aller LaTeX-Pakete, die von LyX erkannt wurden.
396 Derzeit wird diese Liste von LyX selber nicht benutzt, jedoch ist die Informati
397 on, zusammen mit einigem anderen, über den Menüpunkt
399 Hilfe\SpecialChar \menuseparator
406 \begin_layout Plain Layout
416 \begin_inset space \space{}
424 \begin_layout Labeling
425 \labelwidthstring 00.00.0000
432 ist eine Liste mit den im Verzeichnis
436 gefundenen Textklassen, zusammen mit den entsprechenden LaTeX-Dokumentenklassen
437 und einer kurzen Beschreibung.
440 \begin_layout Labeling
441 \labelwidthstring 00.00.0000
448 \begin_layout Plain Layout
457 wird bei der Konfiguration aus der Datei
463 \begin_layout Plain Layout
471 \begin_inset Newline linebreak
477 Jeder Eintrag der Form
489 ersetzt, je nachdem, ob das Paket
496 \begin_layout Subsection
500 \begin_layout Labeling
501 \labelwidthstring 00.00.0000
508 Dieses Verzeichnis enthält Dateien mit der Endung
513 In ihnen werden die Tastenkombinationen festgelegt, mit denen Sie Menüs
514 öffnen und Bearbeitungsoperationen direkt starten können.
519 mit einer an die internationalisierte Version von LyX angepassten Tastenbelegun
520 g existiert, wird diese bevorzugt geladen.
521 Näheres dazu finden Sie in Kapitel
522 \begin_inset space \space{}
526 \begin_inset CommandInset ref
528 reference "cha:Internationales-LyX"
535 \begin_layout Labeling
536 \labelwidthstring 00.00.0000
543 Hier sind einige PostScript-Bilder gespeichert, die Sie in Ihre Dokumente
548 \begin_layout Labeling
549 \labelwidthstring 00.00.0000
556 Enthält die Dateien der LyX-Dokumentation (einschließlich der, die Sie
558 Eine kleine Ausnahmestellung hat die bereits beschriebene Datei
564 \begin_layout Plain Layout
574 Auch hier wird eine übersetzte Version mit dem Vorsatz
578 vor dem Dateinamen zuerst gesucht und, falls vorhanden, geladen.
584 \begin_inset CommandInset ref
586 reference "cha:Internationales-LyX"
593 \begin_layout Labeling
594 \labelwidthstring 00.00.0000
601 Enthält Beispieldateien, die erläutern, wie Sie die unterschiedlichen Möglichke
602 iten von LyX nutzen können.
603 Verwenden Sie die Schaltfläche
607 im Dateiauswahlmenü, um in dieses Verzeichnis zu gelangen.
610 \begin_layout Labeling
611 \labelwidthstring 00.00.0000
616 Enthält Bilddateien, die von der Dialogbox
626 \SpecialChar \menuseparator
632 Außerdem finden Sie hier die unterschiedlichen Icons für die Werkzeugleiste
633 und das Bild für den Startbildschirm.
636 \begin_layout Labeling
637 \labelwidthstring 00.00.0000
644 Hier sind die Definitionsdateien für die Tastaturbelegung gespeichert.
645 Näheres dazu finden Sie im Abschnitt
646 \begin_inset space \space{}
650 \begin_inset CommandInset ref
652 reference "sec:Internationale-Tastaturtabellen"
659 \begin_layout Labeling
660 \labelwidthstring 00.00.0000
667 Hier werden die in Abschnitt
668 \begin_inset space \space{}
672 \begin_inset CommandInset ref
674 reference "cha:Installieren-neuer-Textklassen"
678 beschriebenen Layoutdateien für die unterschiedlichen Dokumentenklassen
682 \begin_layout Labeling
683 \labelwidthstring 00.00.0000
688 / Enthält Dateien, die für die Konvertierung zwischen verschiedenen LyX
692 \begin_layout Plain Layout
699 Versionen benötigt werden.
702 \begin_layout Labeling
703 \labelwidthstring 00.00.0000
711 \begin_layout Labeling
712 \labelwidthstring 00.00.0000
717 / Enthält die Vorlagendateien, die Ihnen bei
719 Datei\SpecialChar \menuseparator
721 \begin_inset space \space{}
725 \begin_inset space \space{}
730 präsentiert werden, siehe Abschnitt
735 \begin_inset CommandInset ref
737 reference "sub:Vorlagen-erstellen"
744 \begin_layout Labeling
745 \labelwidthstring 00.00.0000
750 Einige LyX-spezifische LaTeX-Textklassen- (
755 \begin_inset Newline linebreak
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
771 Hier finden Sie Dateien mit der Endung
775 , die die Benutzerschnitt\SpecialChar \-
777 le von LyX festlegen, also welche Einträge
778 in welchen Menüs sind, und wie die Werkzeugleiste zusammengesetzt ist.
781 \begin_layout Subsection
782 Dateien, die Sie nicht verändern sollten
785 \begin_layout Standard
786 Die folgenden Dateien werden intern von LyX verwendet.
787 Sie sollten im Normalfall nur von den Entwicklern editiert werden.
790 \begin_layout Labeling
791 \labelwidthstring 00.00.0000
798 Diese Datei enthält eine Liste der Entwickler.
799 Ihr Inhalt wird über die Menüauswahl
801 Hilfe\SpecialChar \menuseparator
803 \begin_inset space \space{}
812 \begin_layout Plain Layout
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
834 ist ein LaTeX-Skript, das bei der Konfiguration verwendet wird.
835 Starten Sie es nie direkt.
838 \begin_layout Labeling
839 \labelwidthstring 00.00.0000
846 ist das eigentliche Skript, das zur Neukonfiguration von LyX verwendet
848 Es erzeugt die Konfigurationsdateien in dem Verzeichnis, von dem aus es
852 \begin_layout Subsection
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
862 Die hier enthaltene Tabelle beschreibt, wie die unterschiedlichen Zeichenkodier
863 ungen in Unicode dargestellt werden.
866 \begin_layout Labeling
867 \labelwidthstring 00.00.0000
872 Diese Datei enthält die Vorlagen für das neue
875 \begin_inset space \space{}
882 \begin_inset space \space{}
886 \begin_inset CommandInset ref
888 reference "cha:Externes-Material-einfügen"
895 \begin_layout Labeling
896 \labelwidthstring 00.00.0000
901 Eine Liste mit allen derzeit von LyX unterstützten Sprachen.
904 \begin_layout Labeling
905 \labelwidthstring 00.00.0000
913 \begin_layout Section
914 Das lokale Konfigurationsverzeichnis
917 \begin_layout Standard
918 Eventuell benutzen Sie LyX als normaler Benutzer und wollen dennoch einige
919 Einstellungen der Konfiguration ändern.
920 Zu diesem Zweck gibt es ein benutzereigenes Verzeichnis
924 , in dem Ihre gesamte persönliche Konfiguration gespeichert wird.
925 Der Name dieses Verzeichnisses wird als
931 Hilfe\SpecialChar \menuseparator
933 \begin_inset space \space{}
940 \begin_layout Plain Layout
950 Dieses Verzeichnis wird als Spiegelung des systemweiten Verzeichnisses
952 Das bedeutet, dass jede Datei, die Sie dort speichern, die entsprechende
953 Datei im Systemverzeichnis ersetzt.
954 Jede der im vorigen Abschnitt beschriebenen Konfigurationsdateien kann
955 sich entweder im Systemverzeichnis
961 \begin_layout Plain Layout
970 oder aber in Ihrem privaten Verzeichnis befinden.
971 Im ersten Fall gelten die Einstellungen für alle Benutzer, im zweiten Fall
975 \begin_layout Standard
976 Dies lässt sich an einigen Beispielen leichter erklären:
979 \begin_layout Itemize
980 Um eine LyX Version älter als 1.1.6 umzukonfigurieren, musste der Benutzer
982 \begin_inset Flex URL
985 \begin_layout Plain Layout
993 \begin_inset Note Note
996 \begin_layout Plain Layout
997 HHa: wie bereits im Benutzerhandbuch erwähnt, ist URL eine einfache Möglichkeit,
998 um Schreibmaschinenformat umzubrechen.
1007 kopieren und diese dann manuell editieren.
1008 Neuere Versionen von LyX lesen diese Datei zwar noch, wenn sie in
1012 gefunden wird, aber alle Änderungen, die über den neuen Dialog
1014 Werkzeuge\SpecialChar \menuseparator
1017 \SpecialChar \ldots{}
1018 gemacht werden, werden in der Datei
1023 Danach (das heißt wenn
1027 gefunden wird) wird die alte
1031 nicht mehr eingelesen und kann gelöscht werden.
1035 \begin_layout Itemize
1036 Wenn Sie mit dem Menüpunkt
1038 Werkzeuge\SpecialChar \menuseparator
1040 \begin_inset space \space{}
1045 eine Neukonfiguration von LyX durchführen, werden die dabei erzeugten Dateien
1046 in Ihrem privaten Konfigurationsverzeichnis
1051 Das bedeutet, dass ab sofort etwaige neue Dokumentenklassen, die Sie in
1056 gespeichert haben, im Feld
1064 \SpecialChar \menuseparator
1069 \SpecialChar \ldots{}
1073 \begin_layout Itemize
1074 Falls Sie irgendwelche Dateien für neue LaTeX-Dokumentenklassen in einem
1075 Verzeichnis installiert haben, das LaTeX über die Umgebungsvariable
1081 findet, können auch diese in LyX verwendet werden.
1085 \begin_layout Plain Layout
1086 vorausgesetzt, es gibt auch eine
1098 \begin_layout Itemize
1099 Wenn Sie sich von einem LyX-FTP-Server eine aktuellere Version (oder zum
1100 Beispiel diese deutsche Version) der Dokumentation besorgt haben, sie aber
1105 installieren können, da Sie keine Systemadministratorrechte haben, können
1106 Sie diese Dateien einfach nach
1110 kopieren, und sie werden automatisch über das
1117 \begin_layout Section
1118 LyX mit mehreren Konfigurationen
1121 \begin_layout Standard
1122 Die hochgradige Konfigurierbarkeit von LyX durch das lokale Verzeichnis
1123 wird für diejenigen nicht ausreichend sein, die parallel mehrere unterschiedlic
1124 he Konfigurationen verwenden wollen, zum Beispiel unterschiedliche Tastaturkürze
1125 l und/oder Druckerkonfigurationen.
1126 Sie können dies durch das Anlegen von mehreren Konfigurationsverzeichnissen
1127 erreichen und LyX jeweils beim Start mitteilen, welches davon verwendet
1131 \begin_layout Standard
1132 Indem Sie LyX mit der Option
1142 starten, erreichen Sie, dass die Konfiguration aus diesem Verzeichnis anstelle
1143 des Standardverzeichnisses gelesen wird (das Standardverzeichnis ermitteln
1144 Sie, indem Sie LyX ohne diese Option starten).
1145 Falls das so angegebene Verzeichnis noch nicht existiert, fragt LyX genau
1146 wie beim ersten Start nach, ob es angelegt werden soll.
1147 Die Konfiguration in diesem Verzeichnis können Sie dann wie im Normalfall
1148 in LyX verändern, die Einstellungen im Standardverzeichnis werden aber
1149 nicht verändert -- beide Verzeichnisse sind völlig unabhängig.
1150 Anstelle der Kommandozeilenoption können Sie übrigens auch die Umgebungsvariabl
1155 auf das zu verwendende Verzeichnis setzen.
1158 \begin_layout Standard
1159 Unterschiedliche Konfigurationsverzeichnisse bedeuten aber auch zusätzlichen
1160 Aufwand: Wenn Sie etwa eine neue Layoutdatei in
1164 hinzufügen und diese für alle Konfigurationen sichtbar sein soll, müssen
1169 Verzeichnissen separat hinzufügen.
1170 Sie können das jedoch mit einem Trick umgehen: Nachdem LyX das neue UserDir
1171 angelegt hat, sind praktisch alle Unterverzeichnisse (siehe oben) leer.
1172 Sie können also all diese Verzeichnis durch einen symbolischen Link auf
1173 das entsprechende Verzeichnis im originalen
1178 Lediglich mit dem Verzeichnis
1182 müssen Sie vorsichtig sein, denn dort wird eine Datei durch das Konfigurationss
1185 Werkzeuge\SpecialChar \menuseparator
1187 \begin_inset space \space{}
1192 ) abgelegt, die konfigurationsabhängig ist.
1195 \begin_layout Chapter
1196 Der Dialog Werkzeuge
1198 \SpecialChar \menuseparator
1206 \begin_layout Section
1208 \begin_inset CommandInset label
1217 \begin_layout Standard
1218 Als ersten Schritt müssen Sie Ihre Dateiformate definieren, wenn das nicht
1219 bereits passiert ist.
1222 Werkzeuge\SpecialChar \menuseparator
1223 Einstellungen\SpecialChar \menuseparator
1224 Datei-Handhabung\SpecialChar \menuseparator
1236 -Feld enthält den Namen, unter dem das Format im GUI identifiziert wird.
1240 \begin_inset space \space{}
1245 steht der Name, mit dem das Format intern identifiziert wird.
1251 Diese drei Felder sind erforderlich.
1257 Zum Beispiel bedeutet
1263 Ansicht\SpecialChar \menuseparator
1269 \begin_layout Standard
1272 Bearbeitungsprogramm
1279 Am Beispiel von JPEG-Dateien steht bei mir in beiden Feldern
1284 Was bei Ihnen steht, hängt von der Software-Ausstattung Ihres PCs ab.
1285 Zum Definieren des Befehls können auch die vier Variablen aus dem nächsten
1286 Abschnitt benutzt werden.
1289 Bearbeitungsprogramm
1291 wird aufgerufen, wenn Sie nach einem Rechtsklick auf ein Bild
1294 \begin_inset space \space{}
1298 \begin_inset space \space{}
1307 \begin_layout Standard
1312 angekreuzt ist, weiß LyX, dass das Format für den Dokumentexport geeignet
1314 Wenn dann auch noch ein geeigneter Konverter existiert (siehe Abschnitt
1315 \begin_inset space ~
1319 \begin_inset CommandInset ref
1321 reference "Konverter"
1325 ), wird das Format unter
1327 Datei\SpecialChar \menuseparator
1335 -Menü erscheinen, wenn ein
1340 Reine Grafikformate wie
1344 sollten diese Option nicht benutzen, dagegen aber Formate, die sowohl Vektorgra
1345 fiken als auch Dokumente repräsentieren wie
1352 \begin_layout Standard
1357 sagt LyX, dass ein Format Vektorgrafiken ent\SpecialChar \-
1359 Diese Information wird dazu benutzt, um ein Zielformat für eingefügte Grafiken
1364 -Export zu bestimmen.
1365 Eingefügte Grafiken müs\SpecialChar \-
1378 konvertiert werden, weil
1382 keine anderen Grafikformate handhaben kann.
1383 Hat eine eingefügte Grafik bereits eines der Formate, wird sie nach pdf
1388 angekreuzt ist, sonst nach
1395 \begin_layout Section
1399 \begin_layout Standard
1400 Weil alle Konvertierungen im temporären Verzeichnis von LyX stattfinden,
1401 muss eine Datei manchmal geändert werden bevor sie ins temporäre Verzeichnis
1402 kopiert wird, damit die Konvertierung durchgeführt werden kann.
1406 \begin_layout Plain Layout
1407 Wenn die Datei beispielsweise auf andere Dateien mit relativen Pfaden verweist
1408 -- vielleicht Bilder -- und diese Pfade beim Kopieren ungültig werden.
1413 Das macht ein Kopierer: er kopiert eine Datei ins (oder vom) temporären
1414 Verzeichnis und ändert sie dabei.
1417 \begin_layout Standard
1418 Die Definitionen der Kopierer können vier Variablen benutzen:
1421 \begin_layout Labeling
1422 \labelwidthstring 00.00.0000
1427 ist das Systemverzeichnis von LyX (zum Beispiel
1430 \begin_inset Newline linebreak
1438 \begin_layout Labeling
1439 \labelwidthstring 00.00.0000
1444 ist die Eingabedatei.
1447 \begin_layout Labeling
1448 \labelwidthstring 00.00.0000
1453 ist die Ausgabedatei.
1456 \begin_layout Labeling
1457 \labelwidthstring 00.00.0000
1467 Dies sollte der Dateiname sein, den LaTeX im
1474 Er ist nur dann relevant, wenn die expor\SpecialChar \-
1476 ten Dateien für den Befehl
1480 \begin_layout Standard
1481 Kopierer können benutzt werden, um
1485 alles mit Ausgabedateien zu machen.
1486 Wenn Sie zum Beispiel
1490 -Dateien in ein spezielles Verzeichnis kopieren wollen, können Sie ein Shell-Skr
1491 ipt wie folgt schreiben:
1494 \begin_layout LyX-Code
1498 \begin_layout LyX-Code
1502 \begin_layout LyX-Code
1503 TOFILE=`basename $2`
1506 \begin_layout LyX-Code
1507 cp $FROMFILE /home/you/pdf/$TOFILE
1510 \begin_layout Standard
1511 Speichern Sie das Skript ausführbar in Ihrem lokalen LyX-Verzeichnis --
1514 /home/you/lyx/scripts/pdfkopierer.sh
1519 Werkzeuge\SpecialChar \menuseparator
1523 gen\SpecialChar \menuseparator
1524 Datei-Handhabung\SpecialChar \menuseparator
1530 \begin_inset space \space{}
1535 und tragen im Kopierer-Feld
1537 pdfkopierer.sh $$i $$o
1542 \begin_layout Standard
1543 Kopierer werden von LyX in vielen eigenen Konvertierungen benutzt.
1544 Wenn auf dem PC geeignete Programme installiert sind, wird LyX automatisch
1552 \begin_inset space \space{}
1556 \begin_inset space \space{}
1562 Wenn diese Formate exportiert werden,
1566 der Kopierer, dass nicht nur die Haupt-HTML-Datei, sondern auch verschiedene
1567 zugehörige Dateien (Stildateien, Bilder usw.) kopiert werden müssen.
1568 All diese Dateien werden in ein Unterverzeichnis des Verzeichnisses geschrieben
1569 , in dem die LyX-Datei steht.
1573 \begin_layout Plain Layout
1574 Kopierer können angepasst werden.
1575 Der optionale Parameter
1579 kann eine durch Kommata getrennte Liste von Erweiterungen enthalten, die
1580 mitkopiert werden sollen.
1581 Wenn es fehlt, werden alle Dateien kopiert.
1586 bestimmt die Namenserweiterung, die an den erzeugten Verzeichnisnamen angehängt
1588 Standardmäßig ist es
1594 \begin_layout Plain Layout
1607 erzeugte HTML-Datei im Unterverzeichnis
1613 \begin_layout Plain Layout
1630 \begin_layout Section
1632 \begin_inset CommandInset label
1641 \begin_layout Standard
1642 Sie können eigene Konverter in
1644 Werkzeuge\SpecialChar \menuseparator
1648 gen\SpecialChar \menuseparator
1649 Datei-Handhabung\SpecialChar \menuseparator
1657 \begin_inset space \space{}
1665 \begin_inset space \space{}
1670 jeweils eins aus, schreiben den benötigten Befehl ins Feld
1679 Sie können im Befehl mehrere Variablen benutzen:
1682 \begin_layout Labeling
1683 \labelwidthstring 00.00.0000
1688 ist das Systemverzeichnis von LyX (zum Beispiel
1691 \begin_inset Newline linebreak
1699 \begin_layout Labeling
1700 \labelwidthstring 00.00.0000
1705 ist die Eingabedatei.
1708 \begin_layout Labeling
1709 \labelwidthstring 00.00.0000
1714 ist die Ausgabedatei.
1717 \begin_layout Labeling
1718 \labelwidthstring 00.00.0000
1723 ist der Dateiname ohne Erweiterung (siehe Linux-Befehl
1730 \begin_layout Labeling
1731 \labelwidthstring 00.00.0000
1736 ist der Pfad zur Eingabedatei.
1739 \begin_layout Labeling
1740 \labelwidthstring 00.00.0000
1745 ist der Pfad zur ursprünglichen Eingabedatei.
1746 Wenn eine Kette von Konvertern aufgerufen wird, weicht er von
1753 \begin_layout Standard
1754 Ins Feld Zusatz-Flag können Sie folgende, durch Kommata getrennte, Flags
1755 schrei\SpecialChar \-
1759 \begin_layout Labeling
1760 \labelwidthstring 00.00.0000
1765 Damit ein besonderer LaTeX-Lauf gestartet, der die LaTeX-Fehlermel\SpecialChar \-
1768 von LyX verfügbar macht.
1771 \begin_layout Labeling
1772 \labelwidthstring 00.00.0000
1777 benötigt die LaTeX-Datei
1784 \begin_layout Labeling
1785 \labelwidthstring 00.00.0000
1790 Damit wird die Ausgabe im XML-Format gespeichert.
1793 \begin_layout Standard
1794 Die folgenden Flags sind keine richtigen, weil sie ein Argument der Form
1802 \begin_layout Labeling
1803 \labelwidthstring 00.00.0000
1808 Wenn das gesetzt ist, wird der Standardfehler des Konverters in die Datei
1813 umgeleitet, und das Skript wird so ausgeführt:
1816 \begin_inset space \space{}
1820 \begin_inset space \space{}
1824 \begin_inset space \space{}
1828 \begin_inset space \space{}
1842 \begin_layout Labeling
1843 \labelwidthstring 00.00.0000
1848 ist der Name des Verzeichnisses, in dem der Konverter die erzeugten Dateien
1850 LyX wird das Verzeichnis nicht anlegen und auch nichts hineinkopieren,
1851 aber dieses Verzeichnis an seinen Bestimmungs\SpecialChar \-
1857 enthalten, was durch die Basisnamen von Ein- oder Ausgabedatei ersetzt
1858 wird, wenn das Verzeichnis kopiert wird.
1859 \begin_inset Newline newline
1870 zusammen keinen Sinn machen.
1871 Wenn das erste definiert wurde, wird das zweite ignoriert.
1874 \begin_layout Labeling
1875 \labelwidthstring 00.00.0000
1880 ist der Name der Ausgabedatei und darf
1885 Er wird nur zusammen mit
1889 benutzt und ist auch da nur optional.
1890 Wenn er nicht angegeben wird, wird
1897 \begin_layout Standard
1898 Keines dieser Flags wird zur Zeit in einem Konverter benutzt, der zusammen
1899 mit LyX installiert wird.
1902 \begin_layout Standard
1903 Sie müssen nicht für alle Formate, zwischen denen Sie konvertieren wollen,
1904 Konverter definieren.
1905 Zum Beispiel gibt es keinen Konverter von LyX nach PostScript, aber LyX
1906 wird PostScript exportieren.
1907 Dies geschieht, indem zunächst eine LaTeX-Datei erzeugt wird -- dafür wird
1908 auch kein Konverter benötigt --, die dann mit dem Konverter von LyX nach
1909 DVI in eine DVI-Datei konvertiert wird, die schließlich nach PostScript
1911 LyX findet solche Konverter-Ketten automatisch und wird immer die kürzeste
1915 \begin_layout Standard
1916 Trotzdem können Sie Mehrfachkonversionen zwischen Dateiformaten definieren.
1917 Zum Beispiel liefert die Standardkonfiguration von LyX drei Möglichkeiten,
1918 um von LaTeX nach PDF zu konvertieren:
1921 \begin_layout Enumerate
1927 \begin_layout Enumerate
1932 über DVI und PostScript
1935 \begin_layout Enumerate
1943 \begin_layout Standard
1944 Um andere Ketten zu definieren, müssen Sie andere Ziel-
1948 definieren, wie in Abschnitt
1949 \begin_inset space \space{}
1953 \begin_inset CommandInset ref
1955 reference "sec:Formate"
1960 Zum Beispiel enthält die Standardkonfiguration drei Formate für pdf-Dateien,
1988 \begin_layout Chapter
1990 \begin_inset CommandInset label
1992 name "cha:Internationales-LyX"
1999 \begin_layout Standard
2002 Anmerkung des Übersetzers: Dieses Kapitel behandelt zwei Themenbereiche.
2004 \begin_inset space \space{}
2008 \begin_inset CommandInset ref
2010 reference "sec:Eine-andere-Sprache"
2015 \begin_inset space \space{}
2019 \begin_inset CommandInset ref
2021 reference "sec:Tastaturkürzel-für-andere"
2025 erklärt, wie man LyX mitteilt, dass man in einer fremdsprachlichen Umgebung
2027 Der überwiegende Rest des Kapitels erläutert, wie man LyX an eine neue
2028 Sprache anpasst, das heißt wie man es übersetzt.
2029 Da diese Arbeiten für eine deutsche Umgebung bereits erledigt wurden, dürfte
2030 dieser Teil des Kapitels für die Leser dieser Übersetzung weitgehend uninteress
2032 Die letzten beiden Abschnitte,
2033 \begin_inset CommandInset ref
2035 reference "sec:Internationale-Tastaturbelegung"
2040 \begin_inset CommandInset ref
2042 reference "sec:Internationale-Tastaturtabellen"
2046 , waren bei der Übersetzung noch nicht ganz up to date.
2050 \begin_layout Standard
2051 LyX kann mit übersetzten Versionen seiner Benutzerschnittstelle arbeiten.
2052 Als dieser Text erstellt wurde, waren über den normalen englischen Text
2053 Anpassungen für 23 Sprachen Bestandteil der LyX-Distribution.
2054 Die von Ihnen benutze Sprache zeigt Ihnen der Befehl
2059 (Für weitere Informationen über
2063 -Definitionen ist die Manpage
2067 ein guter Startpunkt.)
2070 \begin_layout Standard
2071 Bitte beachten Sie, dass diese Übersetzungen zwar funktionieren, aber oft
2072 ein paar Einschränkungen unterliegen.
2073 Insbesondere wurde das Design der Popup-Menüs auf den englischen Text zugeschni
2075 Das bedeutet, dass der übersetzte Text an einigen Stellen mehr Platz benötigt
2076 als dort zur Verfügung steht.
2077 Dies ist natürlich nur ein Darstellungsproblem und schränkt nicht die Funktions
2079 Sie werden auch feststellen, dass einige Übersetzungen nicht für alle Menüpunkt
2080 e Tastenkürzel definieren.
2081 Manchmal stehen einfach nicht genügend freie Buchstaben zur Verfügung,
2082 manchmal hatte der Übersetzer einfach bisher keine Zeit, sich darum zu
2086 \begin_layout Standard
2087 Wir werden versuchen, diese Dinge in einer späteren Version zu korrigieren.
2090 \begin_layout Section
2091 Eine andere Sprache für die Schnittstelle auswählen
2092 \begin_inset CommandInset label
2094 name "sec:Eine-andere-Sprache"
2101 \begin_layout Standard
2102 Normalerweise erfolgt die gesamte Benutzerführung in der Sprache, die in
2103 der Umgebungsvariablen
2108 Um eine andere Sprache auszuwählen, müssen Sie die Umgebungsvariable
2117 in csh-kompatiblen und
2121 in sh-kompatiblen Shells.
2126 durch den Zwei-Buchstaben-Code der Sprache, die Sie verwenden möchten --
2135 \begin_layout Plain Layout
2136 Noch besser wäre es,
2140 auf den Wert de_DE zu setzen, da andere Programme (zum Beispiel KDE) nach
2141 DE suchen, oder sogar den vollständigen Wert de_DE.iso88591
2149 \begin_layout Standard
2150 Normalerweise werden Sie den passenden Befehl in eine der Startdateien einfügen,
2151 also zum Beispiel in
2163 , damit die übersetzte Schnittstelle automatisch benutzt wird.
2167 \begin_layout Standard
2168 Beachten Sie, dass all dies
2172 funktioniert, wenn Sie LyX mit der Option
2174 --disable\SpecialChar \-
2180 \begin_layout Section
2181 Tastaturkürzel für andere Sprachen anpassen
2182 \begin_inset CommandInset label
2184 name "sec:Tastaturkürzel-für-andere"
2191 \begin_layout Standard
2192 Ein Hauptgrund für Inkonsistenzen in übersetzten LyX-Versionen ist die Tatsache,
2193 dass alle Tastaturkürzel für die Menüfunktionen ursprünglich auf den englischen
2194 Text zugeschnitten wurden.
2195 Das heißt, unabhängig vom tatsächlichen Menüeintrag wird das Kürzel
2201 new-file-from-template
2205 \begin_layout Plain Layout
2208 new-file-from-template
2210 ist der LyX-interne Befehl, der das Menü
2212 Datei\SpecialChar \menuseparator
2214 \begin_inset space ~
2218 \begin_inset space ~
2223 \SpecialChar \ldots{}
2234 \begin_layout Standard
2235 Es ist allerdings einfach, dies zu ändern, da alle Tastenkürzel für die
2236 Menüfunktionen in einer einzigen Datei definiert werden, in
2242 \begin_layout Plain Layout
2249 XDir/bind/menus.bind
2252 Jeder Anwender kann eine eigene Version dieser Datei in sein privates LyX-Verze
2257 ) kopieren und verändern.
2258 Diese wird anstelle der systemweiten Datei eingelesen.
2261 \begin_layout Standard
2262 In diesem privaten Verzeichnis kann man die Definitionen einfach ändern,
2273 Datei\SpecialChar \menuseparator
2275 \begin_inset space ~
2279 \begin_inset space ~
2284 \SpecialChar \ldots{}
2286 Für einige Sprachen existieren schon angepasste Versionen
2292 \begin_layout Plain Layout
2312 bezeichnet den Code der Sprache).
2313 Diese werden von LyX automatisch benutzt, sofern sie existieren (und Ihre
2328 \begin_layout Standard
2329 Sie müssen darauf achten, dass neue Definitionen nicht mit anderen, vorangehende
2330 n Definitionen kollidieren.
2331 Beispielsweise würde die oben genannte Definition von
2339 verwenden, eine Fehlermeldung erzeugen, denn in
2353 \begin_layout Plain Layout
2358 löscht das Wort rechts vom Cursor.
2369 \begin_layout Standard
2370 In LyX Version 1.0 werden die übersetzten Namen der Hauptmenüs (die in den
2375 -Dateien stehen) für den Tastendefinitions-Mechanismus verwendet -- deshalb
2384 Menünamen verwendet werden.
2387 \begin_layout Section
2391 \begin_layout Subsection
2392 Die Benutzerschnittstelle übersetzen (Textmeldungen)
2395 \begin_layout Standard
2396 LyX verwendet die GNU-gettext-Bibliothek, um die Internationalisierung der
2397 Benutzerschnittstelle zu verwalten.
2398 Um LyX dazu zu bringen, in allen Menüs und Dialog-Boxen Ihre Lieblingssprache
2399 zu verwenden, müssen Sie eine
2403 -Datei für diese Sprache erstellen.
2404 Anschließend müssen Sie daraus eine
2408 -Datei erzeugen und diese installieren.
2409 Eine umfassende Anleitung dazu finden Sie in der Dokumentation für GNU
2414 \begin_layout Plain Layout
2415 Natürlich nur auf englisch.
2416 Die Veränderungen, die an der
2420 -Datei durchgeführt werden müssen, sind allerdings recht intuitiv.
2426 Kurz gesagt müssen folgende Veränderungen durchgeführt werden (
2432 bezeichnet den Sprachencode der neuen Sprache):
2435 \begin_layout Itemize
2436 Kopieren Sie die Datei
2440 in das Verzeichnis der .po-Dateien.
2441 Benennen Sie anschließend die Datei in
2453 nicht existiert, kann sie mit dem Befehl
2456 \begin_inset space \space{}
2461 neu erzeugt werden.)
2464 \begin_layout Itemize
2471 \begin_layout Plain Layout
2472 Für diese Aufgabe gibt es spezielle Programme, wie
2476 (für alle Plattformen) oder
2485 hat ebenfalls einen Modus, der Sie bei dieser Arbeit unterstützt.
2493 Für einige Menü- und Widgetfunktionen gibt es Tastenkürzel, die ebenfalls
2494 übersetzt werden sollten.
2495 Diese Tasten werden mit '
2499 ' markiert und sollten passend mitübersetzt werden.
2500 Es gibt ein Prolog-Programm namens
2504 , das sich im Quellverzeichnis in
2507 SOURCE\SpecialChar \-
2508 DIR/development/tools/
2511 Vielleicht hilft es Ihnen bei der Bestimmung der Tastenkürzel.
2512 Beachten Sie, dass XForms (zumindest die Version 0.86) nur 7-Bit-Zeichen
2513 als Tastenkürzel verarbeiten kann.
2514 \begin_inset Newline newline
2517 Sie sollten auch das Informationsfeld am Anfang der neuen po-Datei ausfüllen
2518 (mit Ihrer EMail-Adresse, usw.), damit Sie für andere Leute erreichbar sind,
2519 die Ihnen Vorschläge oder unterhaltsame Flames schicken möchten.
2522 \begin_layout Itemize
2524 \begin_inset Flex URL
2527 \begin_layout Plain Layout
2529 LYX-SOURCE-DIR/po/lyx.pot
2536 make up\SpecialChar \-
2549 \begin_layout Itemize
2550 Installieren Sie die
2554 -Datei mit dem Befehl
2556 su -c 'make install'
2561 \begin_layout Standard
2570 hinzuzufügen, müssen eine Reihe von Dateien (Konfigurations-Skripts und
2571 mehr) verändert werden.
2572 Aber dank der gettext-Bibliothek ist ein Einbinden in den LyX-Quellcode
2573 für den Anwender unnötig.
2576 \begin_layout Standard
2577 Wenn Sie eine Übersetzung für eine Sprache erstellt haben, die LyX zur Zeit
2578 noch nicht unterstützt, sollten Sie uns ruhig ein Patch mit Ihrer Datei
2580 Wie man ein Patch erstellt, erfahren Sie in der README-Datei im Verzeichnis
2588 \begin_layout Subsection
2589 Die Dokumentation übersetzen
2592 \begin_layout Standard
2595 [Anmerkung des Übersetzers:
2599 Sie die Dokumentation übersetzen wollen, benutzen Sie als Vorlage auf jeden
2600 Fall das englische Original.
2601 Übersetzungen -- diese eingeschlossen -- sind oft nicht ganz auf dem neuesten
2606 \begin_layout Standard
2607 Auch die Online-Dokumentation (im
2611 -Menü) kann (und sollte!) übersetzt werden.
2612 Wenn übersetzte Versionen verfügbar sind
2616 \begin_layout Plain Layout
2617 Derzeit (November 2006) sind praktisch alle Texte bis auf
2623 \begin_layout Plain Layout
2632 ins Deutsche übersetzt.
2633 Andere Sprachen sind in Arbeit.
2634 Die Bibliothek an übersetzten Texten wächst ständig.
2643 entsprechend gesetzt wurde, werden diese automatisch von LyX benutzt.
2644 Zur Zeit sind Übersetzungen in etwa 20 Sprachen vorhanden.
2645 LyX sucht nach übersetzten Versionen in
2651 \begin_layout Plain Layout
2670 für das entsprechende Sprach\SpecialChar \-
2672 zel steht, das in der Umgebungsvariablen
2680 \begin_layout Standard
2681 Falls solche Dateien nicht existieren, wird die englische Version verwendet.
2682 Auch die übersetzten Versionen müssen (bis auf das
2689 ) den gleichen (englischen) Dateinamen (im Beispiel oben
2693 ) tragen wie die englischen Originale.
2694 Wenn Sie gerne die Dokumentation übersetzen möchten (übrigens ein guter
2695 Weg, um die Originale Korrektur zu lesen!), hier ein paar Tipps, die Ihnen
2696 möglicherweise etwas Arbeit ersparen:
2699 \begin_layout Itemize
2700 Werfen Sie einen Blick auf die Seiten des Übersetzungsteams auf der Homepage
2701 des LyX-Entwickler-Teams:
2702 \begin_inset Flex URL
2705 \begin_layout Plain Layout
2707 http://www.devel.lyx.org
2713 Dort erfahren Sie, welche Texte bereits in Ihre Sprache übersetzt sind,
2714 auch sehen Sie, ob jemand (und wenn ja, wer) die Übersetzungsaktivitäten
2718 \begin_layout Standard
2719 Wenn Sie dann mit der eigentlichen Übersetzungsarbeit beginnen, sind hier
2720 einige Tipps, die Ihnen vielleicht helfen, einige Schwierigkeiten zu überwinden
2724 \begin_layout Itemize
2725 Machen Sie im Dokumentationsteam mit! Informationen dazu gibt es in
2727 Hilfe\SpecialChar \menuseparator
2731 Dies ist übrigens das erste Dokument, das Sie übersetzen sollten.
2734 \begin_layout Itemize
2735 Machen Sie sich mit den typographischen Konventionen der Sprache vertraut,
2736 in die Sie übersetzen möchten.
2737 Typographie ist eine alte Kunst, und in vielen Teilen der Welt wurden verschied
2738 ene Konventionen eingeführt.
2739 Auch sollten Sie die typographische Terminologie in Ihrem Land lernen.
2740 Eine eigene Terminologie würde nur die Leser verwirren.
2743 (Warnung: Typographie macht süchtig!)
2746 \begin_layout Itemize
2747 Legen Sie eine Kopie des Originaldokumentes an.
2748 Von Zeit zu Zeit wird die Originalversion erneuert.
2749 Sie können beispielsweise CVSweb auf der LyX-Entwickler-Seite im WWW verwenden
2750 um zu sehen, was sich verändert hat.
2754 \begin_layout Plain Layout
2755 Alternativ können Sie auch lokal eine Kopie des (englischen) Ausgangstextes
2756 aufbewahren und diese dann mit der neuen Version vergleichen (zum Beispiel
2769 \begin_layout Itemize
2770 Wann immer Sie einen Fehler im Originaltext entdecken, korrigieren Sie ihn
2771 und teilen dem Rest des Dokumentationsteams Ihre Veränderungen mit.
2772 (Sie haben nicht vergessen, dem Dokumentationsteam beizutreten, oder?)
2775 Auch die Originaldokumentation ist nicht komplett.
2778 \begin_layout Section
2779 Internationale Tastaturbelegung
2780 \begin_inset CommandInset label
2782 name "sec:Internationale-Tastaturbelegung"
2789 \begin_layout Subsection
2790 Eigene Tastaturtabellen definieren: das
2797 \begin_layout Standard
2798 Sehen wir uns einmal die
2802 -Datei ein wenig näher an.
2803 Es handelt sich um eine ASCII-Datei, in der folgendes definiert wird:
2806 \begin_layout Itemize
2807 Taste-Taste- oder Taste-String-Transformationen
2810 \begin_layout Itemize
2815 Tasten -- sogenannte
2820 \begin_layout Itemize
2821 Ausnahmen für tote Tasten.
2824 \begin_layout Standard
2825 Zur Definition einer Taste-Taste- oder Taste-String-Transformation dient
2829 \begin_layout Quotation
2837 \begin_layout Standard
2842 die zu übersetzende Taste bezeichnet und
2846 die Taste oder den String, der dafür in das Dokument eingefügt werden soll.
2847 Eine tote Taste definiert man mit:
2848 \begin_inset space ~
2854 \begin_layout Quotation
2866 \begin_layout Standard
2871 wieder eine Taste auf der Tastatur bezeichnet und
2875 der Name einer toten Taste ist.
2876 LyX unterstützt folgende toten Tasten (Abkürzungen in Klammern):
2879 \begin_layout Quotation
2883 \begin_inset space \hfill{}
2889 \begin_layout Quotation
2891 \begin_inset space \hfill{}
2897 \begin_layout Quotation
2899 \begin_inset space \hfill{}
2905 \begin_layout Quotation
2907 \begin_inset space \hfill{}
2913 \begin_layout Quotation
2915 \begin_inset space \hfill{}
2921 \begin_layout Quotation
2923 \begin_inset space \hfill{}
2930 \begin_layout Plain Layout
2942 \begin_layout Quotation
2944 \begin_inset space \hfill{}
2950 \begin_layout Quotation
2952 \begin_inset space \hfill{}
2959 \begin_layout Plain Layout
2971 \begin_layout Quotation
2973 \begin_inset space \hfill{}
2979 \begin_layout Quotation
2981 \begin_inset space \hfill{}
2987 \begin_layout Quotation
2989 \begin_inset space \hfill{}
2996 \begin_layout Plain Layout
3008 \begin_layout Quotation
3010 \begin_inset space \hfill{}
3017 \begin_layout Plain Layout
3029 \begin_layout Quotation
3031 \begin_inset space \hfill{}
3037 \begin_layout Quotation
3038 hungarian umlaut (hug)
3039 \begin_inset space \hfill{}
3045 \begin_layout Quotation
3047 \begin_inset space \hfill{}
3053 \begin_layout Quotation
3055 \begin_inset space \hfill{}
3062 \begin_layout Plain Layout
3074 \begin_layout Standard
3075 Da es auf vielen internationalen Tastaturen Ausnahmen dafür gibt, wie eine
3076 bestimmte tote Taste das folgende Zeichen verändern soll, können diese
3077 definiert werden, und zwar mit:
3080 \begin_layout Quotation
3089 Tote-Taste Taste Ausgabe
3092 \begin_layout Standard
3093 Zum Beispiel soll caron-o auf einer slowakischen Tastatur ein circumflex-o
3095 Dies erreicht man mit:
3098 \begin_layout Quotation
3112 \begin_layout Standard
3113 Auch müssen für die Buchstaben i und j Ausnahmen definiert werden, um den
3114 Punkt zu löschen, bevor ein Akzent eingefügt wird.
3115 Ich werde dies beizeiten ändern, hatte aber bisher noch keine Zeit dazu.
3118 \begin_layout Standard
3119 Ach so, zur Definition der Ausgabe: Der Backslash
3120 \begin_inset Quotes gld
3130 \begin_inset Quotes grd
3133 ist ein Sonderzeichen.
3134 Um ihn einzugeben, muss man einen doppelten Backslash
3135 \begin_inset Quotes gld
3147 \begin_inset Quotes grd
3151 Auch das Anführungszeichen
3152 \begin_inset Quotes gld
3156 \begin_inset Quotes grd
3160 \begin_inset Quotes gld
3168 \begin_inset Quotes grd
3171 haben eine andere Bedeutung.
3176 bezeichnet einen Kommentar, Anführungszeichen markieren den Anfang und
3177 das Ende eines Strings (das heißt einer LaTeX-Befehlssequenz).
3178 Um diese Zeichen einzugeben, muss ein Backslash vorangestellt werden (also:
3192 Wenn Sie eine funktionierende Keymap-Datei für eine neue Sprache angefertigt
3193 haben, mailen Sie diese bitte an das Entwickler-Team, damit sie in die
3194 nächste Distribution integriert werden kann.
3197 \begin_layout Standard
3198 In Zukunft werden auch noch folgende Befehle unterstützt:
3201 \begin_layout Itemize
3210 \begin_inset space \hfill{}
3215 bindet eine andere Datei ein
3218 \begin_layout Itemize
3231 \begin_inset space \hfill{}
3236 definiert ein externes Keymap-Programm
3239 \begin_layout Standard
3244 atei nach Voreinstellungen durchsuchen (zum Beispiel nach einer Option
3250 , um eine Standardtastatur zu verwenden).
3253 \begin_layout Section
3254 Internationale Tastaturtabellen:
3259 \begin_inset CommandInset label
3261 name "sec:Internationale-Tastaturtabellen"
3268 \begin_layout Standard
3269 Die nächsten beiden Abschnitte beschreiben detailliert die Syntax der
3278 Diese Abschnitte sollten Ihnen dabei helfen, Ihre eigene Tastaturtabelle
3279 zu entwerfen, wenn die vorhandenen nicht ganz Ihren Bedürfnissen entsprechen.
3282 \begin_layout Subsection
3288 \begin_inset CommandInset label
3290 name "sub:Die-.kmap-Datei"
3297 \begin_layout Standard
3306 -Datei transformiert gedrückte Tasten zu Buchstaben oder Strings (Zeichenketten)
3312 Im Folgenden werden die Schlüsselwörter
3331 \begin_layout Labeling
3332 \labelwidthstring 00.00.0000
3339 Transformiere einen Buchstaben zu einem String
3342 \begin_layout LyX-Code
3351 \begin_layout Standard
3352 Dieser Ausdruck definiert, dass
3360 transformiert werden soll.
3365 die Zeichen Backslash
3366 \begin_inset Quotes gld
3376 \begin_inset Quotes grd
3379 und Anführungszeichen
3380 \begin_inset Quotes gld
3388 \begin_inset Quotes grd
3391 mit einem vorangehenden Backslash versehen werden.
3395 \begin_layout Standard
3396 Als Beispiel ein Ausdruck, der das Zeichen
3397 \begin_inset Quotes gld
3405 \begin_inset Quotes grd
3408 ausgibt, wenn die Taste
3409 \begin_inset Quotes gld
3417 \begin_inset Quotes grd
3423 \begin_layout LyX-Code
3429 \begin_layout Labeling
3430 \labelwidthstring 00.00.0000
3437 Spezifiziere ein Akzentzeichen
3440 \begin_layout LyX-Code
3446 Zeichen Akzent erlaubt
3449 \begin_layout Standard
3450 Dieser Ausdruck wird dafür sorgen, dass
3458 interpretiert wird, und zwar bei allen Zeichen, die in
3463 Dies ist der Mechanismus toter Tasten
3469 \begin_layout Plain Layout
3478 kommt daher, dass diese Taste allein kein Zeichen erzeugt, aber, gefolgt
3479 von einer anderen Taste, akzentuierte Zeichen erzeugt.
3480 Zum Beispiel kann auf diese Weise é
3481 \begin_inset Quotes grd
3495 drücken, gefolgt von einem Zeichen, das
3503 aufgeführt wurde, werden einfach beide Zeichen einzeln ausgegeben.
3506 \begin_layout Standard
3507 Der folgende Ausdruck definiert, dass die Taste
3508 \begin_inset Quotes gld
3516 \begin_inset Quotes grd
3519 der circumflex-Akzent wird, wenn er von einem der Buchstaben a, e, i, o,
3520 u, A, E, I ,O oder U gefolgt wird:
3523 \begin_layout LyX-Code
3526 kmod ^ circumflex aeiouAEIOU
3529 \begin_layout Labeling
3530 \labelwidthstring 00.00.0000
3535 Definiere eine Ausnahme zu einem Akzentzeichen
3538 \begin_layout LyX-Code
3544 Akzent Zeichen Ausgabe
3547 \begin_layout Standard
3548 Dieser Ausdruck definiert eine Ausnahme für die Wirkung, die
3552 in Verbin\SpecialChar \-
3562 vorher mit Hilfe einer
3568 -Zeile einer Taste zugewiesen worden sein.
3569 Wenn Sie die Sequenz
3578 Falls solch eine Definition
3586 eingeben, erhalten Sie das
3593 \begin_layout Standard
3594 Der folgende Ausdruck sorgt dafür, dass LaTeX bei einem
3595 \begin_inset Quotes gld
3599 \begin_inset Quotes grd
3602 mit circumflex den I-Punkt entfernt, bevor das Akzentsymbol eingefügt wird:
3605 \begin_layout LyX-Code
3608 kxmod circumflex i "
3619 \begin_layout Labeling
3620 \labelwidthstring 00.00.0000
3625 Kombiniere zwei Akzentsymbole
3628 \begin_layout LyX-Code
3634 Akzent1 Akzent2 erlaubt
3637 \begin_layout Standard
3638 Hier wird es ziemlich esoterisch.
3639 Dieser Ausdruck erlaubt die Kombination der Effekte von
3647 (in dieser Reihenfolge!) bei allen
3661 müssen zuvor mit Hilfe von
3667 definiert worden sein.
3670 \begin_layout Standard
3671 Folgendes Beispiel aus der Datei
3678 \begin_layout LyX-Code
3681 kmod ; acute aeioyvhAEIOYVH
3684 \begin_layout LyX-Code
3690 \begin_layout LyX-Code
3693 kcomb acute umlaut iyIY
3696 \begin_layout Standard
3697 Diese Zeilen erlauben es,
3698 \begin_inset Quotes gld
3706 \begin_inset Quotes grd
3709 einzugeben und auf diese Weise
3710 \begin_inset Quotes gld
3722 \begin_inset Quotes grd
3729 \begin_layout Plain Layout
3741 In diesem Fall löscht die Backspace-Taste das letzte gedrückte Zei\SpecialChar \-
3755 eingeben, erhalten Sie
3756 \begin_inset Quotes gld
3766 \begin_inset Quotes grd
3773 \begin_layout Plain Layout
3786 \begin_layout Subsection
3794 \begin_layout Standard
3799 -Datei verarbeitet hat, erklärt eine
3803 -Datei, wie die einzelnen Symbole im gegenwärtigen Zeichensatz dargestellt
3805 Die LyX-Dis\SpecialChar \-
3808 tion enthält wenigstens die Dateien
3809 \begin_inset Flex URL
3812 \begin_layout Plain Layout
3823 \begin_inset Newline linebreak
3832 \begin_layout Standard
3833 Generell besteht eine
3840 -Datei aus einer Reihe von Deklarationen der folgenden Form:
3843 \begin_layout LyX-Code
3847 Position_im_Zeichensatz String
3850 \begin_layout Standard
3851 Um beispielsweise dem String (
3855 im vorigen Abschnitt)
3856 \begin_inset Quotes gld
3864 \begin_inset Quotes grd
3867 das ent\SpecialChar \-
3870 de Zeichen im ISO-8859-1 Zeichensatz (233) zuzuweisen, benutzt
3871 man folgenden Ausdruck:
3874 \begin_layout LyX-Code
3882 \begin_layout Standard
3883 Wieder müssen den Zeichen
3884 \begin_inset Quotes gld
3894 \begin_inset Quotes grd
3898 \begin_inset Quotes gld
3906 \begin_inset Quotes grd
3909 ein Backslash vorangestellt werden.
3910 Beachten Sie, dass es durchaus möglich ist, dass dasselbe Zeichen (sinnvoll)
3911 zwei verschiedene Strings repräsentieren kann.
3922 \begin_layout LyX-Code
3934 \begin_inset Newline newline
3950 \begin_layout Standard
3951 Wenn LyX kein passendes Zeichen für einen String finden kann, der durch
3952 eine Tastensequenz erzeugt wurde, wird es versuchen, falls der String wie
3953 ein akzentuierter Buchstabe aussieht, auf dem Bildschirm den Buchstaben
3954 mit Akzent selbst zu zeichnen.
3957 \begin_layout Subsection
3958 Tote Tasten definieren
3961 \begin_layout Standard
3964 Anmerkung des Übersetzers: An dieser Stelle weiche ich krass vom Original
3966 Der englische Text ist hier viel zu weitschweifig und ein bisschen konfus.
3970 \begin_layout Standard
3971 Es gibt noch eine zweite Möglichkeit, internationale Buchstaben mit Hilfe
3980 zu erzeugen -- nämlich direkt in der
3985 Dazu ein einfaches Beispiel:
3988 \begin_layout Standard
3989 Nehmen wir an, Sie benötigen eine Zirkumflex-Taste.
3990 Diese können Sie definieren, indem Sie in der
3994 atei folgende Zeile einfügen:
3997 \begin_layout Standard
4002 bind "asciicircum" "accent-circumflex"
4005 \begin_layout Standard
4010 die Bezeichnung, die das X11-System für die
4011 \begin_inset Quotes gld
4019 \begin_inset Quotes grd
4026 \begin_layout Plain Layout
4027 Die Bezeichnungen anderer Symbole lassen sich ganz gut aus einer c-Include-Datei
4033 Meist findet man sie in
4035 /usr/X11/include/X11/
4044 accent-circum\SpecialChar \-
4047 ist ein LyX-Befehl, der den Zirkumflex-Akzent erzeugt.
4050 \begin_layout Standard
4051 Leider unterscheidet sich die Wirkungsweise der toten Tasten, die in
4055 definiert wurden, merklich von der, die in Abschnitt
4056 \begin_inset space ~
4060 \begin_inset CommandInset ref
4062 reference "sub:Die-.kmap-Datei"
4069 \begin_layout Subsection
4070 Ihre Sprachkonfiguration einstellen
4073 \begin_layout Standard
4078 atei so verändern, dass Ihre gewünschte Sprachumgebung automatisch geladen
4079 wird, wenn LyX gestartet wird.
4080 Dieser Abschnitt beschreibt Befehle, die folgendes spezifizieren:
4083 \begin_layout Itemize
4084 Standard-, erste und zweite Tastaturbelegung
4087 \begin_layout Itemize
4088 Zeichensatzkodierung
4091 \begin_layout Standard
4096 atei finden Sie verschiedene Beispiele, wie man sie konfigurieren kann.
4097 Zum Beispiel können Sie einen Eintrag für eine Tastaturbelegung folgendermaßen
4101 \begin_layout LyX-Code
4104 bind "american" "keymap-primary"
4107 \begin_layout Standard
4115 \begin_layout LyX-Code
4118 bind "Alt+," "accent-cedilla"
4121 \begin_layout Standard
4122 oder eine Zeichensatzkodierung festlegen:
4125 \begin_layout LyX-Code
4126 # Die Norm für die Bildschirmzeichensätze
4129 \begin_layout LyX-Code
4130 # Voreinstellung ist iso8859-1.
4133 \begin_layout LyX-Code
4139 \begin_layout Chapter
4140 Installieren neuer Textklassen, Layouts und Vorlagen
4141 \begin_inset CommandInset label
4143 name "cha:Installieren-neuer-Textklassen"
4150 \begin_layout Standard
4151 In diesem Abschnitt wird beschrieben, wie Sie beim Installieren neuer Layout-
4152 und Vorlagedateien vorgehen müssen, außerdem auch eine kleine Auf\SpecialChar \textcompwordmark{}
4154 wie man neue Dokumentenklassen für LaTeX korrekt installiert.
4155 Zunächst ein paar Definitionen:
4158 \begin_layout Standard
4163 ist eine LaTeX-Datei (normalerweise mit der Endung
4171 ), die das Format einer speziellen Art von Dokument beschreibt, etwa Artikel,
4172 Brief usw., und auch alle dazu notwendigen Befehle definiert.
4175 \begin_layout Standard
4180 ist eine LyX-Datei, die einer LaTeX-Dokumentenklasse ent\SpecialChar \-
4182 mitteilt, wie die diversen Formatelemente am Bildschirm dar\SpecialChar \-
4185 sollen, damit der Eindruck möglichst gut dem späteren Druckbild entspricht.
4186 Genauer gesagt beschreibt eine Layoutdatei eine
4190 , das interne Konstrukt, welches LyX verwendet, um den Text am Bildschirm
4194 \begin_layout Standard
4203 sind somit in gewisser Weise äquivalent, aber es ist besser, die Datei
4204 als Layout zu bezeichnen und die interne Realisation im Speicher von LyX
4206 Eine Vorlage ist einfach ein LyX-Dokument, welches bereits einige vordefinierte
4207 Einträge für eine bestimmte Textklasse enthält.
4208 Derartige Vorlagen sind beispielsweise für Briefe oder Artikel für Zeitschrifte
4212 \begin_layout Section
4213 Installation eines neuen LaTeX-Paketes
4216 \begin_layout Standard
4217 Bei manchen TeX-Installationen fehlt möglicherweise das eine oder andere
4218 Paket, das Sie gerne mit LyX verwenden würden.
4219 Zum Beispiel wollen Sie FoilTeX verwenden, ein Paket zur Erstellung von
4220 Dias und Folien für Overheadprojektoren.
4221 Moderne LaTeX-Distributionen wie TeXLive (2008 oder neuer) oder MiKTeX
4222 besitzen ein grafisches Programm um solche Pakete zu installieren.
4224 \begin_inset space \thinspace{}
4228 bei MiKTeX starten Sie das Programm
4229 \begin_inset Quotes gld
4233 \begin_inset space ~
4237 \begin_inset Quotes grd
4240 um eine Liste mit den verfügbaren Paketen zu bekommen.
4241 Um eines davon zu installieren, rechts-klicken Sie oder benutzen den entspreche
4242 nden Werkzeugleistenknopf.
4245 \begin_layout Standard
4246 Falls Ihre LaTeX-Distribution keinen Paketmanager besitzt, oder falls das
4247 Paket nicht direkt über Ihre Distribution verfügbar ist, folgen Sie diesen
4248 Schritten um es manuell zu installieren:
4251 \begin_layout Enumerate
4252 Besorgen Sie sich das Paket von
4253 \begin_inset CommandInset href
4256 target "http://www.ctan.org/"
4260 oder einer anderen Quelle.
4263 \begin_layout Enumerate
4264 Falls das Paket eine Datei mit der Endung
4265 \begin_inset Quotes gld
4269 \begin_inset Flex Code
4272 \begin_layout Plain Layout
4279 \begin_inset Quotes grd
4282 enthält (was bei FoilTeX der Fall ist), dann öffnen sie eine Kommandozeile
4283 wechseln in das Verzeichnis der Datei und führen den Befehl
4284 \begin_inset Newline newline
4292 \begin_inset Newline newline
4296 Sie haben damit dass Paket entpackt und haben alle Dateien um es zu installiere
4298 Die meisten LaTeX-Pakete sind nicht gepackt und man kann direkt mit der
4299 Installation beginnen:
4302 \begin_layout Enumerate
4303 Nun müssen Sie entscheiden, ob das Paket für alle Nutzer oder nur für Sie
4304 verfügbar sein soll.
4308 \begin_layout Enumerate
4309 Bei *nix Systemen (Linux, OSX, etc.), wenn Sie das Paket für alle Nutzer
4310 installieren möchten, installieren Sie es in den lokalen TeX Ordner; anderenfal
4311 ls installieren Sie es in dein eigenen
4312 \begin_inset Quotes gld
4316 \begin_inset Quotes grd
4320 Wo man diese Ordner anlegt, sofern sie nicht schon existieren, hängt von
4322 Dazu schauen Sie in die Datei
4323 \begin_inset Flex Code
4326 \begin_layout Plain Layout
4336 \begin_layout Plain Layout
4337 Diese befindet sich normalerweise im Ordner
4342 Falls nicht, führen Sie den Befehl
4343 \begin_inset Flex Code
4346 \begin_layout Plain Layout
4352 aus, um sie zu lokalisieren.
4357 Der Ort des lokalen TeX Ordners ist in der Variable
4358 \begin_inset Flex Code
4361 \begin_layout Plain Layout
4367 definiert; es ist üblicherweise der Pfad
4369 /usr/local/share/texmf/
4372 Der Ort des Benutzer-TeX Ordners ist in der Variable
4373 \begin_inset Flex Code
4376 \begin_layout Plain Layout
4382 definiert und ist üblicherweise der Pfad
4387 (Wenn diese Variablen nicht vordefiniert sind, müssen Sie diese selbst
4388 definieren.) Sie brauchen wahrscheinlich Root-Rechte um in den lokalen TeX
4389 Ordner zu schreiben, beim Benutzer-TeX Ordner ist die nicht nötig.
4390 \begin_inset Newline newline
4393 Allgemein empfiehlt es sich, Pakete in den Benutzer-TeX Ordner zu installieren,
4394 da dieser nicht verändert oder gar überschrieben wird, wenn Sie ihr System
4396 Des Weiteren wird er zusammen mit Ihren Nutzerdaten gesichert, wenn Sie
4397 ein Backup machen (was Sie natürlich regelmäßig tun).
4400 \begin_layout Enumerate
4401 Bei Windows, wenn Sie das Paket für alle Nutzer installieren möchten, gehen
4402 Sie in den Ordner, in dem LaTeX installiert ist und wechseln dort in das
4410 (Verwendet man MiKTeX, wäre es standardmäßig der Ordner
4422 .) Legen Sie dort einen neuen Ordner mit dem Namen
4423 \begin_inset Quotes gld
4427 \begin_inset Quotes grd
4430 an und kopieren Sie alle Dateien das Pakets hinein.
4431 Wenn das Paket nur für den aktuellen Benutzer verfügbar sein soll bzw.
4432 Sie keine Administrator-Rechte haben, tun Sie dasselbe, aber im lokalen
4435 \begin_inset space \thinspace{}
4440 \begin_inset space ~
4443 2.8 wäre das unter WinXP der Ordner
4444 \begin_inset Newline newline
4451 Dokumente und Einstellungen
4458 \begin_inset Newline newline
4462 \begin_inset Phantom HPhantom
4465 \begin_layout Plain Layout
4484 \begin_inset Newline newline
4487 , unter WinVista wäre es der Ordner
4488 \begin_inset Newline newline
4515 \begin_layout Enumerate
4516 Jetzt muss man LaTeX nur noch mitteilen, dass es neue Dateien gibt.
4517 Die ist je nach LaTeX-Distribution anders:
4521 \begin_layout Enumerate
4522 Bei TeXLive führen Sie von einer Kommandozeile den Befehl
4523 \begin_inset Flex Code
4526 \begin_layout Plain Layout
4533 Wenn Sie das Paket für alle Nutzer installiert haben, brauchen sie dazu
4534 wahrscheinlich Root-Rechte.
4537 \begin_layout Enumerate
4538 Bei MiKTeX, wenn Sie das Paket für alle Nutzer installiert haben, starten
4540 \begin_inset Quotes gld
4544 \begin_inset space ~
4548 \begin_inset Quotes grd
4551 und drücken dann auf den Kopf
4552 \begin_inset Quotes gld
4556 \begin_inset Quotes grd
4560 Anderenfalls starten Sie das Programm
4561 \begin_inset Quotes gld
4565 \begin_inset Quotes grd
4568 und machen dasselbe.
4572 \begin_layout Enumerate
4573 Nun muss man LyX noch mitteilen, dass es neue Pakete gibt.
4574 Verwenden Sie dazu in LyX das Menü
4576 Werkzeuge\SpecialChar \menuseparator
4578 \begin_inset space \space{}
4583 und starten LyX danach neu.
4586 \begin_layout Standard
4587 Nun ist das Paket installiert.
4588 In unserem Beispiel wird nun die Dokumentklasse
4589 \begin_inset Flex Code
4592 \begin_layout Plain Layout
4594 \begin_inset space ~
4601 \begin_layout Plain Layout
4615 Dokument\SpecialChar \menuseparator
4616 Einstellungen\SpecialChar \menuseparator
4622 \begin_layout Standard
4623 Möchten sie eine LaTeX-Dokumentklasse verwenden, die generell nicht im Menü
4626 Dokument\SpecialChar \menuseparator
4627 Einstellungen\SpecialChar \menuseparator
4630 gelistet ist, müssen Sie dafür selbst ein
4631 \begin_inset Quotes gld
4635 \begin_inset Quotes grd
4639 Dies ist das Thema des nächsten Abschnitts.
4642 \begin_layout Section
4646 \begin_layout Standard
4649 This section describes the various sorts of LyX files that contain layout
4651 These files describe various paragraph and character styles, determining
4652 how LyX should display them and how they should be translated into LaTeX,
4653 DocBook, XHTML, or whatever output format is being used.
4657 \begin_layout Standard
4660 We shall try to provide a thorough description of the process of writing
4662 However, there are so many different types of documents supported even
4663 by just LaTeX that we can't hope to cover every different possibility or
4664 problem you might encounter.
4665 The LyX users' list is frequented by people with lots of experience with
4666 layout design who are willing to share what they've learned, so please
4667 feel free to ask questions there.
4670 \begin_layout Standard
4673 As you prepare to write a new layout, it is extremely helpful to look at
4674 the layouts distributed with LyX.
4675 If you write a LyX layout for a LaTeX document class that might also be
4676 used by others, or write a module that might be useful to others, then
4677 you should consider posting your layout to the
4678 \begin_inset CommandInset href
4680 name "layout section on the LyX wiki"
4681 target "http://wiki.lyx.org/Layouts/Layouts"
4685 or even to the LyX developers' list, so that it might be included in LyX
4690 \begin_layout Plain Layout
4693 Note that LyX is licensed under the General Public License, so any material
4694 that is contributed to LyX must be similarly licensed.
4702 \begin_layout Subsection
4704 \begin_inset CommandInset label
4706 name "sub:Layout-Module"
4713 \begin_layout Standard
4716 We have spoken to this point about `layout files'.
4717 But there are different sorts of files that contain layout information.
4718 Layout files, strictly so called, have the
4719 \begin_inset Flex Code
4722 \begin_layout Plain Layout
4730 extension and provide LyX with information about document classes.
4731 As of LyX 1.6, however, layout information can also be contained in layout
4737 \begin_inset Flex Code
4740 \begin_layout Plain Layout
4749 Modules are to LaTeX packages much as layouts are to LaTeX classes, and
4750 some modules—such as the
4751 \begin_inset Flex Code
4754 \begin_layout Plain Layout
4762 module—specifically provide support for one package.
4763 In a sense, layout modules are similar to included
4767 \begin_layout Plain Layout
4770 These can have any extension, but by convention have the
4771 \begin_inset Flex Code
4774 \begin_layout Plain Layout
4788 \begin_inset Flex Code
4791 \begin_layout Plain Layout
4799 —in that modules are not specific to a given document class but may be used
4800 with many different classes.
4801 The difference is that using an included file with
4802 \begin_inset Flex Code
4805 \begin_layout Plain Layout
4813 requires editing that file.
4814 Modules, by contrast, are selected in the
4815 \begin_inset Flex MenuItem
4818 \begin_layout Plain Layout
4821 Document\SpecialChar \menuseparator
4830 \begin_layout Standard
4833 Building modules is the easiest way to get started with layout editing,
4834 since it can be as simple as adding a single new paragraph style or flex
4836 But modules may, in principle, contain anything a layout file can contain.
4839 \begin_layout Standard
4842 After creating a new module and copying it to the
4843 \begin_inset Flex Code
4846 \begin_layout Plain Layout
4854 folder, you will need to reconfigure and then restart LyX for the module
4855 to appear in the menu.
4856 However, changes you make to the module will be seen immediately, if you
4858 \begin_inset Flex MenuItem
4861 \begin_layout Plain Layout
4864 Document\SpecialChar \menuseparator
4870 , highlight something, and then hit
4871 \begin_inset Quotes eld
4875 \begin_inset Quotes erd
4881 It is strongly recommended that you save your work before doing this
4886 it is strongly recommended that you not attempt to edit modules while simultaneo
4887 usly working on actual documents
4890 Though of course the developers strive to keep LyX stable in such situations,
4891 syntax errors and the like in your module file could cause strange behavior.
4894 \begin_layout Subsubsection
4898 \begin_layout Standard
4901 Modules are to LyX as packages are to LaTeX.
4902 Sometimes, however, you find yourself wanting a specific inset or character
4903 style just for one document and writing a module that will also be available
4904 to other documents makes little sense.
4905 What you need is LyX's
4906 \begin_inset Quotes eld
4910 \begin_inset Quotes erd
4916 \begin_layout Standard
4919 You will find it under
4921 Document\SpecialChar \menuseparator
4922 Settings\SpecialChar \menuseparator
4926 The large text box allows you to enter anything that you might enter in
4927 a layout file or module.
4928 You can think of a document's local layout, in fact, as a module that belongs
4930 So, in particular, you must enter a
4931 \begin_inset Flex Code
4934 \begin_layout Plain Layout
4943 Any format is acceptable, but one would normally use the format current
4945 (In LyX 2.0, the current layout format is 35.) You should be aware that local
4946 layout is not supported by versions of LyX prior to 1.6, so you should not
4947 use it if you want to be able to export your document to LyX 1.5 or earlier
4948 (without, that is, losing the local layout information).
4949 If you wish to be able to export to 1.6---local layout is supported in 1.6,
4950 though there is no UI for it---then you should use format 11 and, of course,
4951 use only layout constructs that were available in LyX 1.6.
4954 \begin_layout Standard
4957 When you have entered something in the
4958 \begin_inset Flex Code
4961 \begin_layout Plain Layout
4969 pane, LyX will enable the
4970 \begin_inset Quotes eld
4974 \begin_inset Quotes erd
4977 button at the bottom.
4978 Clicking this button will cause LyX to determine whether what you have
4979 entered is valid layout information for the chosen format.
4980 LyX will report the result but, unfortunately, will not tell you what errors
4981 there might have been.
4982 These will be written to the terminal, however, if LyX is started from
4984 You will not be permitted to save your local layout until you have entered
4988 \begin_layout Standard
4991 The warnings at the end of the previous section apply here, too.
4992 Do not play with local layout while you are actually working, especially
4993 if you have not saved your document.
4994 That said, using local layout with a test document can be a very convenient
4995 way to try out layout ideas, or even to start developing a module.
4998 \begin_layout Subsection
5000 \begin_inset Flex MenuItem
5003 \begin_layout Plain Layout
5012 \begin_layout Standard
5015 There are two situations you are likely to encounter when wanting to support
5016 a new LaTeX document class, involving style (
5017 \begin_inset Flex Code
5020 \begin_layout Plain Layout
5028 ) files and LaTeX2e class (
5029 \begin_inset Flex Code
5032 \begin_layout Plain Layout
5041 Supporting a style file is usually fairly easy.
5042 Supporting a new class file is a bit harder.
5043 We'll discuss the former in this section and the latter in the next.
5044 Similar remarks apply, of course, if you want to support a new DocBook
5048 \begin_layout Standard
5051 The easier case is the one in which your new document class is provided
5052 as a style file that is to be used in conjunction with an already supported
5054 For the sake of the example, we'll assume that the style file is called
5056 \begin_inset Flex MenuItem
5059 \begin_layout Plain Layout
5067 and that it is meant to be used with
5068 \begin_inset Flex MenuItem
5071 \begin_layout Plain Layout
5079 , which is a standard class.
5083 \begin_layout Standard
5086 Start by copying the existing class's layout file into your local directory:
5090 \begin_layout Plain Layout
5093 Of course, which directory is your local directory will vary by platform,
5094 and LyX allows you to specify your local directory on startup, too, using
5096 \begin_inset Flex Code
5099 \begin_layout Plain Layout
5115 \begin_layout LyX-Code
5118 cp report.layout ~/.lyx/layouts/myclass.layout
5121 \begin_layout Standard
5125 \begin_inset Flex Code
5128 \begin_layout Plain Layout
5136 and change the line:
5139 \begin_layout LyX-Code
5144 DeclareLaTeXClass{report}
5147 \begin_layout Standard
5153 \begin_layout LyX-Code
5158 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
5161 \begin_layout Standard
5167 \begin_layout LyX-Code
5171 \begin_inset Newline newline
5177 \begin_inset Newline newline
5183 \begin_layout Standard
5186 near the top of the file.
5189 \begin_layout Standard
5192 Start LyX and select
5193 \begin_inset Flex MenuItem
5196 \begin_layout Plain Layout
5199 Tools\SpecialChar \menuseparator
5206 Then restart LyX and try creating a new document.
5208 \begin_inset Flex MenuItem
5211 \begin_layout Plain Layout
5219 " as a document class option in the
5220 \begin_inset Flex MenuItem
5223 \begin_layout Plain Layout
5226 Document\SpecialChar \menuseparator
5233 It is likely that some of the sectioning commands and such in your new
5234 class will work differently from how they worked in the base class—
5235 \begin_inset Flex Code
5238 \begin_layout Plain Layout
5246 in this example—so you can fiddle around with the settings for the different
5247 sections if you wish.
5248 The layout information for sections is contained in
5249 \begin_inset Flex Code
5252 \begin_layout Plain Layout
5260 , but you do not need to copy and change this file.
5261 Instead, you can simply add your changes to your layout file, after the
5263 \begin_inset Flex Code
5266 \begin_layout Plain Layout
5274 , which itself includes
5275 \begin_inset Flex Code
5278 \begin_layout Plain Layout
5287 For example, you might add these lines:
5290 \begin_layout LyX-Code
5296 \begin_layout LyX-Code
5302 \begin_layout LyX-Code
5308 \begin_layout LyX-Code
5314 \begin_layout LyX-Code
5320 \begin_layout Standard
5323 to change the font for chapter headings to sans-serif.
5324 This will override (or, in this case, add to) the existing declaration
5325 for the Chapter style.
5329 \begin_layout Standard
5332 Your new package may also provide commands or environments not present in
5334 In this case, you will want to add these to the layout file.
5336 \begin_inset CommandInset ref
5338 reference "sec:Das-Layout-Dateiformat"
5342 for information on how to do so.
5345 \begin_layout Standard
5349 \begin_inset Flex MenuItem
5352 \begin_layout Plain Layout
5360 can be used with several different document classes, and even if it cannot,
5361 you might find it easiest just to write a module that you can load with
5363 The simplest possible such module would be:
5366 \begin_layout LyX-Code
5371 DeclareLyXModule{My Package}
5374 \begin_layout LyX-Code
5380 \begin_layout LyX-Code
5383 #Support for mypkg.sty.
5386 \begin_layout LyX-Code
5390 \begin_inset Newline newline
5396 \begin_layout LyX-Code
5400 \begin_inset Newline newline
5406 \begin_layout LyX-Code
5410 \begin_inset Newline newline
5416 \begin_inset Newline newline
5422 \begin_layout Standard
5425 A more complex module might modify the behavior of some existing constructs
5426 or define some new ones.
5428 \begin_inset CommandInset ref
5430 reference "sec:Das-Layout-Dateiformat"
5437 \begin_layout Subsection
5439 \begin_inset Flex MenuItem
5442 \begin_layout Plain Layout
5451 \begin_layout Standard
5454 There are two possibilities here.
5455 One is that the class file is itself based upon an existing document class.
5456 For example, many thesis classes are based upon
5457 \begin_inset Flex MenuItem
5460 \begin_layout Plain Layout
5469 To see whether yours is, look for a line like
5472 \begin_layout LyX-Code
5480 \begin_layout Standard
5484 If so, then you may proceed largely as in the previous section, though
5486 \begin_inset Flex Code
5489 \begin_layout Plain Layout
5497 line will be different.
5498 If your new class is
5499 \begin_inset Flex Code
5502 \begin_layout Plain Layout
5510 and it is based upon
5511 \begin_inset Flex Code
5514 \begin_layout Plain Layout
5522 , then the line should read:
5526 \begin_layout Plain Layout
5529 And it will be easiest if you save the file to
5530 \begin_inset Flex Code
5533 \begin_layout Plain Layout
5541 : LyX assumes that the document class has the same name as the layout file.
5550 \begin_layout LyX-Code
5555 DeclareLaTeXClass[thesis,book]{thesis}
5558 \begin_layout Standard
5561 If, on the other hand, the new class is not based upon an existing class,
5562 you will probably have to
5563 \begin_inset Quotes eld
5567 \begin_inset Quotes erd
5571 We strongly suggest copying an existing layout file which uses a similar
5572 LaTeX class and then modifying it, if you can do so.
5573 At least use an existing file as a starting point so you can find out what
5574 items you need to worry about.
5575 Again, the specifics are covered below.
5578 \begin_layout Subsection
5580 \begin_inset CommandInset label
5582 name "sub:Vorlagen-erstellen"
5589 \begin_layout Standard
5592 Once you have written a layout file for a new document class, you might
5593 want to consider writing a
5598 A template acts as a kind of tutorial for your layout, showing how it might
5599 be used, though containing dummy content.
5600 You can of course look at the various templates included with LyX for ideas.
5603 \begin_layout Standard
5606 Templates are created just like usual documents: using LyX.
5607 The only difference is that usual documents contain all possible settings,
5608 including the font scheme and the paper size.
5609 Usually a user doesn't want a template to overwrite his preferred settings
5610 for such parameters.
5611 For that reason, the designer of a template should remove the corresponding
5613 \begin_inset Flex Code
5616 \begin_layout Plain Layout
5627 \begin_inset Flex Code
5630 \begin_layout Plain Layout
5640 from the template LyX file.
5641 This can be done with any simple text-editor, for example
5642 \begin_inset Flex Code
5645 \begin_layout Plain Layout
5654 \begin_inset Flex Code
5657 \begin_layout Plain Layout
5669 \begin_layout Standard
5672 Put the edited template files you create in
5673 \begin_inset Flex Code
5676 \begin_layout Plain Layout
5684 , copy the ones you use from the global template directory in
5685 \begin_inset Flex Code
5688 \begin_layout Plain Layout
5696 to the same place, and redefine the template path in the
5697 \begin_inset Flex MenuItem
5700 \begin_layout Plain Layout
5703 Tools\SpecialChar \menuseparator
5704 Preferences\SpecialChar \menuseparator
5713 \begin_layout Standard
5716 Note, by the way, that there is a template which has a particular meaning:
5717 \begin_inset Newline newline
5721 \begin_inset Flex Code
5724 \begin_layout Plain Layout
5733 This template is loaded every time you create a new document with
5734 \begin_inset Flex MenuItem
5737 \begin_layout Plain Layout
5740 File\SpecialChar \menuseparator
5746 in order to provide useful defaults.
5747 To create this template from inside LyX, all you have to do is to open
5748 a document with the correct settings, and use the
5749 \begin_inset Flex MenuItem
5752 \begin_layout Plain Layout
5755 Save as Document Defaults
5763 \begin_layout Subsection
5764 Alte Layout-Dateien auf den neuesten Stand bringen
5767 \begin_layout Standard
5770 The format of layout files changes with each LyX release, so old layout
5771 files need to be converted to the new format.
5772 This process has been automated since LyX 1.4: If LyX reads a layout file
5773 in an older format, it automatically calls the script
5774 \begin_inset Flex Code
5777 \begin_layout Plain Layout
5785 to convert it to a temporary file in current format.
5786 The original file is left untouched.
5787 If you use the layout file often, then, you may want to convert it permanently,
5788 so that LyX does not have to do so itself every time.
5789 To do this, you can call the converter manually:
5792 \begin_layout LyX-Code
5795 mv myclass.layout myclass.old
5798 \begin_layout LyX-Code
5801 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
5804 \begin_layout Standard
5808 \begin_inset Flex Code
5811 \begin_layout Plain Layout
5819 with the name of your LyX system directory, of course.
5822 \begin_layout Standard
5825 Note that manual conversion does not affect included files, so these will
5826 have to be converted separately.
5829 \begin_layout Section
5830 Das Layout-Dateiformat
5831 \begin_inset CommandInset label
5833 name "sec:Das-Layout-Dateiformat"
5840 \begin_layout Standard
5843 When it's finally time to get your hands dirty and create or edit your own
5844 layout file, the following sections describe what you're up against.
5845 Our advice is to go slowly, save and test often, listen to soothing music,
5846 and enjoy one or two of your favorite adult beverages; more if you are
5847 getting particularly stuck.
5848 It's really not that hard, except that the multitude of options can become
5849 overwhelming if you try to do too much in one sitting.
5850 Go have another adult beverage, just for good measure.
5853 \begin_layout Standard
5856 Note that all the tags used in layout files are case-insensitive.
5858 \begin_inset Flex Code
5861 \begin_layout Plain Layout
5870 \begin_inset Flex Code
5873 \begin_layout Plain Layout
5882 \begin_inset Flex Code
5885 \begin_layout Plain Layout
5893 are really the same tag.
5894 The possible values are printed in brackets after the feature's name.
5895 The default value if a feature isn't specified inside a text class-description
5897 \begin_inset Flex Code
5900 \begin_layout Plain Layout
5910 If the argument has a data type like
5911 \begin_inset Quotes eld
5915 \begin_inset Quotes erd
5919 \begin_inset Quotes eld
5923 \begin_inset Quotes erd
5926 , the default is shown like this:
5927 \begin_inset Flex Code
5930 \begin_layout Plain Layout
5943 \begin_layout Subsection
5944 Deklaration einer neuen Textklasse
5947 \begin_layout Standard
5948 Zeilen, die mit einem
5952 beginnen, sind Kommentare.
5953 Mit einer Ausnahme: alle Textklassen sollten mit Zeilen ähnlich wie den
5957 \begin_layout LyX-Code
5960 #% Do not delete the line below; configure depends on this
5963 \begin_layout LyX-Code
5975 \begin_layout Plain Layout
5988 \begin_layout Standard
5989 Die zweite Zeile wird benötigt, wenn Sie LyX konfigurieren.
5990 Die Textklassen-Datei wird von dem LaTeX-Skript
5993 \begin_inset Flex URL
5996 \begin_layout Plain Layout
6005 gelesen, und zwar in einem speziellen Modus, in dem
6009 -Zeichen ignoriert werden.
6010 Die erste Zeile ist einfach ein LaTeX-Kommentar, in der zweiten wird die
6011 Textklasse deklariert.
6013 \begin_inset Newline newline
6020 , die mit diesen beiden Zeilen beginnt, definiert eine Textklasse mit dem
6025 und benutzt die LaTeX-Dokumentenklasse
6034 ist auch die Beschreibung, die später im Popup-Menü
6036 Dokument\SpecialChar \menuseparator
6043 \begin_layout Standard
6044 Angenommen, Sie möchten Ihre eigene Textklasse schreiben, welche die LaTeX-Doku\SpecialChar \-
6051 benutzt, in der Sie aber das Aussehen der Kopfzeile verändert haben.
6052 Wenn Sie dann Ihre Textklasse in eine Datei namens
6055 \begin_inset Newline linebreak
6060 schreiben, sollten die ersten beiden Zeilen der Datei etwa so aussehen:
6063 \begin_layout LyX-Code
6066 #% Do not delete the line below; configure depends on this
6069 \begin_layout LyX-Code
6081 \begin_layout Plain Layout
6091 XClass[article]{article (with my own headings)}
6094 \begin_layout Standard
6095 Auf diese Weise deklarieren Sie eine Textklasse
6103 \begin_layout Plain Layout
6114 verwendet und (im Popup-Menü) beschrieben wird mit:
6116 article (with my own headings)
6119 Falls Ihre Textklasse auch noch von weiteren Paketen abhängt, können Sie
6123 \begin_layout LyX-Code
6126 #% Do not delete the line below; configure depends on this
6129 \begin_layout LyX-Code
6141 \begin_layout Plain Layout
6151 XClass[article,foo.sty]{article (with my own head
6155 \begin_layout Plain Layout
6165 \begin_layout Standard
6166 Dadurch wird angezeigt, dass Ihre Klasse auch das Paket
6171 Schließlich können Sie auch Klassen für DocBook festlegen.
6172 Eine typische Deklaration sieht so aus:
6175 \begin_layout LyX-Code
6179 \begin_layout LyX-Code
6182 #% Do not delete the line below; configure depends on this
6185 \begin_layout LyX-Code
6190 DeclareDocBookClass[article]{SGML (DocBook article)}
6193 \begin_layout Standard
6194 Diesen Deklarationen kann außerdem ein optionaler Parameter zugefügt werden,
6195 der den Namen der Dokumentenklasse festlegt (hier ist aber keine Liste
6199 \begin_layout Standard
6200 Wenn Sie eine Textklasse nach Ihrem Geschmack erstellt haben, müssen Sie
6201 die Datei nur noch in das Verzeichnis
6207 \begin_layout Plain Layout
6220 kopieren und unter LyX den Menüpunkt
6222 Werkzeuge\SpecialChar \menuseparator
6224 \begin_inset space \space{}
6230 Nach dem Neustart von LyX sollte Ihre Textklasse im Popup-Menü
6232 Dokument\SpecialChar \menuseparator
6238 \begin_layout Subsection
6241 The Module declaration
6244 \begin_layout Standard
6247 A module must begin with a line like the following:
6250 \begin_layout LyX-Code
6253 DeclareLyXModule[endnotes.sty]{Endnotes}
6256 \begin_layout Standard
6259 The mandatory argument, in curly brackets, is the name of the module, as
6261 \begin_inset Flex MenuItem
6264 \begin_layout Plain Layout
6267 Document\SpecialChar \menuseparator
6268 Settings\SpecialChar \menuseparator
6275 The argument in square brackets is optional: It declares any LaTeX packages
6276 on which the module depends.
6277 Please note that only packages about which LyX knows should be listed in
6278 the square brackets.
6282 \begin_layout Plain Layout
6285 The list of such packages is documented only in the source code.
6290 LyX will not check for arbitrary packages.
6291 It is also possible to use the form
6292 \begin_inset Flex MenuItem
6295 \begin_layout Plain Layout
6303 as an optional argument, which declares that the module can only be used
6304 when there exists a conversion chain between the formats `
6305 \begin_inset Flex Code
6308 \begin_layout Plain Layout
6317 \begin_inset Flex Code
6320 \begin_layout Plain Layout
6331 \begin_layout Standard
6334 The module declaration should then be followed by lines like the following
6338 \begin_layout Plain Layout
6341 Preferably in English if the module should be published with LyX.
6342 This description will appear in the list of messages to be translated and
6343 will be thus translated with the next interface update.
6351 \begin_layout LyX-Code
6355 \begin_layout LyX-Code
6356 #Adds an endnote command, in addition to footnotes.
6360 \begin_layout LyX-Code
6361 #You will need to add
6363 theendnotes in TeX code where you
6366 \begin_layout LyX-Code
6367 #want the endnotes to appear.
6371 \begin_layout LyX-Code
6375 \begin_layout LyX-Code
6376 #Requires: somemodule | othermodule
6379 \begin_layout LyX-Code
6380 #Excludes: badmodule
6383 \begin_layout Standard
6386 The description is used in
6387 \begin_inset Flex MenuItem
6390 \begin_layout Plain Layout
6393 Document\SpecialChar \menuseparator
6394 Settings\SpecialChar \menuseparator
6400 to provide the user with information about what the module does.
6402 \begin_inset Flex Code
6405 \begin_layout Plain Layout
6413 line is used to identify other modules with which this one must be used;
6415 \begin_inset Flex Code
6418 \begin_layout Plain Layout
6426 line is used to identify modules with which this one may not be used.
6427 Both are optional, and, as shown, multiple modules should be separated
6428 with the pipe symbol: |.
6429 Note that the required modules are treated disjunctively:
6433 of the required modules must be used.
6438 excluded module may be used.
6439 Note that modules are identified here by their
6444 \begin_inset Flex Code
6447 \begin_layout Plain Layout
6457 \begin_inset Flex Code
6460 \begin_layout Plain Layout
6469 \begin_inset Flex Code
6472 \begin_layout Plain Layout
6483 \begin_layout Subsection
6487 \begin_layout Standard
6488 Die erste Zeile, die kein Kommentar ist, muss die Dateiformatnummer enthalten:
6491 \begin_layout Description
6494 \begin_inset Flex Code
6497 \begin_layout Plain Layout
6504 \begin_inset Flex Code
6507 \begin_layout Plain Layout
6516 The format of the layout file.
6519 \begin_layout Standard
6522 This tag was introduced with LyX 1.4.0.
6523 Layout files from LyX 1.3.x and earlier don't have an explicit file format
6524 and are considered to be of format 1.
6525 The format for the present version of LyX is format 21.
6526 But each version of LyX is capable of reading earlier versions' layout
6527 files, just as they are capable of reading files produced by earlier versions
6529 There is, however, no provision for converting to earlier formats.
6530 So LyX 1.6.x will not read layout files in format 21 but only files in format
6534 \begin_layout Subsection
6535 Allgemeine Parameter für Textklassen
6536 \begin_inset CommandInset label
6538 name "sub:Allgemeine-Parameter-für"
6545 \begin_layout Standard
6546 Nachfolgend allgemeine Parameter, die die Form des gesamten Dokumentes be\SpecialChar \-
6547 schrei\SpecialChar \-
6552 \begin_layout Description
6555 \begin_inset Flex Code
6558 \begin_layout Plain Layout
6567 Adds information that will be output in the
6568 \begin_inset Flex Code
6571 \begin_layout Plain Layout
6579 block when this document class is output to XHTML.
6580 Typically, this would be used to output CSS style information, but it can
6581 be used for anything that can appear in
6582 \begin_inset Flex Code
6585 \begin_layout Plain Layout
6595 \begin_inset Quotes eld
6599 \begin_inset Flex Code
6602 \begin_layout Plain Layout
6611 \begin_inset Quotes erd
6617 \begin_layout Description
6625 \begin_inset space ~
6629 \begin_inset Newline newline
6632 fügt Informationen zum LaTeX-Vorspann hinzu und muss mir
6639 \begin_layout Description
6642 \begin_inset Flex Code
6645 \begin_layout Plain Layout
6654 Defines formats for use in the display of bibliographic information.
6656 \begin_inset CommandInset ref
6658 reference "sub:Citation-format-description"
6664 \begin_inset Quotes eld
6668 \begin_inset Flex Code
6671 \begin_layout Plain Layout
6680 \begin_inset Quotes erd
6686 \begin_layout Description
6690 ClassOptions\SpecialChar \ldots{}
6695 \begin_inset space ~
6699 \begin_inset Newline newline
6702 Dieser Abschnitt beschreibt verschiedene globale Optionen, die von der Dokumente
6703 nklasse unterstützt werden.
6704 Eine detaillierte Beschreibung finden Sie in Abschnitt
6705 \begin_inset CommandInset ref
6707 reference "sub:Der-Abschnitt-ClassOptions"
6714 \begin_layout Description
6722 \begin_inset Flex Code
6725 \begin_layout Plain Layout
6734 \begin_inset space \thinspace{}
6738 \begin_inset Flex Code
6741 \begin_layout Plain Layout
6747 ] Gibt an, ob die Textklasse standardmäßig ein- oder zweispaltig gesetzt
6751 Dokument\SpecialChar \menuseparator
6754 \SpecialChar \ldots{}
6756 Diese Einstellung ist wichtig: Falls Ihre Textklasse standardmäßig zweispaltig
6757 gesetzt wird, Sie aber vergessen, das korrekt anzugeben, wird die Option
6771 \begin_inset space \space{}
6780 Dokument\SpecialChar \menuseparator
6783 \SpecialChar \ldots{}
6787 \begin_layout Description
6795 \begin_inset space ~
6799 \begin_inset Newline newline
6802 definiert einen neuen Zähler (siehe
6803 \begin_inset CommandInset ref
6805 reference "sub:Zähler"
6816 \begin_layout Description
6824 \begin_inset space ~
6828 \begin_inset Newline newline
6831 Dieser Parameter definiert den Standardzeichensatz des Dokuments.
6832 Eine genauere Beschreibung finden Sie in Abschnitt
6833 \begin_inset CommandInset ref
6835 reference "sub:Beschreibung-des-Zeichensatzes"
6842 \begin_layout Description
6847 \begin_inset space ~
6854 \begin_inset space ~
6858 \begin_inset Newline newline
6861 spezifiziert ein Modul, das standardmäßig zu dieser Dokumentklasse hinzugefügt
6863 string ist der Dateiname ohne die Erweiterung
6868 Sie können das Modul zwar entfernen, aber es bleibt von Beginn an aktiv.
6869 Es wird nur angewendet, wenn neue Dateien erstellt oder diese Klasse für
6870 ein vorhandenes Dokument gewählt werden.
6873 \begin_layout Description
6880 \begin_inset space ~
6888 \begin_inset Newline newline
6893 Dies ist das Layout für neu angelegte Absätze, normalerweise
6898 Fehlt dieser Eintrag, wird das erste definierte Layout verwendet; dennoch
6899 ist es sehr ratsam, diese Anweisung anzugeben.
6902 \begin_layout Description
6909 \begin_inset space ~
6918 \begin_inset space ~
6922 \begin_inset Newline newline
6925 zeigt an, dass das genannte Modul -- spezifiziert durch den Dateinamen ohne
6930 -- in dieser Dokumentklasse nicht benutzt werden kann.
6931 Dies könnte in einem Journal-spezifischen Layout benutzt werden, um zum
6932 Beispiel die Verwendung des theorems-sec-Moduls, das Theoreme abschnittsweise
6933 nummeriert, zu verhindern.
6938 in einem Modul benutzt werden.
6939 Module haben einen anderen Weg, andere Module auszuschließen (siehe
6940 \begin_inset CommandInset ref
6942 reference "sub:Layout-Module"
6949 \begin_layout Description
6957 \begin_inset space ~
6961 \begin_inset Newline newline
6964 definiert ein neues Gleitobjekt (siehe
6965 \begin_inset CommandInset ref
6967 reference "sub:Gleitobjekte"
6978 \begin_layout Description
6979 \begin_inset Flex Code
6982 \begin_layout Plain Layout
6990 Sets the information that will be output in the
6991 \begin_inset Flex Code
6994 \begin_layout Plain Layout
7002 block when this document class is output to XHTML.
7003 Note that this will completely override any prior
7004 \begin_inset Flex Code
7007 \begin_layout Plain Layout
7016 \begin_inset Flex Code
7019 \begin_layout Plain Layout
7029 \begin_inset Flex Code
7032 \begin_layout Plain Layout
7040 if you just want to add material to the preamble.) Must end with
7041 \begin_inset Quotes eld
7045 \begin_inset Flex Code
7048 \begin_layout Plain Layout
7057 \begin_inset Quotes erd
7063 \begin_layout Description
7064 \begin_inset Flex Code
7067 \begin_layout Plain Layout
7074 \begin_inset Flex Code
7077 \begin_layout Plain Layout
7085 The layout to use for the table of contents, bibliography, and so forth,
7086 when the document is output to HTML.
7087 For articles, this should normally be Section; for books, Chapter.
7088 If it is not given, then LyX will attempt to figure out which layout to
7092 \begin_layout Description
7093 \begin_inset Flex Code
7096 \begin_layout Plain Layout
7103 \begin_inset Flex Code
7106 \begin_layout Plain Layout
7114 Modifies the properties of the given counter.
7115 If the counter does not exist, the section is ignored.
7117 \begin_inset Quotes eld
7121 \begin_inset Flex Code
7124 \begin_layout Plain Layout
7133 \begin_inset Quotes erd
7137 \begin_inset Newline newline
7141 \begin_inset space ~
7145 \begin_inset CommandInset ref
7147 reference "sub:Zähler"
7151 for details on counters.
7154 \begin_layout Description
7155 \begin_inset Flex Code
7158 \begin_layout Plain Layout
7165 \begin_inset Flex Code
7168 \begin_layout Plain Layout
7176 Modifies the properties of the given paragraph style.
7177 If the style does not exist, the section is ignored.
7179 \begin_inset Quotes eld
7183 \begin_inset Flex Code
7186 \begin_layout Plain Layout
7195 \begin_inset Quotes erd
7201 \begin_layout Description
7209 \begin_inset space ~
7213 \begin_inset Newline newline
7216 Hiermit können Sie andere Dateien einbinden, die Definitionen für Textklassen
7218 Damit können Sie unnötige Mehrfachdefinitionen vermeiden.
7219 Beispielsweise binden die meisten Standardtextklassen die Datei
7223 ein, in der ein Großteil der Definitionen für Standardlayouts gemacht wird.
7226 \begin_layout Description
7234 \begin_inset space ~
7238 \begin_inset Newline newline
7241 definiert das Layout einer Einfügung (neu).
7248 kann auf eine vorhandene Einfügung angewendet werden oder eine neue, benutzerde
7249 finierte, zum Beispiel einen neuen Zeichenstil.
7251 \begin_inset CommandInset ref
7253 reference "sub:Flexible-Einfügungen-und"
7257 enthält weitere Einzelheiten.
7258 Diese Marke muss mit
7265 \begin_layout Description
7266 \begin_inset Flex Code
7269 \begin_layout Plain Layout
7276 \begin_inset Flex Code
7279 \begin_layout Plain Layout
7285 ] ist ein String dessen Länge die Breite des linken Randes festlegt, zum
7287 \begin_inset Quotes gld
7291 \begin_inset Flex Code
7294 \begin_layout Plain Layout
7301 \begin_inset Quotes grd
7307 \begin_layout Description
7308 \begin_inset Flex Code
7311 \begin_layout Plain Layout
7318 \begin_inset Flex Code
7321 \begin_layout Plain Layout
7329 This command deletes an existing counter, usually one defined in an included
7333 \begin_layout Description
7341 \begin_inset space ~
7345 \begin_inset Newline newline
7348 löscht ein vorhandenes Gleitobjekt.
7349 Dies ist besonders dann nützlich, wenn Sie ein Gleitobjekt, das in einer
7350 Eingabedatei definiert wurde, unterdrücken wollen.
7353 \begin_layout Description
7361 \begin_inset space ~
7365 \begin_inset Newline newline
7368 Mit diesem Befehl können Sie die Definition eines bereits mit
7374 ten Layouts rückgängig ma\SpecialChar \-
7376 Dies ist dann nützlich, wenn Sie ein Layout unterdrücken möchten, das in
7377 einer Datei definiert wird, die Sie mit
7384 \begin_layout Description
7392 \begin_inset space ~
7396 \begin_inset Newline newline
7401 A string indicating the file format (as defined in the Preferences dialog)
7402 produced by this class.
7403 It is mainly useful when OutputType is `literate' and one wants to define
7404 a new type of literate document.
7405 This string is reset to `docbook', `latex', or `literate' when the correspondin
7406 g OutputType parameter is encountered.
7409 \begin_layout Description
7417 \begin_inset space ~
7421 \begin_inset Newline newline
7424 ist eine Zeichenkette, die angibt, welche Dokumentart diese Klasse erzeugt.
7425 Zur Zeit gibt es folgende Möglichkeiten:
7440 \begin_layout Description
7455 \begin_inset Newline newline
7458 Der Standardseitenstil.
7459 Kann ebenfalls im Popup-Menü
7461 Dokument\SpecialChar \menuseparator
7467 \SpecialChar \ldots{}
7471 \begin_layout Description
7475 Preamble\SpecialChar \ldots{}
7480 \begin_inset space ~
7484 \begin_inset Newline newline
7487 An dieser Stelle können Sie LaTeX-Code angeben, der vor
7493 in die LaTeX-Ausgabe eingebunden wird.
7494 Zum Beispiel eigene Definitionen von LaTeX-Makros.
7497 \begin_layout Description
7505 \begin_inset Flex Code
7508 \begin_layout Plain Layout
7515 \begin_inset Flex Code
7518 \begin_layout Plain Layout
7527 \begin_inset space \thinspace{}
7531 \begin_inset Flex Code
7534 \begin_layout Plain Layout
7544 zeigt an, ob die Klasse bereits die Funktion
7549 Normalerweise ist eine Funktion der Name eines Paketes (
7557 ,\SpecialChar \ldots{}
7566 ,\SpecialChar \ldots{}
7568 Die vollständige Liste der unterstützten Funktionen ist leider nur in den
7569 LyX-Quellen dokumentiert -- in
7577 \begin_layout Plain Layout
7592 Hilfe\SpecialChar \menuseparator
7597 \begin_layout Plain Layout
7606 gibt einen Überblick über die unterstützten Pakete.
7609 \begin_layout Description
7610 \begin_inset Flex Code
7613 \begin_layout Plain Layout
7620 \begin_inset Flex Code
7623 \begin_layout Plain Layout
7629 ] zeigt an, dass dieses Layout die Funktionalität des Moduls
7630 \begin_inset Flex Code
7633 \begin_layout Plain Layout
7639 anbietet, das als Dateiname ohne die Erweiterung
7644 Dies wird typischerweise benutzt, wenn das Layout das Modul direkt benutzt
7646 \begin_inset Flex Code
7649 \begin_layout Plain Layout
7656 Es könnte auch in einem Modul benutzt werden, das eine andere Implementation
7657 derselben Funktion liefert.
7660 \begin_layout Description
7661 \begin_inset Flex Code
7664 \begin_layout Plain Layout
7671 \begin_inset Flex Code
7674 \begin_layout Plain Layout
7684 zeigt an, ob die Klasse die Funktion
7685 \begin_inset Flex Code
7688 \begin_layout Plain Layout
7695 Mehrfache Funktionen müssen durch Komma getrennt werden Beachten Sie, dass
7696 Sie nur unterstützte Funktionen anfordern können.
7700 \begin_inset Flex Code
7703 \begin_layout Plain Layout
7711 for a list of these.)
7714 \begin_layout Description
7715 \begin_inset Flex Code
7718 \begin_layout Plain Layout
7725 \begin_inset Flex Code
7728 \begin_layout Plain Layout
7734 ] ist ein String dessen Länge die Breite des rechten Randes festlegt, zum
7736 \begin_inset Quotes gld
7740 \begin_inset Flex Code
7743 \begin_layout Plain Layout
7750 \begin_inset Quotes grd
7756 \begin_layout Description
7757 \begin_inset Flex Code
7760 \begin_layout Plain Layout
7767 \begin_inset Flex Code
7770 \begin_layout Plain Layout
7776 ] legt die Nummerierungstiefe fest; korrespondiert mit dem LaTeX-Zähler
7778 \begin_inset Flex Code
7781 \begin_layout Plain Layout
7790 \begin_layout Description
7791 \begin_inset Flex Code
7794 \begin_layout Plain Layout
7801 \begin_inset Flex Code
7804 \begin_layout Plain Layout
7813 \begin_inset space \thinspace{}
7817 \begin_inset Flex Code
7820 \begin_layout Plain Layout
7826 ] Gibt an, ob der Text standardmäßig für ein- oder für zweiseitigen Druck
7829 \begin_inset Flex MenuItem
7832 \begin_layout Plain Layout
7833 Dokument\SpecialChar \menuseparator
7842 \begin_layout Description
7843 \begin_inset Flex Code
7846 \begin_layout Plain Layout
7853 \begin_inset Flex Code
7856 \begin_layout Plain Layout
7862 ] definiert einen neuen Absatzstil.
7863 Wenn er bereits existiert, werden stattdessen einige seiner Parameter neu
7866 \begin_inset Quotes gld
7870 \begin_inset Flex Code
7873 \begin_layout Plain Layout
7880 \begin_inset Quotes grd
7884 \begin_inset Newline newline
7888 \begin_inset space ~
7892 \begin_inset CommandInset ref
7894 reference "sub:Einzelne-Absatz-Layouts"
7898 für mehr über Absatzstile.
7901 \begin_layout Description
7902 \begin_inset Flex Code
7905 \begin_layout Plain Layout
7912 \begin_inset Flex Code
7915 \begin_layout Plain Layout
7921 ] ist der Name des Befehls oder der Umgebung, der für
7922 \begin_inset Flex Code
7925 \begin_layout Plain Layout
7931 benutzt werden soll.
7934 \begin_layout Description
7935 \begin_inset Flex Code
7938 \begin_layout Plain Layout
7945 \begin_inset Flex Code
7948 \begin_layout Plain Layout
7957 \begin_inset Flex Code
7960 \begin_layout Plain Layout
7966 ] gibt an, wie der Dokumenttitel aussehen soll.
7968 \begin_inset Flex Code
7971 \begin_layout Plain Layout
7977 bedeutet, dass das Makro namens
7978 \begin_inset Flex Code
7981 \begin_layout Plain Layout
7987 nach dem letzten Layout mit
7988 \begin_inset Quotes gld
7992 \begin_inset Flex Code
7995 \begin_layout Plain Layout
7997 \begin_inset space ~
8006 \begin_inset Quotes grd
8009 gesetzt werden soll.
8011 \begin_inset Flex Code
8014 \begin_layout Plain Layout
8020 ist für den Fall, dass alle Layouts mit
8021 \begin_inset Quotes gld
8025 \begin_inset Flex Code
8028 \begin_layout Plain Layout
8030 \begin_inset space ~
8039 \begin_inset Quotes grd
8043 \begin_inset Flex Code
8046 \begin_layout Plain Layout
8052 -Umgebung gesetzt werden sollen.
8055 \begin_layout Description
8056 \begin_inset Flex Code
8059 \begin_layout Plain Layout
8066 \begin_inset Flex Code
8069 \begin_layout Plain Layout
8075 ] legt fest, bis zu welcher Tiefe das Inhaltsverzeichnis gehen soll; korrespondi
8076 ert mit dem LaTeX-Zähler
8077 \begin_inset Flex Code
8080 \begin_layout Plain Layout
8089 \begin_layout Subsection
8095 \begin_inset CommandInset label
8097 name "sub:Der-Abschnitt-ClassOptions"
8104 \begin_layout Standard
8106 \begin_inset Flex Code
8109 \begin_layout Plain Layout
8115 kann folgende Einträge enthalten:
8118 \begin_layout Description
8119 \begin_inset Flex Code
8122 \begin_layout Plain Layout
8129 \begin_inset Flex Code
8132 \begin_layout Plain Layout
8138 ] Eine Liste verfügbarer Größen für den Hauptzeichensatz; die Einträge werden
8140 \begin_inset Quotes gld
8144 \begin_inset Flex Code
8147 \begin_layout Plain Layout
8154 \begin_inset Quotes grd
8160 \begin_layout Description
8161 \begin_inset Flex Code
8164 \begin_layout Plain Layout
8170 wird benutzt, um die DTD-Zeile mit XML-basierten Klassen zu setzen.
8172 \begin_inset Quotes gld
8175 -//OASIS//DTD DocBook V4.2//EN
8176 \begin_inset Quotes grd
8182 \begin_layout Description
8183 \begin_inset Flex Code
8186 \begin_layout Plain Layout
8193 \begin_inset Flex Code
8196 \begin_layout Plain Layout
8202 ] Sonstige Optionen für die Dokumentenklasse, die durch Komma getrennt werden.
8204 \begin_inset Flex Code
8207 \begin_layout Plain Layout
8219 Befehl als optionales Argument übergeben.
8222 \begin_layout Description
8223 \begin_inset Flex Code
8226 \begin_layout Plain Layout
8233 \begin_inset Flex Code
8236 \begin_layout Plain Layout
8237 string="empty|plain|headings|fancy"
8242 ] Eine Liste verfügbarer Seitenstile; die Einträge werden mit
8243 \begin_inset Quotes gld
8247 \begin_inset Flex Code
8250 \begin_layout Plain Layout
8257 \begin_inset Quotes grd
8263 \begin_layout Standard
8265 \begin_inset Flex Code
8268 \begin_layout Plain Layout
8275 \begin_inset Quotes gld
8279 \begin_inset Flex Code
8282 \begin_layout Plain Layout
8289 \begin_inset Quotes grd
8295 \begin_layout Subsection
8296 Einzelne Absatz-Layouts
8297 \begin_inset CommandInset label
8299 name "sub:Einzelne-Absatz-Layouts"
8306 \begin_layout Standard
8307 Eine Layoutbeschreibung für einen Absatz sieht wie folgt aus
8311 \begin_layout Plain Layout
8312 Sie können mit diesem Ausdruck entweder ein neues Layout definieren oder
8313 aber ein bereits definiertes umdefinieren.
8322 \begin_layout LyX-Code
8329 \begin_layout LyX-Code
8333 \begin_layout LyX-Code
8337 \begin_layout Standard
8338 Innerhalb des Blocks sind folgende Befehle erlaubt:
8341 \begin_layout Description
8342 \begin_inset Flex Code
8345 \begin_layout Plain Layout
8352 \begin_inset Flex Code
8355 \begin_layout Plain Layout
8360 , left, right, center
8365 ] Gibt an, ob der Text im Blocksatz linksbündig, rechtsbündig oder zentriert
8369 \begin_layout Description
8370 \begin_inset Flex Code
8373 \begin_layout Plain Layout
8380 \begin_inset Flex Code
8383 \begin_layout Plain Layout
8388 , left, right, center
8393 ] Eine Liste von möglichen Textausrichtungen, die durch Kommata voneinander
8395 (Einige LaTeX-Stile verbieten bestimmte Ausrichtungen, weil sie keinen
8397 Beispielsweise sollte in einer nummerierten Aufzählung der Text nicht rechtsbün
8398 dig oder zentriert gesetzt werden.)
8401 \begin_layout Description
8402 \begin_inset Flex Code
8405 \begin_layout Plain Layout
8411 Beachten Sie, dass dies alle vorhergehenden
8412 \begin_inset Flex Code
8415 \begin_layout Plain Layout
8421 -Dekla\SpecialChar \-
8422 ration für diesen Stil überschreibt.
8424 \begin_inset Quotes gld
8428 \begin_inset Flex Code
8431 \begin_layout Plain Layout
8438 \begin_inset Quotes grd
8443 \begin_inset space ~
8447 \begin_inset CommandInset ref
8449 reference "sub:I18n"
8453 für Details zur Verwendung.
8456 \begin_layout Description
8457 \begin_inset Flex Code
8460 \begin_layout Plain Layout
8467 \begin_inset Flex Code
8470 \begin_layout Plain Layout
8480 \begin_layout Plain Layout
8481 \begin_inset Quotes gld
8485 \begin_inset Quotes grd
8488 ist eine Gleitkommazahl, wie
8489 \begin_inset Quotes gld
8493 \begin_inset Quotes grd
8501 Der vertikale Abstand, der die letzte Serie von Absätzen vom folgenden
8503 Wenn der nächste Paragraph einen anderen Stil hat, werden die Abstände
8504 nicht einfach addiert, sondern das Maximum wird verwendet.
8507 \begin_layout Description
8508 \begin_inset Flex Code
8511 \begin_layout Plain Layout
8518 \begin_inset Flex Code
8521 \begin_layout Plain Layout
8527 ] ist die Kategorie für diesen Stil.
8528 Sie wird benutzt, um zugehörige Stile in der Layout-Kombobox der Werkzeugleiste
8530 Jeder beliebige String kann benutzt werden, aber es ist sinnvoll vorhandene
8533 gorien zusammen mit Ihren eigenen Stilen zu benutzen.
8536 \begin_layout Description
8537 \begin_inset Flex Code
8540 \begin_layout Plain Layout
8546 ist die Tiefe des XML-Befehls und wird nur für XML-Formate benutzt.
8549 \begin_layout Description
8550 \begin_inset Flex Code
8553 \begin_layout Plain Layout
8560 \begin_inset Flex Code
8563 \begin_layout Plain Layout
8569 ] Kopiert alle Eigenschaften eines bereits definierten Layouts in das aktuelle.
8572 \begin_layout Description
8573 \begin_inset Flex Code
8576 \begin_layout Plain Layout
8583 \begin_inset Flex Code
8586 \begin_layout Plain Layout
8592 ] ist der Name eines Stils, dessen Vorspann
8596 diesem ausgegeben werden soll.
8597 Dadurch wird eine Reihenfolge von Vorspannteilen bewirkt, wenn Makro-Definition
8598 en voneinander abhängen.
8602 \begin_layout Plain Layout
8603 Beachten Sie, dass es außer dieser Funktionalität keine andere Möglichkeit
8604 gibt, Vorspanne zu ordnen.
8605 Die Reihenfolge, die Sie in einer LyX-Version sehen, kann sich in späteren
8606 Versionen ohne Warnung ändern.
8614 \begin_layout Description
8615 \begin_inset Flex Code
8618 \begin_layout Plain Layout
8625 \begin_inset Flex Code
8628 \begin_layout Plain Layout
8633 , Box, Filled_Box, Static
8642 ist der Markentyp, der am Ende eines Absatzes steht (oder mehrerer Absätze,
8644 \begin_inset Flex Code
8647 \begin_layout Plain Layout
8654 \begin_inset Newline newline
8658 \begin_inset Flex Code
8661 \begin_layout Plain Layout
8668 \begin_inset Flex Code
8671 \begin_layout Plain Layout
8678 \begin_inset Flex Code
8681 \begin_layout Plain Layout
8688 \begin_inset Newline newline
8692 \begin_inset Flex Code
8695 \begin_layout Plain Layout
8702 \begin_inset Quotes gld
8706 \begin_inset Quotes grd
8710 \begin_inset Flex Code
8713 \begin_layout Plain Layout
8720 \begin_inset Flex Code
8723 \begin_layout Plain Layout
8729 ist ein weißes oder schwarzes Quadrat, das für das Markieren eines Beweisendes
8732 \begin_inset Flex Code
8735 \begin_layout Plain Layout
8741 ist eine explizite Zeichenkette.
8744 \begin_layout Description
8745 \begin_inset Flex Code
8748 \begin_layout Plain Layout
8755 \begin_inset Flex Code
8758 \begin_layout Plain Layout
8764 ] ist eine Zeichenkette, die für einen
8765 \begin_inset Flex Code
8768 \begin_layout Plain Layout
8775 \begin_inset Newline newline
8779 \begin_inset Flex Code
8782 \begin_layout Plain Layout
8791 \begin_layout Description
8792 \begin_inset Flex Code
8795 \begin_layout Plain Layout
8801 Der Zeichensatz, der für den Textkörper
8805 die Marke verwendet wird, siehe Abschnitt
8806 \begin_inset space \space{}
8810 \begin_inset CommandInset ref
8812 reference "sub:Beschreibung-des-Zeichensatzes"
8818 \begin_inset Flex Code
8821 \begin_layout Plain Layout
8827 gesetzt, dann erhält
8828 \begin_inset Flex Code
8831 \begin_layout Plain Layout
8837 automatisch denselben Wert.
8839 \begin_inset Flex Code
8842 \begin_layout Plain Layout
8848 zuerst definiert werden.
8851 \begin_layout Description
8852 \begin_inset Flex Code
8855 \begin_layout Plain Layout
8862 \begin_inset Flex Code
8865 \begin_layout Plain Layout
8874 \begin_inset space \thinspace{}
8878 \begin_inset Flex Code
8881 \begin_layout Plain Layout
8887 ] Normalerweise erlaubt es LyX nicht, mehr als ein Leerzeichen zwischen
8889 Diese Eigenschaft kann in bestimmten Fällen umständ\SpecialChar \-
8890 lich sein, zum Beispiel,
8891 wenn ein Programmcode eingegeben werden soll.
8892 In solchen Fällen kann
8893 \begin_inset Flex Code
8896 \begin_layout Plain Layout
8903 \begin_inset Flex Code
8906 \begin_layout Plain Layout
8913 LyX erzeugt in diesem Falls sich LyX nicht im LaTeX-Modus befindet, erzeugt
8914 es für jedes zusätzliche Leerzeichen ein geschütztes Leerzeichen.
8917 \begin_layout Description
8918 \begin_inset Flex Code
8921 \begin_layout Plain Layout
8927 Diese Tags kontrollieren die XHTML-Ausgabe.
8929 \begin_inset space ~
8933 \begin_inset CommandInset ref
8935 reference "sec:Tags-for-XHTML"
8942 \begin_layout Description
8943 \begin_inset Flex Code
8946 \begin_layout Plain Layout
8952 [[FIXME]] (Wird nur für XML-Formate benutzt.)
8955 \begin_layout Description
8956 \begin_inset Flex Code
8959 \begin_layout Plain Layout
8966 \begin_inset Flex Code
8969 \begin_layout Plain Layout
8978 \begin_inset space \thinspace{}
8982 \begin_inset Flex Code
8985 \begin_layout Plain Layout
8992 \begin_inset Flex Code
8995 \begin_layout Plain Layout
9001 gesetzt, wird der Stil in den LaTeX-Vorspann gesetzt und nicht in den eigentlich
9003 Dies ist nützlich für Dokumentklassen, die Informationen wie den Titel
9004 und Autor im Vorspann erwarten.
9005 Beachten Sie, dass dies nur für Stile funktioniert, deren
9006 \begin_inset Flex Code
9009 \begin_layout Plain Layout
9016 \begin_inset Flex Code
9019 \begin_layout Plain Layout
9026 \begin_inset Flex Code
9029 \begin_layout Plain Layout
9038 \begin_layout Description
9039 \begin_inset Flex Code
9042 \begin_layout Plain Layout
9049 \begin_inset Flex Code
9052 \begin_layout Plain Layout
9061 \begin_inset space \thinspace{}
9065 \begin_inset Flex Code
9068 \begin_layout Plain Layout
9075 \begin_inset Flex Code
9078 \begin_layout Plain Layout
9084 gesetzt, wird der Stil als Teil des Titel-Abschnitts behandelt (siehe auch
9085 die allgemeinen Textklassen-Parameter
9086 \begin_inset Flex Code
9089 \begin_layout Plain Layout
9096 \begin_inset Flex Code
9099 \begin_layout Plain Layout
9108 \begin_layout Description
9109 \begin_inset Flex Code
9112 \begin_layout Plain Layout
9119 \begin_inset Flex Code
9122 \begin_layout Plain Layout
9128 ] Ein zusätzlicher Abstand zwischen Absätzen desselben Layouts.
9129 Wenn in einer Umgebung andere Layouts integriert werden, so werden diese
9131 \begin_inset Flex Code
9134 \begin_layout Plain Layout
9140 der Umgebung getrennt.
9141 Die kompletten Unterpunkte der Umgebung werden jedoch
9146 \begin_inset Flex Code
9149 \begin_layout Plain Layout
9157 \begin_inset Flex Code
9160 \begin_layout Plain Layout
9175 \begin_layout Description
9176 \begin_inset Flex Code
9179 \begin_layout Plain Layout
9185 [[FIXME]] (Wird nur für XML-Formate benutzt.)
9188 \begin_layout Description
9189 \begin_inset Flex Code
9192 \begin_layout Plain Layout
9199 \begin_inset Flex Code
9202 \begin_layout Plain Layout
9211 \begin_inset space \thinspace{}
9215 \begin_inset Flex Code
9218 \begin_layout Plain Layout
9224 ] Normalerweise ist es in LyX nicht möglich, einen Absatz leer zu lassen,
9225 da das zu einer leeren LaTeX-Ausgabe führen würde.
9226 In manchen Fällen ist das aber durchaus gewünscht: So können beispielsweise
9227 in einer Briefvorlage die benötigten Felder leer voreingestellt werden,
9228 damit keiner vergisst, sie anzugeben; in speziellen Klassen wird ein Absatz
9229 als Unterbrechung verwendet, der keinen Text enthält.
9232 \begin_layout Description
9233 \begin_inset Flex Code
9236 \begin_layout Plain Layout
9243 \begin_inset Flex Code
9246 \begin_layout Plain Layout
9252 ] Der vertikale Abstand zwischen der Marke und dem folgenden Text.
9253 Wird nur für Marken benutzt, die über dem folgenden Text stehen (
9254 \begin_inset Flex Code
9257 \begin_layout Plain Layout
9264 \begin_inset Flex Code
9267 \begin_layout Plain Layout
9268 Centered_Top_Environment
9276 \begin_layout Description
9277 \begin_inset Flex Code
9280 \begin_layout Plain Layout
9287 \begin_inset Flex Code
9290 \begin_layout Plain Layout
9296 ] ist der Name des Zählers zur automatischen Nummerierung.
9297 \begin_inset Newline newline
9304 angegeben werden, wenn
9305 \begin_inset Flex Code
9308 \begin_layout Plain Layout
9315 \begin_inset Flex Code
9318 \begin_layout Plain Layout
9325 In diesem Fall wird der Zähler jedes mal erhöht, wenn das entsprechende
9326 Layout im Dokument verwendet wird.
9327 \begin_inset Newline newline
9334 angegeben werden, wenn
9335 \begin_inset Flex Code
9338 \begin_layout Plain Layout
9345 \begin_inset Flex Code
9348 \begin_layout Plain Layout
9355 In diesem Fall ist es etwas kompliziert: Angenommen Sie haben
9356 \begin_inset Quotes eld
9360 \begin_inset Flex Code
9363 \begin_layout Plain Layout
9364 LabelCounter MeinZaehler
9370 \begin_inset Quotes erd
9373 angegeben, dann lauten die eigentlichen Zähler
9374 \begin_inset Flex Code
9377 \begin_layout Plain Layout
9384 \begin_inset Flex Code
9387 \begin_layout Plain Layout
9394 \begin_inset Flex Code
9397 \begin_layout Plain Layout
9404 \begin_inset Flex Code
9407 \begin_layout Plain Layout
9414 Diese Zähler müssen alle separat deklariert werden.
9415 \begin_inset Newline newline
9419 \begin_inset space ~
9423 \begin_inset CommandInset ref
9425 reference "sub:Zähler"
9429 für Einzelheiten zu Zählern.
9433 \begin_layout Description
9434 \begin_inset Flex Code
9437 \begin_layout Plain Layout
9443 Der Zeichensatz, der für die Marke verwendet wird.
9445 \begin_inset space \space{}
9449 \begin_inset CommandInset ref
9451 reference "sub:Beschreibung-des-Zeichensatzes"
9458 \begin_layout Description
9459 \begin_inset Flex Code
9462 \begin_layout Plain Layout
9469 \begin_inset Flex Code
9472 \begin_layout Plain Layout
9478 ] Text der angibt, wie weit die Marke eingerückt werden soll.
9481 \begin_layout Description
9482 \begin_inset Flex Code
9485 \begin_layout Plain Layout
9492 \begin_inset Flex Code
9495 \begin_layout Plain Layout
9501 ] Text der den horizontalen Abstand zwischen der Marke und dem folgenden
9503 Wird nur für Marken benutzt, die nicht über dem folgenden Text stehen.
9506 \begin_layout Description
9507 \begin_inset Flex Code
9510 \begin_layout Plain Layout
9517 \begin_inset Flex Code
9520 \begin_layout Plain Layout
9526 ] Der String, der für den
9527 \begin_inset Flex Code
9530 \begin_layout Plain Layout
9537 \begin_inset Flex Code
9540 \begin_layout Plain Layout
9548 \begin_inset Flex Code
9551 \begin_layout Plain Layout
9557 gesetzt wurde, kann der String spezielle Formatierungsbefehle enthalten,
9558 wie sie in Abschnitt
9559 \begin_inset space ~
9563 \begin_inset CommandInset ref
9565 reference "sub:Zähler"
9573 \begin_layout Description
9574 \begin_inset Flex Code
9577 \begin_layout Plain Layout
9584 \begin_inset Flex Code
9587 \begin_layout Plain Layout
9593 ] wird im Anhang anstatt
9594 \begin_inset Flex Code
9597 \begin_layout Plain Layout
9604 Beachten Sie, dass jede Definition von
9605 \begin_inset Flex Code
9608 \begin_layout Plain Layout
9615 \begin_inset Flex Code
9618 \begin_layout Plain Layout
9627 \begin_layout Description
9628 \begin_inset Flex Code
9631 \begin_layout Plain Layout
9637 [FIXME] (Wird nur für XML-Formate benutzt.)
9640 \begin_layout Description
9641 \begin_inset Flex Code
9644 \begin_layout Plain Layout
9651 \begin_inset Flex Code
9654 \begin_layout Plain Layout
9659 , Manual, Static, Top_Environment,
9660 \begin_inset Newline newline
9663 Centered_Top_Environment, Counter, Sensitive, Enumerate,
9664 \begin_inset Newline newline
9667 Itemize, Bibliography
9676 \begin_layout Description
9677 \begin_inset Flex Code
9680 \begin_layout Plain Layout
9686 bedeutet: die Marke ist das erste Wort (bis zum ersten echten Leerzeichen).
9687 Verwenden Sie geschützte Leerzeichen wenn Sie mehr als ein Wort als Marke
9692 \begin_layout Description
9693 \begin_inset Flex Code
9696 \begin_layout Plain Layout
9702 bedeutet: die Marke ist was als
9703 \begin_inset Flex Code
9706 \begin_layout Plain Layout
9715 \begin_layout Description
9716 \begin_inset Flex Code
9719 \begin_layout Plain Layout
9726 \begin_inset space ~
9730 \begin_inset space ~
9734 \begin_inset Flex Code
9737 \begin_layout Plain Layout
9738 Centered_Top_Environment
9743 sind Spezialfälle von
9744 \begin_inset Newline newline
9748 \begin_inset Flex Code
9751 \begin_layout Plain Layout
9758 Die Marke erscheint über dem Absatz, aber nur am Anfang der Umgebung oder
9759 am Anfang einer Serie von Absätzen mit diesem Layout.
9760 Dies benutzt man zum Beispiel im
9761 \begin_inset Flex MenuItem
9764 \begin_layout Plain Layout
9773 \begin_layout Description
9774 \begin_inset Flex Code
9777 \begin_layout Plain Layout
9783 ist ein Spezialfall für die Bildunterschriftsmarken für Abbildungen und
9784 Tabellen-Gleitobjekte.
9786 \begin_inset Flex Code
9789 \begin_layout Plain Layout
9795 bedeutet, dass der gedruckte Text von der Art des Gleitobjekts abhängt:
9796 Er ist fest einprogrammiert als 'GleitobjektTyp N', wobei N der Wert des
9797 Zählers des Gleitobjekttyps ist.
9800 \begin_layout Description
9801 \begin_inset Flex Code
9804 \begin_layout Plain Layout
9810 definiert automatisch nummerierte Zähler.
9812 \begin_inset Flex Code
9815 \begin_layout Plain Layout
9821 wird erweitert, damit er alle
9822 \begin_inset Flex Code
9825 \begin_layout Plain Layout
9831 enthält: Das Ergebnis wird demnach zum Beispiel
9832 \begin_inset Quotes gld
9836 \begin_inset Flex Code
9839 \begin_layout Plain Layout
9850 \begin_inset Quotes grd
9855 \begin_inset space ~
9859 \begin_inset CommandInset ref
9861 reference "sub:Zähler"
9865 für weitere Informationen über Zähler.
9868 \begin_layout Description
9869 \begin_inset Flex Code
9872 \begin_layout Plain Layout
9878 erzeugt die üblichen Marken für Nummerierungen.
9879 Momentan sind diese fest auf arabische Zahlen, Kleinbuchstaben, kleine
9880 römische Zahlen und Großbuchstaben (für die 4
9881 \begin_inset space ~
9884 möglichen Schachtelungstiefen) programmiert.
9887 \begin_layout Description
9888 \begin_inset Flex Code
9891 \begin_layout Plain Layout
9897 erzeugt je nach Schachtelungsebene verschiedene Auflistungszeichen, Diese
9898 sind ebenfalls fest programmiert.
9901 \begin_layout Description
9902 \begin_inset Flex Code
9905 \begin_layout Plain Layout
9911 wird intern von LyX verwendet und sollte nur zusammen mit
9912 \begin_inset Flex Code
9915 \begin_layout Plain Layout
9916 LatexType BibEnvironment
9925 \begin_layout Description
9926 \begin_inset Flex Code
9929 \begin_layout Plain Layout
9935 Beachten Sie, dass dies alle vorhergehenden
9936 \begin_inset Flex Code
9939 \begin_layout Plain Layout
9945 -Deklaration für diesen Stil überschreibt.
9947 \begin_inset Quotes gld
9951 \begin_inset Flex Code
9954 \begin_layout Plain Layout
9961 \begin_inset Quotes grd
9966 \begin_inset space ~
9970 \begin_inset CommandInset ref
9972 reference "sub:I18n"
9976 für Details zur Verwendung.
9979 \begin_layout Description
9980 \begin_inset Flex Code
9983 \begin_layout Plain Layout
9990 \begin_inset Flex Code
9993 \begin_layout Plain Layout
9999 ] Der LaTeX-Name für dieses Layout.
10000 Das bedeutet entweder der Name eines LaTeX-Befehls oder der einer LaTeX-Umgebun
10004 \begin_layout Description
10005 \begin_inset Flex Code
10008 \begin_layout Plain Layout
10015 \begin_inset Flex Code
10018 \begin_layout Plain Layout
10024 ] Ein optionaler Parameter für den entsprechenden
10025 \begin_inset Newline newline
10029 \begin_inset Flex Code
10032 \begin_layout Plain Layout
10039 Dieser Parameter kann innerhalb von LyX nicht mehr geändert werden.
10043 \begin_layout Description
10044 \begin_inset Flex Code
10047 \begin_layout Plain Layout
10054 \begin_inset Flex Code
10057 \begin_layout Plain Layout
10062 , Command, Environment, Item_Environment,
10063 \begin_inset Newline newline
10066 List_Environment, Bib_Environment
10071 ] Legt fest, wie das Layout in LaTeX übersetzt wird.
10075 \begin_layout Plain Layout
10076 \begin_inset Flex Code
10079 \begin_layout Plain Layout
10085 mag irreführend sein, denn dessen Regeln gelten auch für SGML-Klassen.
10086 Siehe die SGML Klassendateien für spezielle Beispiele.
10095 \begin_layout Description
10096 \begin_inset Flex Code
10099 \begin_layout Plain Layout
10105 bewirkt nichts besonderes -- der Text wird als
10116 \begin_layout Description
10117 \begin_inset Flex Code
10120 \begin_layout Plain Layout
10126 behandelt den Text als Argument eines LaTeX-Befehls
10127 \begin_inset Newline newline
10131 \begin_inset Flex Code
10134 \begin_layout Plain Layout
10141 {\SpecialChar \ldots{}
10150 \begin_layout Description
10151 \begin_inset Flex Code
10154 \begin_layout Plain Layout
10160 behandelt den Text als Kern einer LaTeX-Umgebung
10161 \begin_inset Newline newline
10165 \begin_inset Flex Code
10168 \begin_layout Plain Layout
10175 }\SpecialChar \ldots{}
10190 \begin_layout Description
10191 \begin_inset Flex Code
10194 \begin_layout Plain Layout
10200 bewirkt dasselbe wie
10201 \begin_inset Flex Code
10204 \begin_layout Plain Layout
10210 , nur dass vor jedem Absatz ein
10211 \begin_inset Flex Code
10214 \begin_layout Plain Layout
10226 \begin_layout Description
10227 \begin_inset Flex Code
10230 \begin_layout Plain Layout
10237 \begin_inset Flex Code
10240 \begin_layout Plain Layout
10247 \begin_inset Newline newline
10251 \begin_inset Flex Code
10254 \begin_layout Plain Layout
10260 als Argument an die Umgebung übergeben wird.
10261 \begin_inset Newline newline
10265 \begin_inset Flex Code
10268 \begin_layout Plain Layout
10278 \SpecialChar \menuseparator
10281 Absatz-Einstellungen
10284 \begin_inset Marginal
10287 \begin_layout Plain Layout
10288 \begin_inset Graphics
10289 filename ../../images/layout-paragraph.png
10290 BoundingBox 0bp 6bp 20bp 20bp
10302 \begin_layout Description
10303 \begin_inset Flex Code
10306 \begin_layout Plain Layout
10313 \begin_inset Flex Code
10316 \begin_layout Plain Layout
10322 aber fügt zusätzlich das notwendige Argument zum Begin-Befehl der Bibliography-
10324 \begin_inset Newline newline
10328 \begin_inset Flex Code
10331 \begin_layout Plain Layout
10334 begin{thebibliography}{99}
10339 Es ist daher nur für die Bibliography-Umgebung nützlich.
10342 \begin_layout Standard
10343 Fasst man die letzten Sachen zusammen, wird die LaTeX-Ausgabe entweder so:
10346 \begin_layout LyX-Code
10349 LatexName[LatexParam]{\SpecialChar \ldots{}
10353 \begin_layout Standard
10357 \begin_layout LyX-Code
10360 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
10366 \begin_layout Standard
10367 aussehen, abhängig vom LaTeX-Typ.
10371 \begin_layout Description
10372 \begin_inset Flex Code
10375 \begin_layout Plain Layout
10382 \begin_inset Flex Code
10385 \begin_layout Plain Layout
10391 ] Wenn ein Layout in ein anderes Layout für Umgebungen eingefügt wird, werden
10392 die Breiten der verschiedenen
10393 \begin_inset Flex Code
10396 \begin_layout Plain Layout
10402 nicht einfach addiert, sondern vorher in Abhängigkeit zur Schachtelungstiefe
10404 \begin_inset Formula $\frac{4}{\mathrm{Tiefe}+4}$
10408 Dieser Parameter wird auch dann benutzt, wenn
10409 \begin_inset Flex Code
10412 \begin_layout Plain Layout
10419 \begin_inset Flex Code
10422 \begin_layout Plain Layout
10429 \begin_inset Flex Code
10432 \begin_layout Plain Layout
10439 In diesem Fall wird der Wert zu den gegebenen manuellen oder dynamischen
10440 Rändern hinzugefügt.
10441 \begin_inset Newline newline
10444 Zum Beispiel bedeutet
10445 \begin_inset Quotes gld
10449 \begin_inset Flex Code
10452 \begin_layout Plain Layout
10459 \begin_inset Quotes grd
10462 , dass der Absatz mit der Breite eingerückt wird, die die Buchstaben
10463 \begin_inset Quotes gld
10467 \begin_inset Flex Code
10470 \begin_layout Plain Layout
10477 \begin_inset Quotes grd
10480 in der normalen Schriftart haben.
10481 man kann negative Breite erzeugen, indem man den String mit
10482 \begin_inset Quotes gld
10486 \begin_inset Flex Code
10489 \begin_layout Plain Layout
10496 \begin_inset Quotes grd
10500 Diese Art der Angabe wurde gewählt, damit der Text unabhängig von der verwendet
10501 en Bildschirmschriftart wie vorgesehen aussieht.
10504 \begin_layout Description
10505 \begin_inset Flex Code
10508 \begin_layout Plain Layout
10515 \begin_inset Flex Code
10518 \begin_layout Plain Layout
10523 , Manual, Dynamic, First_Dynamic, Right_Address_Box
10529 \begin_inset Newline newline
10532 legt fest, wie der linke Rand des Textes bestimmt wird.
10537 \begin_layout Description
10538 \begin_inset Flex Code
10541 \begin_layout Plain Layout
10547 wählt feste Randbreiten.
10551 \begin_layout Description
10552 \begin_inset Flex Code
10555 \begin_layout Plain Layout
10561 bedeutet, dass der Rand von der Einstellung der
10567 Absatz-Einstellungen
10573 \SpecialChar \menuseparator
10576 Absatz-Einstellungen
10579 \begin_inset Marginal
10582 \begin_layout Plain Layout
10583 \begin_inset Graphics
10584 filename ../../images/layout-paragraph.png
10585 BoundingBox 0bp 6bp 20bp 20bp
10595 Dies wird für hübsche Listen ohne Tabulatoren benutzt.
10599 \begin_layout Description
10600 \begin_inset Flex Code
10603 \begin_layout Plain Layout
10609 bedeutet, der linke Rand hängt von der Größe der verwendeten Markierung
10611 Dies wird zum Beispiel bei automatisch nummerierten Überschriften verwendet.
10612 Es leuchtet ein, dass die Überschrift
10613 \begin_inset Quotes gld
10616 5.4.3.2.1 Sehr lange \SpecialChar \ldots{}
10618 \begin_inset Quotes grd
10621 einen größeren linken Rand benötigt, als
10622 \begin_inset Quotes gld
10625 3.2 Sehr lange \SpecialChar \ldots{}
10627 \begin_inset Quotes grd
10634 \begin_layout Description
10635 \begin_inset Flex Code
10638 \begin_layout Plain Layout
10644 arbeitet ähnlich wie
10645 \begin_inset Flex Code
10648 \begin_layout Plain Layout
10654 , aber nur die erste Zeile wird dynamisch gesetzt, die anderen statisch.
10655 Dies wird für die LaTeX
10659 \begin_layout Plain Layout
10667 \begin_inset Flex Code
10670 \begin_layout Plain Layout
10679 \begin_layout Description
10680 \begin_inset Flex Code
10683 \begin_layout Plain Layout
10689 bedeutet, dass der Rand so gewählt wird, dass die längste Zeile des Absatzes
10690 gerade den rechten Rand berührt.
10691 Dies wird zum Setzen einer Adresse am rechten Rand der Seite eingesetzt.
10695 \begin_layout Description
10696 \begin_inset Flex Code
10699 \begin_layout Plain Layout
10706 \begin_inset Flex Code
10709 \begin_layout Plain Layout
10718 \begin_inset space \thinspace{}
10722 \begin_inset Flex Code
10725 \begin_layout Plain Layout
10732 \begin_inset Quotes gld
10736 \begin_inset Quotes grd
10739 LaTeX-Befehle innerhalb dieses Layouts durch
10740 \begin_inset Flex Code
10743 \begin_layout Plain Layout
10751 geschützt werden müssen.
10752 (Achtung: Diese Einstellung sagt nichts darüber aus, ob der Befehl an sich
10753 geschützt werden soll.)
10756 \begin_layout Description
10757 \begin_inset Flex Code
10760 \begin_layout Plain Layout
10767 \begin_inset Flex Code
10770 \begin_layout Plain Layout
10777 \begin_inset space \thinspace{}
10781 \begin_inset Flex Code
10784 \begin_layout Plain Layout
10792 ] Gibt an, ob Zeilenumbrüche in LaTeX als
10793 \begin_inset Quotes gld
10797 \begin_inset Flex Code
10800 \begin_layout Plain Layout
10811 \begin_inset Quotes grd
10814 dargestellt werden, oder nicht.
10815 Man kann dies ausschalten (Wert:
10816 \begin_inset Flex Code
10819 \begin_layout Plain Layout
10825 ), um TeX-Code in LyX komfortabler editieren zu können.
10828 \begin_layout Description
10829 \begin_inset Flex Code
10832 \begin_layout Plain Layout
10839 \begin_inset Flex Code
10842 \begin_layout Plain Layout
10851 \begin_inset space \thinspace{}
10855 \begin_inset Flex Code
10858 \begin_layout Plain Layout
10864 ] Gibt an, ob der nachfolgende Absatz einen linken Einzug haben darf oder
10867 \begin_inset Flex Code
10870 \begin_layout Plain Layout
10876 heißt, der Absatz erhält auf keinen Fall einen Einzug (z.
10877 \begin_inset space \thinspace{}
10881 nach einer Überschrift), wenn
10882 \begin_inset Flex Code
10885 \begin_layout Plain Layout
10892 \begin_inset Flex Code
10895 \begin_layout Plain Layout
10901 -) Paragraphen einen Einzug haben.
10902 (Daher beeinflusst die Einstellung nur
10903 \begin_inset Flex Code
10906 \begin_layout Plain Layout
10915 \begin_layout Description
10916 \begin_inset Flex Code
10919 \begin_layout Plain Layout
10926 \begin_inset Flex Code
10929 \begin_layout Plain Layout
10935 ] Der Name eines Layouts, das durch dieses ersetzt wurde.
10936 So können Sie ein Layout umbenennen und die Rückwärtskompatibilität erhalten.
10939 \begin_layout Description
10940 \begin_inset Flex Code
10943 \begin_layout Plain Layout
10950 \begin_inset Flex Code
10953 \begin_layout Plain Layout
10959 ] Die Zahl der optionalen Argumente, die in diesem Layout benutzt werden
10961 Dies ist zum Beispiel bei Abschnittsüberschriften hilfreich und macht nur
10963 Beachten Sie, dass in der Ausgabe die optionalen Argumente vor den benöigten
10964 stehen werden (siehe unten).
10965 Man kann also Konstrukte wie dieses hier haben:
10969 \begin_layout LyX-Code
10972 mycmd[optional1]{benötigt1}{Inhalt des Paragraphs}
10975 \begin_layout Standard
10979 \begin_layout LyX-Code
10982 mycmd[optional1]{benötigt1}[optional2]{Inhalt des Paragraphs}
10985 \begin_layout Standard
10986 zumindest nicht ohne TeX-Code (in den man alles schreiben kann).
10990 \begin_layout Description
10991 \begin_inset Flex Code
10994 \begin_layout Plain Layout
11001 \begin_inset Flex Code
11004 \begin_layout Plain Layout
11013 \begin_inset space \thinspace{}
11017 \begin_inset Flex Code
11020 \begin_layout Plain Layout
11026 ] Gibt an, dass ein Paragraph nicht durch eine leere Zeile in der LaTeX-Ausgabe
11027 abgesetzt wird, sondern nur duch einen Zeilenumbruch.
11029 \begin_inset Flex Code
11032 \begin_layout Plain Layout
11038 erlaubt dies die Emulation eines reinen Texteditors (so wie die TeX-Code
11042 \begin_layout Description
11043 \begin_inset Flex Code
11046 \begin_layout Plain Layout
11053 \begin_inset Flex Code
11056 \begin_layout Plain Layout
11062 ] Der Einzug der ersten Zeile eines Absatzes.
11064 \begin_inset Flex Code
11067 \begin_layout Plain Layout
11073 bleibt für ein bestimmtes Layout fest.
11074 Eine Ausnahme ist das Standard-Layout, denn dort kann der Einzug vom vorherigen
11076 \begin_inset Flex Code
11079 \begin_layout Plain Layout
11086 Außerdem benutzt das
11087 \begin_inset Flex Code
11090 \begin_layout Plain Layout
11096 -Layout innerhalb von Umgebungen den
11097 \begin_inset Flex Code
11100 \begin_layout Plain Layout
11106 der Umgebung und nicht den eigenen.
11108 \begin_inset Flex Code
11111 \begin_layout Plain Layout
11117 -Absätze innerhalb einer Aufzählung keinen Einzug.
11120 \begin_layout Description
11121 \begin_inset Flex Code
11124 \begin_layout Plain Layout
11131 \begin_inset Flex Code
11134 \begin_layout Plain Layout
11140 ] Der vertikale Anstand zwischen den Absätzen dieses Layouts.
11143 \begin_layout Description
11144 \begin_inset Flex Code
11147 \begin_layout Plain Layout
11154 \begin_inset Flex Code
11157 \begin_layout Plain Layout
11163 ] Der Benutzer kann in LyX wählen ob Absätze duch
11170 \begin_inset space \space{}
11181 \begin_inset Flex Code
11184 \begin_layout Plain Layout
11194 \begin_inset space \space{}
11200 \begin_inset Flex Code
11203 \begin_layout Plain Layout
11209 ignoriert und alle Absätze durch den vertikalen Abstand von
11210 \begin_inset Flex Code
11213 \begin_layout Plain Layout
11220 Die Länge dieses Abstands berechnet sich mit
11221 \begin_inset Flex Code
11224 \begin_layout Plain Layout
11226 \begin_inset space ~
11235 \begin_inset Flex Code
11238 \begin_layout Plain Layout
11244 die Höhe einer Zeile in der normalen Schrift ist.
11245 Dadurch bleibt das Aussehen mit verschiedenen Schriften gleich.
11248 \begin_layout Description
11249 \begin_inset Flex Code
11252 \begin_layout Plain Layout
11259 \begin_inset Flex Code
11262 \begin_layout Plain Layout
11271 \begin_inset space \thinspace{}
11275 \begin_inset Flex Code
11278 \begin_layout Plain Layout
11288 Legt fest, ob der Absatzinhalt unverändert ausgegeben werden soll, also
11289 ohne diverse von LaTeX benötigte Ersetzungen durchzuführen.
11292 \begin_layout Description
11293 \begin_inset Flex Code
11296 \begin_layout Plain Layout
11302 Befehle und Definitionen, die in die Präambel (vor
11303 \begin_inset Flex Code
11306 \begin_layout Plain Layout
11309 begin{docu\SpecialChar \-
11315 ) eingefügt werden, wenn dieses Layout benutzt wird.
11316 Kann verwendet werden um Pakete zu laden, Makros zu definieren usw..
11318 \begin_inset Quotes gld
11322 \begin_inset Flex Code
11325 \begin_layout Plain Layout
11332 \begin_inset Quotes grd
11338 \begin_layout Description
11339 \begin_inset Flex Code
11342 \begin_layout Plain Layout
11349 \begin_inset Flex Code
11352 \begin_layout Plain Layout
11358 ] Der Präfix, der verwendet werden soll, wenn auf Marken dieses Paragraphs
11360 Dies erlaubt die Verwendung von Formatierten Querverweisen.
11363 \begin_layout Description
11364 \begin_inset Flex Code
11367 \begin_layout Plain Layout
11374 \begin_inset Flex Code
11377 \begin_layout Plain Layout
11383 ] Die Anzahl an benötigten Argumenten, die der LaTeX-Befehl oder die -Umgebung
11385 Für Befehle sind die benötigte Argumente
11389 als die, die mit dem Inhalt des Absatzes zu tun haben.
11390 Diese müssen nicht unbedingt angegeben werden: LyX wird leere Argumente
11391 ausgeben, wenn nötig.
11392 Beachten Sie, dass die optionalen Argumente vor den benötigten ausgegeben
11394 Siehe die obige Diskussion in der Beschreibung von
11395 \begin_inset Flex Code
11398 \begin_layout Plain Layout
11404 für weitere Informationen.
11407 \begin_layout Description
11408 \begin_inset Flex Code
11411 \begin_layout Plain Layout
11418 \begin_inset Flex Code
11421 \begin_layout Plain Layout
11427 ] legt fest, dass das Layout die Funktion
11428 \begin_inset Flex Code
11431 \begin_layout Plain Layout
11438 Siehe die Beschreibung von
11439 \begin_inset Flex Code
11442 \begin_layout Plain Layout
11449 \begin_inset space ~
11453 \begin_inset CommandInset ref
11455 reference "sub:Allgemeine-Parameter-für"
11462 \begin_layout Description
11463 \begin_inset Flex Code
11466 \begin_layout Plain Layout
11473 \begin_inset Flex Code
11476 \begin_layout Plain Layout
11483 \begin_inset Flex Code
11486 \begin_layout Plain Layout
11495 \begin_layout Description
11496 \begin_inset Flex Code
11499 \begin_layout Plain Layout
11506 \begin_inset Flex Code
11509 \begin_layout Plain Layout
11518 \begin_inset Flex Code
11521 \begin_layout Plain Layout
11528 \begin_inset Flex Code
11531 \begin_layout Plain Layout
11538 \begin_inset Flex Code
11541 \begin_layout Plain Layout
11543 \begin_inset space ~
11551 ] Dies definiert die Voreinstellung für den Zeilenabstand des Layouts.
11553 \begin_inset Flex Code
11556 \begin_layout Plain Layout
11565 \begin_inset Flex Code
11568 \begin_layout Plain Layout
11575 \begin_inset Flex Code
11578 \begin_layout Plain Layout
11584 entsprechen den Multiplikatoren 1, 1.25 und 1.667.
11585 Wenn Sie als Argument
11586 \begin_inset Flex Code
11589 \begin_layout Plain Layout
11595 angeben, müssen Sie als
11599 einen konkreten Multiplikator angeben.
11600 Im Gegensatz zu anderen Parametern erzeugt LyX, wenn
11601 \begin_inset Flex Code
11604 \begin_layout Plain Layout
11610 gesetzt wird, spezifischen LaTeX-Code, der das LaTeX-Paket
11611 \begin_inset Flex Code
11614 \begin_layout Plain Layout
11623 \begin_layout Description
11624 \begin_inset Flex Code
11627 \begin_layout Plain Layout
11634 \begin_inset Flex Code
11637 \begin_layout Plain Layout
11644 \begin_inset space \thinspace{}
11648 \begin_inset Flex Code
11651 \begin_layout Plain Layout
11659 ] Erlaubt es, den Inhalt des Paragraphs auf Rechtschreibung zu überprüfen.
11662 \begin_layout Description
11663 \begin_inset Flex Code
11666 \begin_layout Plain Layout
11672 Der Zeichensatz, der für den Textkörper verwendet wird.
11673 \begin_inset Newline newline
11677 \begin_inset space ~
11681 \begin_inset CommandInset ref
11683 reference "sub:Beschreibung-des-Zeichensatzes"
11690 \begin_layout Description
11691 \begin_inset Flex Code
11694 \begin_layout Plain Layout
11701 \begin_inset Flex Code
11704 \begin_layout Plain Layout
11714 ist die Stufe des Stils im Inhaltsverzeichnis und wird zur automatischen
11715 Nummerierung von Abschnittsüberschriften benutzt.
11718 \begin_layout Description
11719 \begin_inset Flex Code
11722 \begin_layout Plain Layout
11736 ] Der vertikale Abstand, der die erste Serie von Absätzen vom vorangehenden
11740 \begin_layout Subsection
11743 \begin_inset CommandInset label
11749 Internationalization of Paragraph Styles
11752 \begin_layout Standard
11756 \begin_inset Flex Code
11759 \begin_layout Plain Layout
11767 defines text that is to appear in the typeset document, it may use
11768 \begin_inset Flex Code
11771 \begin_layout Plain Layout
11780 \begin_inset Flex Code
11783 \begin_layout Plain Layout
11791 to support non-English and even multi-language documents correctly.
11792 The following excerpt (from the
11793 \begin_inset Flex Code
11796 \begin_layout Plain Layout
11804 file) shows how this works:
11807 \begin_layout LyX-Code
11812 \begin_layout LyX-Code
11815 theoremstyle{remark}
11818 \begin_layout LyX-Code
11821 newtheorem{claim}[thm]{
11828 \begin_layout LyX-Code
11832 \begin_layout LyX-Code
11836 \begin_layout LyX-Code
11841 claimname}{_(Claim)}
11844 \begin_layout LyX-Code
11848 \begin_layout LyX-Code
11852 \begin_layout LyX-Code
11861 claimname}{_(Claim)}}
11864 \begin_layout LyX-Code
11869 \begin_layout Standard
11872 In principle, any legal LaTeX may appear in the
11873 \begin_inset Flex Code
11876 \begin_layout Plain Layout
11885 \begin_inset Flex Code
11888 \begin_layout Plain Layout
11896 tags, but in practice they will typically look as they do here.
11897 The key to correct translation of the typeset text is the definition of
11899 \begin_inset Flex Code
11902 \begin_layout Plain Layout
11913 \begin_inset Flex Code
11916 \begin_layout Plain Layout
11930 \begin_layout Standard
11934 \begin_inset Flex Code
11937 \begin_layout Plain Layout
11945 tag provides for internationalization based upon the overall language of
11947 The contents of the tag will be included in the preamble, just as with
11949 \begin_inset Flex Code
11952 \begin_layout Plain Layout
11961 What makes it special is the use of the
11962 \begin_inset Quotes eld
11966 \begin_inset Quotes erd
11970 \begin_inset Flex Code
11973 \begin_layout Plain Layout
11981 , which will be replaced, when LyX produces LaTeX output, with the translation
11982 of its argument into the document language.
11985 \begin_layout Standard
11989 \begin_inset Flex Code
11992 \begin_layout Plain Layout
12000 tag is more complex, since it is meant to provide support for multi-language
12001 documents and so offers an interface to the
12002 \begin_inset Flex Code
12005 \begin_layout Plain Layout
12014 Its contents will be added to the preamble once for each language that
12015 appears in the document.
12016 In this case, the argument to
12017 \begin_inset Flex Code
12020 \begin_layout Plain Layout
12028 will be replaced with its translation into the language in question; the
12030 \begin_inset Flex Code
12033 \begin_layout Plain Layout
12041 is replaced by the language name (as used by the babel package).
12044 \begin_layout Standard
12047 A German document that also included a French section would thus have the
12048 following in the preamble:
12051 \begin_layout LyX-Code
12060 claimname}{Affirmation}}
12061 \begin_inset Newline newline
12072 claimname}{Behauptung}}
12073 \begin_inset Newline newline
12080 claimname}{Behauptung}
12083 \begin_layout Standard
12087 \begin_inset Flex Code
12090 \begin_layout Plain Layout
12098 will then conspire to produce the correct text in the output.
12101 \begin_layout Standard
12104 One important point to note here is that the translations are provided by
12105 LyX itself, through the same mechanism it uses for internationalization
12106 of the user interface.
12107 This means, in effect, that
12108 \begin_inset Flex Code
12111 \begin_layout Plain Layout
12120 \begin_inset Flex Code
12123 \begin_layout Plain Layout
12131 are really only of use in layout files that are provided with LyX, since
12132 text entered in user-created layout files will not be seen by LyX's internation
12133 alization routines.
12134 That said, however, any layout created with the intention that it will
12135 be included with LyX should use these tags where appropriate.
12138 \begin_layout Subsection
12140 \begin_inset CommandInset label
12142 name "sub:Gleitobjekte"
12149 \begin_layout Standard
12150 Es ist nötig Gleitobjekte (
12151 \begin_inset Flex MenuItem
12154 \begin_layout Plain Layout
12161 \begin_inset Flex MenuItem
12164 \begin_layout Plain Layout
12170 ,\SpecialChar \ldots{}
12171 ) in der Textklasse selber zu definieren.
12172 Standardgleitobjekte sind in der Datei
12173 \begin_inset Flex Code
12176 \begin_layout Plain Layout
12182 enthalten, so dass Sie sie nur noch
12185 \begin_layout LyX-Code
12186 Input stdfloats.inc
12189 \begin_layout Standard
12190 zu Ihrer Layoutdatei hinzufügen müssen.
12191 Wenn Sie eine Textklasse implementieren wollen, die andere Gleitobjekttypen
12192 enthält (wie zum Beispiel die AGU-Klasse), werden Ihnen die folgenden Informati
12196 \begin_layout Description
12197 \begin_inset Flex Code
12200 \begin_layout Plain Layout
12213 \begin_inset Flex Code
12216 \begin_layout Plain Layout
12223 \begin_inset Quotes erd
12227 \begin_inset Quotes erd
12230 ] Die Dateinamenerweiterung einer zusätzlichen Datei für das Abbildungsver\SpecialChar \-
12233 LaTeX schreibt die Beschriftungen in diese Datei.
12236 \begin_layout Description
12237 \begin_inset Flex Code
12240 \begin_layout Plain Layout
12247 \begin_inset Flex Code
12250 \begin_layout Plain Layout
12257 \begin_inset Quotes erd
12261 \begin_inset Quotes erd
12264 ] Die Zeichenkette, die in den Menüs und für die Beschriftung benutzt wird.
12265 Dies wird in die aktuelle Sprache übersetzt, wenn babel verwendet wird.
12268 \begin_layout Description
12269 \begin_inset Flex Code
12272 \begin_layout Plain Layout
12278 Diese Tags kontrollieren die XHTML-Ausgabe.
12280 \begin_inset space ~
12284 \begin_inset CommandInset ref
12286 reference "sec:Tags-for-XHTML"
12293 \begin_layout Description
12294 \begin_inset Flex Code
12297 \begin_layout Plain Layout
12306 \begin_inset Flex Code
12309 \begin_layout Plain Layout
12318 \begin_inset space \thinspace{}
12322 \begin_inset Flex Code
12325 \begin_layout Plain Layout
12331 ] Gibt an, ob das Gleitobjekt bereits in der Dokumentklasse definiert ist
12332 oder ob das LaTeX-Paket
12333 \begin_inset Flex Code
12336 \begin_layout Plain Layout
12342 geladen werden muss, um es zu definieren.
12343 Die Voreinstellung ist
12344 \begin_inset Flex Code
12347 \begin_layout Plain Layout
12353 , was bedeutet, dass
12354 \begin_inset Flex Code
12357 \begin_layout Plain Layout
12365 \begin_inset Flex Code
12368 \begin_layout Plain Layout
12374 gesetzt werden, wenn das Gleitobjekt bereits in der Dokumentklasse definiert
12378 \begin_layout Description
12379 \begin_inset Flex Code
12382 \begin_layout Plain Layout
12389 \begin_inset Flex Code
12392 \begin_layout Plain Layout
12399 \begin_inset Quotes erd
12403 \begin_inset Quotes erd
12406 ] Der Befehl der verwendet wird, um eine Liste der Gleitobjekte dieses Typs
12407 zu generieren; das `
12409 ' muss weggelassen werden.
12414 angegeben werden, wenn
12415 \begin_inset Flex Code
12418 \begin_layout Plain Layout
12425 \begin_inset Flex Code
12428 \begin_layout Plain Layout
12434 gesetzt ist, da es sonst keine Möglichkeit gibt, diesen Befehl zu erstellen.
12435 Er wird ignoriert, falls
12436 \begin_inset Flex Code
12439 \begin_layout Plain Layout
12446 \begin_inset Flex Code
12449 \begin_layout Plain Layout
12455 gesetzt ist, da es dann eine Möglichkeit gibt.
12458 \begin_layout Description
12459 \begin_inset Flex Code
12462 \begin_layout Plain Layout
12469 \begin_inset Flex Code
12472 \begin_layout Plain Layout
12479 \begin_inset Quotes erd
12483 \begin_inset Quotes erd
12486 ] Die Überschrift für das Gleitobjekt-Verzeichnis (z.
12487 \begin_inset space \thinspace{}
12492 \begin_inset Quotes gld
12495 Abbildungsverzeichnis
12496 \begin_inset Quotes grd
12500 Sie wird für die Bildschirmmarke in LyX verwendet, von LaTeX für den Titel
12501 verwendet und als Titel in der XHTML-Ausgabe.
12502 Sie wird in die Dokumentsprache übersetzt.
12505 \begin_layout Description
12506 \begin_inset Flex Code
12509 \begin_layout Plain Layout
12516 \begin_inset Flex Code
12519 \begin_layout Plain Layout
12526 \begin_inset Quotes erd
12530 \begin_inset Quotes erd
12533 ] Dieses optionale Argument bestimmt, ob Gleitobjekte dieser Klasse mit
12534 der Abschnittsnummer dieses Dokuments nummeriert werden.
12536 \begin_inset Flex Code
12539 \begin_layout Plain Layout
12546 \begin_inset Quotes gld
12550 \begin_inset Flex Code
12553 \begin_layout Plain Layout
12560 \begin_inset Quotes grd
12563 gesetzt ist, werden die Gleitobjekte mit den Kapitelnummern nummeriert.
12566 \begin_layout Description
12567 \begin_inset Flex Code
12570 \begin_layout Plain Layout
12577 \begin_inset Flex Code
12580 \begin_layout Plain Layout
12587 \begin_inset Quotes erd
12591 \begin_inset Quotes erd
12594 ] Die Standardplatzierung für die Gleitobjektklasse.
12600 \begin_inset Flex Code
12603 \begin_layout Plain Layout
12609 sollte die Standard-LaTeX-Werte
12610 \begin_inset Flex Code
12613 \begin_layout Plain Layout
12620 \begin_inset Flex Code
12623 \begin_layout Plain Layout
12630 \begin_inset Flex Code
12633 \begin_layout Plain Layout
12640 \begin_inset Flex Code
12643 \begin_layout Plain Layout
12649 für oben, unten, Seite und hier enthalten.
12653 \begin_layout Plain Layout
12654 Wie in LaTeX ist die Reihenfolge der Buchstaben unerheblich.
12659 Zusätzlich gibt es den neuen Typ
12660 \begin_inset Flex Code
12663 \begin_layout Plain Layout
12669 , der nicht wirklich für ein Gleitobjekt steht, denn er bedeutet: drucke
12674 und nirgendwo sonst.
12676 \begin_inset Flex Code
12679 \begin_layout Plain Layout
12685 besonders ist und wegen der Implementierungsdetails nicht bei nicht-eingebauten
12686 Gleitobjekttypen benutzt werden kann.
12687 Wenn Sie die Platzierung nicht verstehen, benutzen Sie einfach
12688 \begin_inset Quotes gld
12692 \begin_inset Flex Code
12695 \begin_layout Plain Layout
12702 \begin_inset Quotes grd
12708 \begin_layout Description
12709 \begin_inset Flex Code
12712 \begin_layout Plain Layout
12719 \begin_inset Flex Code
12722 \begin_layout Plain Layout
12728 ] Der Präfix, der verwendet werden soll, wenn auf Marken dieser Gleitobjekte
12730 Dies erlaubt die Verwendung von Formatierten Querverweisen.
12732 \begin_inset Flex Code
12735 \begin_layout Plain Layout
12741 eines kopierten Stils entfernen, indem
12742 \begin_inset Flex Code
12745 \begin_layout Plain Layout
12752 \begin_inset Quotes gld
12756 \begin_inset Quotes grd
12762 \begin_layout Description
12763 \begin_inset Flex Code
12766 \begin_layout Plain Layout
12773 \begin_inset Flex Code
12776 \begin_layout Plain Layout
12783 \begin_inset Quotes erd
12787 \begin_inset Quotes erd
12790 ] ist der Gleitobjektstil, wenn er mit
12791 \begin_inset Flex Code
12794 \begin_layout Plain Layout
12805 \begin_layout Description
12806 \begin_inset Flex Code
12809 \begin_layout Plain Layout
12816 \begin_inset Flex Code
12819 \begin_layout Plain Layout
12826 \begin_inset Quotes erd
12830 \begin_inset Quotes erd
12834 \begin_inset Quotes gld
12838 \begin_inset Quotes grd
12841 der neuen Gleitobjektklasse, wie z.
12842 \begin_inset space \thinspace{}
12846 Programm oder Algorithmus.
12847 Nach dem entsprechenden
12848 \begin_inset Flex Code
12851 \begin_layout Plain Layout
12860 \begin_inset Flex Code
12863 \begin_layout Plain Layout
12872 \begin_inset Flex Code
12875 \begin_layout Plain Layout
12886 \begin_layout Description
12887 \begin_inset Flex Code
12890 \begin_layout Plain Layout
12897 \begin_inset Flex Code
12900 \begin_layout Plain Layout
12907 \begin_inset space \thinspace{}
12911 \begin_inset Flex Code
12914 \begin_layout Plain Layout
12922 ] Gibt an, ob dieses Gleitobjekt mit Hilfe des LaTeX-Pakets
12923 \begin_inset Flex Code
12926 \begin_layout Plain Layout
12932 definiert wurde, entweder durch die Dokumentklassen, ein anderes Paket
12936 \begin_layout Description
12937 Anmerkung: Wenn ein Gleitobjekt vom Typ
12941 definiert wurde, gibt es automatisch einen dazugehörigen Zähler namens
12949 \begin_layout Subsection
12950 Flexible Einfügungen und InsetLayout
12951 \begin_inset CommandInset label
12953 name "sub:Flexible-Einfügungen-und"
12960 \begin_layout Standard
12961 Es gibt drei Arten von flexiblen Einfügungen:
12964 \begin_layout Itemize
12966 \begin_inset Flex Code
12969 \begin_layout Plain Layout
12975 ): diese definieren semantische Textauszeichnungen, die mit LaTeX-Befehlen
12977 \begin_inset Flex Code
12980 \begin_layout Plain Layout
12989 \begin_inset Flex Code
12992 \begin_layout Plain Layout
13003 \begin_layout Itemize
13004 benutzerdefiniert (
13005 \begin_inset Flex Code
13008 \begin_layout Plain Layout
13014 ): diese können benutzt werden, um benutzer\SpecialChar \-
13017 nier\SpecialChar \-
13018 te einklappbare Einfügungen
13019 zu definieren, ähnlich wie TeX-Code, Fuß\SpecialChar \-
13022 Ein naheliegendes Beispiel ist die Endnotiz, die im
13023 \begin_inset Flex Code
13026 \begin_layout Plain Layout
13032 -Modul definiert ist.
13035 \begin_layout Itemize
13037 \begin_inset Flex Code
13040 \begin_layout Plain Layout
13046 ): diese werden mit DocBook-Klassen benutzt.
13049 \begin_layout Standard
13050 Flexible Einfügungen werden mit der
13051 \begin_inset Flex Code
13054 \begin_layout Plain Layout
13060 -Marke definiert, die weiter unten erklärt wird.
13063 \begin_layout Standard
13065 \begin_inset Flex Code
13068 \begin_layout Plain Layout
13074 -Marke besitzt noch eine andere Funktion: sie kann benutzt werden, um das
13075 allgemeine Aussehen vieler verschiedener Einfügungstypen anzupassen.
13077 \begin_inset Flex Code
13080 \begin_layout Plain Layout
13086 benutzt werden, um die Layout-Parameter für Fußnoten, Randnoten, eingefügten
13087 Noten, TeX-Code (ERT), Zweige, Stichwortverzeichnisse, Boxen, Tabellen,
13088 Algorithmen, URLs und optionaler Argumente anzupassen, ebenso um flexible
13089 Einfügungen zu definieren.
13092 \begin_layout Standard
13094 \begin_inset Flex Code
13097 \begin_layout Plain Layout
13103 -Definition muss mit folgender Zeile beginnen:
13106 \begin_layout LyX-Code
13110 \begin_layout Standard
13112 \begin_inset Flex Code
13115 \begin_layout Plain Layout
13121 die Einfügung, deren Layout definiert wird.
13122 Es gibt zwei Möglichkeiten.
13125 \begin_layout Enumerate
13126 Das Layout für eine existierende Einfügung wird geändert.
13127 In diesem Fall kann
13128 \begin_inset Flex Code
13131 \begin_layout Plain Layout
13138 \begin_inset Flex Code
13141 \begin_layout Plain Layout
13148 \begin_inset Flex Code
13151 \begin_layout Plain Layout
13158 \begin_inset Flex Code
13161 \begin_layout Plain Layout
13168 \begin_inset Flex Code
13171 \begin_layout Plain Layout
13178 \begin_inset Flex Code
13181 \begin_layout Plain Layout
13188 \begin_inset Flex Code
13191 \begin_layout Plain Layout
13198 \begin_inset Flex Code
13201 \begin_layout Plain Layout
13208 \begin_inset Flex Code
13211 \begin_layout Plain Layout
13218 \begin_inset Flex Code
13221 \begin_layout Plain Layout
13228 \begin_inset Flex Code
13231 \begin_layout Plain Layout
13238 \begin_inset Flex Code
13241 \begin_layout Plain Layout
13248 \begin_inset Flex Code
13251 \begin_layout Plain Layout
13258 \begin_inset Flex Code
13261 \begin_layout Plain Layout
13268 \begin_inset Flex Code
13271 \begin_layout Plain Layout
13278 \begin_inset Flex Code
13281 \begin_layout Plain Layout
13288 \begin_inset Flex Code
13291 \begin_layout Plain Layout
13298 \begin_inset Flex Code
13301 \begin_layout Plain Layout
13308 \begin_inset Flex Code
13311 \begin_layout Plain Layout
13318 \begin_inset Flex Code
13321 \begin_layout Plain Layout
13328 \begin_inset Flex Code
13331 \begin_layout Plain Layout
13340 \begin_layout Enumerate
13341 Das Layout für eine flexible Einfügung wird definiert.
13342 In diesem Fall muss
13343 \begin_inset Flex Code
13346 \begin_layout Plain Layout
13355 \begin_inset Quotes gld
13359 \begin_inset Flex Code
13362 \begin_layout Plain Layout
13369 \begin_inset Quotes grd
13377 \begin_inset Flex Code
13380 \begin_layout Plain Layout
13388 ein beliebiger gültiger Bezeichner sein kann, der in keiner anderen existierend
13389 en Einfügung benutzt wird.
13390 Der Bezeichner darf Leerzeichen enthalten, dann muss aber der komplette
13391 Typ in Anführungszeichen gesetzt werden.
13392 Beachten Sie, dass die Definition einer flexiblen Einfügung
13397 \begin_inset Flex Code
13400 \begin_layout Plain Layout
13406 -Eintrag enthalten muss, der festlegt welcher Einfügungstyp definiert wird.
13409 \begin_layout Standard
13411 \begin_inset Flex Code
13414 \begin_layout Plain Layout
13420 -Definition kann folgende Einträge enthalten:
13423 \begin_layout Description
13424 \begin_inset Flex Code
13427 \begin_layout Plain Layout
13434 \begin_inset Flex Code
13437 \begin_layout Plain Layout
13443 ] ist die Hintergrundfarbe der Einfügung.
13445 \begin_inset space ~
13449 \begin_inset CommandInset ref
13451 reference "chap:Namen-von-Farben"
13455 für eine Liste von verfügbaren Farbnamen.
13458 \begin_layout Description
13459 \begin_inset Flex Code
13462 \begin_layout Plain Layout
13469 \begin_inset Flex Code
13472 \begin_layout Plain Layout
13481 \begin_inset space \thinspace{}
13485 \begin_inset Flex Code
13488 \begin_layout Plain Layout
13494 ] Ob der Inhalt der Einfügung als Marke verwendet werden soll, wenn die
13495 Einfügung geschlossen ist.
13498 \begin_layout Description
13499 \begin_inset Flex Code
13502 \begin_layout Plain Layout
13509 \begin_inset Flex Code
13512 \begin_layout Plain Layout
13518 ] Wie bei Absatz-Layouts, siehe Abschnitt
13519 \begin_inset space ~
13523 \begin_inset CommandInset ref
13525 reference "sub:Einzelne-Absatz-Layouts"
13530 Beachten Sie, dass der komplette Typ angegeben werden muss, z.
13531 \begin_inset space \thinspace{}
13536 \begin_inset Flex Code
13539 \begin_layout Plain Layout
13540 CopyStyle Flex:<Name>
13548 \begin_layout Description
13549 \begin_inset Flex Code
13552 \begin_layout Plain Layout
13559 \begin_inset Flex Code
13562 \begin_layout Plain Layout
13571 \begin_inset space \thinspace{}
13575 \begin_inset Flex Code
13578 \begin_layout Plain Layout
13584 ] zeigt an, ob der Benutzer den Absatzeinstellungen-Dialog (
13585 \begin_inset Graphics
13586 filename ../../images/layout-paragraph.png
13588 scaleBeforeRotation
13589 BoundingBox 0bp 6bp 20bp 20bp
13597 \begin_layout Description
13598 \begin_inset Flex Code
13601 \begin_layout Plain Layout
13608 \begin_inset Flex Code
13611 \begin_layout Plain Layout
13618 \begin_inset Flex Code
13621 \begin_layout Plain Layout
13628 \begin_inset Flex Code
13631 \begin_layout Plain Layout
13638 Es beschreibt den Rendering-Stil für den Einfügungsrahmen und die -knöpfe.
13639 Fußnoten benutzen im allgemeinen
13640 \begin_inset Flex Code
13643 \begin_layout Plain Layout
13654 \begin_inset Flex Code
13657 \begin_layout Plain Layout
13664 \begin_inset Flex Code
13667 \begin_layout Plain Layout
13676 \begin_layout Description
13677 \begin_inset Flex Code
13680 \begin_layout Plain Layout
13687 \begin_inset Flex Code
13690 \begin_layout Plain Layout
13697 \begin_inset space \thinspace{}
13701 \begin_inset Flex Code
13704 \begin_layout Plain Layout
13712 ] Nur sinnvoll wenn der
13713 \begin_inset Flex Code
13716 \begin_layout Plain Layout
13723 \begin_inset Flex Code
13726 \begin_layout Plain Layout
13733 Gibt an, ob die Umgebung in der Ausgabe abgesetzt erscheint oder in einer
13734 Zeile mit dem umgebenden Text.
13736 \begin_inset Flex Code
13739 \begin_layout Plain Layout
13745 gesetzt, wird angenommen, dass die LaTeX-Umgebung Leerraum nach den
13746 \begin_inset Flex Code
13749 \begin_layout Plain Layout
13762 \begin_inset Flex Code
13765 \begin_layout Plain Layout
13777 Befehlen ignoriert (inklusive des Zeilenumbruchzeichens).
13780 \begin_layout Description
13781 \begin_inset Flex Code
13784 \begin_layout Plain Layout
13791 \begin_inset Flex Code
13794 \begin_layout Plain Layout
13803 \begin_layout Description
13804 \begin_inset Flex Code
13807 \begin_layout Plain Layout
13817 die Marke benutzt (siehe
13818 \begin_inset CommandInset ref
13820 reference "sub:Beschreibung-des-Zeichensatzes"
13825 Beachten Sie, dass die Definition dieses Fonts automatisch dem
13826 \begin_inset Flex Code
13829 \begin_layout Plain Layout
13835 denselben Wert zuweist, das heißt
13836 \begin_inset Flex Code
13839 \begin_layout Plain Layout
13845 muss zuerst definiert werden und
13846 \begin_inset Flex Code
13849 \begin_layout Plain Layout
13855 danach, wenn sie unterschiedlich sein sollen.
13858 \begin_layout Description
13859 \begin_inset Flex Code
13862 \begin_layout Plain Layout
13869 \begin_inset Quotes gld
13873 \begin_inset Quotes grd
13876 und führt zu einer links-nach-rechts-Ausgabe, zum Beispiel bei TeX-Code
13879 \begin_inset Flex Code
13882 \begin_layout Plain Layout
13888 ist eine Behelfslösung.
13891 \begin_layout Description
13892 \begin_inset Flex Code
13895 \begin_layout Plain Layout
13902 \begin_inset Flex Code
13905 \begin_layout Plain Layout
13914 \begin_inset space \thinspace{}
13918 \begin_inset Flex Code
13921 \begin_layout Plain Layout
13927 ] zeigt an, ob stattdessen
13928 \begin_inset Flex Code
13931 \begin_layout Plain Layout
13937 benutzt werden soll oder ob der Benutzer den Absatzstil der Einfügung ändern
13941 \begin_layout Description
13942 \begin_inset Flex Code
13945 \begin_layout Plain Layout
13952 \begin_inset Flex Code
13955 \begin_layout Plain Layout
13964 \begin_inset space \thinspace{}
13968 \begin_inset Flex Code
13971 \begin_layout Plain Layout
13977 ] Wie bei Absatz-Layouts, siehe Abschnitt
13978 \begin_inset space ~
13982 \begin_inset CommandInset ref
13984 reference "sub:Einzelne-Absatz-Layouts"
13991 \begin_layout Description
13992 \begin_inset Flex Code
13995 \begin_layout Plain Layout
14001 Diese Tags kontrollieren die XHTML-Ausgabe.
14003 \begin_inset space ~
14007 \begin_inset CommandInset ref
14009 reference "sec:Tags-for-XHTML"
14016 \begin_layout Description
14017 \begin_inset Flex Code
14020 \begin_layout Plain Layout
14027 \begin_inset Flex Code
14030 \begin_layout Plain Layout
14039 \begin_inset space \thinspace{}
14043 \begin_inset Flex Code
14046 \begin_layout Plain Layout
14052 ] Ob der Inhalt der Einfügung für die Zeichenketten des 'Gliederungs'-Fensters
14053 verwendet werden soll.
14054 Zum Beispiel will man nicht, dass der Inhalt einer Fußzeile im Namen des
14055 Abschnitts im Inhaltsverzeichnis des Gliederungs-Fensters erscheint.
14056 Aber man will normalerweise, dass der Inhalt von Zeichenstilen erscheint.
14059 \begin_layout Description
14060 \begin_inset Flex Code
14063 \begin_layout Plain Layout
14072 \begin_inset Flex Code
14075 \begin_layout Plain Layout
14084 \begin_inset space \thinspace{}
14088 \begin_inset Flex Code
14091 \begin_layout Plain Layout
14097 ] Wie bei Absatz-Layouts, siehe Abschnitt
14098 \begin_inset space ~
14102 \begin_inset CommandInset ref
14104 reference "sub:Einzelne-Absatz-Layouts"
14111 \begin_layout Description
14112 \begin_inset Flex Code
14115 \begin_layout Plain Layout
14121 ist die für die Marke benutze Schrift (siehe
14122 \begin_inset CommandInset ref
14124 reference "sub:Beschreibung-des-Zeichensatzes"
14129 Beachten Sie, dass diese Definition niemals vor
14130 \begin_inset Flex Code
14133 \begin_layout Plain Layout
14139 erscheinen darf, weil sie sonst unwirksam ist.
14142 \begin_layout Description
14143 \begin_inset Flex Code
14146 \begin_layout Plain Layout
14153 \begin_inset Flex Code
14156 \begin_layout Plain Layout
14163 \begin_inset Quotes erd
14167 \begin_inset Quotes erd
14170 ] wird auf dem Knopf und anderswo als Einfügungsmarke angezeigt.
14171 Einige Einfügungstypen (TeX-Code und Zweig) ändern diese Marke im Vo\SpecialChar \-
14177 \begin_layout Description
14178 \begin_inset Flex Code
14181 \begin_layout Plain Layout
14188 \begin_inset Flex Code
14191 \begin_layout Plain Layout
14197 ] ist der Name der LaTeX-Umgebung oder des LaTeX-Befehls.
14200 \begin_layout Description
14201 \begin_inset Flex Code
14204 \begin_layout Plain Layout
14211 \begin_inset Flex Code
14214 \begin_layout Plain Layout
14220 ] ist ein optionaler Parameter für den zugehörigen
14221 \begin_inset Flex Code
14224 \begin_layout Plain Layout
14230 , einschließ\SpecialChar \-
14231 lich möglicher Klammerpaare wie
14232 \begin_inset Flex Code
14235 \begin_layout Plain Layout
14242 Dieser Parameter kann in LyX nicht geändert werden.
14245 \begin_layout Description
14246 \begin_inset Flex Code
14249 \begin_layout Plain Layout
14255 Wie bei Absatz-Layouts, siehe Abschnitt
14256 \begin_inset space ~
14260 \begin_inset CommandInset ref
14262 reference "sub:Einzelne-Absatz-Layouts"
14269 \begin_layout Description
14270 \begin_inset Flex Code
14273 \begin_layout Plain Layout
14280 \begin_inset Flex Code
14283 \begin_layout Plain Layout
14290 \begin_inset Flex Code
14293 \begin_layout Plain Layout
14300 \begin_inset Flex Code
14303 \begin_layout Plain Layout
14310 \begin_inset Flex Code
14313 \begin_layout Plain Layout
14319 (zeigt das Ende einer Definition an) sein.
14320 Dieser Eintrag wird für flexible Einfügungen benötigt und ist nur dort
14322 Neben anderen Dingen legt er fest, in welchem Menü diese Einfügung erscheinen
14325 \begin_inset Flex Code
14328 \begin_layout Plain Layout
14335 \begin_inset Flex Code
14338 \begin_layout Plain Layout
14345 \begin_inset Flex Code
14348 \begin_layout Plain Layout
14355 \begin_inset Flex Code
14358 \begin_layout Plain Layout
14366 \begin_inset Flex Code
14369 \begin_layout Plain Layout
14376 \begin_inset Flex Code
14379 \begin_layout Plain Layout
14386 \begin_inset Flex Code
14389 \begin_layout Plain Layout
14395 -Einfügungen gesetzt werden, indem es
14400 \begin_inset Flex Code
14403 \begin_layout Plain Layout
14412 \begin_layout Description
14413 \begin_inset Flex Code
14416 \begin_layout Plain Layout
14423 \begin_inset Flex Code
14426 \begin_layout Plain Layout
14435 \begin_inset space \thinspace{}
14439 \begin_inset Flex Code
14442 \begin_layout Plain Layout
14448 ] zeigt an, ob in dieser Einfügung mehrfache Absätze erlaubt sind.
14450 \begin_inset Flex Code
14453 \begin_layout Plain Layout
14459 auf denselben Wert gesetzt und
14460 \begin_inset Flex Code
14463 \begin_layout Plain Layout
14470 Diese können auf andere Werte gesetzt werden, wenn sie
14475 \begin_inset Flex Code
14478 \begin_layout Plain Layout
14487 \begin_layout Description
14488 \begin_inset Flex Code
14491 \begin_layout Plain Layout
14498 \begin_inset Flex Code
14501 \begin_layout Plain Layout
14510 \begin_inset space \thinspace{}
14514 \begin_inset Flex Code
14517 \begin_layout Plain Layout
14527 Befehle in diesem Layout ge\SpecialChar \-
14529 \begin_inset Flex Code
14532 \begin_layout Plain Layout
14545 an, ob der Befehl selber geschützt werden soll.
14548 \begin_layout Description
14549 \begin_inset Flex Code
14552 \begin_layout Plain Layout
14559 \begin_inset Flex Code
14562 \begin_layout Plain Layout
14571 \begin_inset space \thinspace{}
14575 \begin_inset Flex Code
14578 \begin_layout Plain Layout
14584 ] Wie bei Absatz-Layouts, siehe Abschnitt
14585 \begin_inset space ~
14589 \begin_inset CommandInset ref
14591 reference "sub:Einzelne-Absatz-Layouts"
14598 \begin_layout Description
14599 \begin_inset Flex Code
14602 \begin_layout Plain Layout
14609 \begin_inset Flex Code
14612 \begin_layout Plain Layout
14621 \begin_inset space \thinspace{}
14625 \begin_inset Flex Code
14628 \begin_layout Plain Layout
14634 ] Wie bei Absatz-Layouts, siehe Abschnitt
14635 \begin_inset space ~
14639 \begin_inset CommandInset ref
14641 reference "sub:Einzelne-Absatz-Layouts"
14648 \begin_layout Description
14649 \begin_inset Flex Code
14652 \begin_layout Plain Layout
14658 Wie bei Absatz-Layouts, siehe Abschnitt
14659 \begin_inset space ~
14663 \begin_inset CommandInset ref
14665 reference "sub:Einzelne-Absatz-Layouts"
14672 \begin_layout Description
14673 \begin_inset Flex Code
14676 \begin_layout Plain Layout
14683 \begin_inset Flex Code
14686 \begin_layout Plain Layout
14692 ] Der Präfix, der verwendet werden soll, wenn auf Marken dieser Einfügung
14694 Dies erlaubt die Verwendung von Formatierten Querverweisen.
14697 \begin_layout Description
14698 \begin_inset Flex Code
14701 \begin_layout Plain Layout
14708 \begin_inset Flex Code
14711 \begin_layout Plain Layout
14717 ] Wie bei Absatz-Layouts, siehe Abschnitt
14718 \begin_inset space ~
14722 \begin_inset CommandInset ref
14724 reference "sub:Einzelne-Absatz-Layouts"
14731 \begin_layout Description
14732 \begin_inset Flex Code
14735 \begin_layout Plain Layout
14742 \begin_inset Flex Code
14745 \begin_layout Plain Layout
14752 \begin_inset space \thinspace{}
14756 \begin_inset Flex Code
14759 \begin_layout Plain Layout
14767 ] Ob die Einfügung die Schrift der benachbarten Umgebungen verwenden soll
14770 \begin_inset Flex Code
14773 \begin_layout Plain Layout
14781 : verwendet seine Eigene.
14784 \begin_layout Description
14785 \begin_inset Flex Code
14788 \begin_layout Plain Layout
14795 \begin_inset Flex Code
14798 \begin_layout Plain Layout
14805 \begin_inset space \thinspace{}
14809 \begin_inset Flex Code
14812 \begin_layout Plain Layout
14820 ] Erlaubt es, den Inhalt der Einfügung auf Rechtschreibung zu überprüfen.
14823 \begin_layout Subsection
14825 \begin_inset CommandInset label
14834 \begin_layout Standard
14835 Es ist notwendig Zähler (
14836 \begin_inset Flex MenuItem
14839 \begin_layout Plain Layout
14846 \begin_inset Flex MenuItem
14849 \begin_layout Plain Layout
14855 ,\SpecialChar \ldots{}
14856 ) in der Textklasse selber zu definieren.
14857 Die Standardzähler sind in der Datei
14858 \begin_inset Flex Code
14861 \begin_layout Plain Layout
14867 definiert, so dass Sie nur die Zeile
14870 \begin_layout LyX-Code
14871 Input stdcounters.inc
14874 \begin_layout Standard
14875 zu zu Ihrer Layout-Datei hinzufügen müssen, damit sie arbeiten.
14876 Aber wenn Sie eigene Zähler definieren wollen, können Sie das tun.
14877 Zähler-Deklarationen beginnen mit
14880 \begin_layout LyX-Code
14884 \begin_layout Standard
14886 \begin_inset Flex Code
14889 \begin_layout Plain Layout
14895 der Name Ihres Zählers ist.
14896 Die Deklaration endet mit
14897 \begin_inset Flex Code
14900 \begin_layout Plain Layout
14909 \begin_layout Standard
14910 Folgende Parameter können auch benutzt werden:
14913 \begin_layout Description
14914 \begin_inset Flex Code
14917 \begin_layout Plain Layout
14924 \begin_inset Flex Code
14927 \begin_layout Plain Layout
14934 \begin_inset Quotes erd
14938 \begin_inset Quotes erd
14941 ] definiert, wie der Zähler dargestellt wird.
14943 \begin_inset Flex Code
14946 \begin_layout Plain Layout
14947 LabelStringAppendix
14952 auf denselben Wert gesetzt.
14953 In der Zeichenkette können folgende Konstrukte benutzt werden:
14956 \begin_layout Itemize
14957 \begin_inset Flex Code
14960 \begin_layout Plain Layout
14968 wird durch die Erweiterung von
14969 \begin_inset Flex Code
14972 \begin_layout Plain Layout
14979 \begin_inset Newline newline
14983 \begin_inset Flex Code
14986 \begin_layout Plain Layout
14987 LabelStringAppendix
14993 \begin_inset Flex Code
14996 \begin_layout Plain Layout
15005 \begin_layout Itemize
15006 Zählerwerte können durch LaTeX-ähnliche Makros wie
15007 \begin_inset Flex Code
15010 \begin_layout Plain Layout
15026 ausgedrückt werden, wobei
15027 \begin_inset Flex Code
15030 \begin_layout Plain Layout
15038 Folgendes sein kann:
15039 \begin_inset Flex Code
15042 \begin_layout Plain Layout
15048 : 1, 2, 3,\SpecialChar \ldots{}
15050 \begin_inset Flex Code
15053 \begin_layout Plain Layout
15059 für Kleinbuchstaben: a, b, c,\SpecialChar \ldots{}
15061 \begin_inset Flex Code
15064 \begin_layout Plain Layout
15070 für Großbuchstaben: A, B, C,\SpecialChar \ldots{}
15072 \begin_inset Flex Code
15075 \begin_layout Plain Layout
15081 für kleine römische Zahlen: i, ii, iii,\SpecialChar \ldots{}
15083 \begin_inset Flex Code
15086 \begin_layout Plain Layout
15092 für große römische Zahlen: I, II, III.
15095 \begin_layout Standard
15097 \begin_inset Flex Code
15100 \begin_layout Plain Layout
15106 nicht definiert ist, wird ein Standardwert wie folgt benutzt: wenn der
15107 Zähler einen Hauptzähler
15108 \begin_inset Flex Code
15111 \begin_layout Plain Layout
15118 \begin_inset Flex Code
15121 \begin_layout Plain Layout
15127 definiert) hat, wird der String
15128 \begin_inset Flex Code
15131 \begin_layout Plain Layout
15142 \begin_inset Flex Code
15145 \begin_layout Plain Layout
15156 \begin_layout Description
15157 \begin_inset Flex Code
15160 \begin_layout Plain Layout
15161 LabelStringAppendix
15167 \begin_inset Flex Code
15170 \begin_layout Plain Layout
15177 \begin_inset Quotes erd
15181 \begin_inset Quotes erd
15185 \begin_inset Flex Code
15188 \begin_layout Plain Layout
15194 , aber für den Anhang.
15197 \begin_layout Description
15198 \begin_inset Flex Code
15201 \begin_layout Plain Layout
15208 \begin_inset Flex Code
15211 \begin_layout Plain Layout
15218 \begin_inset Quotes erd
15222 \begin_inset Quotes erd
15225 ] Ein Format, das für Formatierte Querverweise auf einen Zähler verwendet
15228 \begin_inset space \thinspace{}
15232 Referenzen auf Abschnitte in der Form
15233 \begin_inset Quotes gld
15237 \begin_inset space ~
15241 \begin_inset Quotes grd
15244 haben, sollte der String
15245 \begin_inset Quotes gld
15249 \begin_inset Quotes grd
15253 Diese Zeichen werden später durch die referenzierte Abschnittsnummer ersetzt.
15254 Also für Abschnitte lautet der String dann
15255 \begin_inset Quotes gld
15259 \begin_inset Quotes grd
15265 \begin_layout Description
15266 \begin_inset Flex Code
15269 \begin_layout Plain Layout
15276 \begin_inset Flex Code
15279 \begin_layout Plain Layout
15286 \begin_inset Quotes erd
15290 \begin_inset Quotes erd
15293 ] Wenn dies auf den Namen eines anderen Zählers gesetzt wird, wird der gegenwärt
15294 ige Zähler jedes mal zurückgesetzt, wenn der andere erhöht wird.
15296 \begin_inset Flex Code
15299 \begin_layout Plain Layout
15306 \begin_inset Flex Code
15309 \begin_layout Plain Layout
15318 \begin_layout Subsection
15319 Beschreibung des Zeichensatzes
15320 \begin_inset CommandInset label
15322 name "sub:Beschreibung-des-Zeichensatzes"
15329 \begin_layout Standard
15330 Eine Zeichensatzbeschreibung sieht folgendermaßen aus:
15333 \begin_layout LyX-Code
15343 \begin_layout LyX-Code
15347 \begin_layout LyX-Code
15351 \begin_layout Standard
15352 und es sind folgende Befehle vorhanden:
15355 \begin_layout Description
15356 \begin_inset Flex Code
15359 \begin_layout Plain Layout
15366 \begin_inset Flex Code
15369 \begin_layout Plain Layout
15376 \begin_inset Flex Code
15379 \begin_layout Plain Layout
15386 \begin_inset Flex Code
15389 \begin_layout Plain Layout
15396 \begin_inset Flex Code
15399 \begin_layout Plain Layout
15406 \begin_inset Flex Code
15409 \begin_layout Plain Layout
15416 \begin_inset Flex Code
15419 \begin_layout Plain Layout
15426 \begin_inset Flex Code
15429 \begin_layout Plain Layout
15436 \begin_inset Flex Code
15439 \begin_layout Plain Layout
15446 \begin_inset Flex Code
15449 \begin_layout Plain Layout
15458 \begin_layout Description
15459 \begin_inset Flex Code
15462 \begin_layout Plain Layout
15469 \begin_inset Flex Code
15472 \begin_layout Plain Layout
15479 \begin_inset Flex Code
15482 \begin_layout Plain Layout
15489 \begin_inset Flex Code
15492 \begin_layout Plain Layout
15501 \begin_layout Description
15502 \begin_inset Flex Code
15505 \begin_layout Plain Layout
15512 \begin_inset Flex Code
15515 \begin_layout Plain Layout
15521 ] Zulässige Argumente sind:
15522 \begin_inset Flex Code
15525 \begin_layout Plain Layout
15532 \begin_inset Flex Code
15535 \begin_layout Plain Layout
15542 \begin_inset Flex Code
15545 \begin_layout Plain Layout
15552 \begin_inset Flex Code
15555 \begin_layout Plain Layout
15562 \begin_inset Flex Code
15565 \begin_layout Plain Layout
15572 \begin_inset Flex Code
15575 \begin_layout Plain Layout
15582 \begin_inset Flex Code
15585 \begin_layout Plain Layout
15592 \begin_inset Flex Code
15595 \begin_layout Plain Layout
15602 \begin_inset Flex Code
15605 \begin_layout Plain Layout
15612 \begin_inset Flex Code
15615 \begin_layout Plain Layout
15622 \begin_inset Flex Code
15625 \begin_layout Plain Layout
15632 \begin_inset Flex Code
15635 \begin_layout Plain Layout
15642 Jedes schaltet die entsprechende Eigenschaft an oder aus.
15644 \begin_inset Flex Code
15647 \begin_layout Plain Layout
15658 \begin_inset Flex Code
15661 \begin_layout Plain Layout
15667 schaltet diesen aus.
15668 \begin_inset Newline newline
15671 Falls Sie Letzteres verwirrt, erinnern Sie sich, dass die Schrifteinstellungen
15672 standardmäßig von den umgebenden Stilen übernommen wird.
15674 \begin_inset Flex Code
15677 \begin_layout Plain Layout
15688 \begin_inset space \thinspace{}
15692 in einer Theorem-Umgebung aktiv ist.
15695 \begin_layout Description
15696 \begin_inset Flex Code
15699 \begin_layout Plain Layout
15706 \begin_inset Flex Code
15709 \begin_layout Plain Layout
15716 \begin_inset Flex Code
15719 \begin_layout Plain Layout
15728 \begin_layout Description
15729 \begin_inset Flex Code
15732 \begin_layout Plain Layout
15739 \begin_inset Flex Code
15742 \begin_layout Plain Layout
15749 \begin_inset Flex Code
15752 \begin_layout Plain Layout
15759 \begin_inset Flex Code
15762 \begin_layout Plain Layout
15769 \begin_inset Flex Code
15772 \begin_layout Plain Layout
15781 \begin_layout Description
15782 \begin_inset Flex Code
15785 \begin_layout Plain Layout
15792 \begin_inset Flex Code
15795 \begin_layout Plain Layout
15802 \begin_inset Flex Code
15805 \begin_layout Plain Layout
15812 \begin_inset Flex Code
15815 \begin_layout Plain Layout
15822 \begin_inset Flex Code
15825 \begin_layout Plain Layout
15832 \begin_inset Flex Code
15835 \begin_layout Plain Layout
15842 \begin_inset Flex Code
15845 \begin_layout Plain Layout
15852 \begin_inset Flex Code
15855 \begin_layout Plain Layout
15862 \begin_inset Flex Code
15865 \begin_layout Plain Layout
15874 \begin_layout Subsection
15877 \begin_inset CommandInset label
15879 name "sub:Citation-format-description"
15883 Citation format description
15886 \begin_layout Standard
15890 \begin_inset Flex Code
15893 \begin_layout Plain Layout
15901 blocks are used to describe how bibliographic information should be displayed,
15902 both within LyX itself (in the citation dialog and in tooltips, for example)
15903 and in XHTML output.
15904 Such a block might look like this:
15907 \begin_layout LyX-Code
15911 \begin_layout LyX-Code
15915 \begin_layout LyX-Code
15919 \begin_layout LyX-Code
15923 \begin_layout Standard
15926 The individual lines define how the bibliographic information associated
15927 with an article or book, respectively, is to be displayed, and such a definitio
15928 n can be given for any `entry type' that might be present in a BibTeX file.
15929 LyX defines a default format in the source code that will be used if no
15930 specific definition has been given.
15931 LyX predefines several formats in the file
15932 \begin_inset Flex Code
15935 \begin_layout Plain Layout
15943 , which is included in most of LyX's document classes.
15946 \begin_layout Standard
15949 The definitions use a simple language that allows BibTeX keys to be replaced
15951 Keys should be enclosed in
15952 \begin_inset Flex Code
15955 \begin_layout Plain Layout
15964 \begin_inset Flex Code
15967 \begin_layout Plain Layout
15976 So a simple definition might look like this:
15979 \begin_layout LyX-Code
15981 \begin_inset Quotes eld
15985 \begin_inset Quotes erd
15991 \begin_layout Standard
15994 This would print the author, followed by a comma, followed by the title,
15995 in quotes, followed by a period.
15998 \begin_layout Standard
16001 Of course, sometimes you may want to print a key only if it exists.
16002 This can be done by using a conditional construction, such as:
16003 \begin_inset Flex Code
16006 \begin_layout Plain Layout
16010 \begin_inset space ~
16020 \begin_inset Flex Code
16023 \begin_layout Plain Layout
16031 key exists, then print
16032 \begin_inset Quotes eld
16036 \begin_inset space ~
16040 \begin_inset Quotes erd
16043 followed by the volume key.
16044 It is also possible to have an else clause in the conditional, such as:
16045 \begin_inset Newline newline
16049 \begin_inset Flex Code
16052 \begin_layout Plain Layout
16055 {%author%[[%author%]][[%editor%, ed.]]}
16061 \begin_inset Newline newline
16065 \begin_inset Flex Code
16068 \begin_layout Plain Layout
16076 key is printed if it exists; otherwise, the editor key is printed, followed
16078 \begin_inset Quotes eld
16082 \begin_inset space ~
16086 \begin_inset Quotes erd
16089 Note that the key is again enclosed in
16090 \begin_inset Flex Code
16093 \begin_layout Plain Layout
16101 signs; the entire conditional is enclosed in braces; and the if and else
16102 clauses are enclosed in double brackets,
16103 \begin_inset Quotes eld
16107 \begin_inset Flex Code
16110 \begin_layout Plain Layout
16119 \begin_inset Quotes eld
16123 \begin_inset Quotes eld
16127 \begin_inset Flex Code
16130 \begin_layout Plain Layout
16139 \begin_inset Quotes erd
16143 There must be no space between any of these.
16146 \begin_layout Standard
16149 There is one other piece of syntax available in definitions, which looks
16151 \begin_inset Flex Code
16154 \begin_layout Plain Layout
16163 This defines a piece of formatting information that is to be used when
16165 \begin_inset Quotes eld
16169 \begin_inset Quotes erd
16173 Obviously, we do not want to output HTML tags when writing plain text,
16174 so they should be wrapped in
16175 \begin_inset Quotes eld
16179 \begin_inset Quotes erd
16183 \begin_inset Quotes eld
16187 \begin_inset Quotes erd
16193 \begin_layout Standard
16196 Two special sorts of definitions are also possible in a
16197 \begin_inset Flex Code
16200 \begin_layout Plain Layout
16209 An example of the first would be:
16212 \begin_layout LyX-Code
16214 \begin_inset Quotes eld
16218 \begin_inset Quotes erd
16224 \begin_layout Standard
16227 This is an abbreviation, or macro, and it can be used by treating it as
16229 \begin_inset Flex Code
16232 \begin_layout Plain Layout
16242 \begin_inset Flex Code
16245 \begin_layout Plain Layout
16253 exactly as it would treat its definition.
16254 So, let us issue the obvious
16262 \begin_layout LyX-Code
16266 \begin_layout Standard
16269 or anything like it.
16270 LyX shouldn't go into an infinite loop, but it may go into a long one before
16274 \begin_layout Standard
16277 The second sort of special definition might look like this:
16280 \begin_layout LyX-Code
16284 \begin_layout Standard
16287 This defines a translatable piece of text, which allows relevant parts of
16288 the bibliography to be translated.
16289 It can be included in a definition by treating it as a key:
16290 \begin_inset Flex Code
16293 \begin_layout Plain Layout
16302 Several of these are predefined in
16303 \begin_inset Flex Code
16306 \begin_layout Plain Layout
16315 Note that these are not macros, in the sense just defined.
16316 They will not be expanded.
16319 \begin_layout Standard
16322 So here then is an example that use all these features:
16323 \begin_inset VSpace defskip
16329 \begin_layout Standard
16334 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
16337 \begin_layout Standard
16340 \begin_inset VSpace defskip
16343 This defines a macro that prints the author, followed by a comma, if the
16345 \begin_inset Flex Code
16348 \begin_layout Plain Layout
16356 key is defined, or else prints the name of the editor, followed by the
16358 \begin_inset Flex Code
16361 \begin_layout Plain Layout
16369 or its translation (it is by default
16370 \begin_inset Quotes eld
16374 \begin_inset Quotes erd
16378 \begin_inset Flex Code
16381 \begin_layout Plain Layout
16390 Note that this is in fact defined in
16391 \begin_inset Flex Code
16394 \begin_layout Plain Layout
16402 , so you can use it in your own definitions, or re-definitions, if you load
16406 \begin_layout Section
16409 \begin_inset CommandInset label
16411 name "sec:Tags-for-XHTML"
16415 Tags for XHTML output
16418 \begin_layout Standard
16421 As with LaTeX or DocBook, the format of LyX's XHTML output is also controlled
16422 by layout information.
16423 In general, LyX provides sensible defaults and, as mentioned earlier, it
16424 will even construct default CSS style rules from the other layout tags.
16425 For example, LyX will attempt to use the information provided in the
16426 \begin_inset Flex Code
16429 \begin_layout Plain Layout
16437 declaration for the Chapter style to write CSS that will appropriately
16438 format chapter headings.
16441 \begin_layout Standard
16444 In many cases, then, you may not have to do anything at all to get acceptable
16445 XHTML output for your own environments, custom insets, and so forth.
16446 But in some cases you will, and so LyX provides a number of layout tags
16447 that can be used to customize the XHTML and CSS that are generated.
16450 \begin_layout Standard
16453 Note that there are two tags,
16454 \begin_inset Flex Code
16457 \begin_layout Plain Layout
16466 \begin_inset Flex Code
16469 \begin_layout Plain Layout
16477 that may appear outside style and inset declarations.
16479 \begin_inset CommandInset ref
16481 reference "sub:Allgemeine-Parameter-für"
16485 for details on these.
16488 \begin_layout Subsection
16494 \begin_layout Standard
16497 The sort of XHTML LyX outputs for a paragraph depends upon whether we are
16498 dealing with a normal paragraph, a command, or an environment, where this
16499 is itself determined by the contents of the corresponding
16500 \begin_inset Flex Code
16503 \begin_layout Plain Layout
16515 \begin_layout Standard
16518 For a command or normal paragraph, the output XHTML has the following form:
16521 \begin_layout LyX-Code
16525 \begin_inset Quotes erd
16529 \begin_inset Quotes erd
16535 \begin_layout LyX-Code
16539 \begin_inset Quotes erd
16543 \begin_inset Quotes erd
16549 \begin_layout LyX-Code
16552 Contents of the paragraph.
16555 \begin_layout LyX-Code
16561 \begin_layout Standard
16564 The label tags are of course omitted if the paragraph does not have a label.
16567 \begin_layout Standard
16570 For an environment that is not some sort of list, the XHTML takes this form:
16573 \begin_layout LyX-Code
16577 \begin_inset Quotes erd
16581 \begin_inset Quotes erd
16587 \begin_layout LyX-Code
16591 \begin_inset Quotes erd
16595 \begin_inset Quotes erd
16599 \begin_inset Quotes erd
16603 \begin_inset Quotes erd
16606 >Environment Label</labeltag>First paragraph.</itemtag>
16609 \begin_layout LyX-Code
16612 <itemtag>Second paragraph.</itemtag>
16615 \begin_layout LyX-Code
16621 \begin_layout Standard
16624 Note that the label is output only for the first paragraph, as it should
16625 be for a theorem, for example.
16629 \begin_layout Standard
16632 For a list, we have one of these forms:
16635 \begin_layout LyX-Code
16639 \begin_inset Quotes erd
16643 \begin_inset Quotes erd
16649 \begin_layout LyX-Code
16653 \begin_inset Quotes erd
16657 \begin_inset Quotes erd
16661 \begin_inset Quotes erd
16665 \begin_inset Quotes erd
16668 >List Label</labeltag>First item.</itemtag>
16671 \begin_layout LyX-Code
16675 \begin_inset Quotes erd
16679 \begin_inset Quotes erd
16683 \begin_inset Quotes erd
16687 \begin_inset Quotes erd
16690 >List Label</labeltag>Second item.</itemtag>
16693 \begin_layout LyX-Code
16699 \begin_layout LyX-Code
16703 \begin_layout LyX-Code
16707 \begin_inset Quotes erd
16711 \begin_inset Quotes erd
16717 \begin_layout LyX-Code
16721 \begin_inset Quotes erd
16725 \begin_inset Quotes erd
16728 >List Label</labeltag><itemtag attr=
16729 \begin_inset Quotes erd
16733 \begin_inset Quotes erd
16736 >First item.</itemtag>
16739 \begin_layout LyX-Code
16743 \begin_inset Quotes erd
16747 \begin_inset Quotes erd
16750 >List Label</labeltag><itemtag attr=
16751 \begin_inset Quotes erd
16755 \begin_inset Quotes erd
16758 >Second item.</itemtag>
16761 \begin_layout LyX-Code
16767 \begin_layout Standard
16770 Note the different orders of
16771 \begin_inset Flex Code
16774 \begin_layout Plain Layout
16783 \begin_inset Flex Code
16786 \begin_layout Plain Layout
16795 Which order we get depends upon the setting of
16796 \begin_inset Flex Code
16799 \begin_layout Plain Layout
16808 \begin_inset Flex Code
16811 \begin_layout Plain Layout
16819 is false (the default), you get the first of these, with the label within
16820 the item; if true, you get the second, with the label outside the item.
16823 \begin_layout Standard
16826 The specific tags and attributes output for each paragraph type can be controlle
16827 d by means of the layout tags we are about to describe.
16828 As mentioned earlier, however, LyX uses sensible defaults for many of these,
16829 so you often may not need to do very much to get good XHTML output.
16830 Think of the available tags as there so you can tweak things to your liking.
16833 \begin_layout Description
16836 \begin_inset Flex Code
16839 \begin_layout Plain Layout
16848 \begin_inset Flex Code
16851 \begin_layout Plain Layout
16859 ] Specifies attribute information to be output with the main tag.
16861 \begin_inset Quotes eld
16865 \begin_inset Flex Code
16868 \begin_layout Plain Layout
16877 \begin_inset Quotes erd
16881 By default, LyX will output
16882 \begin_inset Quotes eld
16886 \begin_inset Flex Code
16889 \begin_layout Plain Layout
16898 \begin_inset Quotes erd
16902 \begin_inset Flex Code
16905 \begin_layout Plain Layout
16913 is the LyX name of the layout, made lowercase, for example: chapter.
16918 contain any style information.
16920 \begin_inset Flex Code
16923 \begin_layout Plain Layout
16934 \begin_layout Description
16937 \begin_inset Flex Code
16940 \begin_layout Plain Layout
16949 \begin_inset Flex Code
16952 \begin_layout Plain Layout
16962 \begin_inset space \thinspace{}
16966 \begin_inset Flex Code
16969 \begin_layout Plain Layout
16977 ] Whether to output the default CSS information LyX generates for this layout,
16978 even if additional information is explicitly provided via
16979 \begin_inset Flex Code
16982 \begin_layout Plain Layout
16992 \begin_inset Flex Code
16995 \begin_layout Plain Layout
17003 allows you to alter or augment the generated CSS, rather than to override
17006 \begin_inset Flex Code
17009 \begin_layout Plain Layout
17020 \begin_layout Description
17023 \begin_inset Flex Code
17026 \begin_layout Plain Layout
17035 \begin_inset Flex Code
17038 \begin_layout Plain Layout
17046 ] The tag to be used for individual paragraphs of environments, replacing
17048 \begin_inset Flex Code
17051 \begin_layout Plain Layout
17059 in the examples above.
17061 \begin_inset Flex Code
17064 \begin_layout Plain Layout
17075 \begin_layout Description
17078 \begin_inset Flex Code
17081 \begin_layout Plain Layout
17090 \begin_inset Flex Code
17093 \begin_layout Plain Layout
17101 ] Attributes for the item tag.
17103 \begin_inset Quotes eld
17107 \begin_inset Flex Code
17110 \begin_layout Plain Layout
17113 class=`layoutname_item'
17119 \begin_inset Quotes erd
17127 contain any style information.
17129 \begin_inset Flex Code
17132 \begin_layout Plain Layout
17143 \begin_layout Description
17146 \begin_inset Flex Code
17149 \begin_layout Plain Layout
17158 \begin_inset Flex Code
17161 \begin_layout Plain Layout
17169 ] The tag to be used for paragraph and item labels, replacing
17170 \begin_inset Flex Code
17173 \begin_layout Plain Layout
17181 in the examples above.
17183 \begin_inset Flex Code
17186 \begin_layout Plain Layout
17195 \begin_inset Flex Code
17198 \begin_layout Plain Layout
17207 \begin_inset Flex Code
17210 \begin_layout Plain Layout
17219 \begin_inset Flex Code
17222 \begin_layout Plain Layout
17225 Centered_Top_Environment
17230 , in which case it defaults to
17231 \begin_inset Flex Code
17234 \begin_layout Plain Layout
17245 \begin_layout Description
17248 \begin_inset Flex Code
17251 \begin_layout Plain Layout
17260 \begin_inset Flex Code
17263 \begin_layout Plain Layout
17271 ] Attributes for the label tag.
17273 \begin_inset Quotes eld
17277 \begin_inset Flex Code
17280 \begin_layout Plain Layout
17283 class=`layoutname_label'
17289 \begin_inset Quotes erd
17297 contain any style information.
17299 \begin_inset Flex Code
17302 \begin_layout Plain Layout
17313 \begin_layout Description
17316 \begin_inset Flex Code
17319 \begin_layout Plain Layout
17328 \begin_inset Flex Code
17331 \begin_layout Plain Layout
17341 \begin_inset space \thinspace{}
17345 \begin_inset Flex Code
17348 \begin_layout Plain Layout
17356 ] Meaningful only for list-like environments, this tag controls whether
17357 the label tag is output before or inside the item tag.
17358 This is used, for example, in the description environment, where we want
17360 \begin_inset Flex Code
17363 \begin_layout Plain Layout
17366 <dt>\SpecialChar \ldots{}
17367 </dt><dd>\SpecialChar \ldots{}
17375 \begin_inset Flex Code
17378 \begin_layout Plain Layout
17386 : The label tag is output inside the item tag.
17389 \begin_layout Description
17392 \begin_inset Flex Code
17395 \begin_layout Plain Layout
17403 Information to be output in the
17404 \begin_inset Flex Code
17407 \begin_layout Plain Layout
17415 section when this style is used.
17416 This might, for example, be used to include a
17417 \begin_inset Flex Code
17420 \begin_layout Plain Layout
17429 \begin_inset Flex Code
17432 \begin_layout Plain Layout
17443 \begin_layout Description
17446 \begin_inset Flex Code
17449 \begin_layout Plain Layout
17457 CSS style information to be included when this style is used.
17458 Note that this will automatically be wrapped in a layout-generated
17459 \begin_inset Flex Code
17462 \begin_layout Plain Layout
17470 block, so only the CSS itself need be included.
17473 \begin_layout Description
17476 \begin_inset Flex Code
17479 \begin_layout Plain Layout
17488 \begin_inset Flex Code
17491 \begin_layout Plain Layout
17499 ] The tag to be used for the main label, replacing
17500 \begin_inset Flex Code
17503 \begin_layout Plain Layout
17511 in the examples above.
17513 \begin_inset Flex Code
17516 \begin_layout Plain Layout
17527 \begin_layout Description
17530 \begin_inset Flex Code
17533 \begin_layout Plain Layout
17542 \begin_inset Flex Code
17545 \begin_layout Plain Layout
17555 \begin_inset space \thinspace{}
17559 \begin_inset Flex Code
17562 \begin_layout Plain Layout
17570 ] Marks this style as the one to be used to generate the
17571 \begin_inset Flex Code
17574 \begin_layout Plain Layout
17582 tag for the XHTML file.
17583 By default, it is false.
17585 \begin_inset Flex Code
17588 \begin_layout Plain Layout
17596 file sets it to true for the
17597 \begin_inset Flex Code
17600 \begin_layout Plain Layout
17612 \begin_layout Subsection
17618 \begin_layout Standard
17621 The XHTML output of insets can also be controlled by information in layout
17626 \begin_layout Plain Layout
17629 At present, this is true only for
17630 \begin_inset Quotes eld
17634 \begin_inset Quotes erd
17637 insets (insets you can type into) and is not true for
17638 \begin_inset Quotes eld
17642 \begin_inset Quotes erd
17645 insets (insets that are associated with dialog boxes).
17650 Here, too, LyX tries to provide sensible defaults, and it constructs default
17652 But everything can be customized.
17655 \begin_layout Standard
17658 The XHTML LyX outputs for an inset has the following form:
17661 \begin_layout LyX-Code
17665 \begin_inset Quotes erd
17669 \begin_inset Quotes erd
17675 \begin_layout LyX-Code
17678 <labeltag>Label</labeltag>
17681 \begin_layout LyX-Code
17685 \begin_inset Quotes erd
17689 \begin_inset Quotes erd
17692 >Contents of the inset.</innertag>
17695 \begin_layout LyX-Code
17701 \begin_layout Standard
17704 If the inset permits multiple paragraphs---that is, if
17705 \begin_inset Flex Code
17708 \begin_layout Plain Layout
17716 is true---then the contents of the inset will itself be output as paragraphs
17717 formatted according to the styles used for those paragraphs (standard,
17718 quote, and the like).
17719 The label tag is of course omitted if the paragraph does not have a label
17720 and, at present, is always
17721 \begin_inset Flex Code
17724 \begin_layout Plain Layout
17733 The inner tag is optional and, by default, does not appear.
17736 \begin_layout Standard
17739 The specific tags and attributes output for each inset can be controlled
17740 by means of the following layout tags.
17743 \begin_layout Description
17746 \begin_inset Flex Code
17749 \begin_layout Plain Layout
17758 \begin_inset Flex Code
17761 \begin_layout Plain Layout
17769 ] Specifies attribute information to be output with the main tag.
17771 \begin_inset Quotes eld
17775 \begin_inset Flex Code
17778 \begin_layout Plain Layout
17781 class=`myinset' onclick=`\SpecialChar \ldots{}
17788 \begin_inset Quotes erd
17792 By default, LyX will output
17793 \begin_inset Quotes eld
17797 \begin_inset Flex Code
17800 \begin_layout Plain Layout
17809 \begin_inset Quotes erd
17813 \begin_inset Flex Code
17816 \begin_layout Plain Layout
17824 is the LyX name of the inset, made lowercase and with non-alphanumeric
17825 characters converted to underscores, for example: footnote.
17828 \begin_layout Description
17831 \begin_inset Flex Code
17834 \begin_layout Plain Layout
17843 \begin_inset Flex Code
17846 \begin_layout Plain Layout
17856 \begin_inset space \thinspace{}
17860 \begin_inset Flex Code
17863 \begin_layout Plain Layout
17871 ] Whether to output the default CSS information LyX generates for this layout,
17872 even if additional information is explicitly provided via
17873 \begin_inset Flex Code
17876 \begin_layout Plain Layout
17886 \begin_inset Flex Code
17889 \begin_layout Plain Layout
17897 allows you to alter or augment the generated CSS, rather than to override
17902 \begin_layout Description
17905 \begin_inset Flex Code
17908 \begin_layout Plain Layout
17917 \begin_inset Flex Code
17920 \begin_layout Plain Layout
17928 ] Attributes for the inner tag.
17930 \begin_inset Quotes eld
17934 \begin_inset Flex Code
17937 \begin_layout Plain Layout
17940 class=`insetname_inner'
17946 \begin_inset Quotes erd
17952 \begin_layout Description
17955 \begin_inset Flex Code
17958 \begin_layout Plain Layout
17967 \begin_inset Flex Code
17970 \begin_layout Plain Layout
17978 ] The inner tag, replacing
17979 \begin_inset Flex Code
17982 \begin_layout Plain Layout
17990 in the examples above.
17991 By default, there is none.
17994 \begin_layout Description
17997 \begin_inset Flex Code
18000 \begin_layout Plain Layout
18009 \begin_inset Flex Code
18012 \begin_layout Plain Layout
18021 \begin_inset space \thinspace{}
18025 \begin_inset Flex Code
18028 \begin_layout Plain Layout
18037 ] Whether this inset represents a standalone block of text (such as a footnote)
18038 or instead represents material that is included in the surrounding text
18039 (such as a branch).
18043 \begin_layout Description
18046 \begin_inset Flex Code
18049 \begin_layout Plain Layout
18058 \begin_inset Flex Code
18061 \begin_layout Plain Layout
18069 ] A label for this inset, possibly including a reference to a counter.
18070 For example, for footnote, it might be:
18071 \begin_inset Flex Code
18074 \begin_layout Plain Layout
18085 This is optional, and there is no default.
18088 \begin_layout Description
18091 \begin_inset Flex Code
18094 \begin_layout Plain Layout
18102 Information to be output in the
18103 \begin_inset Flex Code
18106 \begin_layout Plain Layout
18114 section when this style is used.
18115 This might, for example, be used to include a
18116 \begin_inset Flex Code
18119 \begin_layout Plain Layout
18128 \begin_inset Flex Code
18131 \begin_layout Plain Layout
18142 \begin_layout Description
18145 \begin_inset Flex Code
18148 \begin_layout Plain Layout
18156 CSS style information to be included when this style is used.
18157 Note that this will automatically be wrapped in a layout-generated
18158 \begin_inset Flex Code
18161 \begin_layout Plain Layout
18169 block, so only the CSS itself need be included.
18172 \begin_layout Description
18175 \begin_inset Flex Code
18178 \begin_layout Plain Layout
18187 \begin_inset Flex Code
18190 \begin_layout Plain Layout
18198 ] The tag to be used for the main label, replacing
18199 \begin_inset Flex Code
18202 \begin_layout Plain Layout
18210 in the examples above.
18211 The default depends upon the setting of
18212 \begin_inset Flex Code
18215 \begin_layout Plain Layout
18224 \begin_inset Flex Code
18227 \begin_layout Plain Layout
18235 is true, the default is
18236 \begin_inset Flex Code
18239 \begin_layout Plain Layout
18247 ; if it is false, the default is
18248 \begin_inset Flex Code
18251 \begin_layout Plain Layout
18262 \begin_layout Subsection
18268 \begin_layout Standard
18271 The XHTML output for floats too can be controlled by layout information.
18272 The output has the following form:
18275 \begin_layout LyX-Code
18279 \begin_inset Quotes erd
18283 \begin_inset Quotes erd
18289 \begin_layout LyX-Code
18292 Contents of the float.
18295 \begin_layout LyX-Code
18301 \begin_layout Standard
18304 The caption, if there is one, is a separate inset and will be output as
18306 Its appearance can be controlled via the InsetLayout for caption insets.
18310 \begin_layout Description
18313 \begin_inset Flex Code
18316 \begin_layout Plain Layout
18325 \begin_inset Flex Code
18328 \begin_layout Plain Layout
18336 ] Specifies attribute information to be output with the main tag.
18338 \begin_inset Quotes eld
18342 \begin_inset Flex Code
18345 \begin_layout Plain Layout
18348 class=`myfloat' onclick=`\SpecialChar \ldots{}
18355 \begin_inset Quotes erd
18359 By default, LyX will output
18360 \begin_inset Quotes eld
18364 \begin_inset Flex Code
18367 \begin_layout Plain Layout
18370 class=`float float-floattype'
18376 \begin_inset Quotes erd
18380 \begin_inset Flex Code
18383 \begin_layout Plain Layout
18391 is LyX's name for this type of float, as determined by the float declaration
18393 \begin_inset CommandInset ref
18395 reference "sub:Gleitobjekte"
18399 ), though made lowercase and with non-alphanumeric characters converted
18400 to underscores, for example: float-table.
18403 \begin_layout Description
18406 \begin_inset Flex Code
18409 \begin_layout Plain Layout
18417 CSS style information to be included when this float is used.
18418 Note that this will automatically be wrapped in a layout-generated
18419 \begin_inset Flex Code
18422 \begin_layout Plain Layout
18430 block, so only the CSS itself need be included.
18433 \begin_layout Description
18436 \begin_inset Flex Code
18439 \begin_layout Plain Layout
18448 \begin_inset Flex Code
18451 \begin_layout Plain Layout
18459 ] The tag to be used for this float, replacing
18460 \begin_inset Quotes eld
18464 \begin_inset Flex Code
18467 \begin_layout Plain Layout
18476 \begin_inset Quotes erd
18479 in the example above.
18481 \begin_inset Flex Code
18484 \begin_layout Plain Layout
18492 and will rarely need changing.
18495 \begin_layout Subsection
18498 Bibliography formatting
18501 \begin_layout Standard
18504 The bibliography can be formatted using
18505 \begin_inset Flex Code
18508 \begin_layout Plain Layout
18518 \begin_inset CommandInset ref
18520 reference "sub:Citation-format-description"
18527 \begin_layout Subsection
18533 \begin_layout Standard
18536 We have several times mentioned that LyX will generate default CSS style
18537 rules for both insets and paragraph styles, based upon the other layout
18538 information that is provided.
18539 In this section, we shall say a word about which layout information LyX
18543 \begin_layout Standard
18546 At present, LyX auto-generates CSS only for font information, making use
18548 \begin_inset Flex Code
18551 \begin_layout Plain Layout
18560 \begin_inset Flex Code
18563 \begin_layout Plain Layout
18572 \begin_inset Flex Code
18575 \begin_layout Plain Layout
18584 \begin_inset Flex Code
18587 \begin_layout Plain Layout
18596 \begin_inset Flex Code
18599 \begin_layout Plain Layout
18609 \begin_inset CommandInset ref
18611 reference "sub:Beschreibung-des-Zeichensatzes"
18615 .) The translation is mostly straightforward and obvious.
18617 \begin_inset Quotes eld
18621 \begin_inset Flex Code
18624 \begin_layout Plain Layout
18633 \begin_inset Quotes erd
18637 \begin_inset Quotes eld
18641 \begin_inset Flex Code
18644 \begin_layout Plain Layout
18647 font-family: sans-serif;
18653 \begin_inset Quotes erd
18657 The correspondence of LyX sizes and CSS sizes is a little less obvious
18658 but nonetheless intuitive.
18660 \begin_inset Flex Code
18663 \begin_layout Plain Layout
18672 \begin_inset Flex URL
18675 \begin_layout Plain Layout
18685 \begin_layout Chapter
18686 Externes Material einfügen
18687 \begin_inset CommandInset label
18689 name "cha:Externes-Material-einfügen"
18696 \begin_layout Standard
18699 \begin_inset Box Shadowbox
18709 height_special "totalheight"
18712 \begin_layout Plain Layout
18715 WARNUNG: This portion of the documentation has not been updated for some
18717 We certainly hope that it is still accurate, but there are no guarantees.
18725 \begin_layout Standard
18728 The use of material from sources external to LyX is covered in detail in
18734 This part of the manual covers what needs to happen behind the scenes for
18735 new sorts of material to be included.
18738 \begin_layout Section
18739 Wie funktioniert das?
18742 \begin_layout Standard
18746 \begin_inset space \space{}
18751 basiert auf dem Konzept der Vorlage.
18752 Eine solche Vorlage ist eine Spezifikation, wie LyX mit einer bestimmten
18753 Sorte von Material umgehen soll.
18754 Derzeit gehören zu LyX derartige Vorlagen für XFig-Abbildungen, Dia-Diagramme,
18755 diverse Abbildungen im Rasterformat, Gnuplot und noch ein paar mehr.
18756 Die vollständige Liste sehen Sie in
18758 Einfügen\SpecialChar \menuseparator
18759 Datei\SpecialChar \menuseparator
18761 \begin_inset space \space{}
18769 \begin_layout Standard
18770 Darüberhinaus ist es möglich, durch eigene Vorlagen beliebige andere Formate
18772 Wir werden weiter unten beschreiben, was genau Sie dazu machen müssen und
18773 hoffen, dass Sie derartig erstellte Vorlagen an das LyX-Team schicken,
18774 damit sie in kommenden LyX-Versionen integriert werden können.
18777 \begin_layout Standard
18778 Ein weiteres Merkmal der Idee der externen Einfügung ist die Unterscheidung
18779 zwischen der ursprünglichen Datei, die als Grundlage für das eingefügte
18780 Material dient, und der erzeugten Datei, die dann letztendlich in Ihr Dokument
18782 Wir wollen dies am Beispiel einer XFig-Abbildung erläutern.
18785 \begin_layout Standard
18786 Das Programm XFig bearbeitet eine speziell formatierte Datei mit der Endung
18792 In XFig können Sie Ihre Abbildung editieren und ändern, und zum Schluss
18793 speichern Sie diese
18798 Wenn Sie nun eine derartige Abbildung in LyX einbinden wollen, müssen Sie
18803 starten, um eine PostScript-Datei zu erzeugen, die von LaTeX eingebunden
18805 In diesem Fall ist also die
18809 -Datei die oben erwähnte Originaldatei, und die
18813 Datei die tatsächlich eingebundene Datei.
18816 \begin_layout Standard
18817 Diese Unterscheidung ist wichtig, denn Sie erlaubt das einfache Ändern und
18818 Aktualisieren des Materials, während Sie an Ihrem Text schreiben.
18819 Außerdem ist erst so die Flexibilität gegeben, die benötigt wird, um unterschie
18820 dliche Exportformate für die LyX-Datei zu ermöglichen.
18823 \begin_layout Standard
18824 So ist es im Falle einer Ausgabe als reiner (ASCII) Text sicher nicht sinnvoll,
18825 eine PostScript-Datei im Rohformat einzubinden.
18826 In diesem Fall wird dann entweder nur eine Referenz auf die Bilddatei angegeben
18827 , oder aber es wird ein Konverter gestartet, der eine ASCII-Darstellung
18828 erzeugt, die in etwa so aussieht wie die ursprüngliche Grafik.
18829 Genau dies ist mit der Einfügung
18833 möglich, denn sie kennt all die notwendigen Befehle für derartige Konvertierung
18834 en (sofern sie von LyX unterstützt werden).
18837 \begin_layout Standard
18838 Darüberhinaus erlaubt die Einfügung
18842 aber auch die einfache Integration mit externen Betrachtern und Editoren.
18843 So sind Sie bei einer XFig-Abbildung in der Lage, mit einem einigen Klick
18844 XFig zu starten, um die Abbildung zu bearbeiten oder die erstellte PostScript-D
18850 Kein langes Herumsuchen mit Dateimanagern nach den Original- und Grafikdateien
18851 mehr, und Sie müssen sich nicht mehr an die unterschiedlichen Parameter
18852 erinnern, die vielleicht für diese Abbildung notwendig sind, um sie in
18853 der richtigen Größe zu erstellen.
18854 Sie haben ohne viel Aufwand Zugriff auf eine Vielzahl von Applikationen
18855 und können so Ihre Produktivität ungemein steigern.
18858 \begin_layout Standard
18859 LyX besitzt also die Information über eine Vielzahl von externen Programmen,
18860 um diese von Ihnen unbemerkt nutzen zu können und Ihnen so den größtmöglichen
18862 Und genau diese Information ist in den oben erwähnten Vorlagen gespeichert.
18863 Jede dieser Vorlagen enthält eine Liste von Befehlen und Optionen, um externe
18864 Programme zu starten, Formate zu konvertieren usw\SpecialChar \@.
18868 \begin_layout Standard
18869 Ein fortgeschrittener Anwender kann mit derartigen selbst erstellten Vorlagen
18870 die Möglichkeiten von LyX stark erweitern, ohne dazu den eigentlichen Quellcode
18871 verändern zu müssen.
18872 Zwar ist dazu einiges an Arbeit notwendig, um all diese Befehle festzulegen,
18873 aber zum Glück hat das LyX-Team das in einigen Fällen ja schon getan.
18876 \begin_layout Standard
18877 Eine kleine Einschränkung gibt es aber doch: Da es wie erwähnt eine Vielzahl
18878 möglicher Exportformate für das eingefügte Material gibt, wäre es zu vermuten,
18879 dass man von LyX aus auch alle diese Formate als Vorschau ansehen kann.
18880 Das LyX-Team hat sich entschlossen, das nicht zu tun, um die Benutzerschnittste
18881 lle so einfach wie möglich zu halten.
18882 Anstatt im Dialog für jedes mögliche Exportformat einen eigenen Knopf für
18883 die Vorschau zu haben, wurde das Konzept des primären Formats eingeführt,
18884 und es gibt nur einen Schalter
18887 \begin_inset space \space{}
18894 \begin_layout Plain Layout
18902 \begin_inset space \space{}
18907 , der die Datei in genau diesem primären Format anzeigt.
18910 \begin_layout Standard
18911 Dieses Format wird durch die verwendete Dokumentenklasse festgelegt.
18912 So ist es für die meisten Klassen LaTeX, für die DocBook-Klassen ist es
18914 Denken Sie also daran, dass Ihnen die Vorschau lediglich das Aussehen in
18915 diesem Hauptformat anzeigt; wenn Sie sehen wollen, wie das Ergebnis in
18916 anderen Formaten aussieht, müssen Sie wie gewohnt die Konvertierung manuell
18920 \begin_layout Section
18923 The external template configuration file
18926 \begin_layout Standard
18929 It is relatively easy to add custom external template definitions to LyX.
18930 However, be aware that doing this in a careless manner most probably
18934 introduce an easily exploitable security hole.
18935 So before you do this, please read the discussion about security in section
18937 \begin_inset CommandInset ref
18939 reference "sec:Sicherheitshinweise"
18946 \begin_layout Standard
18949 Having said that, we encourage you to submit any interesting templates that
18954 \begin_layout Standard
18957 The external templates are defined in the
18958 \begin_inset Flex Code
18961 \begin_layout Plain Layout
18964 LyXDir/lib/external_templates
18970 You can place your own version in
18971 \begin_inset Flex Code
18974 \begin_layout Plain Layout
18977 UserDir/external_templates
18985 \begin_layout Standard
18988 A typical template looks like this:
18991 \begin_layout LyX-Code
18997 \begin_layout LyX-Code
19000 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
19003 \begin_layout LyX-Code
19009 \begin_layout LyX-Code
19015 \begin_layout LyX-Code
19021 \begin_layout LyX-Code
19027 \begin_layout LyX-Code
19033 \begin_layout LyX-Code
19036 AutomaticProduction true
19039 \begin_layout LyX-Code
19045 \begin_layout LyX-Code
19051 \begin_layout LyX-Code
19057 \begin_layout LyX-Code
19060 TransformCommand Rotate RotationLatexCommand
19063 \begin_layout LyX-Code
19066 TransformCommand Resize ResizeLatexCommand
19069 \begin_layout LyX-Code
19072 Product "$$RotateFront$$ResizeFront
19075 \begin_layout LyX-Code
19082 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
19085 \begin_layout LyX-Code
19088 $$ResizeBack$$RotateBack"
19091 \begin_layout LyX-Code
19097 \begin_layout LyX-Code
19100 UpdateResult "$$AbsPath$$Basename.pstex_t"
19103 \begin_layout LyX-Code
19106 Requirement "graphicx"
19109 \begin_layout LyX-Code
19112 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
19115 \begin_layout LyX-Code
19118 ReferencedFile latex "$$AbsPath$$Basename.eps"
19121 \begin_layout LyX-Code
19124 ReferencedFile dvi "$$AbsPath$$Basename.eps"
19127 \begin_layout LyX-Code
19133 \begin_layout LyX-Code
19139 \begin_layout LyX-Code
19142 TransformCommand Rotate RotationLatexCommand
19145 \begin_layout LyX-Code
19148 TransformCommand Resize ResizeLatexCommand
19151 \begin_layout LyX-Code
19154 Product "$$RotateFront$$ResizeFront
19157 \begin_layout LyX-Code
19164 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
19167 \begin_layout LyX-Code
19170 $$ResizeBack$$RotateBack"
19173 \begin_layout LyX-Code
19176 UpdateFormat pdftex
19179 \begin_layout LyX-Code
19182 UpdateResult "$$AbsPath$$Basename.pdftex_t"
19185 \begin_layout LyX-Code
19188 Requirement "graphicx"
19191 \begin_layout LyX-Code
19194 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
19197 \begin_layout LyX-Code
19200 ReferencedFile latex "$$AbsPath$$Basename.pdf"
19203 \begin_layout LyX-Code
19209 \begin_layout LyX-Code
19215 \begin_layout LyX-Code
19218 Product "$$Contents(
19220 "$$AbsPath$$Basename.asc
19225 \begin_layout LyX-Code
19228 UpdateFormat asciixfig
19231 \begin_layout LyX-Code
19234 UpdateResult "$$AbsPath$$Basename.asc"
19237 \begin_layout LyX-Code
19243 \begin_layout LyX-Code
19249 \begin_layout LyX-Code
19252 Product "<graphic fileref=
19254 "$$AbsOrRelPathMaster$$Basename.eps
19259 \begin_layout LyX-Code
19265 \begin_layout LyX-Code
19271 \begin_layout LyX-Code
19274 UpdateResult "$$AbsPath$$Basename.eps"
19277 \begin_layout LyX-Code
19280 ReferencedFile docbook "$$AbsPath$$Basename.eps"
19283 \begin_layout LyX-Code
19286 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
19289 \begin_layout LyX-Code
19295 \begin_layout LyX-Code
19298 Product "[XFig: $$FName]"
19301 \begin_layout LyX-Code
19307 \begin_layout LyX-Code
19313 \begin_layout Standard
19316 As you can see, the template is enclosed in
19317 \begin_inset Flex Code
19320 \begin_layout Plain Layout
19328 \SpecialChar \ldots{}
19330 \begin_inset Flex Code
19333 \begin_layout Plain Layout
19342 It contains a header specifying some general settings and, for each supported
19343 primary document file format, a section
19344 \begin_inset Flex Code
19347 \begin_layout Plain Layout
19355 \SpecialChar \ldots{}
19357 \begin_inset Flex Code
19360 \begin_layout Plain Layout
19371 \begin_layout Subsection
19374 The template header
19377 \begin_layout Description
19380 \begin_inset Flex Code
19383 \begin_layout Plain Layout
19386 AutomaticProduction
19387 \begin_inset space ~
19395 Whether the file represented by the template must be generated by LyX.
19396 This command must occur exactly once.
19399 \begin_layout Description
19402 \begin_inset Flex Code
19405 \begin_layout Plain Layout
19409 \begin_inset space ~
19417 A glob pattern that is used in the file dialog to filter out the desired
19419 If there is more than one possible file extension (e.
19420 \begin_inset space \thinspace{}
19424 \begin_inset space \space{}
19428 \begin_inset Flex Code
19431 \begin_layout Plain Layout
19440 \begin_inset Flex Code
19443 \begin_layout Plain Layout
19451 ), use something like
19452 \begin_inset Flex Code
19455 \begin_layout Plain Layout
19464 This command must occur exactly once.
19467 \begin_layout Description
19470 \begin_inset Flex Code
19473 \begin_layout Plain Layout
19477 \begin_inset space ~
19485 The text that is displayed on the button.
19486 This command must occur exactly once.
19489 \begin_layout Description
19492 \begin_inset Flex Code
19495 \begin_layout Plain Layout
19499 \begin_inset space ~
19503 \begin_inset space ~
19511 The help text that is used in the External dialog.
19512 Provide enough information to explain to the user just what the template
19513 can provide him with.
19514 This command must occur exactly once.
19517 \begin_layout Description
19520 \begin_inset Flex Code
19523 \begin_layout Plain Layout
19527 \begin_inset space ~
19535 The file format of the original file.
19536 This must be the name of a format that is known to LyX (see section
19537 \begin_inset space ~
19543 \begin_inset CommandInset ref
19545 reference "sec:Formate"
19553 \begin_inset Quotes eld
19557 \begin_inset Flex Code
19560 \begin_layout Plain Layout
19569 \begin_inset Quotes erd
19572 if the template can handle original files of more than one format.
19573 LyX will attempt to interrogate the file itself in order to deduce its
19574 format in this case.
19575 This command must occur exactly once.
19578 \begin_layout Description
19581 \begin_inset Flex Code
19584 \begin_layout Plain Layout
19588 \begin_inset space ~
19596 A unique name for the template.
19597 It must not contain substitution macros (see below).
19600 \begin_layout Description
19603 \begin_inset Flex Code
19606 \begin_layout Plain Layout
19610 \begin_inset space ~
19613 Rotate|Resize|Clip|Extra
19618 This command specifies which transformations are supported by this template.
19619 It may occur zero or more times.
19620 This command enables the corresponding tabs in the external dialog.
19622 \begin_inset Flex Code
19625 \begin_layout Plain Layout
19633 command must have either a corresponding
19634 \begin_inset Flex Code
19637 \begin_layout Plain Layout
19646 \begin_inset Flex Code
19649 \begin_layout Plain Layout
19658 \begin_inset Flex Code
19661 \begin_layout Plain Layout
19670 Otherwise the transformation will not be supported by that format.
19673 \begin_layout Subsection
19679 \begin_layout Description
19682 \begin_inset Flex Code
19685 \begin_layout Plain Layout
19689 \begin_inset space ~
19692 LaTeX|PDFLaTeX|PlainText|DocBook
19697 The primary document file format that this format definition is for.
19698 Not every template has a sensible representation in all document file formats.
19699 Please define nevertheless a
19700 \begin_inset Flex Code
19703 \begin_layout Plain Layout
19711 section for all templates.
19712 Use a dummy text when no representation is available.
19713 Then you can at least see a reference to the external material in the exported
19717 \begin_layout Description
19720 \begin_inset Flex Code
19723 \begin_layout Plain Layout
19727 \begin_inset space ~
19731 \begin_inset space ~
19739 This command defines an additional macro
19740 \begin_inset Flex Code
19743 \begin_layout Plain Layout
19751 for substitution in
19752 \begin_inset Flex Code
19755 \begin_layout Plain Layout
19765 \begin_inset Flex Code
19768 \begin_layout Plain Layout
19776 itself may contain substitution macros.
19777 The advantage over using
19778 \begin_inset Flex Code
19781 \begin_layout Plain Layout
19790 \begin_inset Flex Code
19793 \begin_layout Plain Layout
19801 is that the substituted value of
19802 \begin_inset Flex Code
19805 \begin_layout Plain Layout
19813 is sanitized so that it is a valid optional argument in the document format.
19814 This command may occur zero or more times.
19817 \begin_layout Description
19820 \begin_inset Flex Code
19823 \begin_layout Plain Layout
19827 \begin_inset space ~
19835 The text that is inserted in the exported document.
19836 This is actually the most important command and can be quite complex.
19837 This command must occur exactly once.
19840 \begin_layout Description
19843 \begin_inset Flex Code
19846 \begin_layout Plain Layout
19850 \begin_inset space ~
19858 This command specifies a preamble snippet that will be included in the
19860 It has to be defined using
19861 \begin_inset Flex Code
19864 \begin_layout Plain Layout
19872 \SpecialChar \ldots{}
19874 \begin_inset Flex Code
19877 \begin_layout Plain Layout
19886 This command may occur zero or more times.
19889 \begin_layout Description
19892 \begin_inset Flex Code
19895 \begin_layout Plain Layout
19899 \begin_inset space ~
19903 \begin_inset space ~
19911 This command denotes files that are created by the conversion process and
19912 are needed for a particular export format.
19913 If the filename is relative, it is interpreted relative to the master document.
19914 This command may be given zero or more times.
19917 \begin_layout Description
19920 \begin_inset Flex Code
19923 \begin_layout Plain Layout
19927 \begin_inset space ~
19935 The name of a required LaTeX package.
19936 The package is included via
19937 \begin_inset Flex Code
19940 \begin_layout Plain Layout
19950 in the LaTeX preamble.
19951 This command may occur zero or more times.
19954 \begin_layout Description
19957 \begin_inset Flex Code
19960 \begin_layout Plain Layout
19964 \begin_inset space ~
19968 \begin_inset space ~
19971 RotationLatexCommand
19976 This command specifies that the built in LaTeX command should be used for
19978 This command may occur once or not at all.
19981 \begin_layout Description
19984 \begin_inset Flex Code
19987 \begin_layout Plain Layout
19991 \begin_inset space ~
19995 \begin_inset space ~
20003 This command specifies that the built in LaTeX command should be used for
20005 This command may occur once or not at all.
20008 \begin_layout Description
20011 \begin_inset Flex Code
20014 \begin_layout Plain Layout
20018 \begin_inset space ~
20022 \begin_inset space ~
20025 RotationLatexOption
20030 This command specifies that rotation is done via an optional argument.
20031 This command may occur once or not at all.
20034 \begin_layout Description
20037 \begin_inset Flex Code
20040 \begin_layout Plain Layout
20044 \begin_inset space ~
20048 \begin_inset space ~
20056 This command specifies that resizing is done via an optional argument.
20057 This command may occur once or not at all.
20060 \begin_layout Description
20063 \begin_inset Flex Code
20066 \begin_layout Plain Layout
20070 \begin_inset space ~
20074 \begin_inset space ~
20082 This command specifies that clipping is done via an optional argument.
20083 This command may occur once or not at all.
20086 \begin_layout Description
20089 \begin_inset Flex Code
20092 \begin_layout Plain Layout
20096 \begin_inset space ~
20100 \begin_inset space ~
20108 This command specifies that an extra optional argument is used.
20109 This command may occur once or not at all.
20112 \begin_layout Description
20115 \begin_inset Flex Code
20118 \begin_layout Plain Layout
20122 \begin_inset space ~
20130 The file format of the converted file.
20131 This must be the name of a format that is known to LyX (see the
20132 \begin_inset Flex MenuItem
20135 \begin_layout Plain Layout
20141 ools\SpecialChar \menuseparator
20146 references\SpecialChar \menuseparator
20147 File Handling\SpecialChar \menuseparator
20154 This command must occur exactly once.
20157 \begin_layout Description
20160 \begin_inset Flex Code
20163 \begin_layout Plain Layout
20167 \begin_inset space ~
20175 The file name of the converted file.
20176 The file name must be absolute.
20177 This command must occur exactly once.
20180 \begin_layout Subsection
20183 Preamble definitions
20186 \begin_layout Standard
20189 The external template configuration file may contain additional preamble
20190 definitions enclosed by
20191 \begin_inset Flex Code
20194 \begin_layout Plain Layout
20202 \SpecialChar \ldots{}
20204 \begin_inset Flex Code
20207 \begin_layout Plain Layout
20216 They can be used by the templates in the
20217 \begin_inset Flex Code
20220 \begin_layout Plain Layout
20231 \begin_layout Section
20232 Der Ersetzungsmechanismus
20235 \begin_layout Standard
20236 Wenn über die externe Einfügung ein externes Programm gestartet wird, geschieht
20237 dies anhand eines Befehls, der in der Vorlage festgelegt wurde.
20238 Ein solcher Befehl kann diverse Makros enthalten, die vor dem eigentlichen
20239 Aufruf ausgewertet werden.
20240 Die Ausführung erfolgt dabei immer in demjenigen Verzeichnis, das auch
20241 das LyX-Dokument enthält.
20244 \begin_layout Standard
20247 Also, whenever external material is to be displayed, the name will be produced
20248 by the substitution mechanism, and most other commands in the template
20249 definition support substitution as well.
20252 \begin_layout Standard
20253 Hier finden Sie eine Liste dieser Makros:
20256 \begin_layout Description
20259 \begin_inset Flex Code
20262 \begin_layout Plain Layout
20265 $$AbsOrRelPathMaster
20270 The file path, absolute or relative to the master LyX document.
20273 \begin_layout Description
20276 \begin_inset Flex Code
20279 \begin_layout Plain Layout
20282 $$AbsOrRelPathParent
20287 The file path, absolute or relative to the LyX document.
20290 \begin_layout Description
20293 \begin_inset Flex Code
20296 \begin_layout Plain Layout
20304 The absolute file path.
20307 \begin_layout Description
20310 \begin_inset Flex Code
20313 \begin_layout Plain Layout
20321 The filename without path and without the extension.
20324 \begin_layout Description
20327 \begin_inset Flex Code
20330 \begin_layout Plain Layout
20334 \begin_inset Quotes eld
20338 \begin_inset Quotes erd
20346 This macro will expand to the contents of the file with the name
20347 \begin_inset Flex Code
20350 \begin_layout Plain Layout
20361 \begin_layout Description
20364 \begin_inset Flex Code
20367 \begin_layout Plain Layout
20375 The file extension (including the dot).
20378 \begin_layout Description
20381 \begin_inset Flex Code
20384 \begin_layout Plain Layout
20392 The filename of the file specified in the external material dialog.
20393 This is either an absolute name, or it is relative to the LyX document.
20396 \begin_layout Description
20399 \begin_inset Flex Code
20402 \begin_layout Plain Layout
20411 \begin_inset Flex Code
20414 \begin_layout Plain Layout
20422 (absolute name or relative to the LyX document).
20425 \begin_layout Description
20428 \begin_inset Flex Code
20431 \begin_layout Plain Layout
20439 The file path, relative to the master LyX document.
20442 \begin_layout Description
20445 \begin_inset Flex Code
20448 \begin_layout Plain Layout
20456 The file path, relative to the LyX document.
20459 \begin_layout Description
20462 \begin_inset Flex Code
20465 \begin_layout Plain Layout
20473 This macro will expand to the absolute path of the system directory.
20474 This is typically used to point to the various helper scripts that are
20478 \begin_layout Description
20481 \begin_inset Flex Code
20484 \begin_layout Plain Layout
20492 A name and full path to a temporary file which will be automatically deleted
20493 whenever the containing document is closed, or the external material insertion
20497 \begin_layout Standard
20500 All path macros contain a trailing directory separator, so you can construct
20502 \begin_inset space \thinspace{}
20506 \begin_inset space \space{}
20509 the absolute filename with
20510 \begin_inset Flex Code
20513 \begin_layout Plain Layout
20516 $$AbsPath$$Basename$$Extension
20524 \begin_layout Standard
20527 The macros above are substituted in all commands unless otherwise noted.
20529 \begin_inset Flex Code
20532 \begin_layout Plain Layout
20540 supports additionally the following substitutions if they are enabled by
20542 \begin_inset Flex Code
20545 \begin_layout Plain Layout
20554 \begin_inset Flex Code
20557 \begin_layout Plain Layout
20568 \begin_layout Description
20571 \begin_inset Flex Code
20574 \begin_layout Plain Layout
20582 The front part of the resize command.
20585 \begin_layout Description
20588 \begin_inset Flex Code
20591 \begin_layout Plain Layout
20599 The back part of the resize command.
20602 \begin_layout Description
20605 \begin_inset Flex Code
20608 \begin_layout Plain Layout
20616 The front part of the rotation command.
20619 \begin_layout Description
20622 \begin_inset Flex Code
20625 \begin_layout Plain Layout
20633 The back part of the rotation command.
20636 \begin_layout Standard
20639 The value string of the
20640 \begin_inset Flex Code
20643 \begin_layout Plain Layout
20651 command supports additionally the following substitutions if they are enabled
20653 \begin_inset Flex Code
20656 \begin_layout Plain Layout
20665 \begin_inset Flex Code
20668 \begin_layout Plain Layout
20679 \begin_layout Description
20682 \begin_inset Flex Code
20685 \begin_layout Plain Layout
20696 \begin_layout Description
20699 \begin_inset Flex Code
20702 \begin_layout Plain Layout
20713 \begin_layout Description
20716 \begin_inset Flex Code
20719 \begin_layout Plain Layout
20730 \begin_layout Description
20733 \begin_inset Flex Code
20736 \begin_layout Plain Layout
20744 The rotation option.
20747 \begin_layout Standard
20750 You may ask why there are so many path macros.
20751 There are mainly two reasons:
20754 \begin_layout Enumerate
20757 Relative and absolute file names should remain relative or absolute, respectivel
20759 Users may have reasons to prefer either form.
20760 Relative names are useful for portable documents that should work on different
20761 machines, for example.
20762 Absolute names may be required by some programs.
20765 \begin_layout Enumerate
20768 LaTeX treats relative file names differently than LyX and other programs
20769 in nested included files.
20770 For LyX, a relative file name is always relative to the document that contains
20772 For LaTeX, it is always relative to the master document.
20773 These two definitions are identical if you have only one document, but
20774 differ if you have a master document that includes part documents.
20775 That means that relative filenames must be transformed when presented to
20777 Fortunately LyX does this automatically for you if you choose the right
20781 \begin_layout Standard
20784 So which path macro should be used in new template definitions? The rule
20788 \begin_layout Itemize
20792 \begin_inset Flex Code
20795 \begin_layout Plain Layout
20803 if an absolute path is required.
20806 \begin_layout Itemize
20810 \begin_inset Flex Code
20813 \begin_layout Plain Layout
20816 $$AbsOrRelPathMaster
20821 if the substituted string is some kind of LaTeX input.
20824 \begin_layout Itemize
20828 \begin_inset Flex Code
20831 \begin_layout Plain Layout
20834 $$AbsOrRelPathParent
20839 in order to preserve the user's choice.
20842 \begin_layout Standard
20845 There are special cases where this rule does not work and e.
20846 \begin_inset space \thinspace{}
20850 \begin_inset space \space{}
20853 relative names are needed, but normally it will work just fine.
20854 One example for such a case is the command
20855 \begin_inset Flex Code
20858 \begin_layout Plain Layout
20861 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
20866 in the XFig template above: We can't use the absolute name because the
20868 \begin_inset Flex Code
20871 \begin_layout Plain Layout
20879 files needs the relative name in order to rewrite the file content.
20882 \begin_layout Section
20883 Sicherheitshinweise
20884 \begin_inset CommandInset label
20886 name "sec:Sicherheitshinweise"
20893 \begin_layout Standard
20896 The external material feature interfaces with a lot of external programs
20897 and does so automatically, so we have to consider the security implications
20899 In particular, since you have the option of including your own filenames
20900 and/or parameter strings and those are expanded into a command, it seems
20901 that it would be possible to create a malicious document which executes
20902 arbitrary commands when a user views or prints the document.
20903 This is something we definitely want to avoid.
20906 \begin_layout Standard
20909 However, since the external program commands are specified in the template
20910 configuration file only, there are no security issues if LyX is properly
20911 configured with safe templates only.
20912 This is so because the external programs are invoked with the
20913 \begin_inset Flex Code
20916 \begin_layout Plain Layout
20924 -system call rather than the
20925 \begin_inset Flex Code
20928 \begin_layout Plain Layout
20936 system-call, so it's not possible to execute arbitrary commands from the
20937 filename or parameter section via the shell.
20940 \begin_layout Standard
20943 This also implies that you are restricted in what command strings you can
20944 use in the external material templates.
20945 In particular, pipes and redirection are not readily available.
20946 This has to be so if LyX should remain safe.
20947 If you want to use some of the shell features, you should write a safe
20948 script to do this in a controlled manner, and then invoke the script from
20949 the command string.
20953 \begin_layout Standard
20956 It is possible to design a template that interacts directly with the shell,
20957 but since this would allow a malicious user to execute arbitrary commands
20958 by writing clever filenames and/or parameters, we generally recommend that
20959 you only use safe scripts that work with the
20960 \begin_inset Flex Code
20963 \begin_layout Plain Layout
20971 system call in a controlled manner.
20972 Of course, for use in a controlled environment, it can be tempting to just
20973 fall back to use ordinary shell scripts.
20974 If you do so, be aware that you
20978 provide an easily exploitable security hole in your system.
20979 Of course it stands to reason that such unsafe templates will never be
20980 included in the standard LyX distribution, although we do encourage people
20981 to submit new templates in the open source tradition.
20982 But LyX as shipped from the official distribution channels will never have
20986 \begin_layout Standard
20989 Including external material provides a lot of power, and you have to be
20990 careful not to introduce security hazards with this power.
20991 A subtle error in a single line in an innocent looking script can open
20992 the door to huge security problems.
20993 So if you do not fully understand the issues, we recommend that you consult
20994 a knowledgeable security professional or the LyX development team if you
20995 have any questions about whether a given template is safe or not.
20996 And do this before you use it in an uncontrolled environment.
20999 \begin_layout Chapter
21001 Namen von verfügbaren Farben für die Verwendung in Layout-Dateien
21002 \begin_inset CommandInset label
21004 name "chap:Namen-von-Farben"
21011 \begin_layout Standard
21012 Die hier aufgelisteten Farben sind die Standardfarben und die, die man in
21013 den LyX-Voreinstellungen festlegen kann.
21016 \begin_layout Description
21031 No particular color -- clear or default
21034 \begin_layout Description
21040 \begin_layout Description
21046 \begin_layout Description
21052 \begin_layout Description
21058 \begin_layout Description
21064 \begin_layout Description
21070 \begin_layout Description
21076 \begin_layout Description
21082 \begin_layout Description
21085 cursor Cursor color
21088 \begin_layout Description
21091 background Background color
21094 \begin_layout Description
21097 foreground Foreground color
21100 \begin_layout Description
21103 selection Background color of selected text
21106 \begin_layout Description
21109 selectiontext Foreground color of selected text
21112 \begin_layout Description
21115 latex Text color in LaTeX mode
21118 \begin_layout Description
21121 preview The color used for previews
21124 \begin_layout Description
21127 inlinecompletion Inline completion color
21130 \begin_layout Description
21133 nonunique_inlinecompletion Inline completion color for the non-unique part
21136 \begin_layout Description
21139 notelabel Label color for notes
21142 \begin_layout Description
21145 notebg Background color of notes
21148 \begin_layout Description
21151 commentlabel Label color for comments
21154 \begin_layout Description
21157 commentbg Background color of comments
21160 \begin_layout Description
21163 greyedoutlabel Label color for greyedout insets
21166 \begin_layout Description
21169 greyedouttext Color for greyedout inset text
21172 \begin_layout Description
21175 greyedoutbg Background color of greyedout inset
21178 \begin_layout Description
21181 shadedbg Background color of shaded box
21184 \begin_layout Description
21187 listingsbg Background color of listings inset
21190 \begin_layout Description
21193 branchlabel Label color for branches
21196 \begin_layout Description
21199 footlabel Label color for footnotes
21202 \begin_layout Description
21205 indexlabel Label color for index insets
21208 \begin_layout Description
21211 marginlabel Label color for margin notes
21214 \begin_layout Description
21217 phantomtext Text color for phantom insets
21220 \begin_layout Description
21223 urllabel Label color for URL insets
21226 \begin_layout Description
21229 urltext Color for URL inset text
21232 \begin_layout Description
21235 depthbar Color for the depth bars in the margin
21238 \begin_layout Description
21241 language Color for marking foreign language words
21244 \begin_layout Description
21247 command Text color for command insets
21250 \begin_layout Description
21253 commandbg Background color for command insets
21256 \begin_layout Description
21259 commandframe Frame color for command insets
21262 \begin_layout Description
21265 special Special chars text color
21268 \begin_layout Description
21271 graphicsbg Graphics inset background color
21274 \begin_layout Description
21277 math Math inset text color
21280 \begin_layout Description
21283 mathbg Math inset background color
21286 \begin_layout Description
21289 mathmacrobg Macro math inset background color
21292 \begin_layout Description
21295 mathmacrohoverbg Macro math inset background color hovered
21298 \begin_layout Description
21301 mathmacrolabel Macro math label color
21304 \begin_layout Description
21307 mathmacroframe Macro math frame color
21310 \begin_layout Description
21313 mathmacroblend Macro math blended color
21316 \begin_layout Description
21319 mathmacrooldarg Macro template color for old parameters
21322 \begin_layout Description
21325 mathmacronewarg Macro template color for new parameters
21328 \begin_layout Description
21331 mathframe Math inset frame color under focus
21334 \begin_layout Description
21337 mathcorners Math inset frame color not under focus
21340 \begin_layout Description
21343 mathline Math line color
21346 \begin_layout Description
21349 collapsable Collapsable insets text
21352 \begin_layout Description
21355 collapsableframe Collapsable insets frame
21358 \begin_layout Description
21361 insetbg Inset marker background color
21364 \begin_layout Description
21367 insetframe Inset marker frame color
21370 \begin_layout Description
21373 error Error box text color
21376 \begin_layout Description
21379 eolmarker End of line marker color
21382 \begin_layout Description
21385 added_space Added space colour
21388 \begin_layout Description
21391 appendix Appendix marker color
21394 \begin_layout Description
21397 changebar Changebar color
21400 \begin_layout Description
21403 deletedtext Deleted text color
21406 \begin_layout Description
21409 addedtext Added text color
21412 \begin_layout Description
21415 changedtextauthor1 Changed text color author 1
21418 \begin_layout Description
21421 changedtextauthor2 Changed text color author 2
21424 \begin_layout Description
21427 changedtextauthor3 Changed text color author 3
21430 \begin_layout Description
21433 changedtextauthor4 Changed text color author 4
21436 \begin_layout Description
21439 changedtextauthor5 Changed text color author 5
21442 \begin_layout Description
21445 deletedtextmodifier Deleted text modifying color
21448 \begin_layout Description
21451 tabularline Table line color
21454 \begin_layout Description
21457 tabularonoffline Table line color
21460 \begin_layout Description
21463 bottomarea Bottom area color
21466 \begin_layout Description
21469 newpage New page color
21472 \begin_layout Description
21475 pagebreak Page break color
21478 \begin_layout Description
21481 buttonframe Color used for button frame
21484 \begin_layout Description
21487 buttonbg Color used for bottom background
21490 \begin_layout Description
21493 buttonhoverbg Color used for buttom under focus
21496 \begin_layout Description
21499 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
21503 \begin_layout Description
21506 previewframe Preview frame color
21509 \begin_layout Description
21512 inherit Color is inherited
21515 \begin_layout Description
21518 regexpframe Color for regexp frame
21521 \begin_layout Description
21524 ignore For ignoring updates of a color