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