]> git.lyx.org Git - lyx.git/blob - lib/examples/External_Material/Spreadsheet.lyx
Change bookmark-save bindings. Use S-F3 for word-find-backwards.
[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 600
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_sans_osf false
27 \font_typewriter_osf false
28 \font_roman_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 \tracking_changes false
80 \postpone_fragile_content false
81 \output_changes false
82 \html_math_output 0
83 \html_css_as_file 0
84 \html_be_strict false
85 \end_header
86
87 \begin_body
88
89 \begin_layout Title
90 Spreadsheets External Inset
91 \end_layout
92
93 \begin_layout Author
94 Helge Hafting
95 \end_layout
96
97 \begin_layout Standard
98 \begin_inset CommandInset toc
99 LatexCommand tableofcontents
100
101 \end_inset
102
103
104 \end_layout
105
106 \begin_layout Standard
107 Test of spreadsheet external inset in \SpecialChar LyX
108 .
109  Spreadsheets (created with Gnumeric, LibreOffice, OpenOffice.org, or Excel)
110  gets converted to .tex with the 
111 \family typewriter
112 ssconvert
113 \family default
114  program that is distributed together with Gnumeric.
115  They are then imported as longtables.
116  As the spreadsheet is 
117 \begin_inset Quotes eld
118 \end_inset
119
120 External material
121 \begin_inset Quotes erd
122 \end_inset
123
124 , any changes to the spreadsheet will be reflected in \SpecialChar LyX
125 's output too.
126  Thus, the \SpecialChar LyX
127  document is always up to date.
128 \end_layout
129
130 \begin_layout Section
131 How to do it
132 \end_layout
133
134 \begin_layout Enumerate
135 Make a spreadsheet.
136 \end_layout
137
138 \begin_layout Enumerate
139 In \SpecialChar LyX
140  use the menu Insert\SpecialChar menuseparator
141 File\SpecialChar menuseparator
142 External Material.
143 \end_layout
144
145 \begin_layout Enumerate
146 In the dialog, set template to 
147 \family sans
148 GnumericSpreadsheet
149 \family default
150  and select your spreadsheet file.
151 \end_layout
152
153 \begin_layout Section
154 Simple examples
155 \end_layout
156
157 \begin_layout Standard
158 First, the file 
159 \emph on
160 sheet1.gnumeric, 
161 \emph default
162 a spreadsheet created with Gnumeric:
163 \end_layout
164
165 \begin_layout Standard
166 \begin_inset External
167         template GnumericSpreadsheet
168         filename sheet1.gnumeric
169
170 \end_inset
171
172
173 \end_layout
174
175 \begin_layout Standard
176 Then 
177 \emph on
178 sheet2.ods, 
179 \emph default
180 which was made with LibreOffice:
181 \end_layout
182
183 \begin_layout Standard
184 \begin_inset External
185         template GnumericSpreadsheet
186         filename sheet2.ods
187
188 \end_inset
189
190
191 \end_layout
192
193 \begin_layout Standard
194 Finally 
195 \emph on
196 sheet3.xls 
197 \emph default
198 which was made for Excel.
199 \end_layout
200
201 \begin_layout Standard
202 \begin_inset External
203         template GnumericSpreadsheet
204         filename sheet3.xls
205
206 \end_inset
207
208
209 \end_layout
210
211 \begin_layout Section
212 Long spreadsheets
213 \end_layout
214
215 \begin_layout Standard
216 A multi-page spreadsheet called 
217 \emph on
218 longsheet.gnumeric
219 \emph default
220 .
221  Notice that page breaking works fine:
222 \end_layout
223
224 \begin_layout Standard
225 \begin_inset External
226         template GnumericSpreadsheet
227         filename longsheet.gnumeric
228
229 \end_inset
230
231
232 \end_layout
233
234 \begin_layout Section
235 Necessary software
236 \end_layout
237
238 \begin_layout Standard
239 \SpecialChar LyX
240  needs the converter program 
241 \family typewriter
242 ssconvert
243 \family default
244  that is distributed with Gnumeric.
245  It is therefore necessary to install Gnumeric, even if other software is
246  used to create and edit the spreadsheets.
247 \end_layout
248
249 \begin_layout Section
250 Limitations
251 \end_layout
252
253 \begin_layout Standard
254 Spreadsheet inclusion have some limitations.
255  I don't know all of them, but have seen problem with this:
256 \end_layout
257
258 \begin_layout Labeling
259 \labelwidthstring Wide~spreadsheets
260 \noindent
261 Wide
262 \begin_inset space ~
263 \end_inset
264
265 spreadsheets Unlike long spreadsheets, a spreadsheet wider than the margins
266  doesn't work well.
267  There is no attempt at breaking up such spreadsheets.
268 \end_layout
269
270 \begin_layout Labeling
271 \labelwidthstring Wide~spreadsheets
272 \noindent
273 Some
274 \begin_inset space ~
275 \end_inset
276
277 formatting Some types of formatting doesn't work.
278  The red and green texts in the long spreadsheet are underlined.
279  The underlining doesn't show, but the texts is otherwise printed correctly.
280 \end_layout
281
282 \begin_layout Standard
283 These limitations come from 
284 \family typewriter
285 ssconvert
286 \family default
287 .
288  Feature requests for better spreadsheet conversions should therefore go
289  to the Gnumeric developers.
290 \end_layout
291
292 \end_body
293 \end_document