]> git.lyx.org Git - features.git/commitdiff
EmbeddedObjects.lyx: accept info for minted support
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 25 Jul 2017 23:11:08 +0000 (01:11 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 25 Jul 2017 23:11:08 +0000 (01:11 +0200)
- see my mail to the devel list for open issues with this
- transfer this info to the other languages

lib/doc/Changelog-EmbeddedObjects-LyX_23x.txt
lib/doc/EmbeddedObjects.lyx
lib/doc/de/EmbeddedObjects.lyx
lib/doc/es/EmbeddedObjects.lyx
lib/doc/fr/EmbeddedObjects.lyx
lib/doc/ja/EmbeddedObjects.lyx

index a0b2c4959c1071a7bf5a2f9acd704e075378033b..8a5763e00da250aaad629f511acce4495ac26860 100644 (file)
@@ -6,6 +6,7 @@ first step:
 - 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
 
 
index c46d72276d53d120d051d9b0c935437da1dad9af..57deaaac757a96144cf88e232bba03648fcefa27 100644 (file)
@@ -233,12 +233,11 @@ graphicboxes
 \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
@@ -40851,11 +40850,7 @@ Program Listing
 \family default
 .
  The \SpecialChar LaTeX
--package
-\change_inserted 5863344 1497177967
-s
-\change_unchanged
+-packages 
 \series bold
 listings
 \series default
@@ -40870,9 +40865,7 @@ status collapsed
 
 \end_inset
 
-\change_inserted 5863344 1497177997
-or 
+ or 
 \series bold
 minted
 \series default
@@ -40881,36 +40874,44 @@ minted
 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
@@ -41045,71 +41046,10 @@ Float
 \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
@@ -41144,61 +41084,9 @@ List of Listings
 \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
@@ -41211,7 +41099,7 @@ status open
 \begin_layout Plain Layout
 \begin_inset CommandInset label
 LatexCommand label
-name "lis:Example-Listing-old"
+name "lst:Example-Listing"
 
 \end_inset
 
@@ -41241,7 +41129,52 @@ def func(param):
 \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
 
@@ -41338,17 +41271,12 @@ You can furthermore specify a range of lines; only these will then appear
 \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
 
@@ -41740,25 +41668,11 @@ For more information about the
 \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"
@@ -47110,13 +47024,9 @@ status collapsed
 \end_inset
 
 
-\change_inserted 5863344 1497180016
-
 \end_layout
 
 \begin_layout Bibliography
-
-\change_inserted 5863344 1497180069
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "minted"
@@ -47143,8 +47053,6 @@ literal "false"
 status collapsed
 
 \begin_layout Plain Layout
-
-\change_inserted 5863344 1497180164
 \SpecialChar LaTeX
 -packages ! minted
 \end_layout
@@ -47152,8 +47060,6 @@ status collapsed
 \end_inset
 
 
-\change_unchanged
-
 \end_layout
 
 \begin_layout Bibliography
index c708b142bd06abea631d00552a53c4c76e75e3d1..43ffc4863327052290d851213dd56fe4092d3c74 100644 (file)
@@ -1,5 +1,5 @@
 #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
@@ -219,6 +219,7 @@ graphicboxes
 \suppress_date false
 \justification true
 \use_refstyle 1
+\use_minted 0
 \notefontcolor #0000ff
 \index Stichwortverzeichnis
 \shortcut idx
@@ -41099,8 +41100,8 @@ Pro\SpecialChar softhyphen
 grammlisting
 \family default
  verwenden.
- Das \SpecialChar LaTeX
--Paket 
+ Die \SpecialChar LaTeX
+-Pakete 
 \series bold
 listings
 \series default
@@ -41115,7 +41116,53 @@ status collapsed
 
 \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
@@ -41292,6 +41345,54 @@ def func(param):
 \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
@@ -41394,7 +41495,12 @@ Erweiterte
 
 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
@@ -41791,14 +41897,18 @@ Listing
 \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
@@ -47170,6 +47280,42 @@ status collapsed
 \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
index 5d94082e4025a779d650f1affdaa0baa721fb68a..268004dbcbe66271f786e96b2da046fa3c913751 100644 (file)
@@ -1,5 +1,5 @@
 #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
@@ -220,6 +220,7 @@ graphicboxes
 \suppress_date false
 \justification true
 \use_refstyle 0
+\use_minted 0
 \notefontcolor #0000ff
 \index Índice
 \shortcut idx
@@ -40664,7 +40665,7 @@ de
 código.
  
 \family default
-El paquete \SpecialChar LaTeX
+Los paquetes \SpecialChar LaTeX
  
 \series bold
 listings
@@ -40678,10 +40679,57 @@ status collapsed
 -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
@@ -40793,7 +40841,11 @@ Flotante
 \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
@@ -40871,6 +40923,59 @@ def func(param):
 \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
@@ -40969,8 +41074,16 @@ tradicional
 
 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
 
@@ -41288,9 +41401,13 @@ Para ver ahí una lista de las opciones disponibles, escribe una interrogación
 \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 ~
@@ -41299,7 +41416,7 @@ listings
 
 \begin_inset CommandInset citation
 LatexCommand cite
-key "listings"
+key "listings,minted"
 literal "true"
 
 \end_inset
@@ -46530,6 +46647,42 @@ status collapsed
 \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
index 929cf1a5a38e69b8f814abff0f42b183a57200fc..7cb48b798b837c8016ae496b75bfed7e382c0cd1 100644 (file)
@@ -41786,7 +41786,7 @@ Code
 Source
 \family default
 .
- Le paquetage \SpecialChar LaTeX
+ Les paquetages \SpecialChar LaTeX
  
 \series bold
 listings
@@ -41800,11 +41800,57 @@ Paquetages \SpecialChar LaTeX
  ! 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
@@ -41941,7 +41987,11 @@ Flottant
 \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
@@ -42022,6 +42072,59 @@ def func(param):
 \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
@@ -42127,8 +42230,16 @@ Caractères
 
 É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
 
@@ -42555,14 +42666,18 @@ Listings
 \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
@@ -47900,6 +48015,42 @@ Paquetages \SpecialChar LaTeX
 \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
index c9f24ba4f147170f22d09b6e27c8fcf4299daa01..dd67658019724c73f5773eeea916e1004787fb4e 100644 (file)
@@ -1,5 +1,5 @@
 #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
@@ -261,6 +261,7 @@ End
 \suppress_date false
 \justification true
 \use_refstyle 0
+\use_minted 0
 \notefontcolor #0000ff
 \index 索引
 \shortcut idx
@@ -38395,7 +38396,57 @@ status collapsed
 
 \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"
@@ -38535,6 +38590,59 @@ def func(param):
 \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
@@ -38619,7 +38727,15 @@ status open
 \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
@@ -38962,10 +39078,16 @@ frac{1}{x^{2}}$
 \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
@@ -44197,6 +44319,44 @@ status collapsed
 の取扱説明書
 \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