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