mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
UserGuide.lyx: describe the Verbatim environment
This commit is contained in:
parent
c71cd6d501
commit
ab176bfbcc
@ -5182,7 +5182,7 @@ You can use labels and cross-references to refer to their numbers.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
Quotes and Poetry line spacing
|
||||
Quotes and Poetry
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -7689,6 +7689,15 @@ reference "sec:Bibliography"
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
Special Environments
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
LyX provides two environments that can be used to emulate the behavior of
|
||||
a computer console/terminal and a typewriter.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
LyX
|
||||
\family sans
|
||||
-Code
|
||||
@ -7696,7 +7705,7 @@ LyX
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Paragraph ! LyX code
|
||||
LyX-Code
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
@ -7716,13 +7725,13 @@ The
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
environment is another LyX extension.
|
||||
environment is a LyX extension.
|
||||
It type-sets text in a typewriter-style font.
|
||||
It also treats the
|
||||
\family sans
|
||||
Space
|
||||
\family default
|
||||
key as a fixed whitespace;
|
||||
key as a fixed whitespace.
|
||||
\begin_inset Foot
|
||||
status collapsed
|
||||
|
||||
@ -7748,7 +7757,16 @@ Blank
|
||||
|
||||
\end_inset
|
||||
|
||||
this is the only case in which you can type multiple whitespaces in LyX.
|
||||
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
and
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
are the only environments in which you can type multiple whitespaces in
|
||||
LyX.
|
||||
If you need to insert blank lines, you will still need to use
|
||||
\begin_inset Info
|
||||
type "shortcut"
|
||||
@ -7815,7 +7833,7 @@ arg "newline-insert newline"
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
You can't follow a
|
||||
You cannot follow a
|
||||
\begin_inset Info
|
||||
type "shortcut"
|
||||
arg "newline-insert newline"
|
||||
@ -7835,7 +7853,7 @@ arg "command-alternatives math-space ; space-insert protected"
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
You can't have an empty paragraph or an empty line.
|
||||
You cannot have an empty paragraph or an empty line.
|
||||
You must put at least one
|
||||
\family sans
|
||||
Space
|
||||
@ -7915,8 +7933,8 @@ Hello world!
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
has one purpose: to typeset code, such as program source, shell scripts,
|
||||
rc-files, and so on.
|
||||
has one purpose: to typeset code, such as program source, shell scripts
|
||||
and so on.
|
||||
Use it only in those very special cases where you need to generate text
|
||||
as if you used a typewriter.
|
||||
\begin_inset Index idx
|
||||
@ -7944,6 +7962,111 @@ Objects
|
||||
manual.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
Verbatim
|
||||
\family sans
|
||||
|
||||
\begin_inset Index idx
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Verbatim
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
The
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
environment is similar to the
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
environment with the difference that its content will be treated like a
|
||||
computer console text.
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
does therefore not have paragraphs so that
|
||||
\family sans
|
||||
Return
|
||||
\family default
|
||||
breaks lines.
|
||||
Compared to
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
the
|
||||
\family sans
|
||||
Space
|
||||
\family default
|
||||
key is treated like a normal space in text (not as a protected space) and
|
||||
you can have empty lines.
|
||||
In contrary to
|
||||
\family sans
|
||||
LyX-Code,
|
||||
\family default
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
cannot
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
have a certain language and a text style
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
contain hyperlinks, boxes, foot- and margin notes, notes, math, citations,
|
||||
index- and nomenclature entries, labels, tables, graphics, listings, floats
|
||||
and TeX-Code
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
contain the following characters (you will get LaTeX errors): µ ; ´ ; ³
|
||||
; ²
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Because of these properties
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
works like a typewriter.
|
||||
Here is an example:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
This is verbatim.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
\noindent
|
||||
\align block
|
||||
The following 2 lines are empty:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
Almost everything is allowed in verbatim:"%&$§#~'`
|
||||
\backslash
|
||||
}][{|
|
||||
\end_layout
|
||||
|
||||
\begin_layout Section
|
||||
Nesting Environments
|
||||
\begin_inset Index idx
|
||||
|
@ -8163,16 +8163,19 @@ Besondere Umgebungen
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Es gibt drei Absatzumgebungen, die einfach in keine Kategorie passen, weil
|
||||
sie für besondere Zwecke benutzt werden.
|
||||
Wir werden das Wichtigste von ihnen und ihren Gebrauch erklären.
|
||||
LyX stellt zwei Umgebungen bereit, die dazu genutzt werden können, das Verhalten
|
||||
einer Computer-Konsole/Terminal und einer Schreibmaschine zu emulieren.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Subsubsection
|
||||
Legende, Legende oben, Legende unten
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_layout Plain Layout
|
||||
Die
|
||||
\family sans
|
||||
Legende
|
||||
@ -8200,7 +8203,7 @@ Nr:
|
||||
.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_layout Plain Layout
|
||||
Man kann in die
|
||||
\family sans
|
||||
Legende
|
||||
@ -8221,7 +8224,7 @@ Legende
|
||||
nur aus einem Absatz besteht.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_layout Plain Layout
|
||||
Außerhalb von Gleitobjekten kann man die
|
||||
\family sans
|
||||
Legende
|
||||
@ -8248,7 +8251,7 @@ reference "sec:Tabellen"
|
||||
für weitere Informationen über Gleitobjekt-Abbildungen und -Tabellen.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_layout Plain Layout
|
||||
|
||||
\family sans
|
||||
Legende
|
||||
@ -8272,6 +8275,11 @@ KOMA-Script
|
||||
-Version.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
|
||||
\family sans
|
||||
@ -8282,18 +8290,7 @@ yX-Code
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Absatz ! Ly
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
{}
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
X!-Code
|
||||
LyX-Code
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
@ -8314,8 +8311,11 @@ Die
|
||||
LyX-Code
|
||||
\family default
|
||||
-Umgebung ist noch eine LyX-Erweiterung von LaTeX.
|
||||
Sie setzt Text in einem Schreibmaschinenschriftart.
|
||||
Außerdem kann die Leertaste mehrfach hintereinander benutzt werden;
|
||||
Sie setzt Text in einem Schreibmaschinenschriftart und behandelt
|
||||
\family sans
|
||||
Leertaste
|
||||
\family default
|
||||
wie ein festes Leerzeichen.
|
||||
\begin_inset Foot
|
||||
status collapsed
|
||||
|
||||
@ -8338,25 +8338,27 @@ end-of-word
|
||||
|
||||
\end_inset
|
||||
|
||||
dies ist einer der wenigen Fälle in LyX.
|
||||
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
und
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
sind die einzigen Umgebungenm in denen die Leertaste mehrfach hintereinander
|
||||
benutzt werden kann.
|
||||
Für Leerzeilen muss man
|
||||
\family sans
|
||||
Strg+Eingabe
|
||||
\family default
|
||||
eingeben (die
|
||||
\family typewriter
|
||||
break-line
|
||||
\family default
|
||||
-Funktion).
|
||||
eingeben (die Zeilenumbruch-Funktion).
|
||||
|
||||
\family sans
|
||||
Eingabe
|
||||
\family default
|
||||
beendet Absätze.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Beachten Sie aber, dass
|
||||
Beachten Sie aber, dass
|
||||
\family sans
|
||||
Eingabe
|
||||
\family default
|
||||
@ -8379,11 +8381,7 @@ LyX-Code
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Diese Umgebung hat ein paar Marotten:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
a
|
||||
Diese Umgebung hat ein paar Besonderheiten:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
@ -8424,28 +8422,23 @@ In der Druckausgabe gibt es keine leeren Absätze und keine leeren Zeilen.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
Anführungszeichen erreichen Sie nicht durch Eingabe von
|
||||
Ein Schreibmaschinen-Anführungszeichen erreichen Sie nicht durch Eingabe
|
||||
von
|
||||
\family sans
|
||||
",
|
||||
\family default
|
||||
weil das `
|
||||
\begin_inset space \thinspace{}
|
||||
weil das ein reales Anführungszeichen erzeugt.
|
||||
Sie erhalten es stattdessen über das Menü
|
||||
\family sans
|
||||
Einfügen\SpecialChar \menuseparator
|
||||
Sonderzeichen\SpecialChar \menuseparator
|
||||
Nicht-typographisches
|
||||
\begin_inset space ~
|
||||
\end_inset
|
||||
|
||||
` erzeugt.
|
||||
Die Anführungszeichen erhalten Sie durch
|
||||
\family sans
|
||||
Strg+",
|
||||
Anführungszeichen
|
||||
\family default
|
||||
eigentlich
|
||||
\family sans
|
||||
Strg+Umschalt+2
|
||||
\family default
|
||||
(oder
|
||||
\family sans
|
||||
Strg+Q
|
||||
\family default
|
||||
, wenn Sie die Emacs-Tastaturbelegung verwenden).
|
||||
.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -8499,8 +8492,8 @@ Hallo Welt!
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
hat einen Zweck: Code zu schreiben, zum Beispiel Quellprogramme, Shell-Skripte,
|
||||
rc-Dateien usw.
|
||||
hat einen Zweck: Code zu schreiben, zum Beispiel Quellcode, Shell-Skripte,
|
||||
usw..
|
||||
Benutzen Sie diese Umgebung nur in diesen Spezialfällen, wenn der Text
|
||||
aussehen soll, als wäre er mit einer Schreibmaschine geschrieben worden.
|
||||
\begin_inset Index idx
|
||||
@ -8528,6 +8521,110 @@ Objekte
|
||||
Handbuchs erklärt.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
Verbatim
|
||||
\begin_inset Index idx
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Verbatim
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Die
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
Umgebung ist ähnlich zur
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
Umgebung, mit dem Unterschied, dass sein Inhalt wie ein Computer-Konsolentext
|
||||
behandelt wird.
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
hat daher keine Absätze so dass
|
||||
\family sans
|
||||
Eingabe
|
||||
\family default
|
||||
Zeilen umbricht.
|
||||
Verglichen mit
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
wird die
|
||||
\family sans
|
||||
Leertaste
|
||||
\family default
|
||||
wie ein normales Leerzeichen im Text behandelt (nicht als geschütztes Leerzeich
|
||||
en) und man kann leere Zeilen haben.
|
||||
Im Gegensatz zu
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
kann
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
keine
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
bestimmte Sprache und einen Textstil haben
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
Hyperlinks, Boxen, Fußnoten, (Rand)notizen, Formeln, Zitate, Stichworte,
|
||||
Nomenklatureinträge, Marken, Tabellen, Abbildungen, Programmlistings, Gleitumge
|
||||
bungen und TeX-Code enthalten
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
der folgenden Zeichen enthalten (würde zu LaTeX-Fehlern führen): µ ; ´ ;
|
||||
³ ; ²
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Aufgrund dieser Eigenschaften funktioniert
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
wie eine Schreibmaschine.
|
||||
Hier ist ein Beispiel:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
Dies ist Verbatim.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
Die folgenden 2 Zeilen sind leer:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
Fast alles ist in Verbatim erlaubt:"%&$§#~'`
|
||||
\backslash
|
||||
}][{|
|
||||
\end_layout
|
||||
|
||||
\begin_layout Section
|
||||
Umgebungen schachteln
|
||||
\begin_inset Index idx
|
||||
|
@ -5049,7 +5049,7 @@ Puedes usar etiquetas y referencias cruzadas a sus números.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
Espacios para Citas y Versos
|
||||
Citas y Versos
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -7996,6 +7996,19 @@ reference "sec:Bibliografía"
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
|
||||
\lang english
|
||||
Special environments
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
LyX provides two environments that can be used to emulate the behavior of
|
||||
a computer console/terminal and a typewriter.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
Código LyX
|
||||
\family sans
|
||||
|
||||
@ -8003,7 +8016,7 @@ Código LyX
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Párrafos! Código LyX
|
||||
Código LyX
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
@ -8023,13 +8036,13 @@ El entorno
|
||||
\family sans
|
||||
Código-LyX
|
||||
\family default
|
||||
es otra extensión de LyX.
|
||||
es una extensión de LyX.
|
||||
Escribe el texto en estilo máquina de escribir.
|
||||
Trata la tecla
|
||||
\family sans
|
||||
Espacio
|
||||
\family default
|
||||
como espacio fijo
|
||||
como espacio fijo.
|
||||
\begin_inset Foot
|
||||
status collapsed
|
||||
|
||||
@ -8055,7 +8068,18 @@ protegido
|
||||
|
||||
\end_inset
|
||||
|
||||
; es el único caso en LyX en que puedes teclear múltiples espacios.
|
||||
|
||||
\family sans
|
||||
\lang english
|
||||
LyX-Code
|
||||
\family default
|
||||
and
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
are the only environments
|
||||
\lang spanish
|
||||
en que puedes teclear múltiples espacios.
|
||||
Si necesitas insertar líneas en blanco debes usar
|
||||
\family sans
|
||||
Ctrl+Entrar
|
||||
@ -8203,7 +8227,7 @@ Hello world!
|
||||
Código-LyX
|
||||
\family default
|
||||
tiene un propósito: escribir lenguaje informático, tales como código de
|
||||
programa, guiones de shell, archivos rc, y otros.
|
||||
programa, guiones de shell, y otros.
|
||||
Úsalo solo en casos muy especiales en los que necesites generar texto como
|
||||
en una máquina de escribir.
|
||||
\begin_inset Index idx
|
||||
@ -8227,6 +8251,124 @@ Objetos insertados
|
||||
.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
Verbatim
|
||||
\begin_inset Index idx
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
\lang english
|
||||
Verbatim
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
The
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
environment is similar to the
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
environment with the difference that its content will be treated like a
|
||||
computer console text.
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
does therefore not have paragraphs so that
|
||||
\family sans
|
||||
Return
|
||||
\family default
|
||||
breaks lines.
|
||||
Compared to
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
the
|
||||
\family sans
|
||||
Space
|
||||
\family default
|
||||
key is treated like a normal space in text (not as a protected space) and
|
||||
you can have empty lines.
|
||||
In contrary to
|
||||
\family sans
|
||||
LyX-Code,
|
||||
\family default
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
cannot
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
have a certain language and a text style
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
contain hyperlinks, boxes, foot- and margin notes, notes, math, citations,
|
||||
index- and nomenclature entries, labels, tables, graphics, listings, floats
|
||||
and TeX-Code
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
contain the following characters (you will get LaTeX errors): µ ; ´ ; ³
|
||||
; ²
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
Because of these properties
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
works like a typewriter.
|
||||
Here is an example:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
This is verbatim.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
\noindent
|
||||
\align block
|
||||
|
||||
The following 2 lines are empty:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
Almost everything is allowed in verbatim:"%&$§#~'`
|
||||
\backslash
|
||||
}][{|
|
||||
\end_layout
|
||||
|
||||
\begin_layout Section
|
||||
Anidación de entornos
|
||||
\begin_inset Index idx
|
||||
|
@ -8144,25 +8144,38 @@ reference "sec:Bibliographie"
|
||||
|
||||
\begin_layout Subsection
|
||||
|
||||
\lang english
|
||||
Special environments
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
LyX provides two environments that can be used to emulate the behavior of
|
||||
a computer console/terminal and a typewriter.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
|
||||
\family sans
|
||||
LyX-Code
|
||||
\begin_inset CommandInset label
|
||||
LatexCommand label
|
||||
name "sub:LyX-Code"
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Index idx
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
Paragraphe ! LyX-Code
|
||||
LyX-Code
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset CommandInset label
|
||||
LatexCommand label
|
||||
name "sub:LyX-Code"
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -8170,13 +8183,13 @@ L'environnement
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
est une autre extension LyX de LaTeX.
|
||||
est une extension LyX de LaTeX.
|
||||
Il typographie le texte dans le style à chasse fixe.
|
||||
Il traite aussi la touche
|
||||
\family sans
|
||||
Espace
|
||||
\family default
|
||||
comme une espace de taille fixe
|
||||
comme une espace de taille fixe.
|
||||
\begin_inset Foot
|
||||
status collapsed
|
||||
|
||||
@ -8202,8 +8215,18 @@ Insécable
|
||||
|
||||
\end_inset
|
||||
|
||||
; c'est le seul cas où vous pouvez taper des espaces consécutives dans
|
||||
LyX.
|
||||
|
||||
\family sans
|
||||
\lang english
|
||||
LyX-Code
|
||||
\family default
|
||||
and
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
are the only environments
|
||||
\lang french
|
||||
où vous pouvez taper des espaces consécutives dans LyX.
|
||||
Si vous avez besoin d'insérer des lignes vides, vous devrez encore utiliser
|
||||
|
||||
\family sans
|
||||
@ -8370,7 +8393,7 @@ Hello world !
|
||||
LyX-Code
|
||||
\family default
|
||||
a un but : typographier du code, comme des sources de programme, des scripts
|
||||
shell, des fichiers de configuration rc, etc.
|
||||
shell, etc..
|
||||
Ne l'employez que dans ces cas vraiment très spéciaux où vous voulez sortir
|
||||
du texte comme s'il provenait d'une machine à écrire
|
||||
\begin_inset Index idx
|
||||
@ -8395,6 +8418,124 @@ Objets insérés
|
||||
.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
Verbatim
|
||||
\begin_inset Index idx
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
\lang english
|
||||
Verbatim
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
The
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
environment is similar to the
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
environment with the difference that its content will be treated like a
|
||||
computer console text.
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
does therefore not have paragraphs so that
|
||||
\family sans
|
||||
Return
|
||||
\family default
|
||||
breaks lines.
|
||||
Compared to
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
the
|
||||
\family sans
|
||||
Space
|
||||
\family default
|
||||
key is treated like a normal space in text (not as a protected space) and
|
||||
you can have empty lines.
|
||||
In contrary to
|
||||
\family sans
|
||||
LyX-Code,
|
||||
\family default
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
cannot
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
have a certain language and a text style
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
contain hyperlinks, boxes, foot- and margin notes, notes, math, citations,
|
||||
index- and nomenclature entries, labels, tables, graphics, listings, floats
|
||||
and TeX-Code
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
contain the following characters (you will get LaTeX errors): µ ; ´ ; ³
|
||||
; ²
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
Because of these properties
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
works like a typewriter.
|
||||
Here is an example:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
This is verbatim.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
\noindent
|
||||
\align block
|
||||
|
||||
The following 2 lines are empty:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
Almost everything is allowed in verbatim:"%&$§#~'`
|
||||
\backslash
|
||||
}][{|
|
||||
\end_layout
|
||||
|
||||
\begin_layout Section
|
||||
Emboîter les environnements
|
||||
\begin_inset CommandInset label
|
||||
|
@ -6628,13 +6628,26 @@ reference "sec:書誌情報"
|
||||
|
||||
\begin_layout Subsection
|
||||
|
||||
\lang english
|
||||
Special environments
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
LyX provides two environments that can be used to emulate the behavior of
|
||||
a computer console/terminal and a typewriter.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
|
||||
\family sans
|
||||
LyXコード
|
||||
\begin_inset Index idx
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
だんらく@段落!lyxこと@LyXコード
|
||||
LyXコード
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
@ -6654,11 +6667,15 @@ name "sub:LyXコード"
|
||||
\family sans
|
||||
LyXコード
|
||||
\family default
|
||||
環境はLaTeXのLyXでの拡張です。これはテキストをtypewriterフォントでタイプセットします。またこの環境の中では、
|
||||
環境はLaTeXのLyXでの拡張です。これはテキストをtypewriterフォントでタイプセットします。
|
||||
\lang english
|
||||
It also treats the
|
||||
\family sans
|
||||
スペース
|
||||
Space
|
||||
\family default
|
||||
は固定した長さを持つ空白として扱われます
|
||||
key as a fixed whitespace
|
||||
\lang japanese
|
||||
|
||||
\begin_inset Foot
|
||||
status collapsed
|
||||
|
||||
@ -6700,7 +6717,19 @@ status collapsed
|
||||
|
||||
\end_inset
|
||||
|
||||
。この環境がLyXの中でいくつも空白を入れることのできる唯一の環境です。ただし空白行を入れたい場合には
|
||||
。
|
||||
\family sans
|
||||
\lang english
|
||||
LyX-Code
|
||||
\family default
|
||||
and
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
are the only environments in which you can type multiple whitespaces in
|
||||
LyX
|
||||
\lang japanese
|
||||
。ただし空白行を入れたい場合には
|
||||
\begin_inset Info
|
||||
type "shortcut"
|
||||
arg "newline-insert newline"
|
||||
@ -6848,8 +6877,8 @@ n");
|
||||
\family sans
|
||||
LyXコード
|
||||
\family default
|
||||
の目的はただ一つ、プログラムソースやシェルスクリプト、rcファイルなどのコードを植字することです。この環境は、タイプライタを使ったような文字列を生成する必要があ
|
||||
るような、非常に特別な場合にのみ使って下さい。長いプログラムコードについては、取扱説明書『埋込オブジェクト篇』の「
|
||||
の目的はただ一つ、プログラムソースやシェルスクリプト、ファイルなどのコードを植字することです。この環境は、タイプライタを使ったような文字列を生成する必要があるよ
|
||||
うな、非常に特別な場合にのみ使って下さい。長いプログラムコードについては、取扱説明書『埋込オブジェクト篇』の「
|
||||
\emph on
|
||||
プログラムコードリスト
|
||||
\emph default
|
||||
@ -6886,6 +6915,128 @@ status collapsed
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
|
||||
\lang english
|
||||
Verbatim
|
||||
\family sans
|
||||
|
||||
\begin_inset Index idx
|
||||
status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
\lang english
|
||||
Verbatim
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
The
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
environment is similar to the
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
environment with the difference that its content will be treated like a
|
||||
computer console text.
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
does therefore not have paragraphs so that
|
||||
\family sans
|
||||
Return
|
||||
\family default
|
||||
breaks lines.
|
||||
Compared to
|
||||
\family sans
|
||||
LyX-Code
|
||||
\family default
|
||||
the
|
||||
\family sans
|
||||
Space
|
||||
\family default
|
||||
key is treated like a normal space in text (not as a protected space) and
|
||||
you can have empty lines.
|
||||
In contrary to
|
||||
\family sans
|
||||
LyX-Code,
|
||||
\family default
|
||||
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
cannot
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
have a certain language and a text style
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
contain hyperlinks, boxes, foot- and margin notes, notes, math, citations,
|
||||
index- and nomenclature entries, labels, tables, graphics, listings, floats
|
||||
and TeX-Code
|
||||
\end_layout
|
||||
|
||||
\begin_layout Itemize
|
||||
|
||||
\lang english
|
||||
contain the following characters (you will get LaTeX errors): µ ; ´ ; ³
|
||||
; ²
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
Because of these properties
|
||||
\family sans
|
||||
Verbatim
|
||||
\family default
|
||||
works like a typewriter.
|
||||
Here is an example:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
This is verbatim.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
\noindent
|
||||
\align block
|
||||
|
||||
The following 2 lines are empty:
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Verbatim
|
||||
|
||||
Almost everything is allowed in verbatim:"%&$§#~'`
|
||||
\backslash
|
||||
}][{|
|
||||
\end_layout
|
||||
|
||||
\begin_layout Section
|
||||
環境を入れ子にする
|
||||
\begin_inset Index idx
|
||||
|
Loading…
Reference in New Issue
Block a user