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