]> git.lyx.org Git - lyx.git/blob - autotests/export/lyx2lyx/lyx_2_2_test.lyx
Merge branch 'feature/docbook' into master
[lyx.git] / autotests / export / lyx2lyx / lyx_2_2_test.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass scrartcl
8 \use_default_options false
9 \begin_modules
10 logicalmkup
11 \end_modules
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding cp1252
16 \fontencoding global
17 \font_roman "lmodern" "default"
18 \font_sans "default" "default"
19 \font_typewriter "default" "default"
20 \font_math "auto" "auto"
21 \font_default_family default
22 \use_non_tex_fonts false
23 \font_sc false
24 \font_osf false
25 \font_sf_scale 100 100
26 \font_tt_scale 100 100
27 \use_microtype false
28 \use_dash_ligatures false
29 \graphics default
30 \default_output_format default
31 \output_sync 0
32 \bibtex_command default
33 \index_command default
34 \paperfontsize 12
35 \spacing single
36 \use_hyperref true
37 \pdf_bookmarks false
38 \pdf_bookmarksnumbered true
39 \pdf_bookmarksopen false
40 \pdf_bookmarksopenlevel 1
41 \pdf_breaklinks false
42 \pdf_pdfborder false
43 \pdf_colorlinks true
44 \pdf_backref false
45 \pdf_pdfusetitle false
46 \papersize default
47 \use_geometry false
48 \use_package amsmath 1
49 \use_package amssymb 1
50 \use_package cancel 1
51 \use_package esint 1
52 \use_package mathdots 0
53 \use_package mathtools 1
54 \use_package mhchem 1
55 \use_package stackrel 1
56 \use_package stmaryrd 1
57 \use_package undertilde 1
58 \cite_engine basic
59 \cite_engine_type default
60 \biblio_style plain
61 \use_bibtopic false
62 \use_indices false
63 \paperorientation portrait
64 \suppress_date false
65 \justification true
66 \use_refstyle 0
67 \use_minted 0
68 \index Index
69 \shortcut idx
70 \color #008000
71 \end_index
72 \secnumdepth 3
73 \tocdepth 2
74 \paragraph_separation skip
75 \defskip medskip
76 \is_math_indent 0
77 \math_numbering_side default
78 \quotes_style english
79 \dynamic_quotes 0
80 \papercolumns 1
81 \papersides 2
82 \paperpagestyle default
83 \tracking_changes false
84 \output_changes false
85 \html_math_output 0
86 \html_css_as_file 0
87 \html_be_strict false
88 \end_header
89
90 \begin_body
91
92 \begin_layout Subsection*
93 Test reversion/conversion between 2.2 and 2.1 formats with lyx2lyx
94 \end_layout
95
96 \begin_layout Description
97 BoxFeatures,
98 \begin_inset space ~
99 \end_inset
100
101 colorbox: The word
102 \begin_inset Newline newline
103 \end_inset
104
105 shadowsize at start of a line must not trigger insertion of box options.
106  
107 \end_layout
108
109 \begin_deeper
110 \begin_layout Standard
111 \begin_inset Box Boxed
112 position "t"
113 hor_pos "c"
114 has_inner_box 1
115 inner_pos "t"
116 use_parbox 0
117 use_makebox 0
118 width "40col%"
119 special "none"
120 height "1in"
121 height_special "totalheight"
122 thickness "0.4pt"
123 separation "3pt"
124 shadowsize "4pt"
125 framecolor "green"
126 backgroundcolor "orange"
127 status open
128
129 \begin_layout Plain Layout
130 framecolor "green" around orange box
131 \end_layout
132
133 \end_inset
134
135  
136 \begin_inset Box Frameless
137 position "t"
138 hor_pos "c"
139 has_inner_box 1
140 inner_pos "t"
141 use_parbox 0
142 use_makebox 0
143 width "40col%"
144 special "none"
145 height "1in"
146 height_special "totalheight"
147 thickness "0.4pt"
148 separation "3pt"
149 shadowsize "4pt"
150 framecolor "black"
151 backgroundcolor "cyan"
152 status open
153
154 \begin_layout Plain Layout
155 no frame around cyan box
156 \end_layout
157
158 \end_inset
159
160  
161 \begin_inset Newline newline
162 \end_inset
163
164  
165 \begin_inset Box Boxed
166 position "t"
167 hor_pos "c"
168 has_inner_box 1
169 inner_pos "t"
170 use_parbox 0
171 use_makebox 0
172 width "40col%"
173 special "none"
174 height "1in"
175 height_special "totalheight"
176 thickness "0.4pt"
177 separation "3pt"
178 shadowsize "4pt"
179 framecolor "black"
180 backgroundcolor "cyan"
181 status open
182
183 \begin_layout Plain Layout
184 framecolor "black" around cyan box
185 \begin_inset Note Note
186 status open
187
188 \begin_layout Plain Layout
189 nested inset
190 \end_layout
191
192 \end_inset
193
194
195 \end_layout
196
197 \end_inset
198
199  
200 \end_layout
201
202 \begin_layout Standard
203 Fancy boxes have the colour chooser greyed out:
204 \end_layout
205
206 \begin_layout Standard
207 \begin_inset Box ovalbox
208 position "b"
209 hor_pos "c"
210 has_inner_box 1
211 inner_pos "t"
212 use_parbox 0
213 use_makebox 0
214 width "20col%"
215 special "none"
216 height "1in"
217 height_special "totalheight"
218 thickness "0.4pt"
219 separation "3pt"
220 shadowsize "4pt"
221 framecolor "black"
222 backgroundcolor "none"
223 status open
224
225 \begin_layout Plain Layout
226 framecolor at bol must not trigger replacement
227 \end_layout
228
229 \end_inset
230
231  
232 \begin_inset Box Shadowbox
233 position "t"
234 hor_pos "c"
235 has_inner_box 1
236 inner_pos "t"
237 use_parbox 0
238 use_makebox 0
239 width "30col%"
240 special "none"
241 height "1in"
242 height_special "totalheight"
243 thickness "0.4pt"
244 separation "3pt"
245 shadowsize "4pt"
246 framecolor "black"
247 backgroundcolor "none"
248 status open
249
250 \begin_layout Plain Layout
251 shadowsize at bol must not trigger insertion of box options
252 \end_layout
253
254 \end_inset
255
256  
257 \begin_inset Box Ovalbox
258 position "t"
259 hor_pos "c"
260 has_inner_box 1
261 inner_pos "t"
262 use_parbox 0
263 use_makebox 0
264 width "12col%"
265 special "none"
266 height "1in"
267 height_special "totalheight"
268 thickness "0.4pt"
269 separation "3pt"
270 shadowsize "4pt"
271 framecolor "black"
272 backgroundcolor "none"
273 status open
274
275 \begin_layout Plain Layout
276 oval, thick
277 \end_layout
278
279 \end_inset
280
281  
282 \begin_inset Box Doublebox
283 position "t"
284 hor_pos "c"
285 has_inner_box 1
286 inner_pos "t"
287 use_parbox 0
288 use_makebox 0
289 width "30col%"
290 special "none"
291 height "1in"
292 height_special "totalheight"
293 thickness "0.4pt"
294 separation "3pt"
295 shadowsize "4pt"
296 framecolor "black"
297 backgroundcolor "none"
298 status open
299
300 \begin_layout LyX-Code
301 double frame
302 \end_layout
303
304 \end_inset
305
306
307 \end_layout
308
309 \begin_layout Standard
310 The background of 
311 \begin_inset Box Shaded
312 position "t"
313 hor_pos "c"
314 has_inner_box 1
315 inner_pos "t"
316 use_parbox 0
317 use_makebox 0
318 width "30col%"
319 special "none"
320 height "1in"
321 height_special "totalheight"
322 thickness "0.4pt"
323 separation "3pt"
324 shadowsize "4pt"
325 framecolor "black"
326 backgroundcolor "none"
327 status open
328
329 \begin_layout Plain Layout
330 shaded boxes
331 \end_layout
332
333 \end_inset
334
335  is set in Document>Settings>Colors 
336 \end_layout
337
338 \begin_layout Standard
339 The problem was detected in a LyX-Code example for fancy frames:
340 \end_layout
341
342 \begin_layout LyX-Code
343
344 \backslash
345 usepackage{fancybox}
346 \end_layout
347
348 \begin_layout LyX-Code
349
350 \backslash
351 setlength{
352 \backslash
353 slideframewidth}{1pt}
354 \end_layout
355
356 \begin_layout LyX-Code
357
358 \backslash
359 slideframe[
360 \backslash
361 setlength{
362 \backslash
363 shadowsize}{1pt}]{shadow}
364 \end_layout
365
366 \end_deeper
367 \begin_layout Description
368 Hyphens
369 \begin_inset space ~
370 \end_inset
371
372 vs.
373 \begin_inset space ~
374 \end_inset
375
376 dashes in different context
377 \end_layout
378
379 \begin_deeper
380 \begin_layout Description
381 standard
382 \begin_inset space ~
383 \end_inset
384
385 paragraph:
386 \end_layout
387
388 \begin_deeper
389 \begin_layout Standard
390 default font (serif): hyphens -- ---; en–dash, em—dash;
391 \end_layout
392
393 \begin_layout Standard
394
395 \family typewriter
396 typewriter: hyphens -- ---; en–dash, em—dash;
397 \end_layout
398
399 \begin_layout Standard
400 \begin_inset Flex Code
401 status open
402
403 \begin_layout Plain Layout
404 code inset: hyphens -- ---; en–dash, em—dash;
405 \end_layout
406
407 \end_inset
408
409
410 \end_layout
411
412 \begin_layout Standard
413 \begin_inset listings
414 inline false
415 status open
416
417 \begin_layout Plain Layout
418
419 listings: hyphens -- ---; en–dash, em—dash;
420 \end_layout
421
422 \end_inset
423
424
425 \end_layout
426
427 \begin_layout Standard
428 \begin_inset ERT
429 status open
430
431 \begin_layout Plain Layout
432
433 ERT: hyphens -- ---; en–dash, em—dash;
434 \end_layout
435
436 \end_inset
437
438
439 \end_layout
440
441 \begin_layout Standard
442 \begin_inset IPA
443
444 \begin_layout Standard
445 tipa: hyphens -- ---; en–dash, em—dash;
446 \end_layout
447
448 \end_inset
449
450
451 \end_layout
452
453 \end_deeper
454 \begin_layout Description
455 LyX-Code
456 \end_layout
457
458 \begin_deeper
459 \begin_layout LyX-Code
460 hyphens -- ---; en–dash, em—dash;
461 \end_layout
462
463 \end_deeper
464 \end_deeper
465 \begin_layout Subsubsection
466 ligature breaks inserted by lyx2lyx 
467 \begin_inset CommandInset label
468 LatexCommand label
469 name "label--test"
470
471 \end_inset
472
473
474 \end_layout
475
476 \begin_layout Standard
477 Rows of hyphens on subsequent lines -- ---; en–dash, em—dash and more hyphens
478  -- ---.
479 \end_layout
480
481 \begin_layout Standard
482 Hyphens with explicit ligature breaks -\SpecialChar ligaturebreak
483 - -\SpecialChar ligaturebreak
484 -\SpecialChar ligaturebreak
485 -; en–dash, em—dash.
486 \end_layout
487
488 \begin_layout Labeling
489 \labelwidthstring ---.--
490 \noindent
491 List with hyphens in the marker and ref to section 
492 \begin_inset CommandInset ref
493 LatexCommand ref
494 reference "label--test"
495 plural "false"
496 caps "false"
497 noprefix "false"
498
499 \end_inset
500
501 .
502 \end_layout
503
504 \begin_layout Standard
505 Insets with hyphens: 
506 \begin_inset Index idx
507 status open
508
509 \begin_layout Plain Layout
510 stich--wort
511 \end_layout
512
513 \end_inset
514
515
516 \begin_inset Flex URL
517 status open
518
519 \begin_layout Plain Layout
520
521 URL--test
522 \end_layout
523
524 \end_inset
525
526  
527 \begin_inset CommandInset href
528 LatexCommand href
529 name "hyper--link"
530 target "hy--l"
531 literal "false"
532
533 \end_inset
534
535  
536 \begin_inset Formula $math--formula>>$
537 \end_inset
538
539  
540 \begin_inset CommandInset nomenclature
541 LatexCommand nomenclature
542 symbol "--"
543 description "duble hyphen -- so"
544 literal "true"
545
546 \end_inset
547
548
549 \begin_inset CommandInset index_print
550 LatexCommand printindex
551 type "idx"
552 name "Index"
553 literal "true"
554
555 \end_inset
556
557
558 \end_layout
559
560 \begin_layout Standard
561 \begin_inset CommandInset nomencl_print
562 LatexCommand printnomenclature
563 set_width "auto"
564
565 \end_inset
566
567
568 \end_layout
569
570 \end_body
571 \end_document