2017-04-24 04:03:19 +00:00
|
|
|
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
2017-08-14 06:31:24 +00:00
|
|
|
\lyxformat 544
|
2011-11-01 05:54:27 +00:00
|
|
|
\begin_document
|
|
|
|
\begin_header
|
2016-01-12 21:30:37 +00:00
|
|
|
\save_transient_properties true
|
2015-11-13 18:14:45 +00:00
|
|
|
\origin /systemlyxdir/examples/
|
2011-11-01 05:54:27 +00:00
|
|
|
\textclass article
|
|
|
|
\use_default_options true
|
|
|
|
\maintain_unincluded_children false
|
|
|
|
\language english
|
|
|
|
\language_package default
|
|
|
|
\inputencoding auto
|
|
|
|
\fontencoding global
|
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
|
|
|
|
\font_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
|
|
|
|
\papersize a4paper
|
|
|
|
\use_geometry false
|
2014-03-23 16:31:51 +00:00
|
|
|
\use_package amsmath 1
|
|
|
|
\use_package amssymb 1
|
|
|
|
\use_package cancel 0
|
|
|
|
\use_package esint 1
|
|
|
|
\use_package mathdots 1
|
|
|
|
\use_package mathtools 0
|
|
|
|
\use_package mhchem 1
|
|
|
|
\use_package stackrel 0
|
|
|
|
\use_package stmaryrd 0
|
|
|
|
\use_package undertilde 0
|
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
|
|
|
|
\suppress_date false
|
2014-03-23 16:31:51 +00:00
|
|
|
\justification true
|
2011-11-01 05:54:27 +00:00
|
|
|
\use_refstyle 1
|
|
|
|
\index Index
|
|
|
|
\shortcut idx
|
|
|
|
\color #008000
|
|
|
|
\end_index
|
|
|
|
\secnumdepth 3
|
|
|
|
\tocdepth 3
|
|
|
|
\paragraph_separation skip
|
|
|
|
\defskip bigskip
|
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
|
2011-11-01 05:54:27 +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
|
2017-08-14 06:31:24 +00:00
|
|
|
\use_minted 0
|
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
|
|
|
.
|
2011-11-01 05:54:27 +00:00
|
|
|
Spreadsheets (created with Gnumeric, LibreOffice, OpenOffice.org, or Excel)
|
|
|
|
gets converted to .tex with the
|
|
|
|
\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
|
|
|
|
|
2016-01-13 01:51:42 +00:00
|
|
|
, any changes to the spreadsheet will be reflected in \SpecialChar LyX
|
2015-11-13 18:14:45 +00:00
|
|
|
's output too.
|
2016-01-13 01:51:42 +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
|
|
|
|
In the dialog, set template to
|
|
|
|
\family sans
|
|
|
|
GnumericSpreadsheet
|
|
|
|
\family default
|
|
|
|
and select your spreadsheet file.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
Simple examples
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
First, the file
|
|
|
|
\emph on
|
2011-11-18 21:46:24 +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
|
2011-11-18 21:46:24 +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.
|
|
|
|
It is therefore necessary to install Gnumeric, even if other software is
|
|
|
|
used to create and edit the spreadsheets.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Section
|
|
|
|
Limitations
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Spreadsheet inclusion have some limitations.
|
|
|
|
I don't know all of them, but have seen problem with this:
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Labeling
|
|
|
|
\labelwidthstring Wide~spreadsheets
|
|
|
|
\noindent
|
|
|
|
Wide
|
|
|
|
\begin_inset space ~
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
spreadsheets Unlike long spreadsheets, a spreadsheet wider than the margins
|
|
|
|
doesn't work well.
|
|
|
|
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.
|
|
|
|
The underlining doesn't show, but the texts is otherwise printed correctly.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
These limitations come from
|
|
|
|
\family typewriter
|
|
|
|
ssconvert
|
|
|
|
\family default
|
|
|
|
.
|
|
|
|
Feature requests for better spreadsheet conversions should therefore go
|
|
|
|
to the Gnumeric developers.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
\end_document
|