mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-17 10:07:27 +00:00
Update the listings inset to optionally use the minted package (instead of the listings one) for typesetting code listings. Only one of the two packages can be used in a document, but it is possible to switch packages without issues if the used options are the same. If a switch is made and the options differ, one needs to manually adjust them if they were entered in the advanced options tab, or apply again the gui settings. Note that minted requires the -shell-escape option for the latex backend and the installation of additional software (python pygments).
517 lines
7.4 KiB
Plaintext
517 lines
7.4 KiB
Plaintext
#LyX file created by tex2lyx 2.3
|
|
\lyxformat 544
|
|
\begin_document
|
|
\begin_header
|
|
\save_transient_properties true
|
|
\origin roundtrip
|
|
\textclass article
|
|
\begin_preamble
|
|
% This is a test document for tex2lyx
|
|
%some comments
|
|
|
|
%comments
|
|
\def\blah{\blahblah}
|
|
% And more comments
|
|
|
|
%more comments
|
|
|
|
\end_preamble
|
|
\use_default_options false
|
|
\maintain_unincluded_children false
|
|
\language english
|
|
\language_package none
|
|
\inputencoding auto
|
|
\fontencoding default
|
|
\font_roman "default" "default"
|
|
\font_sans "default" "default"
|
|
\font_typewriter "default" "default"
|
|
\font_math "auto" "auto"
|
|
\font_default_family default
|
|
\use_non_tex_fonts false
|
|
\font_sc false
|
|
\font_osf false
|
|
\font_sf_scale 100 100
|
|
\font_tt_scale 100 100
|
|
\use_microtype false
|
|
\use_dash_ligatures true
|
|
\graphics default
|
|
\default_output_format default
|
|
\output_sync 0
|
|
\bibtex_command default
|
|
\index_command default
|
|
\paperfontsize 11
|
|
\spacing single
|
|
\use_hyperref false
|
|
\papersize default
|
|
\use_geometry false
|
|
\use_package amsmath 1
|
|
\use_package amssymb 0
|
|
\use_package cancel 0
|
|
\use_package esint 1
|
|
\use_package mathdots 0
|
|
\use_package mathtools 0
|
|
\use_package mhchem 0
|
|
\use_package stackrel 0
|
|
\use_package stmaryrd 0
|
|
\use_package undertilde 0
|
|
\cite_engine basic
|
|
\cite_engine_type default
|
|
\biblio_style plain
|
|
\use_bibtopic false
|
|
\use_indices false
|
|
\paperorientation portrait
|
|
\suppress_date false
|
|
\justification true
|
|
\use_refstyle 0
|
|
\index Index
|
|
\shortcut idx
|
|
\color #008000
|
|
\end_index
|
|
\secnumdepth 3
|
|
\tocdepth 3
|
|
\paragraph_separation indent
|
|
\paragraph_indentation default
|
|
\is_math_indent 0
|
|
\math_numbering_side default
|
|
\quotes_style english
|
|
\dynamic_quotes 0
|
|
\papercolumns 1
|
|
\papersides 1
|
|
\paperpagestyle default
|
|
\tracking_changes false
|
|
\output_changes false
|
|
\html_math_output 0
|
|
\html_css_as_file 0
|
|
\html_be_strict false
|
|
\end_header
|
|
|
|
\begin_body
|
|
|
|
\begin_layout Title
|
|
Test Document
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset CommandInset toc
|
|
LatexCommand tableofcontents
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Section
|
|
First Section
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
This
|
|
\size large
|
|
a
|
|
\size small
|
|
b
|
|
\size tiny
|
|
c
|
|
\size large
|
|
|
|
\size huge
|
|
d
|
|
\size default
|
|
is some text.
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
%Midline comment
|
|
\end_layout
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\begin_inset Box Boxed
|
|
position "c"
|
|
hor_pos "s"
|
|
has_inner_box 0
|
|
inner_pos "c"
|
|
use_parbox 0
|
|
use_makebox 0
|
|
width "3in"
|
|
special "none"
|
|
height "1in"
|
|
height_special "totalheight"
|
|
thickness "0.4pt"
|
|
separation "3pt"
|
|
shadowsize "4pt"
|
|
framecolor "black"
|
|
backgroundcolor "none"
|
|
status open
|
|
|
|
|
|
\begin_layout Standard
|
|
What are you doing \SpecialChar ldots
|
|
Dave
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
. This is more text.
|
|
\end_layout
|
|
|
|
\begin_layout Section*
|
|
MySection
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset CommandInset label
|
|
LatexCommand label
|
|
name "sec:mysection"
|
|
|
|
\end_inset
|
|
|
|
This is some
|
|
\begin_inset Quotes eld
|
|
\end_inset
|
|
|
|
quoted
|
|
\begin_inset Quotes erd
|
|
\end_inset
|
|
|
|
text in a new section. I
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
{
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\backslash
|
|
em
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
am
|
|
\begin_inset Foot
|
|
status collapsed
|
|
|
|
|
|
\begin_layout Standard
|
|
This is a great footnote because:
|
|
\end_layout
|
|
|
|
\begin_layout Itemize
|
|
The footnote is not
|
|
\emph on
|
|
emphasized
|
|
\emph default
|
|
.
|
|
\end_layout
|
|
|
|
\begin_layout Itemize
|
|
The text is
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
How cool is that!?
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
emphasizing
|
|
\begin_inset Quotes eld
|
|
\end_inset
|
|
|
|
text.
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
I keep
|
|
\begin_inset Quotes erd
|
|
\end_inset
|
|
|
|
emphasizing
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
}
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
. This
|
|
\begin_inset space ~
|
|
|
|
\end_inset
|
|
|
|
is text in a new par\SpecialChar softhyphen
|
|
agraph.
|
|
\begin_inset Newline newline
|
|
\end_inset
|
|
|
|
It has \SpecialChar ldots
|
|
an
|
|
\begin_inset Formula $ \alpha $
|
|
\end_inset
|
|
|
|
in it, which is OK\SpecialChar endofsentence
|
|
I can type special characters
|
|
\begin_inset Foot
|
|
status collapsed
|
|
|
|
|
|
\begin_layout Standard
|
|
i.e., characters which must be escaped
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
like & and #.
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
_ is a neat token.
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
% This line won't print!
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
Now I
|
|
\family sans
|
|
want
|
|
\family typewriter
|
|
to
|
|
\family sans
|
|
write
|
|
\family default
|
|
some math in a displayed equation.
|
|
\begin_inset Formula \begin{eqnarray*}
|
|
q^{(i)}_O & = & q^{water}_{O}+dq_{O}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
|
|
q_{H}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P_{deg}^{(i)})\\
|
|
q_{p}^{(i)} & = & q^{water}_{H}+dq_{H}\times (P_{deg}^{(i-1)}-P^{(i+1)}_{deg})
|
|
\end{eqnarray*}
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
Here's an itemized list
|
|
\end_layout
|
|
|
|
\begin_layout Itemize
|
|
this is an item
|
|
\end_layout
|
|
|
|
\begin_deeper
|
|
\begin_layout Enumerate
|
|
this is a numbered item
|
|
\end_layout
|
|
|
|
\begin_deeper
|
|
\begin_layout Standard
|
|
But now I want to write some text.
|
|
\end_layout
|
|
|
|
\end_deeper
|
|
\begin_layout Enumerate
|
|
this is another numbered item
|
|
\end_layout
|
|
|
|
\begin_deeper
|
|
\begin_layout Standard
|
|
More text
|
|
\end_layout
|
|
|
|
\end_deeper
|
|
\end_deeper
|
|
\begin_deeper
|
|
\begin_layout Standard
|
|
Yet more text
|
|
\end_layout
|
|
|
|
\end_deeper
|
|
\begin_layout Itemize
|
|
this is another unnumbered item
|
|
\end_layout
|
|
|
|
\begin_deeper
|
|
\begin_layout Standard
|
|
Final text
|
|
\end_layout
|
|
|
|
\end_deeper
|
|
\begin_layout Section
|
|
|
|
\begin_inset Argument 1
|
|
status collapsed
|
|
|
|
|
|
\begin_layout Standard
|
|
hi
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
New Section
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
Here's a
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
{
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\backslash
|
|
em
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
quotation:
|
|
\end_layout
|
|
|
|
\begin_layout Quotation
|
|
Hello there how are you?
|
|
\end_layout
|
|
|
|
\begin_layout Quotation
|
|
I am fine. Thanks
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
This
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
}
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
is a reference to section
|
|
\begin_inset CommandInset ref
|
|
LatexCommand ref
|
|
reference "sec:mysection"
|
|
plural "false"
|
|
caps "false"
|
|
noprefix "false"
|
|
|
|
\end_inset
|
|
|
|
on page
|
|
\begin_inset CommandInset ref
|
|
LatexCommand pageref
|
|
reference "sec:mysection"
|
|
plural "false"
|
|
caps "false"
|
|
noprefix "false"
|
|
|
|
\end_inset
|
|
|
|
.
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset Tabular
|
|
<lyxtabular version="3" rows="2" columns="2">
|
|
<features rotate="0" tabularvalignment="middle" tabularwidth="0pt">
|
|
<column alignment="left" valignment="top">
|
|
<column alignment="left" valignment="top">
|
|
<row>
|
|
<cell alignment="left" valignment="top" usebox="none">
|
|
\begin_inset Text
|
|
|
|
\begin_layout Standard
|
|
foo
|
|
\end_layout
|
|
|
|
\end_inset
|
|
</cell>
|
|
<cell alignment="left" valignment="top" usebox="none">
|
|
\begin_inset Text
|
|
|
|
\begin_layout Standard
|
|
bar
|
|
\end_layout
|
|
|
|
\end_inset
|
|
</cell>
|
|
</row>
|
|
<row>
|
|
<cell alignment="left" valignment="top" usebox="none">
|
|
\begin_inset Text
|
|
|
|
\begin_layout Standard
|
|
bar
|
|
\end_layout
|
|
|
|
\end_inset
|
|
</cell>
|
|
<cell alignment="left" valignment="top" usebox="none">
|
|
\begin_inset Text
|
|
|
|
\begin_layout Standard
|
|
foo
|
|
\end_layout
|
|
|
|
\end_inset
|
|
</cell>
|
|
</row>
|
|
</lyxtabular>
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
Let's try a few unicode characters: the (R) symbol ®(and the same one with braces ® and a space after) or maybe an accented a á or this one á or this î.
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
Watch out: ®should be glued to its successor here.
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
Final Text.
|
|
\end_layout
|
|
|
|
\end_body
|
|
\end_document
|