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