#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 401
+\lyxformat 404
\begin_document
\begin_header
\textclass scrbook
\mainmatter }
% provides caption formatting
-\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
+\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
{LyX}}
\end_preamble
-\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
\maintain_unincluded_children false
\language english
\use_indices false
\paperorientation portrait
\suppress_date false
+\use_refstyle 0
\notefontcolor #0000ff
\index Index
\shortcut idx
document class is used.
In this case the document class option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
must be used.
\end_layout
\series default
package set the document class option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
.
\end_layout
\end_inset
+\end_layout
+
+\begin_layout Standard
+Inserting a formula into a listing can be done the following way:
+\end_layout
+
+\begin_layout Enumerate
+Open the listings dialog and add
+\begin_inset Newline newline
+\end_inset
+
+
+\family sans
+mathescape=true
+\family default
+
+\begin_inset Newline newline
+\end_inset
+
+to the field of the
+\family sans
+Advanced
+\family default
+ tab.
+\end_layout
+
+\begin_layout Enumerate
+Create a formula outside the listing
+\end_layout
+
+\begin_layout Enumerate
+Copy the content of the formula (not the formula inset) to the clipboard
+ (shortcut
+\begin_inset Info
+type "shortcut"
+arg "copy"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Enumerate
+In the listing write
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+$$
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+ and copy from the clipboard between the dollar-signs (shortcut
+\begin_inset Info
+type "shortcut"
+arg "paste"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=Python,mathescape=true"
+inline false
+status open
+
+\begin_layout Plain Layout
+
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Example Listing float containing a formula
+\end_layout
+
+\end_inset
+
+# Example listing float
+\end_layout
+
+\begin_layout Plain Layout
+
+def func(param):
+\end_layout
+
+\begin_layout Plain Layout
+
+ # $
+\backslash
+prod_{n=1}^{
+\backslash
+infty}
+\backslash
+,
+\backslash
+frac{1}{x^{2}}$
+\end_layout
+
+\begin_layout Plain Layout
+
+ pass
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
\end_layout
\begin_layout Standard
\begin_inset space ~
\end_inset
-
+(
\begin_inset CommandInset ref
-LatexCommand eqref
+LatexCommand ref
reference "eq:Wgn"
\end_inset
-
+)
\begin_inset CommandInset label
LatexCommand label
name "cha:Explanation-of-Equation"
\labelwidthstring Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
-key "NewInLyX16"
+key "NewInLyX20"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Wiki page"
-target "http://wiki.lyx.org/LyX/NewInLyX16"
+target "http://wiki.lyx.org/LyX/NewInLyX20"
\end_inset
about new features in
\family sans
-LyX 1.6.0
+LyX 2.0
\family default
.
\end_layout
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList figure
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList table
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList algorithm
-
-\end_inset
-
-
\end_layout
\end_body
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 402
+\lyxformat 404
\begin_document
\begin_header
\textclass scrbook
\mainmatter }
% Formatierung von Legenden
-\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
+\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% Befehle, um Legenden neben Tabellen und Abbildungen zu setzen
\usepackage{sidecap}
% Damit der Index den Namen "Stichwortverzeichnis" erhält
\addto\captionsngerman{\renewcommand{\indexname}{Stichwortverzeichnis}}
\end_preamble
-\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
\maintain_unincluded_children false
\language ngerman
\use_indices false
\paperorientation portrait
\suppress_date false
+\use_refstyle 0
\notefontcolor #0000ff
\index Stichwortverzeichnis
\shortcut idx
filename ../../images/dialog-show-new-inset_graphics.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/float-insert_figure.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/label-insert.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 20bp 20bp
+
\end_inset
filename ../../images/dialog-show-new-inset_ref.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/tabular-insert.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/float-insert_table.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/tabular-insert.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/label-insert.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 20bp 20bp
+
\end_inset
filename ../../images/dialog-show-new-inset_ref.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
Um zwei Zeilen zu bekommen, wurde ein rechtsbündiger Zeilenumbruch (Tastenkürze
l
\family sans
-Strg-Shift-Enter
+Strg+Shift+Enter
\family default
) eingefügt.
Wenn der Text länger ist, wird er automatisch umgebrochen.
filename ../../images/tabular-feature_multicolumn.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/dialog-show_character.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 0bp 20bp 20bp
\end_inset
filename ../../images/float-insert_figure.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/float-insert_table.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename clipart/GleitobjektQt4.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 128bp 22bp
\end_inset
filename ../../images/float-insert_figure.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/float-insert_table.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
lyxscale 80
scale 50
scaleBeforeRotation
- BoundingBox 0bp 6bp 76bp 23bp
\end_inset
lyxscale 80
scale 50
scaleBeforeRotation
- BoundingBox 0bp 6bp 76bp 23bp
\end_inset
-Dokumentklasse verwendet wird.
Hier muss die Option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
benutzt werden.
\end_layout
\series default
-Paket die Option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
benutzen.
\end_layout
filename ../../images/note-insert.png
scale 85
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
filename ../../images/note-insert.png
scale 85
scaleBeforeRotation
- BoundingBox 0bp 6bp 22bp 22bp
+
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Standard
+Eine Formel in ein Listing einzufügen ist folgendermaßen möglich:
+\end_layout
+
+\begin_layout Enumerate
+Öffnen Sie die Listings-Einstellungen und fügen
+\begin_inset Newline newline
+\end_inset
+
+
+\family sans
+mathescape=true
+\family default
+
+\begin_inset Newline newline
+\end_inset
+
+in das Feld des Tabs
+\family sans
+Erweitert
+\family default
+ ein
+\end_layout
+
+\begin_layout Enumerate
+Erstellen Sie eine Formel außerhalb des Listings
+\end_layout
+
+\begin_layout Enumerate
+Kopieren Sie den Inhalt der Formel (nicht die Formel-Einfügung) in die Zwischena
+blage (Tastenkürzel
+\family sans
+Ctrl+C
+\family default
+)
+\end_layout
+
+\begin_layout Enumerate
+Schreiben sie
+\begin_inset Quotes gld
+\end_inset
+
+
+\family sans
+$$
+\family default
+
+\begin_inset Quotes grd
+\end_inset
+
+ in das Listing und kopieren sie aus der Zwischenablage zwischen die Dollar-Zeic
+hen (Tastenkürzel
+\family sans
+Ctrl+V
+\family default
+)
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=Python,mathescape=true"
+inline false
+status open
+
+\begin_layout Plain Layout
+
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Programm-Listing mit einer Formel
+\end_layout
+
+\end_inset
+
+# Beispiel-Programm-Listing
+\end_layout
+
+\begin_layout Plain Layout
+
+def func(param):
+\end_layout
+
+\begin_layout Plain Layout
+
+ # $
+\backslash
+prod_{n=1}^{
+\backslash
+infty}
+\backslash
+,
+\backslash
+frac{1}{x^{2}}$
+\end_layout
+
+\begin_layout Plain Layout
+
+ pass
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
\end_layout
\begin_layout Standard
filename ../../images/buffer-view_dvi.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 0bp 20bp 20bp
\end_inset
filename ../../images/buffer-view_pdf2.png
scale 70
scaleBeforeRotation
- BoundingBox 0bp 0bp 20bp 20bp
\end_inset
\begin_inset space ~
\end_inset
-
+(
\begin_inset CommandInset ref
-LatexCommand eqref
+LatexCommand ref
reference "eq:Wgn"
\end_inset
-
+)
\begin_inset CommandInset label
LatexCommand label
name "kap:Exläuterung-einer-Gleichung"
\labelwidthstring Literaturverzeichnis
\begin_inset CommandInset bibitem
LatexCommand bibitem
-key "NewInLyX16"
+key "NewInLyX20"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Wiki-Seite"
-target "http://wiki.lyx.org/LyX/NewInLyX16"
+target "http://wiki.lyx.org/LyX/NewInLyX20"
\end_inset
über neue Funktionen in
\family sans
-LyX 1.6.0
+LyX 2.0
\family default
.
\end_layout
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList figure
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList table
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-
-\backslash
-listof{algorithm}{Algorithmenverzeichnis}
-\end_layout
-
-\end_inset
-
-
-\begin_inset Note Note
-status collapsed
-
-\begin_layout Plain Layout
-siehe Abschnitt
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "uab:Gleitobjekt-Algorithmen"
-
-\end_inset
-
- für eine Beschreibung
-\end_layout
-
-\end_inset
-
-
\end_layout
\end_body
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 401
+\lyxformat 404
\begin_document
\begin_header
\textclass scrbook
\mainmatter }
% provides caption formatting
-\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
+\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
% para traducir la etiqueta listing
\renewcommand{\lstlistingname}{Listado}
\end_preamble
-\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
\maintain_unincluded_children false
\language spanish
\use_indices false
\paperorientation portrait
\suppress_date false
+\use_refstyle 0
\notefontcolor #0000ff
\index Índice
\shortcut idx
.
En este caso debe utilizarse la opción de clase de documento
\series bold
-tablecaptionabove
+captions=tableheading
\series default
.
\series default
puedes poner la opción
\series bold
-tablecaptionabove
+captions=tableheading
\series default
de la clase de documento.
\end_layout
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+Inserting a formula into a listing can be done the following way:
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Open the listings dialog and add
+\begin_inset Newline newline
+\end_inset
+
+
+\family sans
+mathescape=true
+\family default
+
+\begin_inset Newline newline
+\end_inset
+
+to the field of the
+\family sans
+Advanced
+\family default
+ tab.
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Create a formula outside the listing
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Copy the content of the formula (not the formula inset) to the clipboard
+ (shortcut
+\begin_inset Info
+type "shortcut"
+arg "copy"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+In the listing write
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+$$
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+ and copy from the clipboard between the dollar-signs (shortcut
+\begin_inset Info
+type "shortcut"
+arg "paste"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=Python,mathescape=true"
+inline false
+status open
+
+\begin_layout Plain Layout
+
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Ejemplo de listado de programa flotante
+\lang english
+containing a formula
+\end_layout
+
+\end_inset
+
+# Ejemplo de listado flotante
+\end_layout
+
+\begin_layout Plain Layout
+
+def func(param):
+\end_layout
+
+\begin_layout Plain Layout
+
+ # $
+\backslash
+prod_{n=1}^{
+\backslash
+infty}
+\backslash
+,
+\backslash
+frac{1}{x^{2}}$
+\end_layout
+
+\begin_layout Plain Layout
+
+ pass
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
\begin_inset VSpace bigskip
\end_inset
\begin_inset space ~
\end_inset
-
+(
\begin_inset CommandInset ref
-LatexCommand eqref
+LatexCommand ref
reference "eq:Wgn"
\end_inset
-
+)
\begin_inset CommandInset label
LatexCommand label
name "cap:Explicación-de-la-Ecuación"
\labelwidthstring Bibliografía
\begin_inset CommandInset bibitem
LatexCommand bibitem
-key "NewInLyX16"
+key "NewInLyX20"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Página wiki"
-target "http://wiki.lyx.org/LyX/NewInLyX16"
+target "http://wiki.lyx.org/LyX/NewInLyX20"
\end_inset
\begin_inset space ~
\end_inset
-1.6.0
+2.0
\family default
.
\end_layout
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList figure
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList table
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList algorithm
-
-\end_inset
-
-
\end_layout
\end_body
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 401
+\lyxformat 404
\begin_document
\begin_header
\textclass scrbook
\mainmatter }
% provides caption formatting
-\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
+\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
{LyX}}
% use normal list environments also in French documents
-\StandardLayout
+\frenchbsetup{StandardLayout}
\end_preamble
-\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
\maintain_unincluded_children false
\language french
\use_indices false
\paperorientation portrait
\suppress_date false
+\use_refstyle 0
\notefontcolor #0000ff
\index Index
\shortcut idx
.
Dans ce cas on doit utiliser l'option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
de la classe de document.
\end_layout
\series default
l'option
\series bold
-tablecaptionabove
+captions=tableheading
\series default
de la classe de document.
\end_layout
\end_inset
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+Inserting a formula into a listing can be done the following way:
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Open the listings dialog and add
+\begin_inset Newline newline
+\end_inset
+
+
+\family sans
+mathescape=true
+\family default
+
+\begin_inset Newline newline
+\end_inset
+
+to the field of the
+\family sans
+Advanced
+\family default
+ tab.
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Create a formula outside the listing
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Copy the content of the formula (not the formula inset) to the clipboard
+ (shortcut
+\begin_inset Info
+type "shortcut"
+arg "copy"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+In the listing write
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+$$
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+ and copy from the clipboard between the dollar-signs (shortcut
+\begin_inset Info
+type "shortcut"
+arg "paste"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=Python,mathescape=true"
+inline false
+status open
+
+\begin_layout Plain Layout
+
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Exemple de listing flottant
+\lang english
+containing a formula
+\end_layout
+
+\end_inset
+
+# Exemple de listing flottant
+\end_layout
+
+\begin_layout Plain Layout
+
+def func(param):
+\end_layout
+
+\begin_layout Plain Layout
+
+ # $
+\backslash
+prod_{n=1}^{
+\backslash
+infty}
+\backslash
+,
+\backslash
+frac{1}{x^{2}}$
+\end_layout
+
+\begin_layout Plain Layout
+
+ pass
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
\end_layout
\begin_layout Standard
\begin_inset space ~
\end_inset
-
+(
\begin_inset CommandInset ref
-LatexCommand eqref
+LatexCommand ref
reference "eq:Wgn"
\end_inset
-
+)
\begin_inset CommandInset label
LatexCommand label
name "cha:Explication-de-l'Equation"
\labelwidthstring Bibliographie
\begin_inset CommandInset bibitem
LatexCommand bibitem
-key "NewInLyX16"
+key "NewInLyX20"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Page Wiki"
-target "http://wiki.lyx.org/LyX/NewInLyX16"
+target "http://wiki.lyx.org/LyX/NewInLyX20"
\end_inset
au sujet des nouveautés de
\family sans
-LyX 1.6.0
+LyX 2.0
\family default
.
\end_layout
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList figure
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList table
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-
-\backslash
-listof{algorithm}{Liste des Algorithmes}
-\end_layout
-
-\end_inset
-
-
-\begin_inset Note Note
-status collapsed
-
-\begin_layout Plain Layout
-voir la section
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "sub:Flottant-d'Algorithme"
-
-\end_inset
-
- pour une description
-\end_layout
-
-\end_inset
-
-
\end_layout
\end_body
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 401
+\lyxformat 404
\begin_document
\begin_header
\textclass jbook
\mainmatter }
% provides caption formatting
-\usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
+\usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
% provides commands to set caption
% beside tables/images
\DeclareCaptionOption{large}[]{\def\captionfont{\large}}
\DeclareCaptionOption{Large}[]{\def\captionfont{\Large}}
\end_preamble
-\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
+\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
\maintain_unincluded_children false
\language japanese
\use_indices false
\paperorientation portrait
\suppress_date false
+\use_refstyle 0
\notefontcolor #0000ff
\index 索引
\shortcut idx
が使われているときには、無効になります。この場合には、文書クラスオプション
\series bold
-tablecaptionabove
+captions=tableheading
\series default
を指定しなくてはなりません。
\end_layout
\series default
パッケージにオプションを与える代わりに、文書クラスオプション
\series bold
-tablecaptionabove
+captions=tableheading
\series default
を設定することもできます。
\end_layout
\end_inset
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+Inserting a formula into a listing can be done the following way:
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Open the listings dialog and add
+\begin_inset Newline newline
+\end_inset
+
+
+\family sans
+mathescape=true
+\family default
+
+\begin_inset Newline newline
+\end_inset
+
+to the field of the
+\family sans
+Advanced
+\family default
+ tab.
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Create a formula outside the listing
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+Copy the content of the formula (not the formula inset) to the clipboard
+ (shortcut
+\begin_inset Info
+type "shortcut"
+arg "copy"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Enumerate
+
+\lang english
+In the listing write
+\begin_inset Quotes eld
+\end_inset
+
+
+\family sans
+$$
+\family default
+
+\begin_inset Quotes erd
+\end_inset
+
+ and copy from the clipboard between the dollar-signs (shortcut
+\begin_inset Info
+type "shortcut"
+arg "paste"
+\end_inset
+
+)
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=Python,mathescape=true"
+inline false
+status open
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+
+\lang english
+Example Listing float containing a formula
+\end_layout
+
+\end_inset
+
+# Example listing float
+\end_layout
+
+\begin_layout Plain Layout
+def func(param):
+\end_layout
+
+\begin_layout Plain Layout
+ # $
+\backslash
+prod_{n=1}^{
+\backslash
+infty}
+\backslash
+,
+\backslash
+frac{1}{x^{2}}$
+\end_layout
+
+\begin_layout Plain Layout
+ pass
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Chapter
-第
+第(
\begin_inset CommandInset ref
-LatexCommand eqref
+LatexCommand ref
reference "eq:Wgn"
\end_inset
-式の説明
+)式の説明
\begin_inset CommandInset label
LatexCommand label
name "cha:式の説明"
\labelwidthstring 参考文献
\begin_inset CommandInset bibitem
LatexCommand bibitem
-key "NewInLyX16"
+key "NewInLyX20"
\end_inset
\family sans
-LyX 1.6.0
+LyX 2.0
\family default
の新機能に関する
\begin_inset CommandInset href
LatexCommand href
name "Wikiページ"
-target "http://wiki.lyx.org/LyX/NewInLyX16"
+target "http://wiki.lyx.org/LyX/NewInLyX20"
\end_inset
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList figure
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList table
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-\begin_inset FloatList algorithm
-
-\end_inset
-
-
\end_layout
\end_body