]> git.lyx.org Git - lyx.git/blob - lib/examples/spreadsheet.lyx
MergedManuals.lyx: fix a file path
[lyx.git] / lib / examples / spreadsheet.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/
7 \textclass article
8 \use_default_options true
9 \maintain_unincluded_children false
10 \language english
11 \language_package default
12 \inputencoding auto
13 \fontencoding global
14 \font_roman "default" "default"
15 \font_sans "default" "default"
16 \font_typewriter "default" "default"
17 \font_math "auto" "auto"
18 \font_default_family default
19 \use_non_tex_fonts false
20 \font_sc false
21 \font_osf false
22 \font_sf_scale 100 100
23 \font_tt_scale 100 100
24 \graphics default
25 \default_output_format default
26 \output_sync 0
27 \bibtex_command default
28 \index_command default
29 \paperfontsize default
30 \spacing single
31 \use_hyperref false
32 \papersize a4paper
33 \use_geometry false
34 \use_package amsmath 1
35 \use_package amssymb 1
36 \use_package cancel 0
37 \use_package esint 1
38 \use_package mathdots 1
39 \use_package mathtools 0
40 \use_package mhchem 1
41 \use_package stackrel 0
42 \use_package stmaryrd 0
43 \use_package undertilde 0
44 \cite_engine basic
45 \cite_engine_type default
46 \biblio_style plain
47 \use_bibtopic false
48 \use_indices false
49 \paperorientation portrait
50 \suppress_date false
51 \justification true
52 \use_refstyle 1
53 \index Index
54 \shortcut idx
55 \color #008000
56 \end_index
57 \secnumdepth 3
58 \tocdepth 3
59 \paragraph_separation skip
60 \defskip bigskip
61 \quotes_language english
62 \papercolumns 1
63 \papersides 1
64 \paperpagestyle default
65 \tracking_changes false
66 \output_changes false
67 \html_math_output 0
68 \html_css_as_file 0
69 \html_be_strict false
70 \end_header
71
72 \begin_body
73
74 \begin_layout Title
75 Spreadsheets External Inset
76 \end_layout
77
78 \begin_layout Author
79 Helge Hafting
80 \end_layout
81
82 \begin_layout Standard
83 \begin_inset CommandInset toc
84 LatexCommand tableofcontents
85
86 \end_inset
87
88
89 \end_layout
90
91 \begin_layout Standard
92 Test of spreadsheet external inset in \SpecialChar LyX
93 .
94  Spreadsheets (created with Gnumeric, LibreOffice, OpenOffice.org, or Excel)
95  gets converted to .tex with the 
96 \family typewriter
97 ssconvert
98 \family default
99  program that is distributed together with Gnumeric.
100  They are then imported as longtables.
101  As the spreadsheet is 
102 \begin_inset Quotes eld
103 \end_inset
104
105 External material
106 \begin_inset Quotes erd
107 \end_inset
108
109 , any changes to the spreadsheet will be reflected in \SpecialChar LyX
110 's output too.
111  Thus, the \SpecialChar LyX
112  document is always up to date.
113 \end_layout
114
115 \begin_layout Section
116 How to do it
117 \end_layout
118
119 \begin_layout Enumerate
120 Make a spreadsheet.
121 \end_layout
122
123 \begin_layout Enumerate
124 In \SpecialChar LyX
125  use the menu Insert\SpecialChar menuseparator
126 File\SpecialChar menuseparator
127 External Material.
128 \end_layout
129
130 \begin_layout Enumerate
131 In the dialog, set template to 
132 \family sans
133 GnumericSpreadsheet
134 \family default
135  and select your spreadsheet file.
136 \end_layout
137
138 \begin_layout Section
139 Simple examples
140 \end_layout
141
142 \begin_layout Standard
143 First, the file 
144 \emph on
145 sheet1.gnumeric, 
146 \emph default
147 a spreadsheet created with Gnumeric:
148 \end_layout
149
150 \begin_layout Standard
151 \begin_inset External
152         template GnumericSpreadsheet
153         filename sheet1.gnumeric
154
155 \end_inset
156
157
158 \end_layout
159
160 \begin_layout Standard
161 Then 
162 \emph on
163 sheet2.ods, 
164 \emph default
165 which was made with LibreOffice:
166 \end_layout
167
168 \begin_layout Standard
169 \begin_inset External
170         template GnumericSpreadsheet
171         filename sheet2.ods
172
173 \end_inset
174
175
176 \end_layout
177
178 \begin_layout Standard
179 Finally 
180 \emph on
181 sheet3.xls 
182 \emph default
183 which was made for Excel.
184 \end_layout
185
186 \begin_layout Standard
187 \begin_inset External
188         template GnumericSpreadsheet
189         filename sheet3.xls
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Section
197 Long spreadsheets
198 \end_layout
199
200 \begin_layout Standard
201 A multi-page spreadsheet called 
202 \emph on
203 longsheet.gnumeric
204 \emph default
205 .
206  Notice that page breaking works fine:
207 \end_layout
208
209 \begin_layout Standard
210 \begin_inset External
211         template GnumericSpreadsheet
212         filename longsheet.gnumeric
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Section
220 Necessary software
221 \end_layout
222
223 \begin_layout Standard
224 \SpecialChar LyX
225  needs the converter program 
226 \family typewriter
227 ssconvert
228 \family default
229  that is distributed with Gnumeric.
230  It is therefore necessary to install Gnumeric, even if other software is
231  used to create and edit the spreadsheets.
232 \end_layout
233
234 \begin_layout Section
235 Limitations
236 \end_layout
237
238 \begin_layout Standard
239 Spreadsheet inclusion have some limitations.
240  I don't know all of them, but have seen problem with this:
241 \end_layout
242
243 \begin_layout Labeling
244 \labelwidthstring Wide~spreadsheets
245 \noindent
246 Wide
247 \begin_inset space ~
248 \end_inset
249
250 spreadsheets Unlike long spreadsheets, a spreadsheet wider than the margins
251  doesn't work well.
252  There is no attempt at breaking up such spreadsheets.
253 \end_layout
254
255 \begin_layout Labeling
256 \labelwidthstring Wide~spreadsheets
257 \noindent
258 Some
259 \begin_inset space ~
260 \end_inset
261
262 formatting Some types of formatting doesn't work.
263  The red and green texts in the long spreadsheet are underlined.
264  The underlining doesn't show, but the texts is otherwise printed correctly.
265 \end_layout
266
267 \begin_layout Standard
268 These limitations come from 
269 \family typewriter
270 ssconvert
271 \family default
272 .
273  Feature requests for better spreadsheet conversions should therefore go
274  to the Gnumeric developers.
275 \end_layout
276
277 \end_body
278 \end_document