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