]> git.lyx.org Git - features.git/blob - lib/examples/example_gnuplot.lyx
gnuplot script example added to lib/examples
[features.git] / lib / examples / example_gnuplot.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 542
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 true
26 \graphics default
27 \default_output_format default
28 \output_sync 0
29 \bibtex_command default
30 \index_command default
31 \paperfontsize default
32 \use_hyperref false
33 \papersize default
34 \use_geometry false
35 \use_package amsmath 1
36 \use_package amssymb 1
37 \use_package cancel 1
38 \use_package esint 1
39 \use_package mathdots 1
40 \use_package mathtools 1
41 \use_package mhchem 1
42 \use_package stackrel 1
43 \use_package stmaryrd 1
44 \use_package undertilde 1
45 \cite_engine basic
46 \cite_engine_type default
47 \biblio_style plain
48 \use_bibtopic false
49 \use_indices false
50 \paperorientation portrait
51 \suppress_date false
52 \justification true
53 \use_refstyle 1
54 \index Index
55 \shortcut idx
56 \color #008000
57 \end_index
58 \secnumdepth 3
59 \tocdepth 3
60 \paragraph_separation indent
61 \paragraph_indentation default
62 \is_math_indent 0
63 \math_number_before 0
64 \quotes_style english
65 \dynamic_quotes 0
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 \end_header
75
76 \begin_body
77
78 \begin_layout Title
79 LyX Gnuplot scripting example
80 \end_layout
81
82 \begin_layout Standard
83 This is a sample LyX file showing a Graphics inset including a simple gnuplot
84  script, that is auto-converted when previewing on-screen and when formatting
85  for PDF or other output format.
86 \end_layout
87
88 \begin_layout Standard
89 This can be inserted using the menu 
90 \family sans
91 Insert\SpecialChar menuseparator
92 Graphics...
93
94 \family default
95  then choosing a GNUPLOT script with either 
96 \family typewriter
97 .gp
98 \family default
99  or 
100 \family typewriter
101 .gnuplot
102 \family default
103  extension.
104  You should see a plot just below this text.
105 \end_layout
106
107 \begin_layout Standard
108 \begin_inset Graphics
109         filename example_gnuplot.gp
110
111 \end_inset
112
113
114 \end_layout
115
116 \begin_layout Standard
117 If you don't see it, there are basically a few possible causes
118 \end_layout
119
120 \begin_layout Enumerate
121 you don't have Gnuplot installed
122 \end_layout
123
124 \begin_layout Enumerate
125 you have on-screen graphics display disabled; this can be checked/enabled
126  with menu 
127 \family sans
128 Tools\SpecialChar menuseparator
129 Preferences...,
130 \family default
131  pane 
132 \family sans
133 Look & feel\SpecialChar menuseparator
134 Display,
135 \family default
136  then ensuring that the option 
137 \family typewriter
138 Display graphics
139 \family default
140  is enabled
141 \end_layout
142
143 \begin_layout Enumerate
144 you have 
145 \family typewriter
146 needauth
147 \family default
148  converters completely disabled/forbidden (Gnuplot is among this type of
149  converters, more information is available at 
150 \begin_inset Flex URL
151 status open
152
153 \begin_layout Plain Layout
154
155 http://www.lyx.org/trac/ticket/10481
156 \end_layout
157
158 \end_inset
159
160 ); these can be re-enabled from the menu 
161 \family sans
162 Tools\SpecialChar menuseparator
163 Preferences...,
164 \family default
165  pane 
166 \family sans
167 File Handling\SpecialChar menuseparator
168 Converters\SpecialChar menuseparator
169 Security
170 \family default
171 , then ensuring that the option 
172 \family sans
173 Forbid use of needauth converters
174 \family default
175  is unchecked
176 \end_layout
177
178 \begin_layout Enumerate
179 even though you have 
180 \family typewriter
181 needauth
182 \family default
183  converters enabled, you denied permission to run the Gnuplot script included
184  in this sample document when you first opened it, and you got a prompt
185  dialog on screen; in such case, close the document and open it again, then
186  answer 
187 \begin_inset Quotes eld
188 \end_inset
189
190 Run
191 \begin_inset Quotes erd
192 \end_inset
193
194  in that prompt dialog
195 \end_layout
196
197 \begin_layout Enumerate
198 if none of the above worked, please contact us on the 
199 \begin_inset Flex URL
200 status open
201
202 \begin_layout Plain Layout
203
204 mailto://lyx-devel@lyx.org
205 \end_layout
206
207 \end_inset
208
209  mailing list for assistance
210 \end_layout
211
212 \end_body
213 \end_document