- sec. 1.2: changed image captions and labels
- sec. 3.4.1: new paragraphs
- sec. 7.1: new description item for Inkscape drawings
+- sec. 8: new support for the LaTeX package minted
- bibliography: new entry for Inkscape
\papercolumns 1
\papersides 2
\paperpagestyle default
-\tracking_changes true
+\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
-\author 5863344 "ef"
\end_header
\begin_body
\family default
.
The \SpecialChar LaTeX
--package
-\change_inserted 5863344 1497177967
-s
-\change_unchanged
-
+-packages
\series bold
listings
\series default
\end_inset
-
-\change_inserted 5863344 1497177997
-or
+ or
\series bold
minted
\series default
status collapsed
\begin_layout Plain Layout
-
-\change_inserted 5863344 1497178009
\SpecialChar LaTeX
-packages ! minted
\end_layout
\end_inset
+ provide a powerful and flexible way to insert program source code into
+ your document.
+ One can only use one of these packages in a document.
-\change_unchanged
-provide
-\change_deleted 5863344 1497178016
-s
-\change_unchanged
- a powerful and flexible way to insert program source code into your document.
-
-\change_inserted 5863344 1497280755
- You can use either one in a document, but listings is used by default.
- In order to use minted, you need to select it as the syntax highlighting
- package in Document\SpecialChar menuseparator
-Settings\SpecialChar menuseparator
-Listings.
- However, note that minted requires additional software (the pygments python
- module) and the
+\series bold
+listings
+\series default
+ is used by default.
+ In order to use
+\series bold
+minted
+\series default
+, you need to select it as the syntax highlighting package in the document
+ settings under
+\family sans
+Listings
+\family default
+.
+ Note that
+\series bold
+minted
+\series default
+ requires additional software (the
+\family sans
+pygments
+\family default
+ python module) and the
\family typewriter
-shell-escape
\family default
- option for the latex backend, which allows arbitrary code execution.
-\change_unchanged
-
+ option for the \SpecialChar LaTeX
+ backend.
\end_layout
\begin_layout Standard
\family default
option in this case as also non-float listings can have captions and be
referenced.
-\change_inserted 5863344 1497179331
-
\end_layout
\begin_layout Standard
-
-\change_inserted 5863344 1497179333
-\begin_inset listings
-lstparams "language=Python"
-inline false
-status open
-
-\begin_layout Plain Layout
-
-\change_inserted 5863344 1497179333
-
-\begin_inset Caption Standard
-
-\begin_layout Plain Layout
-
-\change_inserted 5863344 1497179333
-\begin_inset CommandInset label
-LatexCommand label
-name "lst:Example-Listing"
-
-\end_inset
-
-Example Listing float
-\end_layout
-
-\end_inset
-
-# Example listing float
-\end_layout
-
-\begin_layout Plain Layout
-
-\change_inserted 5863344 1497179333
-
-def func(param):
-\end_layout
-
-\begin_layout Plain Layout
-
-\change_inserted 5863344 1497179333
-
- 'this is a python function'
-\end_layout
-
-\begin_layout Plain Layout
-
-\change_inserted 5863344 1497179333
-
- pass
-\end_layout
-
-\end_inset
-
-
-\change_unchanged
-
-\end_layout
-
-\begin_layout Standard
-You can add captions to listings with the menu
+You can add captions to listings that are not inline with the menu
\family sans
Insert\SpecialChar menuseparator
Caption
\family default
.
The list entries are the listing caption and the listing number.
-\change_inserted 5863344 1497179524
-
\end_layout
\begin_layout Standard
-
-\change_inserted 5863344 1497179494
-\begin_inset Note Greyedout
-status open
-
-\begin_layout Plain Layout
-
-\change_inserted 5863344 1497179551
-
-\series bold
-Note:
-\series default
-The listings package places captions before the listing by default, while
- the minted package places them after the listing by default if it is floating.
- If the listing is not floating and minted is used, the place of the caption
- is determined by the position it is inserted in the inset.
- If it is inserted in the first line of the inset, the caption will be typeset
- before the listing, otherwise it will be typeset after the listing.
- If you use minted and would like to have captions before the listing even
- when it is a float, you have to add the following lines to the preamble:
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_inserted 5863344 1497179494
-
-\backslash
-usepackage{float}
-\end_layout
-
-\begin_layout LyX-Code
-
-\change_inserted 5863344 1497179494
-
-\backslash
-floatstyle{plaintop}
-\change_unchanged
-
-\end_layout
-
-\end_inset
-
-
-\change_unchanged
-
-\end_layout
-
-\begin_layout Standard
-
-\change_deleted 5863344 1497179361
\begin_inset listings
lstparams "language=Python"
inline false
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
-name "lis:Example-Listing-old"
+name "lst:Example-Listing"
\end_inset
\end_inset
-\change_unchanged
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+The
+\series bold
+listings
+\series default
+ package places captions before the listing by default.
+\begin_inset Newline newline
+\end_inset
+
+The
+\series bold
+minted
+\series default
+ package places them after the listing by default if it is floating.
+ If tit is not floating caption will be typeset before the listing if it
+ is inserted to its first line, otherwise it will be typeset after the listing.
+ If you want to force the placement in avery case before the listing, you
+ have to add the following lines to the preamble:
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+usepackage{float}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+floatstyle{plaintop}
+\end_layout
+
+\end_inset
+
\end_layout
\family sans
Extended character table
\family default
-
-\change_inserted 5863344 1497179749
-is only meaningful for the listings package and
-\change_unchanged
-should be used when you use national characters like the German umlauts
- in the listing.
-
-\change_inserted 5863344 1497179779
- It is not needed with minted.
-\change_unchanged
-
+ is only meaningful for the
+\series bold
+listings
+\series default
+ package and should be used when you use national characters like the German
+ umlauts in the listing.
\begin_inset Newline newline
\end_inset
\series bold
listings
\series default
-
-\change_inserted 5863344 1497179948
-and
+ and
\series bold
minted
\series default
-
-\change_unchanged
-package
-\change_inserted 5863344 1497179951
-s
-\change_unchanged
-, we refer to
-\change_deleted 5863344 1497179970
-its
-\change_inserted 5863344 1497179971
-their
-\change_unchanged
- documentation
+ packages, we refer to their documentation
\begin_inset CommandInset citation
LatexCommand cite
key "listings,minted"
\end_inset
-\change_inserted 5863344 1497180016
-
\end_layout
\begin_layout Bibliography
-
-\change_inserted 5863344 1497180069
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "minted"
status collapsed
\begin_layout Plain Layout
-
-\change_inserted 5863344 1497180164
\SpecialChar LaTeX
-packages ! minted
\end_layout
\end_inset
-\change_unchanged
-
\end_layout
\begin_layout Bibliography
#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 543
+\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\suppress_date false
\justification true
\use_refstyle 1
+\use_minted 0
\notefontcolor #0000ff
\index Stichwortverzeichnis
\shortcut idx
grammlisting
\family default
verwenden.
- Das \SpecialChar LaTeX
--Paket
+ Die \SpecialChar LaTeX
+-Pakete
\series bold
listings
\series default
\end_inset
- kann Programm-Code auf vielfältige und flexible Weise in Ihr Dokument einfügen.
+ und
+\series bold
+minted
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+\SpecialChar LaTeX
+-Pakete ! minted
+\end_layout
+
+\end_inset
+
+ können Programm-Code auf vielfältige und flexible Weise in Ihr Dokument
+ einfügen.
+ Man kann nur eines der Pakete in einem Dokument verwenden.
+
+\series bold
+listings
+\series default
+ ist voreingestellt.
+ Um
+\series bold
+minted
+\series default
+ zu benutzen, muss man es als Paket zur Code-Hervorhebung in den Dokumenteinstel
+lungen in der Rubrik
+\family sans
+Programmlistings
+\family default
+ festlegen.
+ Dabei muss beachtet werden, dass
+\series bold
+minted
+\series default
+ zusätzliche Software (das Python-Modul
+\family sans
+pygments
+\family default
+) und die Option
+\family typewriter
+-shell-escape
+\family default
+ für das \SpecialChar LaTeX
+-Backend benötigt.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-Sie können Listings mit Marken versehen, um auf Sie wie auf andere Gleitobjekte
+Mit dem Menü
+\family sans
+Einfügen\SpecialChar menuseparator
+Legende
+\family default
+ kann man für das Listing eine Beschriftung hinzufügen.
+ Man kann Listings mit Marken versehen, um auf sie wie auf andere Gleitobjekte
zu verweisen: Listing
\begin_inset space ~
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Bemerkung:
+\series default
+Das Paket
+\series bold
+listings
+\series default
+ setzt Beschriftungen standardmäßig vor das Listing.
+\begin_inset Newline newline
+\end_inset
+
+Das Paket
+\series bold
+minted
+\series default
+ setzt sie standardmäßig vor das Listing, wenn es gleitend ist.
+ Ansonsten wird die Beschriftung vor das Listing gesetzt, wenn die Marke
+ in die erste Zeile eingefügt wurde, ansonsten hinter das Listing.
+ Um die Beschriftung in jedem Fall vor das Listing zu setzen, müssen diese
+ Zeilen zum \SpecialChar LaTeX
+-Vorspann hinzugefügt werden:
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+usepackage{float}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+floatstyle{plaintop}
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
Zeichentabelle
\family default
- sollte verwendet werden, wenn nationale Zeichen wie Umlaute benutzt werden.
+ ist nur für das Paket
+\series bold
+listings
+\series default
+ relevant und sollte verwendet werden, wenn nationale Zeichen wie Umlaute
+ benutzt werden.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-Weitere Informationen über das
+Weitere Informationen über die Pakete
\series bold
listings
\series default
--Paket finden Sie in
+ und
+\series bold
+minted
+\series default
+, siehe
\begin_inset CommandInset citation
LatexCommand cite
-key "listings"
+key "listings,minted"
literal "true"
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Bibliography
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "minted"
+literal "false"
+
+\end_inset
+
+Dokumentation des \SpecialChar LaTeX
+-Pakets
+\series bold
+
+\begin_inset CommandInset href
+LatexCommand href
+name "minted"
+target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minted/minted.pdf"
+literal "false"
+
+\end_inset
+
+
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+\SpecialChar LaTeX
+-Pakete ! minted
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Bibliography
#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 543
+\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\suppress_date false
\justification true
\use_refstyle 0
+\use_minted 0
\notefontcolor #0000ff
\index Índice
\shortcut idx
código.
\family default
-El paquete \SpecialChar LaTeX
+Los paquetes \SpecialChar LaTeX
\series bold
listings
-paquetes ! listings
\end_layout
+\end_inset
+
+ y
+\series bold
+minted
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+\SpecialChar LaTeX
+-paquetes ! minted
+\end_layout
+
\end_inset
provee un mecanismo potente y flexible para insertar código fuente en tu
documento.
+
+\lang english
+One can only use one of these packages in a document.
+
+\series bold
+listings
+\series default
+ is used by default.
+ In order to use
+\series bold
+minted
+\series default
+, you need to select it as the syntax highlighting package in the document
+ settings under
+\family sans
+Listings
+\family default
+.
+ Note that
+\series bold
+minted
+\series default
+ requires additional software (the
+\family sans
+pygments
+\family default
+ Python module) and the
+\family typewriter
+-shell-escape
+\family default
+ option for the \SpecialChar LaTeX
+ backend.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-Se puede añadir una leyenda a un listado de código con el menú
+Se puede añadir una leyenda a listados de código
+\lang english
+that are not inline
+\lang spanish
+ con el menú
\family sans
Insertar\SpecialChar menuseparator
Leyenda
\end_inset
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Nota:
+\series default
+\lang english
+The
+\series bold
+listings
+\series default
+ package places captions before the listing by default.
+\begin_inset Newline newline
+\end_inset
+
+The
+\series bold
+minted
+\series default
+ package places them after the listing by default if it is floating.
+ If tit is not floating caption will be typeset before the listing if it
+ is inserted to its first line, otherwise it will be typeset after the
+ listing.
+ If you want to force the placement in avery case before the listing, you
+ have to add the following lines to the preamble
+\lang spanish
+:
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+usepackage{float}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+floatstyle{plaintop}
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
mejorado
\family default
- debería emplearse si se usan en el código caracteres nacionales como la
- diéresis alemana.
+
+\lang english
+is only meaningful for the
+\series bold
+listings
+\series default
+ package
+\lang spanish
+ y debería emplearse si se usan en el código caracteres nacionales como
+ la diéresis alemana.
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Standard
-Para más información sobre el paquete
+Para más información sobre los paquetes
\series bold
listings
+\series default
+ y
+\series bold
+minted
\series default
, consulta su documentación
\begin_inset space ~
\begin_inset CommandInset citation
LatexCommand cite
-key "listings"
+key "listings,minted"
literal "true"
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Bibliography
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "minted"
+literal "true"
+
+\end_inset
+
+Documentación del paquete \SpecialChar LaTeX
+
+\series bold
+
+\begin_inset CommandInset href
+LatexCommand href
+name "minted"
+target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minted/minted.pdf"
+literal "false"
+
+\end_inset
+
+
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+\SpecialChar LaTeX
+-paquetes ! minted
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Bibliography
Source
\family default
.
- Le paquetage \SpecialChar LaTeX
+ Les paquetages \SpecialChar LaTeX
\series bold
listings
! listings
\end_layout
+\end_inset
+
+ et
+\series bold
+minted
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Paquetages \SpecialChar LaTeX
+ ! minted
+\end_layout
+
\end_inset
fournit un moyen puissant et flexible d'insérer des listings de code source
dans votre document.
+\lang english
+One can only use one of these packages in a document.
+
+\series bold
+listings
+\series default
+ is used by default.
+ In order to use
+\series bold
+minted
+\series default
+, you need to select it as the syntax highlighting package in the document
+ settings under
+\family sans
+Listings
+\family default
+.
+ Note that
+\series bold
+minted
+\series default
+ requires additional software (the
+\family sans
+pygments
+\family default
+ python module) and the
+\family typewriter
+-shell-escape
+\family default
+ option for the \SpecialChar LaTeX
+ backend.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-Vous pouvez ajouter une légende à un listing avec le menu
+Vous pouvez ajouter une légende à des listings
+\lang english
+that are not inline
+\lang french
+ avec le menu
\family sans
Insertion\SpecialChar menuseparator
Légende
\end_inset
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+\lang english
+The
+\series bold
+listings
+\series default
+ package places captions before the listing by default.
+\begin_inset Newline newline
+\end_inset
+
+The
+\series bold
+minted
+\series default
+ package places them after the listing by default if it is floating.
+ If tit is not floating caption will be typeset before the listing if it
+ is inserted to its first line, otherwise it will be typeset after the
+ listing.
+ If you want to force the placement in avery case before the listing, you
+ have to add the following lines to the preamble
+\lang french
+:
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+usepackage{float}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+floatstyle{plaintop}
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
Étendue
\family default
- quand vous employez des caractères spécifiques à une langue donnée comme
- les umlauts Allemands dans votre listing.
+
+\lang english
+is only meaningful for the
+\series bold
+listings
+\series default
+ package
+\lang french
+ et vous devez le utiliser quand vous employez des caractères spécifiques
+ à une langue donnée comme les umlauts Allemands dans votre listing.
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Standard
-Pour plus d'information sur le paquetage
+Pour plus d'information sur les paquetages
\series bold
listings
+\series default
+ et
+\series bold
+minted
\series default
, nous vous renvoyons à sa documentation
\begin_inset CommandInset citation
LatexCommand cite
-key "listings"
+key "listings,minted"
literal "true"
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Bibliography
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "minted"
+literal "true"
+
+\end_inset
+
+Documentation du paquetage \SpecialChar LaTeX
+
+\series bold
+
+\begin_inset CommandInset href
+LatexCommand href
+name "minted"
+target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minted/minted.pdf"
+literal "false"
+
+\end_inset
+
+
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Paquetages \SpecialChar LaTeX
+ ! minted
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Bibliography
#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 543
+\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\suppress_date false
\justification true
\use_refstyle 0
+\use_minted 0
\notefontcolor #0000ff
\index 索引
\shortcut idx
\end_inset
+
+\lang english
+or
+\series bold
+\lang japanese
+minted
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+\SpecialChar LaTeX
+ぱっけーじ@\SpecialChar LaTeX
+パッケージ ! minted
+\end_layout
+
+\end_inset
+
は,使用中の文書にプログラムソースコードを挿入する強力で柔軟な方法を提供します.
+\lang english
+One can only use one of these packages in a document.
+
+\series bold
+listings
+\series default
+ is used by default.
+ In order to use
+\series bold
+minted
+\series default
+, you need to select it as the syntax highlighting package in the document
+ settings under
+\family sans
+Listings
+\family default
+.
+ Note that
+\series bold
+minted
+\series default
+ requires additional software (the
+\family sans
+pygments
+\family default
+ python module) and the
+\family typewriter
+-shell-escape
+\family default
+ option for the \SpecialChar LaTeX
+ backend.
\end_layout
\begin_layout Standard
\family sans
キャプション
\family default
-メニューを使えば,プログラムリストにキャプションを付けることができます.プログラムリストは,フロート同様,リスト
+メニューを使えば
+\lang english
+that are not inline
+\lang japanese
+,プログラムリストにキャプションを付けることができます.プログラムリストは,フロート同様,リスト
\begin_inset CommandInset ref
LatexCommand ref
reference "lst:ListFloat"
\end_inset
+\end_layout
+
+\begin_layout Standard
+
+\lang english
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+【註】
+\series default
+\lang english
+The
+\series bold
+listings
+\series default
+ package places captions before the listing by default.
+\begin_inset Newline newline
+\end_inset
+
+The
+\series bold
+minted
+\series default
+ package places them after the listing by default if it is floating.
+ If tit is not floating caption will be typeset before the listing if it
+ is inserted to its first line, otherwise it will be typeset after the
+ listing.
+ If you want to force the placement in avery case before the listing, you
+ have to add the following lines to the preamble:
+\lang japanese
+
+\begin_inset Newline newline
+\end_inset
+
+
+\series bold
+
+\backslash
+usepackage{float}
+\begin_inset Newline newline
+\end_inset
+
+
+\backslash
+floatstyle{plaintop}
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
-さらに行の範囲を指定することもでき,この場合にはこれらの行のみが出力に表示されます.プログラムリスト中でドイツ語のウムラウトのような国字を使用する場合には,
+さらに行の範囲を指定することもでき,この場合にはこれらの行のみが出力に表示されます.プログラムリスト中でドイツ語のウムラウトのような国字を使用する場合には
+\lang english
+is only meaningful for the
+\series bold
+listings
+\series default
+ package and
+\lang japanese
+,
\family sans
拡張文字コード表を使う
\family default
\series bold
listings
\series default
+\lang english
+and
+\series bold
+minted
+\series default
+\lang japanese
パッケージについての詳しい情報については,取扱説明書
\begin_inset CommandInset citation
LatexCommand cite
-key "listings"
+key "listings,minted"
literal "true"
\end_inset
の取扱説明書
\end_layout
+\begin_layout Bibliography
+\labelwidthstring 参考文献
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "minted"
+literal "true"
+
+\end_inset
+
+\SpecialChar LaTeX
+パッケージ
+\series bold
+
+\begin_inset CommandInset href
+LatexCommand href
+name "minted"
+target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/minted/minted.pdf"
+literal "false"
+
+\end_inset
+
+
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+\SpecialChar LaTeX
+ぱっけーじ@\SpecialChar LaTeX
+パッケージ ! minted
+\end_layout
+
+\end_inset
+
+の取扱説明書
+\end_layout
+
\begin_layout Bibliography
\labelwidthstring 参考文献
\begin_inset CommandInset bibitem