2018-03-10 18:59:48 +00:00
#LyX file created by tex2lyx 2.4
2018-07-07 13:28:40 +00:00
\lyxformat 556
2012-07-08 17:28:19 +00:00
\begin_document
\begin_header
2015-12-20 17:56:40 +00:00
\save_transient_properties true
2015-05-13 23:02:37 +00:00
\origin roundtrip
2012-07-08 17:28:19 +00:00
\textclass article
\begin_preamble
% This is a test document for tex2lyx
2013-02-11 08:43:10 +00:00
%some comments
2012-07-08 17:28:19 +00:00
%comments
\def\blah{\blahblah}
% And more comments
%more comments
\end_preamble
\use_default_options false
2012-07-08 18:09:02 +00:00
\maintain_unincluded_children false
2012-07-08 17:28:19 +00:00
\language english
\language_package none
\inputencoding auto
\fontencoding default
2015-11-09 06:33:57 +00:00
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
2012-07-08 17:28:19 +00:00
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
2015-11-09 06:33:57 +00:00
\font_sf_scale 100 100
\font_tt_scale 100 100
2017-04-08 02:55:22 +00:00
\use_microtype false
\use_dash_ligatures true
2012-07-08 17:28:19 +00:00
\graphics default
2012-07-08 18:09:02 +00:00
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
2012-07-08 17:28:19 +00:00
\paperfontsize 11
\spacing single
2012-10-05 22:29:16 +00:00
\use_hyperref false
2012-07-08 17:28:19 +00:00
\papersize default
\use_geometry false
\use_package amsmath 1
2012-07-08 18:09:02 +00:00
\use_package amssymb 0
2013-02-28 12:19:04 +00:00
\use_package cancel 0
2012-07-08 17:28:19 +00:00
\use_package esint 1
\use_package mathdots 0
\use_package mathtools 0
\use_package mhchem 0
2012-12-28 18:51:28 +00:00
\use_package stackrel 0
2012-12-15 12:02:40 +00:00
\use_package stmaryrd 0
2012-07-08 17:28:19 +00:00
\use_package undertilde 0
\cite_engine basic
2013-05-20 12:37:33 +00:00
\cite_engine_type default
2012-07-08 17:28:19 +00:00
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
tex2lyx: import minted listings
This commit updates tex2lyx in order to also import minted listings.
For the floating version of a listing, minted uses the listing
environment, a concept that is not shared with the listings package,
towards which our listings inset is geared.
For this reason, a kludge is necessary when importing minted listings
not previously exported by LyX itself.
If the floating listing contains only a caption and a label (other
than the listing itself), everything is fine and the import is (or
aims to be) perfect. But, as in all other floating ebvironments,
one can also stick there other elements, which don't have a place
in the listings inset. So, in order to avoid a data loss, tex2lyx
sticks everything into the caption. In this way, things may be
rearranged in the GUI, if necessary. There is no other way, apart
from a complete redesign of the listings inset, of course. However,
I think that this is an acceptable compromise.
2017-06-17 00:23:00 +00:00
\use_minted 0
2012-10-05 21:50:28 +00:00
\index Index
\shortcut idx
\color #008000
\end_index
2012-07-08 17:28:19 +00:00
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
2017-04-13 13:46:03 +00:00
\is_math_indent 0
2017-05-13 18:39:45 +00:00
\math_numbering_side default
2016-12-20 17:57:34 +00:00
\quotes_style english
2017-04-08 02:55:22 +00:00
\dynamic_quotes 0
2012-07-08 17:28:19 +00:00
\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
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
%Midline comment
\end_layout
2015-09-09 09:47:47 +00:00
\begin_layout Plain Layout
\end_layout
2012-07-08 17:28:19 +00:00
\end_inset
\begin_inset Box Boxed
position "c"
2012-10-06 13:23:36 +00:00
hor_pos "s"
2012-07-08 17:28:19 +00:00
has_inner_box 0
inner_pos "c"
use_parbox 0
use_makebox 0
width "3in"
special "none"
height "1in"
height_special "totalheight"
2015-05-13 19:36:36 +00:00
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
2015-05-17 13:53:58 +00:00
framecolor "black"
backgroundcolor "none"
2012-07-08 17:28:19 +00:00
status open
\begin_layout Standard
2015-03-23 20:28:04 +00:00
What are you doing \SpecialChar ldots
2012-07-08 17:28:19 +00:00
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
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
{
\end_layout
\end_inset
\begin_inset ERT
status collapsed
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
\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
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
}
\end_layout
\end_inset
. This
\begin_inset space ~
\end_inset
2015-03-23 20:28:04 +00:00
is text in a new par\SpecialChar softhyphen
2012-07-08 17:28:19 +00:00
agraph.
\begin_inset Newline newline
\end_inset
2015-03-23 20:28:04 +00:00
It has \SpecialChar ldots
2012-07-08 17:28:19 +00:00
an
\begin_inset Formula $ \alpha $
\end_inset
2015-03-23 20:28:04 +00:00
in it, which is OK\SpecialChar endofsentence
2012-07-08 17:28:19 +00:00
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
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
% 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
2014-12-26 21:13:09 +00:00
\begin_inset Argument 1
2012-07-08 17:28:19 +00:00
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
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
{
\end_layout
\end_inset
\begin_inset ERT
status collapsed
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
\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
2012-12-30 10:58:21 +00:00
\begin_layout Plain Layout
2012-07-08 17:28:19 +00:00
}
\end_layout
\end_inset
is a reference to section
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:mysection"
2017-01-03 03:23:21 +00:00
plural "false"
caps "false"
2017-01-11 19:15:51 +00:00
noprefix "false"
2012-07-08 17:28:19 +00:00
\end_inset
on page
\begin_inset CommandInset ref
LatexCommand pageref
reference "sec:mysection"
2017-01-03 03:23:21 +00:00
plural "false"
caps "false"
2017-01-11 19:15:51 +00:00
noprefix "false"
2012-07-08 17:28:19 +00:00
\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