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