2020-12-29 17:03:05 +00:00
|
|
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
2022-12-11 16:12:05 +00:00
|
|
|
\lyxformat 612
|
2011-11-01 05:54:27 +00:00
|
|
|
\begin_document
|
|
|
|
\begin_header
|
2016-01-12 21:30:37 +00:00
|
|
|
\save_transient_properties true
|
2019-03-25 15:32:27 +00:00
|
|
|
\origin /systemlyxdir/examples/External_Material/
|
2011-11-01 05:54:27 +00:00
|
|
|
\textclass article
|
2020-12-29 17:03:05 +00:00
|
|
|
\begin_preamble
|
|
|
|
% Added by lyx2lyx
|
|
|
|
\setlength{\parskip}{\bigskipamount}
|
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\end_preamble
|
2011-11-01 05:54:27 +00:00
|
|
|
\use_default_options true
|
2020-12-29 17:03:05 +00:00
|
|
|
\maintain_unincluded_children no
|
2011-11-01 05:54:27 +00:00
|
|
|
\language english
|
|
|
|
\language_package default
|
2019-05-08 17:59:57 +00:00
|
|
|
\inputencoding utf8
|
2020-12-29 17:03:05 +00:00
|
|
|
\fontencoding auto
|
2015-11-13 18:14:45 +00:00
|
|
|
\font_roman "default" "default"
|
|
|
|
\font_sans "default" "default"
|
|
|
|
\font_typewriter "default" "default"
|
|
|
|
\font_math "auto" "auto"
|
2011-11-01 05:54:27 +00:00
|
|
|
\font_default_family default
|
|
|
|
\use_non_tex_fonts false
|
|
|
|
\font_sc false
|
2022-12-11 16:12:05 +00:00
|
|
|
\font_roman_osf false
|
2020-12-29 17:03:05 +00:00
|
|
|
\font_sans_osf false
|
|
|
|
\font_typewriter_osf false
|
2015-11-13 18:14:45 +00:00
|
|
|
\font_sf_scale 100 100
|
|
|
|
\font_tt_scale 100 100
|
2017-04-24 04:03:19 +00:00
|
|
|
\use_microtype false
|
|
|
|
\use_dash_ligatures false
|
2011-11-01 05:54:27 +00:00
|
|
|
\graphics default
|
|
|
|
\default_output_format default
|
|
|
|
\output_sync 0
|
|
|
|
\bibtex_command default
|
|
|
|
\index_command default
|
|
|
|
\paperfontsize default
|
|
|
|
\spacing single
|
|
|
|
\use_hyperref false
|
2020-12-29 17:03:05 +00:00
|
|
|
\papersize a4
|
2011-11-01 05:54:27 +00:00
|
|
|
\use_geometry false
|
2014-03-23 16:31:51 +00:00
|
|
|
\use_package amsmath 1
|
|
|
|
\use_package amssymb 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package cancel 1
|
2014-03-23 16:31:51 +00:00
|
|
|
\use_package esint 1
|
|
|
|
\use_package mathdots 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package mathtools 1
|
2014-03-23 16:31:51 +00:00
|
|
|
\use_package mhchem 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package stackrel 1
|
|
|
|
\use_package stmaryrd 1
|
|
|
|
\use_package undertilde 1
|
2011-11-01 05:54:27 +00:00
|
|
|
\cite_engine basic
|
2014-03-23 16:31:51 +00:00
|
|
|
\cite_engine_type default
|
|
|
|
\biblio_style plain
|
2011-11-01 05:54:27 +00:00
|
|
|
\use_bibtopic false
|
|
|
|
\use_indices false
|
|
|
|
\paperorientation portrait
|
2017-11-18 16:21:46 +00:00
|
|
|
\suppress_date true
|
2014-03-23 16:31:51 +00:00
|
|
|
\justification true
|
2011-11-01 05:54:27 +00:00
|
|
|
\use_refstyle 1
|
2017-11-18 16:21:46 +00:00
|
|
|
\use_minted 0
|
2020-12-29 17:03:05 +00:00
|
|
|
\use_lineno 0
|
2011-11-01 05:54:27 +00:00
|
|
|
\index Index
|
|
|
|
\shortcut idx
|
|
|
|
\color #008000
|
|
|
|
\end_index
|
|
|
|
\secnumdepth 3
|
|
|
|
\tocdepth 3
|
2020-12-29 17:03:05 +00:00
|
|
|
\paragraph_separation indent
|
|
|
|
\paragraph_indentation default
|
2017-04-24 04:03:19 +00:00
|
|
|
\is_math_indent 0
|
2017-08-14 06:31:24 +00:00
|
|
|
\math_numbering_side default
|
2017-04-24 04:03:19 +00:00
|
|
|
\quotes_style english
|
2017-11-18 16:21:46 +00:00
|
|
|
\dynamic_quotes 0
|
2011-11-01 05:54:27 +00:00
|
|
|
\papercolumns 1
|
|
|
|
\papersides 1
|
|
|
|
\paperpagestyle default
|
2022-12-11 16:12:05 +00:00
|
|
|
\tablestyle default
|
2011-11-01 05:54:27 +00:00
|
|
|
\tracking_changes false
|
|
|
|
\output_changes false
|
2022-12-11 16:12:05 +00:00
|
|
|
\change_bars false
|
|
|
|
\postpone_fragile_content false
|
2011-11-01 05:54:27 +00:00
|
|
|
\html_math_output 0
|
|
|
|
\html_css_as_file 0
|
|
|
|
\html_be_strict false
|
2022-12-11 16:12:05 +00:00
|
|
|
\docbook_table_output 0
|
|
|
|
\docbook_mathml_prefix 1
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_header
|
|
|
|
|
|
|
|
\begin_body
|
|
|
|
|
|
|
|
\begin_layout Title
|
|
|
|
Spreadsheets External Inset
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Author
|
|
|
|
Helge Hafting
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset CommandInset toc
|
|
|
|
LatexCommand tableofcontents
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2016-01-13 01:51:42 +00:00
|
|
|
Test of spreadsheet external inset in \SpecialChar LyX
|
2015-11-13 18:14:45 +00:00
|
|
|
.
|
2022-12-11 16:12:05 +00:00
|
|
|
Spreadsheets (created with Gnumeric,
|
|
|
|
LibreOffice,
|
|
|
|
OpenOffice.org,
|
|
|
|
or Excel) gets converted to .tex with the
|
2011-11-01 05:54:27 +00:00
|
|
|
\family typewriter
|
|
|
|
ssconvert
|
|
|
|
\family default
|
|
|
|
program that is distributed together with Gnumeric.
|
|
|
|
They are then imported as longtables.
|
|
|
|
As the spreadsheet is
|
|
|
|
\begin_inset Quotes eld
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
External material
|
|
|
|
\begin_inset Quotes erd
|
|
|
|
\end_inset
|
|
|
|
|
2022-12-11 16:12:05 +00:00
|
|
|
,
|
|
|
|
any changes to the spreadsheet will be reflected in \SpecialChar LyX
|
2015-11-13 18:14:45 +00:00
|
|
|
's output too.
|
2022-12-11 16:12:05 +00:00
|
|
|
Thus,
|
|
|
|
the \SpecialChar LyX
|
2015-11-13 18:14:45 +00:00
|
|
|
document is always up to date.
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
How to do it
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Enumerate
|
|
|
|
Make a spreadsheet.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Enumerate
|
2016-01-13 01:51:42 +00:00
|
|
|
In \SpecialChar LyX
|
2015-11-13 18:14:45 +00:00
|
|
|
use the menu Insert\SpecialChar menuseparator
|
|
|
|
File\SpecialChar menuseparator
|
2011-11-01 05:54:27 +00:00
|
|
|
External Material.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Enumerate
|
2022-12-11 16:12:05 +00:00
|
|
|
In the dialog,
|
|
|
|
set template to
|
2011-11-01 05:54:27 +00:00
|
|
|
\family sans
|
|
|
|
GnumericSpreadsheet
|
|
|
|
\family default
|
|
|
|
and select your spreadsheet file.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
Simple examples
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2022-12-11 16:12:05 +00:00
|
|
|
First,
|
|
|
|
the file
|
2011-11-01 05:54:27 +00:00
|
|
|
\emph on
|
2022-12-11 16:12:05 +00:00
|
|
|
sheet1.gnumeric,
|
|
|
|
|
2011-11-01 05:54:27 +00:00
|
|
|
\emph default
|
|
|
|
a spreadsheet created with Gnumeric:
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset External
|
|
|
|
template GnumericSpreadsheet
|
2011-11-18 21:46:24 +00:00
|
|
|
filename sheet1.gnumeric
|
2011-11-01 05:54:27 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Then
|
|
|
|
\emph on
|
2022-12-11 16:12:05 +00:00
|
|
|
sheet2.ods,
|
|
|
|
|
2011-11-01 05:54:27 +00:00
|
|
|
\emph default
|
2011-11-18 21:49:18 +00:00
|
|
|
which was made with LibreOffice:
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset External
|
|
|
|
template GnumericSpreadsheet
|
2011-11-18 21:46:24 +00:00
|
|
|
filename sheet2.ods
|
2011-11-01 05:54:27 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Finally
|
|
|
|
\emph on
|
2011-11-18 21:46:24 +00:00
|
|
|
sheet3.xls
|
2011-11-01 05:54:27 +00:00
|
|
|
\emph default
|
2011-11-18 21:46:24 +00:00
|
|
|
which was made for Excel.
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset External
|
|
|
|
template GnumericSpreadsheet
|
2011-11-18 21:46:24 +00:00
|
|
|
filename sheet3.xls
|
2011-11-01 05:54:27 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
Long spreadsheets
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
A multi-page spreadsheet called
|
|
|
|
\emph on
|
|
|
|
longsheet.gnumeric
|
|
|
|
\emph default
|
|
|
|
.
|
|
|
|
Notice that page breaking works fine:
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset External
|
|
|
|
template GnumericSpreadsheet
|
|
|
|
filename longsheet.gnumeric
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
Necessary software
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2016-01-13 01:51:42 +00:00
|
|
|
\SpecialChar LyX
|
2015-11-13 18:14:45 +00:00
|
|
|
needs the converter program
|
2011-11-01 05:54:27 +00:00
|
|
|
\family typewriter
|
|
|
|
ssconvert
|
|
|
|
\family default
|
|
|
|
that is distributed with Gnumeric.
|
2022-12-11 16:12:05 +00:00
|
|
|
It is therefore necessary to install Gnumeric,
|
|
|
|
even if other software is used to create and edit the spreadsheets.
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
Limitations
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Spreadsheet inclusion have some limitations.
|
2022-12-11 16:12:05 +00:00
|
|
|
I don't know all of them,
|
|
|
|
but have seen problem with this:
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Labeling
|
|
|
|
\labelwidthstring Wide~spreadsheets
|
|
|
|
\noindent
|
|
|
|
Wide
|
|
|
|
\begin_inset space ~
|
|
|
|
\end_inset
|
|
|
|
|
2022-12-11 16:12:05 +00:00
|
|
|
spreadsheets Unlike long spreadsheets,
|
|
|
|
a spreadsheet wider than the margins doesn't work well.
|
2011-11-01 05:54:27 +00:00
|
|
|
There is no attempt at breaking up such spreadsheets.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Labeling
|
|
|
|
\labelwidthstring Wide~spreadsheets
|
|
|
|
\noindent
|
|
|
|
Some
|
|
|
|
\begin_inset space ~
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
formatting Some types of formatting doesn't work.
|
|
|
|
The red and green texts in the long spreadsheet are underlined.
|
2022-12-11 16:12:05 +00:00
|
|
|
The underlining doesn't show,
|
|
|
|
but the texts is otherwise printed correctly.
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
These limitations come from
|
|
|
|
\family typewriter
|
|
|
|
ssconvert
|
|
|
|
\family default
|
|
|
|
.
|
2022-12-11 16:12:05 +00:00
|
|
|
Feature requests for better spreadsheet conversions should therefore go to the Gnumeric developers.
|
2011-11-01 05:54:27 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
\end_document
|