]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/systemfonts-Math-missingchars.lyx
Fix MSVC warning
[lyx.git] / autotests / export / latex / systemfonts-Math-missingchars.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 566
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass scrartcl
8 \begin_preamble
9
10 \end_preamble
11 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
12 \use_default_options false
13 \maintain_unincluded_children false
14 \language english
15 \language_package default
16 \inputencoding auto
17 \fontencoding auto
18 \font_roman "lmodern" "default"
19 \font_sans "lmss" "default"
20 \font_typewriter "lmtt" "default"
21 \font_math "auto" "auto"
22 \font_default_family default
23 \use_non_tex_fonts true
24 \font_sc false
25 \font_osf false
26 \font_sf_scale 100 100
27 \font_tt_scale 100 100
28 \use_microtype false
29 \use_dash_ligatures true
30 \graphics default
31 \default_output_format pdf5
32 \output_sync 0
33 \bibtex_command default
34 \index_command default
35 \float_placement class
36 \float_alignment class
37 \paperfontsize 12
38 \spacing single
39 \use_hyperref false
40 \pdf_bookmarks true
41 \pdf_bookmarksnumbered true
42 \pdf_bookmarksopen true
43 \pdf_bookmarksopenlevel 1
44 \pdf_breaklinks false
45 \pdf_pdfborder false
46 \pdf_colorlinks true
47 \pdf_backref false
48 \pdf_pdfusetitle false
49 \papersize a4paper
50 \use_geometry false
51 \use_package amsmath 2
52 \use_package amssymb 2
53 \use_package cancel 0
54 \use_package esint 1
55 \use_package mathdots 1
56 \use_package mathtools 2
57 \use_package mhchem 1
58 \use_package stackrel 0
59 \use_package stmaryrd 0
60 \use_package undertilde 0
61 \cite_engine basic
62 \cite_engine_type default
63 \biblio_style plain
64 \use_bibtopic false
65 \use_indices false
66 \paperorientation portrait
67 \suppress_date false
68 \justification false
69 \use_refstyle 0
70 \use_minted 0
71 \notefontcolor #0000ff
72 \index Index
73 \shortcut idx
74 \color #008000
75 \end_index
76 \secnumdepth 4
77 \tocdepth 3
78 \paragraph_separation skip
79 \defskip medskip
80 \is_math_indent 0
81 \math_numbering_side default
82 \quotes_style english
83 \dynamic_quotes 0
84 \papercolumns 1
85 \papersides 2
86 \paperpagestyle plain
87 \bullet 1 0 6 -1
88 \bullet 2 2 35 -1
89 \bullet 3 2 7 -1
90 \tracking_changes false
91 \output_changes false
92 \html_math_output 0
93 \html_css_as_file 0
94 \html_be_strict false
95 \end_header
96
97 \begin_body
98
99 \begin_layout Section*
100 Minimal failing example for Math.lyx
101 \end_layout
102
103 \begin_layout Standard
104 Compiling \SpecialChar LyX
105 's detailed Math manual fails with non-TeX fonts due to missing
106  characters.
107  The documents uses the default set for LyX documentation: 
108 \emph on
109 Latin Modern
110 \emph default
111  as text and 
112 \emph on
113 Computer Modern
114 \emph default
115  for maths.
116 \end_layout
117
118 \begin_layout Standard
119 There is no easy solution because of the nature of the Maths documentation:
120  
121 \end_layout
122
123 \begin_layout Enumerate
124 Changing only the text font results in a bad font mix — LyX documentation
125  must not give a bad example/showcase.
126 \end_layout
127
128 \begin_layout Enumerate
129 Changing the math font does not work for Math.lyx:
130 \end_layout
131
132 \begin_deeper
133 \begin_layout Itemize
134 Some of the documented packages and examples only work with the default
135  math font (no 
136 \backslash
137 maltese in 
138 \begin_inset Quotes eld
139 \end_inset
140
141 txmath
142 \begin_inset Quotes erd
143 \end_inset
144
145 , package incompatibilities with unicode-math, ...).
146 \end_layout
147
148 \begin_layout Itemize
149 Besides: support for most math fonts is of inferiour quality (missing optical
150  sizes for indices, limited set of symbols)
151 \end_layout
152
153 \end_deeper
154 \begin_layout Subsection*
155 Missing characters with Latin Modern
156 \end_layout
157
158 \begin_layout Standard
159 Excerpts from Math.lyx that lead to 
160 \begin_inset Quotes eld
161 \end_inset
162
163 missing character
164 \begin_inset Quotes erd
165 \end_inset
166
167  errors and discussion of reasons and possible workarounds:
168 \end_layout
169
170 \begin_layout Quote
171 Bold Formulas
172 \end_layout
173
174 \begin_layout Quote
175 To make a complete formula bold, the command 
176 \series bold
177
178 \backslash
179 mathbf
180 \series default
181  from the previous subsection cannot be used, because it doesn't work for
182  small Greek letters.
183  Furthermore it prints Latin letters always upright, like in the following
184  equation:
185 \begin_inset Formula 
186 \[
187 \mathbf{\int_{n}^{2}f(\theta)=\Gamma}\qquad\textrm{equation with \textbackslash mathbf}
188 \]
189
190 \end_inset
191
192
193 \end_layout
194
195 \begin_layout Standard
196 Capital Greek characters in 
197 \backslash
198 mathbf lead to 
199 \begin_inset Quotes eld
200 \end_inset
201
202 missing character
203 \begin_inset Quotes erd
204 \end_inset
205
206  errors with non-TeX fonts.
207  Small Greek characters are not bolded, because TeX treats them as symbols,
208  not letters (unless you load the package 
209 \emph on
210 isomath
211 \emph default
212  or 
213 \emph on
214 fixmath
215 \emph default
216 ).
217 \end_layout
218
219 \begin_layout Quote
220 Accents in Text
221 \end_layout
222
223 \begin_layout Quote
224 With the following commands all letters can be accented.
225  The commands must be inserted in \SpecialChar TeX
226  mode.
227 \end_layout
228
229 \begin_layout Quote
230 \begin_inset Tabular
231 <lyxtabular version="3" rows="8" columns="2">
232 <features booktabs="true" tabularvalignment="middle">
233 <column alignment="left" valignment="top" width="0pt">
234 <column alignment="center" valignment="top">
235 <row>
236 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
237 \begin_inset Text
238
239 \begin_layout Plain Layout
240 Command
241 \end_layout
242
243 \end_inset
244 </cell>
245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
246 \begin_inset Text
247
248 \begin_layout Plain Layout
249 Result
250 \end_layout
251
252 \end_inset
253 </cell>
254 </row>
255 <row>
256 <cell alignment="left" valignment="top" leftline="true" usebox="none">
257 \begin_inset Text
258
259 \begin_layout Plain Layout
260
261 \backslash
262 H
263 \begin_inset space \textvisiblespace{}
264 \end_inset
265
266 e
267 \end_layout
268
269 \end_inset
270 </cell>
271 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
272 \begin_inset Text
273
274 \begin_layout Plain Layout
275 \begin_inset ERT
276 status collapsed
277
278 \begin_layout Plain Layout
279
280
281 \backslash
282 H e
283 \end_layout
284
285 \end_inset
286
287
288 \end_layout
289
290 \end_inset
291 </cell>
292 </row>
293 <row>
294 <cell alignment="left" valignment="top" leftline="true" usebox="none">
295 \begin_inset Text
296
297 \begin_layout Plain Layout
298
299 \backslash
300 'e
301 \end_layout
302
303 \end_inset
304 </cell>
305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
306 \begin_inset Text
307
308 \begin_layout Plain Layout
309 \begin_inset ERT
310 status collapsed
311
312 \begin_layout Plain Layout
313
314
315 \backslash
316 'e
317 \end_layout
318
319 \end_inset
320
321
322 \end_layout
323
324 \end_inset
325 </cell>
326 </row>
327 <row>
328 <cell alignment="left" valignment="top" leftline="true" usebox="none">
329 \begin_inset Text
330
331 \begin_layout Plain Layout
332
333 \backslash
334 ~e
335 \begin_inset Index idx
336 status collapsed
337
338 \begin_layout Plain Layout
339 Tilde
340 \end_layout
341
342 \end_inset
343
344
345 \end_layout
346
347 \end_inset
348 </cell>
349 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
350 \begin_inset Text
351
352 \begin_layout Plain Layout
353 \begin_inset ERT
354 status collapsed
355
356 \begin_layout Plain Layout
357
358
359 \backslash
360 ~e
361 \end_layout
362
363 \end_inset
364
365
366 \end_layout
367
368 \end_inset
369 </cell>
370 </row>
371 <row>
372 <cell alignment="left" valignment="top" leftline="true" usebox="none">
373 \begin_inset Text
374
375 \begin_layout Plain Layout
376
377 \backslash
378 .e
379 \end_layout
380
381 \end_inset
382 </cell>
383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
384 \begin_inset Text
385
386 \begin_layout Plain Layout
387 \begin_inset ERT
388 status collapsed
389
390 \begin_layout Plain Layout
391
392
393 \backslash
394 .e
395 \end_layout
396
397 \end_inset
398
399
400 \end_layout
401
402 \end_inset
403 </cell>
404 </row>
405 <row>
406 <cell alignment="left" valignment="top" leftline="true" usebox="none">
407 \begin_inset Text
408
409 \begin_layout Plain Layout
410
411 \backslash
412 v
413 \begin_inset space \textvisiblespace{}
414 \end_inset
415
416 e
417 \end_layout
418
419 \end_inset
420 </cell>
421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
422 \begin_inset Text
423
424 \begin_layout Plain Layout
425 \begin_inset ERT
426 status collapsed
427
428 \begin_layout Plain Layout
429
430
431 \backslash
432 v e
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \end_inset
441 </cell>
442 </row>
443 <row>
444 <cell alignment="left" valignment="top" leftline="true" usebox="none">
445 \begin_inset Text
446
447 \begin_layout Plain Layout
448
449 \backslash
450 d
451 \begin_inset space \textvisiblespace{}
452 \end_inset
453
454 e
455 \end_layout
456
457 \end_inset
458 </cell>
459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
460 \begin_inset Text
461
462 \begin_layout Plain Layout
463 \begin_inset ERT
464 status collapsed
465
466 \begin_layout Plain Layout
467
468
469 \backslash
470 d e
471 \end_layout
472
473 \end_inset
474
475
476 \end_layout
477
478 \end_inset
479 </cell>
480 </row>
481 <row>
482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
483 \begin_inset Text
484
485 \begin_layout Plain Layout
486
487 \backslash
488 c
489 \begin_inset space \textvisiblespace{}
490 \end_inset
491
492 e
493 \end_layout
494
495 \end_inset
496 </cell>
497 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
498 \begin_inset Text
499
500 \begin_layout Plain Layout
501 \begin_inset ERT
502 status collapsed
503
504 \begin_layout Plain Layout
505
506
507 \backslash
508 c e
509 \end_layout
510
511 \end_inset
512
513
514 \end_layout
515
516 \end_inset
517 </cell>
518 </row>
519 </lyxtabular>
520
521 \end_inset
522
523
524 \end_layout
525
526 \begin_layout Standard
527 Accented characters missing in Latin Modern:
528 \end_layout
529
530 \begin_layout Quote
531
532 \family typewriter
533
534 \backslash
535 c e
536 \family default
537  leads to 
538 \end_layout
539
540 \begin_layout Quote
541 Missing character: There is no
542 \begin_inset Note Note
543 status open
544
545 \begin_layout Plain Layout
546 ̧ 
547 \end_layout
548
549 \end_inset
550
551 (U+0327) in font [lmroman12-regular]:+tlig;!
552 \end_layout
553
554 \begin_layout Standard
555 OTOH, examples for ERT commands to get accented text letters are not really
556  helpfull in a 
557 \emph on
558 mathematics
559 \emph default
560  documentation even when mathematical text can be (ab)used to get them.
561 \end_layout
562
563 \begin_layout Standard
564 BTW: If keeping them, the following parts of Math.lyx should be corrected
565 \end_layout
566
567 \begin_layout Labeling
568 \labelwidthstring 00
569 \noindent
570 - The accents 
571 \series bold
572 `
573 \series default
574  , 
575 \series bold
576 '
577 \series default
578  and 
579 \series bold
580 ^
581 \series default
582  can in combination with vowels directly be inserted with the keyboard without
583  using \SpecialChar TeX
584  mode.
585  The same applies for the tilde
586 \begin_inset Foot
587 status collapsed
588
589 \begin_layout Plain Layout
590 This only applies for keyboards where the tilde is defined as accent.
591 \end_layout
592
593 \end_inset
594
595  
596 \series bold
597 ~
598 \series default
599  in combination with 
600 \emph on
601 a
602 \emph default
603  , 
604 \emph on
605 n
606 \emph default
607  , or 
608 \emph on
609 o
610 \emph default
611 .
612 \end_layout
613
614 \begin_layout Labeling
615 \labelwidthstring 00
616 + If the keyboard defines them as 
617 \begin_inset Quotes eld
618 \end_inset
619
620 dead keys
621 \begin_inset Quotes erd
622 \end_inset
623
624 , the accents 
625 \series bold
626 `
627 \series default
628  , 
629 \series bold
630 '
631 \series default
632 , ^, and ~  can in combination with supported characters directly be inserted
633  with the keyboard without using \SpecialChar TeX
634  mode.
635 \end_layout
636
637 \begin_layout Labeling
638 \labelwidthstring 00
639 - The commands 
640 \series bold
641
642 \backslash
643 b
644 \series default
645  , 
646 \series bold
647
648 \backslash
649 c
650 \series default
651  , 
652 \series bold
653
654 \backslash
655 d
656 \series default
657  , 
658 \series bold
659
660 \backslash
661 H
662 \series default
663  , 
664 \series bold
665
666 \backslash
667 t
668 \series default
669  , 
670 \series bold
671
672 \backslash
673 u
674 \series default
675  , 
676 \series bold
677
678 \backslash
679 v
680 \series default
681  and accents that are inserted directly with the keyboard are also available
682  in mathematical text.
683  
684 \end_layout
685
686 \begin_layout Labeling
687 \labelwidthstring 00
688 + Like any LaTeX commands,
689 \series bold
690  
691 \backslash
692 b
693 \series default
694  , 
695 \series bold
696
697 \backslash
698 c
699 \series default
700  , 
701 \series bold
702
703 \backslash
704 d
705 \series default
706  , 
707 \series bold
708
709 \backslash
710 H
711 \series default
712  , 
713 \series bold
714
715 \backslash
716 t
717 \series default
718  , 
719 \series bold
720
721 \backslash
722 u
723 \series default
724  , 
725 \series bold
726
727 \backslash
728 v
729 \series default
730  are available in mathematical text without the need to wrap them in a 
731 \begin_inset Quotes eld
732 \end_inset
733
734 TeX Code
735 \begin_inset Quotes erd
736 \end_inset
737
738  (ERT) inset .
739 \end_layout
740
741 \begin_layout Labeling
742 \labelwidthstring 00
743 - Example 
744 \backslash
745 c e
746 \end_layout
747
748 \begin_layout Labeling
749 \labelwidthstring 00
750 + Example 
751 \backslash
752 c c or 
753 \backslash
754 c s (converted to pre-composed character available in LatinModern).
755 \end_layout
756
757 \end_body
758 \end_document