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