]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/systemfonts-Math-missingchars.lyx
Do not use \inputencoding when the buffer input encoding is one of the "legacy" CJK...
[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 true
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 \SpecialChar LyX
105 's detailed Math manual fails with 
106 \begin_inset Quotes eld
107 \end_inset
108
109 missing character
110 \begin_inset Quotes erd
111 \end_inset
112
113  errors for the following reasons:
114 \end_layout
115
116 \begin_layout Quote
117 Bold Formulas
118 \end_layout
119
120 \begin_deeper
121 \begin_layout Standard
122 To make a complete formula bold, the command 
123 \series bold
124
125 \backslash
126 mathbf
127 \series default
128  from the previous subsection cannot be used, because it doesn't work for
129  small Greek letters.
130  Furthermore it prints Latin letters always upright, like in the following
131  equation:
132 \end_layout
133
134 \begin_layout Standard
135 \begin_inset Formula 
136 \[
137 \mathbf{\int_{n}^{2}f(\theta)=\Gamma}\qquad\textrm{equation with \textbackslash mathbf}
138 \]
139
140 \end_inset
141
142
143 \end_layout
144
145 \end_deeper
146 \begin_layout Standard
147 Capital Greek characters in 
148 \backslash
149 mathbf lead to 
150 \begin_inset Quotes eld
151 \end_inset
152
153 missing character
154 \begin_inset Quotes erd
155 \end_inset
156
157  errors with non-TeX fonts.
158  Small Greek characters are not bolded, because TeX treats them as symbols,
159  not letters (unless you load the package 
160 \emph on
161 isomath
162 \emph default
163  or 
164 \emph on
165 fixmath
166 \emph default
167 ).
168 \end_layout
169
170 \begin_layout Quote
171 Accents in Text
172 \end_layout
173
174 \begin_deeper
175 \begin_layout Standard
176 With the following commands all letters can be accented.
177  The commands must be inserted in \SpecialChar TeX
178  mode.
179 \end_layout
180
181 \begin_layout Standard
182 \begin_inset space \hfill{}
183 \end_inset
184
185
186 \begin_inset Tabular
187 <lyxtabular version="3" rows="8" columns="2">
188 <features booktabs="true" tabularvalignment="middle">
189 <column alignment="left" valignment="top" width="0pt">
190 <column alignment="block" valignment="top">
191 <row>
192 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
193 \begin_inset Text
194
195 \begin_layout Plain Layout
196 Command
197 \end_layout
198
199 \end_inset
200 </cell>
201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
202 \begin_inset Text
203
204 \begin_layout Plain Layout
205 Result
206 \end_layout
207
208 \end_inset
209 </cell>
210 </row>
211 <row>
212 <cell alignment="left" valignment="top" leftline="true" usebox="none">
213 \begin_inset Text
214
215 \begin_layout Plain Layout
216
217 \backslash
218
219 \begin_inset Quotes grd
220 \end_inset
221
222 e
223 \end_layout
224
225 \end_inset
226 </cell>
227 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
228 \begin_inset Text
229
230 \begin_layout Plain Layout
231 \begin_inset ERT
232 status collapsed
233
234 \begin_layout Plain Layout
235
236
237 \backslash
238 "e
239 \end_layout
240
241 \end_inset
242
243
244 \end_layout
245
246 \end_inset
247 </cell>
248 </row>
249 <row>
250 <cell alignment="left" valignment="top" leftline="true" usebox="none">
251 \begin_inset Text
252
253 \begin_layout Plain Layout
254
255 \backslash
256 `e
257 \end_layout
258
259 \end_inset
260 </cell>
261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
262 \begin_inset Text
263
264 \begin_layout Plain Layout
265 \begin_inset ERT
266 status collapsed
267
268 \begin_layout Plain Layout
269
270
271 \backslash
272 `e
273 \end_layout
274
275 \end_inset
276
277
278 \end_layout
279
280 \end_inset
281 </cell>
282 </row>
283 <row>
284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
285 \begin_inset Text
286
287 \begin_layout Plain Layout
288
289 \backslash
290 ^
291 \begin_inset space \textvisiblespace{}
292 \end_inset
293
294 e
295 \end_layout
296
297 \end_inset
298 </cell>
299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
300 \begin_inset Text
301
302 \begin_layout Plain Layout
303 \begin_inset ERT
304 status collapsed
305
306 \begin_layout Plain Layout
307
308
309 \backslash
310 ^e
311 \end_layout
312
313 \end_inset
314
315
316 \end_layout
317
318 \end_inset
319 </cell>
320 </row>
321 <row>
322 <cell alignment="left" valignment="top" leftline="true" usebox="none">
323 \begin_inset Text
324
325 \begin_layout Plain Layout
326
327 \backslash
328 =e
329 \end_layout
330
331 \end_inset
332 </cell>
333 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
334 \begin_inset Text
335
336 \begin_layout Plain Layout
337 \begin_inset ERT
338 status collapsed
339
340 \begin_layout Plain Layout
341
342
343 \backslash
344 =e
345 \end_layout
346
347 \end_inset
348
349
350 \end_layout
351
352 \end_inset
353 </cell>
354 </row>
355 <row>
356 <cell alignment="left" valignment="top" leftline="true" usebox="none">
357 \begin_inset Text
358
359 \begin_layout Plain Layout
360
361 \backslash
362 u
363 \begin_inset space \textvisiblespace{}
364 \end_inset
365
366 e
367 \end_layout
368
369 \end_inset
370 </cell>
371 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
372 \begin_inset Text
373
374 \begin_layout Plain Layout
375 \begin_inset ERT
376 status collapsed
377
378 \begin_layout Plain Layout
379
380
381 \backslash
382 u e
383 \end_layout
384
385 \end_inset
386
387
388 \end_layout
389
390 \end_inset
391 </cell>
392 </row>
393 <row>
394 <cell alignment="left" valignment="top" leftline="true" usebox="none">
395 \begin_inset Text
396
397 \begin_layout Plain Layout
398
399 \backslash
400 b
401 \begin_inset space \textvisiblespace{}
402 \end_inset
403
404 e
405 \end_layout
406
407 \end_inset
408 </cell>
409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
410 \begin_inset Text
411
412 \begin_layout Plain Layout
413 \begin_inset ERT
414 status collapsed
415
416 \begin_layout Plain Layout
417
418
419 \backslash
420 b e
421 \end_layout
422
423 \end_inset
424
425
426 \end_layout
427
428 \end_inset
429 </cell>
430 </row>
431 <row>
432 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
433 \begin_inset Text
434
435 \begin_layout Plain Layout
436
437 \backslash
438 t
439 \begin_inset space \textvisiblespace{}
440 \end_inset
441
442 ee
443 \end_layout
444
445 \end_inset
446 </cell>
447 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
448 \begin_inset Text
449
450 \begin_layout Plain Layout
451 \begin_inset ERT
452 status collapsed
453
454 \begin_layout Plain Layout
455
456
457 \backslash
458 t ee
459 \end_layout
460
461 \end_inset
462
463
464 \end_layout
465
466 \end_inset
467 </cell>
468 </row>
469 </lyxtabular>
470
471 \end_inset
472
473
474 \begin_inset space \hfill{}
475 \end_inset
476
477
478 \begin_inset Tabular
479 <lyxtabular version="3" rows="8" columns="2">
480 <features booktabs="true" tabularvalignment="middle">
481 <column alignment="left" valignment="top" width="0pt">
482 <column alignment="center" valignment="top">
483 <row>
484 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
485 \begin_inset Text
486
487 \begin_layout Plain Layout
488 Command
489 \end_layout
490
491 \end_inset
492 </cell>
493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
494 \begin_inset Text
495
496 \begin_layout Plain Layout
497 Result
498 \end_layout
499
500 \end_inset
501 </cell>
502 </row>
503 <row>
504 <cell alignment="left" valignment="top" leftline="true" usebox="none">
505 \begin_inset Text
506
507 \begin_layout Plain Layout
508
509 \backslash
510 H
511 \begin_inset space \textvisiblespace{}
512 \end_inset
513
514 e
515 \end_layout
516
517 \end_inset
518 </cell>
519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
520 \begin_inset Text
521
522 \begin_layout Plain Layout
523 \begin_inset ERT
524 status collapsed
525
526 \begin_layout Plain Layout
527
528
529 \backslash
530 H e
531 \end_layout
532
533 \end_inset
534
535
536 \end_layout
537
538 \end_inset
539 </cell>
540 </row>
541 <row>
542 <cell alignment="left" valignment="top" leftline="true" usebox="none">
543 \begin_inset Text
544
545 \begin_layout Plain Layout
546
547 \backslash
548 'e
549 \end_layout
550
551 \end_inset
552 </cell>
553 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
554 \begin_inset Text
555
556 \begin_layout Plain Layout
557 \begin_inset ERT
558 status collapsed
559
560 \begin_layout Plain Layout
561
562
563 \backslash
564 'e
565 \end_layout
566
567 \end_inset
568
569
570 \end_layout
571
572 \end_inset
573 </cell>
574 </row>
575 <row>
576 <cell alignment="left" valignment="top" leftline="true" usebox="none">
577 \begin_inset Text
578
579 \begin_layout Plain Layout
580
581 \backslash
582 ~e
583 \begin_inset Index idx
584 status collapsed
585
586 \begin_layout Plain Layout
587 Tilde
588 \end_layout
589
590 \end_inset
591
592
593 \end_layout
594
595 \end_inset
596 </cell>
597 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
598 \begin_inset Text
599
600 \begin_layout Plain Layout
601 \begin_inset ERT
602 status collapsed
603
604 \begin_layout Plain Layout
605
606
607 \backslash
608 ~e
609 \end_layout
610
611 \end_inset
612
613
614 \end_layout
615
616 \end_inset
617 </cell>
618 </row>
619 <row>
620 <cell alignment="left" valignment="top" leftline="true" usebox="none">
621 \begin_inset Text
622
623 \begin_layout Plain Layout
624
625 \backslash
626 .e
627 \end_layout
628
629 \end_inset
630 </cell>
631 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
632 \begin_inset Text
633
634 \begin_layout Plain Layout
635 \begin_inset ERT
636 status collapsed
637
638 \begin_layout Plain Layout
639
640
641 \backslash
642 .e
643 \end_layout
644
645 \end_inset
646
647
648 \end_layout
649
650 \end_inset
651 </cell>
652 </row>
653 <row>
654 <cell alignment="left" valignment="top" leftline="true" usebox="none">
655 \begin_inset Text
656
657 \begin_layout Plain Layout
658
659 \backslash
660 v
661 \begin_inset space \textvisiblespace{}
662 \end_inset
663
664 e
665 \end_layout
666
667 \end_inset
668 </cell>
669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
670 \begin_inset Text
671
672 \begin_layout Plain Layout
673 \begin_inset ERT
674 status collapsed
675
676 \begin_layout Plain Layout
677
678
679 \backslash
680 v e
681 \end_layout
682
683 \end_inset
684
685
686 \end_layout
687
688 \end_inset
689 </cell>
690 </row>
691 <row>
692 <cell alignment="left" valignment="top" leftline="true" usebox="none">
693 \begin_inset Text
694
695 \begin_layout Plain Layout
696
697 \backslash
698 d
699 \begin_inset space \textvisiblespace{}
700 \end_inset
701
702 e
703 \end_layout
704
705 \end_inset
706 </cell>
707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
708 \begin_inset Text
709
710 \begin_layout Plain Layout
711 \begin_inset ERT
712 status collapsed
713
714 \begin_layout Plain Layout
715
716
717 \backslash
718 d e
719 \end_layout
720
721 \end_inset
722
723
724 \end_layout
725
726 \end_inset
727 </cell>
728 </row>
729 <row>
730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
731 \begin_inset Text
732
733 \begin_layout Plain Layout
734
735 \backslash
736 c
737 \begin_inset space \textvisiblespace{}
738 \end_inset
739
740 e
741 \end_layout
742
743 \end_inset
744 </cell>
745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
746 \begin_inset Text
747
748 \begin_layout Plain Layout
749 \begin_inset ERT
750 status collapsed
751
752 \begin_layout Plain Layout
753
754
755 \backslash
756 c e
757 \end_layout
758
759 \end_inset
760
761
762 \end_layout
763
764 \end_inset
765 </cell>
766 </row>
767 </lyxtabular>
768
769 \end_inset
770
771
772 \begin_inset space \hfill{}
773 \end_inset
774
775
776 \end_layout
777
778 \begin_layout Standard
779 \begin_inset VSpace medskip
780 \end_inset
781
782 With the command 
783 \series bold
784
785 \backslash
786 t
787 \series default
788  also two different characters can be accented.
789  The command 
790 \series bold
791
792 \backslash
793 t
794 \begin_inset space \textvisiblespace{}
795 \end_inset
796
797 sz
798 \series default
799  creates: 
800 \begin_inset ERT
801 status collapsed
802
803 \begin_layout Plain Layout
804
805
806 \backslash
807 t sz
808 \end_layout
809
810 \end_inset
811
812
813 \end_layout
814
815 \end_deeper
816 \begin_layout Standard
817 Examples for accented characters missing in Latin Modern:
818 \end_layout
819
820 \begin_layout Standard
821
822 \family typewriter
823
824 \backslash
825 t
826 \family default
827  leads to 0x0361 COMBINING DOUBLE INVERTED BREVE (ligature tie) and
828 \end_layout
829
830 \begin_layout Standard
831 Missing character: There is no ͡ in font [lmroman12-regular]:mapping=tex-text!
832  
833 \end_layout
834
835 \begin_layout Standard
836
837 \family typewriter
838
839 \backslash
840 c e
841 \family default
842  leads to 0229 LATIN SMALL LETTER E WITH CEDILLA and
843 \end_layout
844
845 \begin_layout Standard
846 Missing character: There is no ȩ in font [lmroman12-regular]:mapping=tex-text!
847  
848 \end_layout
849
850 \begin_layout Standard
851 Using a different non-tex font is not recommended for the 
852 \begin_inset Quotes eld
853 \end_inset
854
855 Math
856 \begin_inset Quotes erd
857 \end_inset
858
859  manual, because TeX-Maths uses Computer Modern which matches with Latin
860  Modern and looks suboptimal with other fonts.
861  
862 \end_layout
863
864 \begin_layout Standard
865 OTOH, examples for ERT commands to get accented text letters are not really
866  helpfull in a mathematics documentation even when mathematical text can
867  be (ab)used to get them.
868 \end_layout
869
870 \begin_layout Standard
871 BTW: If keeping them, the following parts of Math.lyx should be corrected
872 \end_layout
873
874 \begin_layout Labeling
875 \labelwidthstring 00
876 \noindent
877 - The accents 
878 \series bold
879 `
880 \series default
881  , 
882 \series bold
883 '
884 \series default
885  and 
886 \series bold
887 ^
888 \series default
889  can in combination with vowels directly be inserted with the keyboard without
890  using \SpecialChar TeX
891  mode.
892  The same applies for the tilde
893 \begin_inset Foot
894 status collapsed
895
896 \begin_layout Plain Layout
897 This only applies for keyboards where the tilde is defined as accent.
898 \end_layout
899
900 \end_inset
901
902  
903 \series bold
904 ~
905 \series default
906  in combination with 
907 \emph on
908 a
909 \emph default
910  , 
911 \emph on
912 n
913 \emph default
914  , or 
915 \emph on
916 o
917 \emph default
918 .
919 \end_layout
920
921 \begin_layout Labeling
922 \labelwidthstring 00
923 + If the keyboard defines them as 
924 \begin_inset Quotes eld
925 \end_inset
926
927 dead keys
928 \begin_inset Quotes erd
929 \end_inset
930
931 , the accents 
932 \series bold
933 `
934 \series default
935  , 
936 \series bold
937 '
938 \series default
939 , ^, and ~  can in combination with supported characters directly be inserted
940  with the keyboard without using \SpecialChar TeX
941  mode.
942 \end_layout
943
944 \begin_layout Labeling
945 \labelwidthstring 00
946 - The commands 
947 \series bold
948
949 \backslash
950 b
951 \series default
952  , 
953 \series bold
954
955 \backslash
956 c
957 \series default
958  , 
959 \series bold
960
961 \backslash
962 d
963 \series default
964  , 
965 \series bold
966
967 \backslash
968 H
969 \series default
970  , 
971 \series bold
972
973 \backslash
974 t
975 \series default
976  , 
977 \series bold
978
979 \backslash
980 u
981 \series default
982  , 
983 \series bold
984
985 \backslash
986 v
987 \series default
988  and accents that are inserted directly with the keyboard are also available
989  in mathematical text.
990  
991 \end_layout
992
993 \begin_layout Labeling
994 \labelwidthstring 00
995 + Like any LaTeX commands,
996 \series bold
997  
998 \backslash
999 b
1000 \series default
1001  , 
1002 \series bold
1003
1004 \backslash
1005 c
1006 \series default
1007  , 
1008 \series bold
1009
1010 \backslash
1011 d
1012 \series default
1013  , 
1014 \series bold
1015
1016 \backslash
1017 H
1018 \series default
1019  , 
1020 \series bold
1021
1022 \backslash
1023 t
1024 \series default
1025  , 
1026 \series bold
1027
1028 \backslash
1029 u
1030 \series default
1031  , 
1032 \series bold
1033
1034 \backslash
1035 v
1036 \series default
1037  are available in mathematical text without the need to wrap them in a 
1038 \begin_inset Quotes eld
1039 \end_inset
1040
1041 TeX Code
1042 \begin_inset Quotes erd
1043 \end_inset
1044
1045  (ERT) inset .
1046 \end_layout
1047
1048 \end_body
1049 \end_document