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