From: Uwe Stöhr Date: Wed, 26 Jul 2017 23:15:42 +0000 (+0200) Subject: EmbeddedObjects.lyx: finish the description of the minted support X-Git-Tag: 2.3.0beta1~110 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=39e467a2000c826f7a932105c24ebf1cec70270a;p=features.git EmbeddedObjects.lyx: finish the description of the minted support --- diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx index 57deaaac75..f057671665 100644 --- a/lib/doc/EmbeddedObjects.lyx +++ b/lib/doc/EmbeddedObjects.lyx @@ -21519,7 +21519,7 @@ array \series default will be loaded automatically by \SpecialChar LyX when you use self defined table formats. - To avoid that it being loaded twice the command + To avoid that it is loaded twice the command \series bold \backslash @@ -40888,7 +40888,10 @@ status collapsed listings \series default is used by default. - In order to use +\end_layout + +\begin_layout Standard +In order to use \series bold minted \series default @@ -40898,20 +40901,129 @@ minted Listings \family default . - Note that + \series bold minted \series default - requires additional software (the + requires also additionally the module \family sans pygments \family default - python module) and the + of the software +\noun on +Python +\noun default + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Under \SpecialChar LyX + for Windows +\family sans +pygments +\family default + is already installed. +\end_layout + +\end_inset + + and the option \family typewriter -shell-escape \family default - option for the \SpecialChar LaTeX - backend. + for the \SpecialChar LaTeX + processor. + If you want for example view or export your document as the format +\family sans +PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default +, go to the \SpecialChar LyX + preferences and there to the section +\family sans +File +\begin_inset space ~ +\end_inset + +Handling\SpecialChar menuseparator +Converters +\family default +. + There go to the entry +\family sans +LaTeX +\begin_inset space ~ +\end_inset + +(pdflatex) -> PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default + and look at the field +\family sans +Converter +\family default +. + There you see by default the content +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i +\series default + +\begin_inset Newline newline +\end_inset + +Now change it to +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i -shell-escape +\begin_inset Newline newline +\end_inset + + +\series default +and press the +\family sans +Modify +\family default + button and subsequently +\family sans +Apply +\family default + or +\family sans +Save +\family default +. + The same can be done for the output formats +\family sans +PDF +\begin_inset space ~ +\end_inset + +(LuaTeX) +\family default + and +\family sans +PDF +\begin_inset space ~ +\end_inset + +(XeTeX) +\family default +. \end_layout \begin_layout Standard @@ -41084,6 +41196,10 @@ List of Listings \family default . The list entries are the listing caption and the listing number. +\begin_inset Newpage pagebreak +\end_inset + + \end_layout \begin_layout Standard @@ -41156,7 +41272,7 @@ minted 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: + have to add the following lines as last thing to the preamble: \begin_inset Newline newline \end_inset @@ -41164,13 +41280,59 @@ minted \series bold \backslash -usepackage{float} +@ifundefined{newfloat} +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + +{ +\backslash +usepackage{float}}{} \begin_inset Newline newline \end_inset \backslash floatstyle{plaintop} +\series default + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The package +\series bold +float +\series default + will be loaded automatically by \SpecialChar LyX + when you use special document-wide float + placement settings. + To avoid that it is loaded twice the command +\series bold + +\backslash +@ifundefined +\series default + is used in the above command. +\end_layout + +\end_inset + + \end_layout \end_inset diff --git a/lib/doc/de/EmbeddedObjects.lyx b/lib/doc/de/EmbeddedObjects.lyx index 43ffc48633..92b1381d50 100644 --- a/lib/doc/de/EmbeddedObjects.lyx +++ b/lib/doc/de/EmbeddedObjects.lyx @@ -41139,7 +41139,10 @@ status collapsed listings \series default ist voreingestellt. - Um +\end_layout + +\begin_layout Standard +Um \series bold minted \series default @@ -41149,20 +41152,135 @@ lungen in der Rubrik Programmlistings \family default festlegen. - Dabei muss beachtet werden, dass + \series bold minted \series default - zusätzliche Software (das Python-Modul + benötigt zusätzlich das Modul +\family sans +pygments +\family default + des Programms +\noun on +Python +\noun default + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Unte +\family sans +r \SpecialChar LyX + f +\family default +ür Windows ist \family sans pygments \family default -) und die Option + bereits installiert. +\end_layout + +\end_inset + + und die Option \family typewriter -shell-escape \family default - für das \SpecialChar LaTeX --Backend benötigt. + für den \SpecialChar LaTeX +-Prozessor. + Wenn Sie z. +\begin_inset space \thinspace{} +\end_inset + +B. + Ihr Dokument als Format +\family sans +PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default + ansehen oder exportieren wollen, gehen Sie in die \SpecialChar LyX +-Einstellungen und dort + zum Abschnitt +\family sans +Datei-Handhanbung\SpecialChar menuseparator +Konverter +\family default +. + gehen Sie dort auf den Eintrag +\family sans +LaTeX +\begin_inset space ~ +\end_inset + +(pdflatex) -> PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default + und schauen Sie in das Feld +\family sans +Konverter +\family default +. + Dort sehen sie voreingestellt den Inhalt +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i +\series default + +\begin_inset Newline newline +\end_inset + +Ändern Sie ihn nun ab zu +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i -shell-escape +\begin_inset Newline newline +\end_inset + + +\series default +und drücken Sie den +\family sans +Ändern +\family default +-Knopf und anschließend +\family sans +Übernehmen +\family default + oder +\family sans +Speichern +\family default +. + Dasselbe kann für die Ausgabeformate +\family sans +PDF +\begin_inset space ~ +\end_inset + +(LuaTeX) +\family default + und +\family sans +PDF +\begin_inset space ~ +\end_inset + +(XeTeX) +\family default + gemacht werden. \end_layout \begin_layout Standard @@ -41372,7 +41490,7 @@ minted 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 + Zeilen als Letztes zum \SpecialChar LaTeX -Vorspann hinzugefügt werden: \begin_inset Newline newline \end_inset @@ -41381,13 +41499,57 @@ minted \series bold \backslash -usepackage{float} +@ifundefined{newfloat} +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + +{ +\backslash +usepackage{float}}{} \begin_inset Newline newline \end_inset \backslash floatstyle{plaintop} +\series default + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Das Paket +\series bold +float +\series default + wird automatisch von \SpecialChar LyX + geladen, wenn Sie spezielle dokumentweite Gleitobjektplat +zierungen verwenden. + Der Befehl +\series bold + +\backslash +@ifundefined +\series default + vermeidet, dass es in diesem Fall doppelt geladen wird. +\end_layout + +\end_inset + + \end_layout \end_inset diff --git a/lib/doc/es/EmbeddedObjects.lyx b/lib/doc/es/EmbeddedObjects.lyx index 268004dbcb..b38084a61b 100644 --- a/lib/doc/es/EmbeddedObjects.lyx +++ b/lib/doc/es/EmbeddedObjects.lyx @@ -40706,7 +40706,12 @@ One can only use one of these packages in a document. listings \series default is used by default. - In order to use +\end_layout + +\begin_layout Standard + +\lang english +In order to use \series bold minted \series default @@ -40716,20 +40721,138 @@ minted Listings \family default . - Note that + \series bold minted \series default - requires additional software (the + requires also additionally the module +\family sans +pygments +\family default + of the software +\noun on +Python +\noun default + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\lang english +Under \SpecialChar LyX + for Windows \family sans pygments \family default - Python module) and the + is already installed. +\end_layout + +\end_inset + + and the option \family typewriter -shell-escape \family default - option for the \SpecialChar LaTeX - backend. + for the \SpecialChar LaTeX + processor. + If you want for example view or export your document as the format +\family sans +PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default +, go to the \SpecialChar LyX + preferences and there to the section +\family sans +File +\begin_inset space ~ +\end_inset + +Handling\SpecialChar menuseparator +Converters +\family default +. + There go to the entry +\family sans +LaTeX +\begin_inset space ~ +\end_inset + +(pdflatex) -> PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default + and look at the field +\family sans +Converter +\family default +. + There you see by default the content +\lang spanish + +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i +\series default + +\begin_inset Newline newline +\end_inset + + +\lang english +Now change it to +\lang spanish + +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i -shell-escape +\begin_inset Newline newline +\end_inset + + +\series default +\lang english +and press the +\family sans +Modify +\family default + button and subsequently +\family sans +Apply +\family default + or +\family sans +Save +\family default +. + The same can be done for the output formats +\family sans +PDF +\begin_inset space ~ +\end_inset + +(LuaTeX) +\family default + and +\family sans +PDF +\begin_inset space ~ +\end_inset + +(XeTeX) +\family default +. \end_layout \begin_layout Standard @@ -40878,6 +41001,10 @@ código \family default se crea un índice de todos los listados de código con leyenda insertados. Las entradas del índice son la leyenda y el número de cada listado de código. +\begin_inset Newpage pagebreak +\end_inset + + \end_layout \begin_layout Standard @@ -40926,8 +41053,6 @@ def func(param): \end_layout \begin_layout Standard - -\lang english \begin_inset Note Greyedout status open @@ -40954,7 +41079,7 @@ minted 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 + have to add the following lines as last thing to the preamble \lang spanish : \begin_inset Newline newline @@ -40964,13 +41089,60 @@ minted \series bold \backslash -usepackage{float} +@ifundefined{newfloat} +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + +{ +\backslash +usepackage{float}}{} \begin_inset Newline newline \end_inset \backslash floatstyle{plaintop} +\series default + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +\SpecialChar LyX + cargará automáticamente el paquete +\series bold +float +\series default + cuando uses +\lang english +special document-wide float placement settings +\lang spanish +. + Para evitar que sea cargado dos veces se pone al principio el comando +\series bold + +\backslash +@ifundefined +\series default +. +\end_layout + +\end_inset + + \end_layout \end_inset diff --git a/lib/doc/fr/EmbeddedObjects.lyx b/lib/doc/fr/EmbeddedObjects.lyx index 7cb48b798b..1555d7840b 100644 --- a/lib/doc/fr/EmbeddedObjects.lyx +++ b/lib/doc/fr/EmbeddedObjects.lyx @@ -21783,6 +21783,33 @@ usepackage{array}}{} setlength{ \backslash extrarowheight}{height} +\series default +\lang english + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout + +\lang english +The package +\series bold +array +\series default + will be loaded automatically by \SpecialChar LyX + when you use self defined table formats. + To avoid that it is loaded twice the command +\series bold + +\backslash +@ifundefined +\series default + is used in the above command. +\end_layout + +\end_inset + + \end_layout \begin_layout Standard @@ -41827,7 +41854,12 @@ One can only use one of these packages in a document. listings \series default is used by default. - In order to use +\end_layout + +\begin_layout Standard + +\lang english +In order to use \series bold minted \series default @@ -41837,20 +41869,138 @@ minted Listings \family default . - Note that + \series bold minted \series default - requires additional software (the + requires also additionally the module +\family sans +pygments +\family default + of the software +\noun on +Python +\noun default + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\lang english +Under \SpecialChar LyX + for Windows \family sans pygments \family default - python module) and the + is already installed. +\end_layout + +\end_inset + + and the option \family typewriter -shell-escape \family default - option for the \SpecialChar LaTeX - backend. + for the \SpecialChar LaTeX + processor. + If you want for example view or export your document as the format +\family sans +PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default +, go to the \SpecialChar LyX + preferences and there to the section +\family sans +File +\begin_inset space ~ +\end_inset + +Handling\SpecialChar menuseparator +Converters +\family default +. + There go to the entry +\family sans +LaTeX +\begin_inset space ~ +\end_inset + +(pdflatex) -> PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default + and look at the field +\family sans +Converter +\family default +. + There you see by default the content +\lang french + +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i +\series default + +\begin_inset Newline newline +\end_inset + + +\lang english +Now change it to +\lang french + +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i -shell-escape +\begin_inset Newline newline +\end_inset + + +\series default +\lang english +and press the +\family sans +Modify +\family default + button and subsequently +\family sans +Apply +\family default + or +\family sans +Save +\family default +. + The same can be done for the output formats +\family sans +PDF +\begin_inset space ~ +\end_inset + +(LuaTeX) +\family default + and +\family sans +PDF +\begin_inset space ~ +\end_inset + +(XeTeX) +\family default +. \end_layout \begin_layout Standard @@ -42075,8 +42225,6 @@ def func(param): \end_layout \begin_layout Standard - -\lang english \begin_inset Note Greyedout status open @@ -42103,7 +42251,7 @@ minted 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 + have to add the following lines as last thing to the preamble \lang french : \begin_inset Newline newline @@ -42113,13 +42261,59 @@ minted \series bold \backslash -usepackage{float} +@ifundefined{newfloat} +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + +{ +\backslash +usepackage{float}}{} \begin_inset Newline newline \end_inset \backslash floatstyle{plaintop} +\series default + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout + +\lang english +The package +\series bold +float +\series default + will be loaded automatically by \SpecialChar LyX + when you use special document-wide float + placement settings. + To avoid that it is loaded twice the command +\series bold + +\backslash +@ifundefined +\series default + is used in the above command. +\end_layout + +\end_inset + + \end_layout \end_inset diff --git a/lib/doc/ja/EmbeddedObjects.lyx b/lib/doc/ja/EmbeddedObjects.lyx index dd67658019..f0295c7283 100644 --- a/lib/doc/ja/EmbeddedObjects.lyx +++ b/lib/doc/ja/EmbeddedObjects.lyx @@ -38423,7 +38423,12 @@ One can only use one of these packages in a document. listings \series default is used by default. - In order to use +\end_layout + +\begin_layout Standard + +\lang english +In order to use \series bold minted \series default @@ -38433,20 +38438,138 @@ minted Listings \family default . - Note that + \series bold minted \series default - requires additional software (the + requires also additionally the module +\family sans +pygments +\family default + of the software +\noun on +Python +\noun default + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + +\lang english +Under \SpecialChar LyX + for Windows \family sans pygments \family default - python module) and the + is already installed. +\end_layout + +\end_inset + + and the option \family typewriter -shell-escape \family default - option for the \SpecialChar LaTeX - backend. + for the \SpecialChar LaTeX + processor. + If you want for example view or export your document as the format +\family sans +PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default +, go to the \SpecialChar LyX + preferences and there to the section +\family sans +File +\begin_inset space ~ +\end_inset + +Handling\SpecialChar menuseparator +Converters +\family default +. + There go to the entry +\family sans +LaTeX +\begin_inset space ~ +\end_inset + +(pdflatex) -> PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\family default + and look at the field +\family sans +Converter +\family default +. + There you see by default the content +\lang japanese + +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i +\series default + +\begin_inset Newline newline +\end_inset + + +\lang english +Now change it to +\lang japanese + +\begin_inset Newline newline +\end_inset + + +\series bold +pdflatex $$i -shell-escape +\begin_inset Newline newline +\end_inset + + +\series default +\lang english +and press the +\family sans +Modify +\family default + button and subsequently +\family sans +Apply +\family default + or +\family sans +Save +\family default +. + The same can be done for the output formats +\family sans +PDF +\begin_inset space ~ +\end_inset + +(LuaTeX) +\family default + and +\family sans +PDF +\begin_inset space ~ +\end_inset + +(XeTeX) +\family default +. \end_layout \begin_layout Standard @@ -38593,8 +38716,6 @@ def func(param): \end_layout \begin_layout Standard - -\lang english \begin_inset Note Greyedout status open @@ -38621,7 +38742,7 @@ minted 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: + have to add the following lines as last thing to the preamble: \lang japanese \begin_inset Newline newline @@ -38631,13 +38752,60 @@ minted \series bold \backslash -usepackage{float} +@ifundefined{newfloat} +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + +{ +\backslash +usepackage{float}}{} \begin_inset Newline newline \end_inset \backslash floatstyle{plaintop} +\series default + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout + +\lang english +The package +\series bold +float +\series default + will be loaded automatically by \SpecialChar LyX + when you use special document-wide float + placement settings +\lang japanese +.これが二度読み込まれることを防ぐために,上記のコマンドでは +\series bold + +\backslash +@ifundefined +\series default +が使用されています. +\end_layout + +\end_inset + + \end_layout \end_inset