]> git.lyx.org Git - lyx.git/blob - lib/examples/H-P-statements.lyx
Cmake tests: Added check to inspect created pdf in test "AMS-import"
[lyx.git] / lib / examples / H-P-statements.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/
7 \textclass scrartcl
8 \begin_preamble
9 % if pdflatex is used
10 \usepackage{ifpdf}
11 \ifpdf
12
13 % set fonts for nicer pdf view
14 \IfFileExists{lmodern.sty}
15  {\usepackage{lmodern}}{}
16
17 \fi % end if pdflatex is used
18 \end_preamble
19 \use_default_options true
20 \begin_modules
21 hpstatement
22 \end_modules
23 \maintain_unincluded_children false
24 \language english
25 \language_package default
26 \inputencoding auto
27 \fontencoding global
28 \font_roman "default" "default"
29 \font_sans "default" "default"
30 \font_typewriter "default" "default"
31 \font_math "auto" "auto"
32 \font_default_family default
33 \use_non_tex_fonts false
34 \font_sc false
35 \font_osf false
36 \font_sf_scale 100 100
37 \font_tt_scale 100 100
38 \use_microtype false
39 \use_dash_ligatures false
40 \graphics default
41 \default_output_format default
42 \output_sync 0
43 \bibtex_command default
44 \index_command default
45 \paperfontsize default
46 \spacing single
47 \use_hyperref true
48 \pdf_title "Chemical Hazard and Precautionary statements in LyX"
49 \pdf_author "Uwe Stöhr"
50 \pdf_bookmarks true
51 \pdf_bookmarksnumbered true
52 \pdf_bookmarksopen false
53 \pdf_bookmarksopenlevel 1
54 \pdf_breaklinks false
55 \pdf_pdfborder false
56 \pdf_colorlinks true
57 \pdf_backref false
58 \pdf_pdfusetitle false
59 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
60 \papersize default
61 \use_geometry false
62 \use_package amsmath 1
63 \use_package amssymb 1
64 \use_package cancel 1
65 \use_package esint 1
66 \use_package mathdots 1
67 \use_package mathtools 1
68 \use_package mhchem 1
69 \use_package stackrel 1
70 \use_package stmaryrd 1
71 \use_package undertilde 1
72 \cite_engine basic
73 \cite_engine_type default
74 \biblio_style plain
75 \use_bibtopic false
76 \use_indices false
77 \paperorientation portrait
78 \suppress_date true
79 \justification true
80 \use_refstyle 1
81 \use_minted 0
82 \notefontcolor #0000ff
83 \index Index
84 \shortcut idx
85 \color #008000
86 \end_index
87 \secnumdepth 3
88 \tocdepth 3
89 \paragraph_separation skip
90 \defskip medskip
91 \is_math_indent 0
92 \math_numbering_side default
93 \quotes_style english
94 \dynamic_quotes 0
95 \papercolumns 1
96 \papersides 1
97 \paperpagestyle default
98 \tracking_changes false
99 \output_changes false
100 \html_math_output 0
101 \html_css_as_file 0
102 \html_be_strict false
103 \end_header
104
105 \begin_body
106
107 \begin_layout Title
108 Chemical Hazard and Precautionary statements in \SpecialChar LyX
109
110 \end_layout
111
112 \begin_layout Author
113 Uwe Stöhr
114 \end_layout
115
116 \begin_layout Section
117 Introduction
118 \end_layout
119
120 \begin_layout Standard
121 To be able to insert chemical hazard and precautionary statements in \SpecialChar LyX
122 , you
123  need to load the module 
124 \family sans
125 Risk
126 \begin_inset space ~
127 \end_inset
128
129 and
130 \begin_inset space ~
131 \end_inset
132
133 Safety
134 \begin_inset space ~
135 \end_inset
136
137 Statements
138 \family default
139  in the menu 
140 \family sans
141 Document\SpecialChar menuseparator
142 Settings\SpecialChar menuseparator
143 Modules
144 \family default
145 .
146  The module provides 2
147 \begin_inset space ~
148 \end_inset
149
150 insets which are accessible via the menu 
151 \family sans
152 Insert\SpecialChar menuseparator
153 Custom
154 \begin_inset space ~
155 \end_inset
156
157 Insets
158 \family default
159 .
160 \end_layout
161
162 \begin_layout Section
163 Statements
164 \end_layout
165
166 \begin_layout Standard
167 The inset 
168 \family sans
169 H-P
170 \begin_inset space ~
171 \end_inset
172
173 number
174 \family default
175  is used to typeset the number, the inset 
176 \family sans
177 H-P
178 \begin_inset space ~
179 \end_inset
180
181 statement
182 \family default
183  will output the corresponding statement.
184 \end_layout
185
186 \begin_layout Standard
187 The hazard statement 
188 \begin_inset Flex H-P number
189 status open
190
191 \begin_layout Plain Layout
192
193 H200
194 \end_layout
195
196 \end_inset
197
198  has the statement: 
199 \begin_inset Flex H-P statement
200 status open
201
202 \begin_layout Plain Layout
203
204 H200
205 \end_layout
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Standard
213 This is 
214 \begin_inset Flex H-P number
215 status collapsed
216
217 \begin_layout Plain Layout
218
219 H200
220 \end_layout
221
222 \end_inset
223
224
225 \begin_inset Flex H-P statement
226 status open
227
228 \begin_layout Plain Layout
229
230 \end_layout
231
232 \end_inset
233
234
235 \end_layout
236
237 \begin_layout Standard
238 As you can see, the statement inset can be left empty.
239  In this case the previously used number is used for the statement.
240 \end_layout
241
242 \begin_layout Standard
243 Precautionary statements are inserted the same way as hazard statements:
244 \end_layout
245
246 \begin_layout Standard
247 The precautionary statement 
248 \begin_inset Flex H-P number
249 status collapsed
250
251 \begin_layout Plain Layout
252
253 P235
254 \end_layout
255
256 \end_inset
257
258  is: 
259 \begin_inset Flex H-P statement
260 status open
261
262 \begin_layout Plain Layout
263
264 \end_layout
265
266 \end_inset
267
268
269 \end_layout
270
271 \begin_layout Section
272 Statement Alternatives
273 \end_layout
274
275 \begin_layout Standard
276 Some statements allow you to choose between certain alternatives.
277  In these cases you must add a dot and the number of the alternative to
278  the statement number.
279  Some examples:
280 \end_layout
281
282 \begin_layout Description
283 P210.1 leads to: 
284 \begin_inset Flex H-P number
285 status open
286
287 \begin_layout Plain Layout
288
289 P210.1
290 \end_layout
291
292 \end_inset
293
294
295 \begin_inset Flex H-P statement
296 status open
297
298 \begin_layout Plain Layout
299
300 \end_layout
301
302 \end_inset
303
304
305 \end_layout
306
307 \begin_layout Description
308 P210.2 leads to: 
309 \begin_inset Flex H-P number
310 status open
311
312 \begin_layout Plain Layout
313
314 P210.2
315 \end_layout
316
317 \end_inset
318
319
320 \begin_inset Flex H-P statement
321 status open
322
323 \begin_layout Plain Layout
324
325 \end_layout
326
327 \end_inset
328
329
330 \end_layout
331
332 \begin_layout Standard
333 The alternative number 
334 \begin_inset Quotes eld
335 \end_inset
336
337 0
338 \begin_inset Quotes erd
339 \end_inset
340
341  refers to the original version as stated in the regulations:
342 \end_layout
343
344 \begin_layout Description
345 P210.0 leads to: 
346 \begin_inset Flex H-P number
347 status open
348
349 \begin_layout Plain Layout
350
351 P210.0
352 \end_layout
353
354 \end_inset
355
356
357 \begin_inset Flex H-P statement
358 status open
359
360 \begin_layout Plain Layout
361
362 \end_layout
363
364 \end_inset
365
366
367 \end_layout
368
369 \begin_layout Section
370 Required Text
371 \end_layout
372
373 \begin_layout Standard
374 Some statements require text.
375  This is inserted to the optional argument of LyX's 
376 \family sans
377 H-P-Statement
378 \family default
379  inset.
380  The argument is inserted with the menu 
381 \family sans
382 Insert\SpecialChar menuseparator
383 Statement
384 \begin_inset space ~
385 \end_inset
386
387 Text
388 \family default
389 .
390 \end_layout
391
392 \begin_layout Standard
393 In this example the text 
394 \begin_inset Quotes eld
395 \end_inset
396
397 sunglasses
398 \begin_inset Quotes erd
399 \end_inset
400
401  was added to the optional argument:
402 \end_layout
403
404 \begin_layout Standard
405 Statement 
406 \begin_inset Flex H-P number
407 status open
408
409 \begin_layout Plain Layout
410
411 P280
412 \end_layout
413
414 \end_inset
415
416  says: 
417 \begin_inset Flex H-P statement
418 status open
419
420 \begin_layout Plain Layout
421
422 \begin_inset Argument 1
423 status open
424
425 \begin_layout Plain Layout
426
427 sunglasses
428 \end_layout
429
430 \end_inset
431
432 P280
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Standard
441 Some statements print text referring to the place on a label.
442  For example:
443 \end_layout
444
445 \begin_layout Standard
446 Statement 
447 \begin_inset Flex H-P number
448 status open
449
450 \begin_layout Plain Layout
451
452 P321
453 \end_layout
454
455 \end_inset
456
457  says: 
458 \begin_inset Flex H-P statement
459 status open
460
461 \begin_layout Plain Layout
462
463 \begin_inset Argument 1
464 status open
465
466 \begin_layout Plain Layout
467
468 the left side
469 \end_layout
470
471 \end_inset
472
473 P321
474 \end_layout
475
476 \end_inset
477
478
479 \end_layout
480
481 \begin_layout Standard
482 Where 
483 \begin_inset Quotes eld
484 \end_inset
485
486 the left side
487 \begin_inset Quotes erd
488 \end_inset
489
490  is the input required text.
491 \end_layout
492
493 \begin_layout Standard
494 If you don't have a label use 
495 \begin_inset Quotes eld
496 \end_inset
497
498 nolabel
499 \begin_inset Quotes erd
500 \end_inset
501
502  as 
503 \begin_inset Quotes eld
504 \end_inset
505
506 number
507 \begin_inset Quotes erd
508 \end_inset
509
510  for the alternative to omit the text about the label:
511 \end_layout
512
513 \begin_layout Standard
514 Statement 
515 \begin_inset Flex H-P number
516 status open
517
518 \begin_layout Plain Layout
519
520 P321
521 \end_layout
522
523 \end_inset
524
525  says: 
526 \begin_inset Flex H-P statement
527 status open
528
529 \begin_layout Plain Layout
530
531 \begin_inset Argument 1
532 status open
533
534 \begin_layout Plain Layout
535
536 the left side
537 \end_layout
538
539 \end_inset
540
541 P321.nolabel
542 \end_layout
543
544 \end_inset
545
546
547 \end_layout
548
549 \begin_layout Section
550 Language issues
551 \end_layout
552
553 \begin_layout Standard
554 The statements are output depending on the language.
555  Currently only the languages
556 \begin_inset Newline newline
557 \end_inset
558
559 Danish, English, French, German, Italian and Spanish
560 \begin_inset Newline newline
561 \end_inset
562
563 are supported.
564 \end_layout
565
566 \begin_layout Standard
567 At 
568 \begin_inset CommandInset href
569 LatexCommand href
570 name "this webpage"
571 target "http://schoolscout24.de/cgi-bin/keminaco/hppinput.cgi"
572 literal "false"
573
574 \end_inset
575
576  you find the official statements for all 23
577 \begin_inset space ~
578 \end_inset
579
580 languages of the EU.
581 \end_layout
582
583 \begin_layout Standard
584 Mixing languages is possible without problems:
585 \end_layout
586
587 \begin_layout Standard
588
589 \lang ngerman
590 Dies ist H-Satz 
591 \begin_inset Flex H-P number
592 status open
593
594 \begin_layout Plain Layout
595
596 H251
597 \end_layout
598
599 \end_inset
600
601
602 \begin_inset Flex H-P statement
603 status open
604
605 \begin_layout Plain Layout
606
607 \end_layout
608
609 \end_inset
610
611
612 \end_layout
613
614 \begin_layout Standard
615 This is hazard statement 
616 \begin_inset Flex H-P number
617 status open
618
619 \begin_layout Plain Layout
620
621 H251
622 \end_layout
623
624 \end_inset
625
626
627 \begin_inset Flex H-P statement
628 status open
629
630 \begin_layout Plain Layout
631
632 \end_layout
633
634 \end_inset
635
636
637 \end_layout
638
639 \end_body
640 \end_document