summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html
blob: c5fe6c0384c238fb963d4af5b421aa56204b9ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" />
<title>textalpha.sty</title>
<meta name="copyright" content="© 2010 Günter Milde" />
<style type="text/css">

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.

See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
  border: 0 }

table.borderless td, table.borderless th {
  /* Override padding for "table.docutils td" with "! important".
     The right padding separates the table cells. */
  padding: 0 0.5em 0 0 ! important }

.first {
  /* Override more specific margin styles with "! important". */
  margin-top: 0 ! important }

.last, .with-subtitle {
  margin-bottom: 0 ! important }

.hidden {
  display: none }

a.toc-backref {
  text-decoration: none ;
  color: black }

blockquote.epigraph {
  margin: 2em 5em ; }

dl.docutils dd {
  margin-bottom: 0.5em }

object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
  overflow: hidden;
}

/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
  font-weight: bold }
*/

div.abstract {
  margin: 2em 5em }

div.abstract p.topic-title {
  font-weight: bold ;
  text-align: center }

div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
  margin: 2em ;
  border: medium outset ;
  padding: 1em }

div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
  font-weight: bold ;
  font-family: sans-serif }

div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
  color: red ;
  font-weight: bold ;
  font-family: sans-serif }

/* Uncomment (and remove this text!) to get reduced vertical space in
   compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
  margin-bottom: 0.5em }

div.compound .compound-last, div.compound .compound-middle {
  margin-top: 0.5em }
*/

div.dedication {
  margin: 2em 5em ;
  text-align: center ;
  font-style: italic }

div.dedication p.topic-title {
  font-weight: bold ;
  font-style: normal }

div.figure {
  margin-left: 2em ;
  margin-right: 2em }

div.footer, div.header {
  clear: both;
  font-size: smaller }

div.line-block {
  display: block ;
  margin-top: 1em ;
  margin-bottom: 1em }

div.line-block div.line-block {
  margin-top: 0 ;
  margin-bottom: 0 ;
  margin-left: 1.5em }

div.sidebar {
  margin: 0 0 0.5em 1em ;
  border: medium outset ;
  padding: 1em ;
  background-color: #ffffee ;
  width: 40% ;
  float: right ;
  clear: right }

div.sidebar p.rubric {
  font-family: sans-serif ;
  font-size: medium }

div.system-messages {
  margin: 5em }

div.system-messages h1 {
  color: red }

div.system-message {
  border: medium outset ;
  padding: 1em }

div.system-message p.system-message-title {
  color: red ;
  font-weight: bold }

div.topic {
  margin: 2em }

h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
  margin-top: 0.4em }

h1.title {
  text-align: center }

h2.subtitle {
  text-align: center }

hr.docutils {
  width: 75% }

img.align-left, .figure.align-left, object.align-left {
  clear: left ;
  float: left ;
  margin-right: 1em }

img.align-right, .figure.align-right, object.align-right {
  clear: right ;
  float: right ;
  margin-left: 1em }

img.align-center, .figure.align-center, object.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.align-left {
  text-align: left }

.align-center {
  clear: both ;
  text-align: center }

.align-right {
  text-align: right }

/* reset inner alignment in figures */
div.align-right {
  text-align: inherit }

/* div.align-center * { */
/*   text-align: left } */

ol.simple, ul.simple {
  margin-bottom: 1em }

ol.arabic {
  list-style: decimal }

ol.loweralpha {
  list-style: lower-alpha }

ol.upperalpha {
  list-style: upper-alpha }

ol.lowerroman {
  list-style: lower-roman }

ol.upperroman {
  list-style: upper-roman }

p.attribution {
  text-align: right ;
  margin-left: 50% }

p.caption {
  font-style: italic }

p.credits {
  font-style: italic ;
  font-size: smaller }

p.label {
  white-space: nowrap }

p.rubric {
  font-weight: bold ;
  font-size: larger ;
  color: maroon ;
  text-align: center }

p.sidebar-title {
  font-family: sans-serif ;
  font-weight: bold ;
  font-size: larger }

p.sidebar-subtitle {
  font-family: sans-serif ;
  font-weight: bold }

p.topic-title {
  font-weight: bold }

pre.address {
  margin-bottom: 0 ;
  margin-top: 0 ;
  font: inherit }

pre.literal-block, pre.doctest-block, pre.math, pre.code {
  margin-left: 2em ;
  margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}

span.classifier {
  font-family: sans-serif ;
  font-style: oblique }

span.classifier-delimiter {
  font-family: sans-serif ;
  font-weight: bold }

span.interpreted {
  font-family: sans-serif }

span.option {
  white-space: nowrap }

span.pre {
  white-space: pre }

span.problematic {
  color: red }

span.section-subtitle {
  /* font-size relative to parent (h1..h6 element) */
  font-size: 80% }

table.citation {
  border-left: solid 1px gray;
  margin-left: 1px }

table.docinfo {
  margin: 2em 4em }

table.docutils {
  margin-top: 0.5em ;
  margin-bottom: 0.5em }

table.footnote {
  border-left: solid 1px black;
  margin-left: 1px }

table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
  padding-left: 0.5em ;
  padding-right: 0.5em ;
  vertical-align: top }

table.docutils th.field-name, table.docinfo th.docinfo-name {
  font-weight: bold ;
  text-align: left ;
  white-space: nowrap ;
  padding-left: 0 }

/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
  border: 0px;
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-collapse: collapse;
}
table.docutils.booktabs * {
  border: 0px;
}
table.docutils.booktabs th {
  border-bottom: thin solid;
  text-align: left;
}

h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  font-size: 100% }

ul.auto-toc {
  list-style-type: none }

</style>
<style type="text/css">

/* html4css2.css: Cascading style sheet for Docutils' html4strict writer.   */
/*                                                                          */
/* :Author: Günter Milde                                                    */
/* :Copyright: © 2009 Günter Milde.                                         */
/*             Released  without warranties or conditions of any kind       */
/*             under the terms of the Apache License, Version 2.0           */
/*          http://www.apache.org/licenses/LICENSE-2.0                      */
/*                                                                          */
/* This stylesheet supplements the Docutils standard style 'html4css1.css'. */
/* It uses CSS 2.1 elements (supported by up-to-date versions of popular    */
/* browsers).                                                               */

/* General rules */
/* ============= */

body {
  padding: 0 5%;
  margin: 8px 0;
  line-height:1.3;
  /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/
  recommends "line-spacing that’s at least 140% of your text size" */
  counter-reset: table;
  /* counter-reset: figure; */
}

/* avoid long lines --> better reading */
/* OTOH: lines should not be too short because of missing hyphenation, */
div.document {
  max-width: 45em;
  margin: auto;
}

/* separate items except for compact lists */
dl > dd {
  margin-bottom: 1em;
}
.compact li, .compact p, .compact ul, .compact ol
dl.simple  > dd, .simple  li, .simple  p, .simple  ul, .simple  ol {
  margin-top: 0;
  margin-bottom: 0;
/*   background: magenta; */
}
dl.simple, dl.compact, dl.simple > dd, dl.compact > dd {
  margin-top: 0;
  margin-bottom: 0;
/*   background: lightgreen; */
}

/* space around paragraphs */
dl > dd p:first-child, td > p {
  margin: 0;
}

/* Sidebar */
/* ------- */

div.sidebar {
  margin-right: -5%;
}

/* Special definition lists */
/* ======================== */

/* bold definition term on the same line as the label */
dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt,
dl.footnote > dt, dl.citation > dt, dl.description > dt {
  clear: left;
  float: left;
  margin: 0;
  padding: 0;
  padding-right: 0.5em;
  font-weight: bold;
}
/* except for these */
dl.option-list > dt, dl.footnote > dt {
  font-weight: normal;
}



/* Field Lists */
/* ----------- */

/* field names followed by a colon */
dl.field-list > dt:after, dl.docinfo > dt:after {
  content: ":";
}

/* Offset for field content (corresponds to the --field-name-limit option) */
dl.field-list > dd {
  margin-left:  9em; /* ca. 14 chars in the test examples */
  padding-left: 0.5em;
}

/* start field-body on a new line after long field names */
dl.field-list > dd p {
  width: 100%;
/*   display: inline-block; */
/*   background: yellow; */
}

dl.field-list > dd > p:first-child,
/* dl.field-list > dd > ol:first-child, */
/* dl.field-list > dd > ul:first-child, */
dl.field-list > dd > dl:first-child {
  display: inline-block;
}

/* field-list variants:: */

/* example for custom field-name width */
dl.field-list.narrow > dd {
  margin-left: 5em;
}

/* start field-body on same line after long field names */
dl.field-list.run-in > dd p {
  display: block;
}

/* wrap or truncate long field names */
dl.field-list.fix-labelwidth > dt {
  width: 8em; /* set to dl.field-list > dd margin-left - padding-left */
  overflow: hidden;
}
dl.field-list.fix-labelwidth > dd:after {
  /* a "stopper" to prevent next dd floating up too far */
  content: '';
  display: block;
  clear: left;
}

/* docinfo */

dl.docinfo > dd {
  margin-left: 8em;
/*   margin-bottom: 0.5em; */
}


/* option list */

dl.option-list {
  margin-left: 1em;
  padding-left: 0;
}

dl.option-list > dd {
  margin-left: 8em;
  /* margin-bottom: 0.5em; */
}

/* start description on a new line after long options */
dl.option-list > dd p {
  width: 100%;
  display: inline-block;
}

/* footnotes */

a.footnote-reference, a.fn-backref {
  text-decoration: inherit; /* do not underline footnote links */
}

dl.footnote {
  /* line on the left */
  padding-left: 1ex;
  border-left: solid;
  border-left-width: thin;
  /* border-color: black; */
}

/* paragraph on same line as backrefs */
dd > em {
/*   background: green; */
  float: left;
  margin-right: 1ex
}


/*
Ordered List (Enumeration)
--------------------------

Use counters to replace the deprecated start attribute. Make sure the
resulting list resembles the list-style 'outside' with a hanging indent.
*/

/* New ordered list: reset counter, suppress the default label */
ol, ol.arabic, ol.loweralpha, ol.upperalpha,
ol.lowerroman, ol.upperroman {
  counter-reset: item;
  list-style: none
}

/* Set the negative indent of the list label as feature of the list item */
ol > li {
  text-indent: -40px; /* Mozillas default indent */
}
/* reset for child elements */
ol > li > * {
  text-indent: 0px;
  text-indent: 0;
  margin-top: 0;
  /* background: lightgreen; */
}

/* Label */
ol > li:before {
  /* increment and typeset counter(s), */
  counter-increment: item;
  content: counter(item) ".";
  /* display next to the content (aligned top-right), */
  display: inline-block;
  text-align: right;
  vertical-align: top;
  /* sum must match ol>li {text-indent:} (40px is Mozillas default) */
  width: 35px;
  padding-right: 5px;
/*   background: yellow; */
}

/* The list item's first line starts next to the label, without indent */
ol > li > p:first-child,
ol > li > ol:first-child,
ol > li > ul:first-child,
ol > li > dl:first-child {
  display: inline-block;
  /* background: lightblue; */
}

/* default separator variants */
ol.loweralpha > li:before {
  content: counter(item, lower-alpha) ")";
}
ol.upperalpha  > li:before {
  content: counter(item, upper-alpha) ".";
}
ol.lowerroman  > li:before {
  content: "(" counter(item, lower-roman) ")";
}
ol.upperroman  > li:before {
  content: counter(item, upper-roman) ")";
}
/* nested counters (1, 1.1, 1.1.1, etc) */
/* nested enumerated lists "inherit" the class attribute, other lists not */
ol.nested > li:before, ol.nested  ol > li:before {
  content: counters(item, ".") " ";
}

/* lists nested in definition list */

dd > ul, dd > ol {
  padding-left: 0pt;
}

/* TODO: prefix, suffix? */

/* smaller font for super- and subscripts */
/* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */


/* Tables */
/* ====== */

/* margins and borders for "normal" tables */
table {
/*   background: magenta; */
  margin-top: 1em ;
  margin-bottom: 1em;
/*   border-style: outset; */
  border-style: solid;
  border-color: silver;
  border-width: thin;
  border-collapse: collapse;
}
blockquote > table {
  margin-top: 0em ;
  margin-bottom: 0em;
}

td, th {
  border-style: solid;
  border-width: thin;
  border-color: silver;
  /* text-align: left; */
  padding: 0 1ex;
}

td > p:first-child, th > p:first-child {
  margin-top: 0;
}
td > p, th > p {
  margin-bottom: 0;
}

/* no borders for "borderless" tables */
table.borderless, table.borderless * {
  border-style: none;
}

/* "booktabs" style (no vertical lines) */
table.booktabs {
  border: 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-collapse: collapse;
}

table.booktabs * {
  border: 0;
}
table.booktabs th {
  border-bottom: thin solid;
  text-align: left;
}

table > caption {
  text-align: left;
  margin-bottom: 0.25em
/*   padding: 2em 0 1em 0; */
}

/* numbered tables*/
table.numbered > caption:before {
  counter-increment: table; /* defined/re-set in body */
  content: "Table " counter(table) ": ";
  font-weight: bold;
}


/* literal text
   ------------
*/
/* whitespace and wrapping in inline literals */
/* possible values: normal, nowrap, pre, pre-wrap, pre-line */
tt.literal {
  white-space: pre-wrap;
}

/* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */
/* pre.literal-block, pre.doctest-block {				     */
/*   margin-top: 0em ;							     */
/* }									     */

/* Table of Contents */

/* don't indent like a topic */
div.topic.contents {
  margin: 0;
}
/* div.topic.contents ul { */
/*   list-style: none;	   */
/*   }			   */

div.topic.contents a {
  text-decoration: none; /* no underline for links */
}

/* section numbers */

span.sectnum {
  padding-right: 1ex;
}

/* admonitions */

/* no padding for top and bottom */
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
  padding: 0px 1em }

</style>
</head>
<body>
<div class="document" id="textalpha-sty">
<h1 class="title">textalpha.sty</h1>
<h2 class="subtitle" id="greek-symbols-in-text">Greek symbols in text</h2>

<dl class="docinfo">
<dt class="copyright">Copyright</dt>
<dd class="copyright">© 2010 Günter Milde</dd>
<dt>Licence</dt>
<dd><p>This work may be distributed and/or modified under the
conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either
version&nbsp;1.3 of this license or any later version.</p>
</dd>
<dt>Identification</dt>
<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{textalpha}
[2014/12/12 v0.12 macros for Greek letters in text]
</pre>
</dd>
</dl>
<div class="abstract topic">
<p class="topic-title first">Abstract</p>
<p>Provide a set of <tt class="literal">\text*</tt> macros for Greek characters
in text mode.</p>
</div>
<div class="note">
<p class="admonition-title">Note</p>
<p>The package was renamed from <cite>textgreek</cite> to <cite>textalpha</cite> to prevent
confusion with the <a class="reference external" href="http://www.ctan.org/pkg/textgreek">textgreek</a> package by Leonard Michlmayr.</p>
</div>
<dl class="docutils">
<dt>Changelog:</dt>
<dd><table class="borderless">
<colgroup>
<col width="14%" />
<col width="7%" />
<col width="79%" />
</colgroup>
<tbody>
<tr><td><p>2010-06-16</p></td>
<td><p>0.1</p></td>
<td><p>initial version</p></td>
</tr>
<tr><td><p>2012-06-27</p></td>
<td><p>0.2</p></td>
<td><p>support for compound Unicode definitions outside LGR</p></td>
</tr>
<tr><td><p>2013-05-03</p></td>
<td><p>0.3</p></td>
<td><p>new accent macro names with <tt class="literal">lgrxenc.def</tt> 0.7</p></td>
</tr>
<tr><td><p>2013-05-28</p></td>
<td><p>0.4</p></td>
<td><p>use <tt class="literal">lgrenc.def</tt> from greek-fontenc.</p></td>
</tr>
<tr><td><p>2013-09-11</p></td>
<td><p>0.5</p></td>
<td><p>move to <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>,</p></td>
</tr>
<tr><td><!--  -->
</td>
<td>&nbsp;</td>
<td><p>support XeTeX/LuaTeX, add breve below accents.</p></td>
</tr>
<tr><td><p>2013-11-28</p></td>
<td><p>0.11</p></td>
<td><p>compatibility with Xe/LuaTeX in 8-bit mode.</p></td>
</tr>
<tr><td><p>2014-12-12</p></td>
<td><p>0.12</p></td>
<td><p>fix auxiliary macro names,
define symbol macros for breathing accents.</p></td>
</tr>
</tbody>
</table>
</dd>
</dl>
<div class="section" id="motivation">
<h1>Motivation</h1>
<p>By default, TeX macros for Greek letters are only valid in mathematical
mode. This package sets up a suitable font encoding and Greek LICR
definitions (<tt class="literal">\textalpha</tt> – <tt class="literal">\textOmega</tt>).</p>
<p>To allow documents using Greek LICR macros without worrying about the TeX
engine used to compile them, this package tests the declared font encodings
and does “the right thing” to set up Greek text font support:</p>
<ul>
<li><p>If the Unicode font encodings EU1 (XeTeX) or EU2 (LuaTeX) are declared,
before loading this package (e.g. vie <tt class="literal">fontspec</tt>) the package provides
Greek LICR definitions for them.</p></li>
<li><p>If the LGR font encoding is declared before loading this package, it is
set as default for Greek LICR macros (cf. <a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a> section 5.3).</p>
<p>With XeTeX or LuaTex, Unicode fonts and LGR encoded 8-bit fonts can be
used in the same document (see <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a>).</p>
</li>
</ul>
<p>Advantages:</p>
<ul class="simple">
<li><p>Symbols from a Greek text font (e.g. the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a>) can be accessed
without the need for an explicite font-encoding switch anywhere in the
text.</p></li>
<li><p>Unicode input of Greek characters is supported</p>
<ul>
<li><p>via <tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> and <tt class="literal">lgrenc.dfu</tt> from
<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a> for 8-bit TeX or XeTeX/LuaTeX in 8-bit compatibility
mode in any font encoding (see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a>).</p></li>
<li><p>natively by XeTeX/LuaTeX for Unicode fonts. As <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a> does not work
with these engines, text input can be done via the Latin transcription
or LICR but <em>not via literal Unicode characters</em> for 8-bit font encodings
like LGR (see <a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a>).</p></li>
</ul>
</li>
</ul>
<div class="attention">
<p class="admonition-title">Attention!</p>
<p>The macros work well in any font encoding for single symbols.
However, with 8-bit TeX engines, the automatic font-encoding switches
behind the doors interfere with kerning between letters and replacement
of accent+character with a pre-composed character.</p>
<p>Therefore, Greek text should be written with the help of <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> or
<a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <tt class="literal">greek</tt>) or wrapped in the
provided <tt class="literal">ensuregreek</tt> macro.  Using <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> or <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> also helps
to ensure correct hyphenation of Greek text.</p>
</div>
</div>
<div class="section" id="usage">
<h1>Usage</h1>
<pre class="code latex literal-block"><span class="keyword">\usepackage</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span>
</pre>
<p>For detailled examples see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a> and <a class="reference external" href="textalpha-doc.pdf">textalpha-doc.pdf</a>
(8-bit TeX and XeTeX/LuaTeX in 8-bit compatibility mode) as well as
<a class="reference external" href="greek-euenc-doc.tex">greek-euenc-doc.tex</a> and <a class="reference external" href="greek-euenc-doc.pdf">greek-euenc-doc.pdf</a> (XeTeX/LuaTeX with
Unicode fonts).</p>
</div>
<div class="section" id="implementation">
<h1>Implementation</h1>
<div class="section" id="requirements">
<h2>Requirements</h2>
<p>With XeTeX or LuaTeX, there is one common input and font encoding –
Unicode. 8-bit TeX&nbsp;font&nbsp;encodings are only used in compatibility mode or for
fonts not available otherwise. For compatibility with the LaTeX font
selection system, the package <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> defines the (pseudo) font encodings EU1
and EU2 for XeTeX and LuaTeX respectively. However euenc does not (yet)
define LICR macros. We therefore explicitely load Greek LICR definitions for
XeTeX/LuaTeX from <a class="reference external" href="greek-euenc.def.html">greek-euenc.def</a> which in turn
includes <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a>.</p>
<p>With 8-bit LaTeX, the LGR font encoding is used for Greek characters. If no
Greek-supporting font encoding (EU1, EU2, or LGR) is declared, LGR is loaded
and set up as default Greek font encoding by this package.</p>
<p>To give <tt class="literal">textalpha.sty</tt> a chance of finding out which font encodings are
used, load it after <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> and/or <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>.</p>
<div class="section" id="font-encodings">
<h3>Font encodings</h3>
<p>Ensure a Greek-supporting font encoding exists and supports Greek LICR
macros:</p>
<p>Load the Greek LICR definitions for Unicode if font encoding EU1 (XeTeX) or
EU2 (LuaTeX) is detected.<a class="footnote-reference" href="#eu" id="id1"><sup>1</sup></a> In an ideal world, this would be done in
the <tt class="literal">eu1enc.def</tt> (or <tt class="literal">eu2enc.def</tt>) file of the <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> package. If none
of EU1, EU2, and LGR is declared, load <tt class="literal">lgrenc.def</tt>:</p>
<p>Re-set the <tt class="literal">\LastDeclaredEncoding</tt>: Because fontenc loads font
encoding definition files only once, it may happen that another font
encoding is defined afterwards — for example <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> leaves
<tt class="literal">\LastDeclaredEncoding</tt> at <tt class="literal">T3</tt> (tipa), because it inputs the <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a>
package which in turn loads <tt class="literal">t3enc.def</tt>.</p>
<pre class="literal-block">\&#64;ifl&#64;aded{def}{eu1enc}{
  \renewcommand{\LastDeclaredEncoding}{EU1}
  \input{greek-euenc.def}
}{% else
  \&#64;ifl&#64;aded{def}{eu2enc}{
    \renewcommand{\LastDeclaredEncoding}{EU2}
    \input{greek-euenc.def}
  }{% else
    \&#64;ifl&#64;aded{def}{lgrenc}{
      % LGR already declared and set up
    }{
      \input{lgrenc.def}
    }
  }
}
</pre>
<dl class="footnote"><dt class="label"><a class="fn-backref" href="#id1">1</a></dt>
<dd id="eu">
<p class="first last">The two different (pseudo) font encodings allow different font setups for
XeTeX vs. LuaTeX using differently named <tt class="literal">*.fd</tt> files (see <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> for
details).</p>
</dd>
</dl>
<p>The package <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> defines the PU font encoding which also supports
(monotonic) Greek. It currently misses polytonic greek and the
<tt class="literal">\greekscript</tt> and <tt class="literal">\ensuregreek</tt> TextCommands:</p>
<pre class="literal-block">\&#64;ifl&#64;aded{def}{puenc}
  {\ProvideTextCommand{\greekscript}{PU}{}
   \ProvideTextCommand{\ensuregreek}{PU}[1]{#1}}
  {}
</pre>
</div>
<div class="section" id="symbol-macros-for-breathings">
<h3>Symbol macros for breathings</h3>
<p>In the Latin transcription provided by LGR, breathing accents (Dasia and
Psili) are input as &lt; and &gt;. We provide the corresponding NFSS macro accents
(moved here from <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a>).</p>
<p>As Xe/LuaTeX may use LGR in combination with EU1 or EU2, we define the
macros for both, LGR and Unicode font encodings (if they are defined):</p>
<pre class="literal-block">\&#64;ifl&#64;aded{def}{lgrenc}{
  \DeclareTextCommand{\&lt;}{LGR}{\accdasia}
  \DeclareTextCommand{\&gt;}{LGR}{\accpsili}
  % Composite accents starting with the new-defined shortcuts:
  \DeclareTextCompositeCommand{\&gt;}{LGR}{'}{\accpsilioxia}
  \DeclareTextCompositeCommand{\&gt;}{LGR}{`}{\accpsilivaria}
  \DeclareTextCompositeCommand{\&gt;}{LGR}{~}{\accpsiliperispomeni}
  \DeclareTextCompositeCommand{\&lt;}{LGR}{'}{\accdasiaoxia}
  \DeclareTextCompositeCommand{\&lt;}{LGR}{`}{\accdasiavaria}
  \DeclareTextCompositeCommand{\&lt;}{LGR}{~}{\accdasiaperispomeni}
}{}

\&#64;ifl&#64;aded{def}{greek-euenc}{ % XeTeX (EU1) or LuaTeX (EU2)
  \DeclareTextCommand{\&lt;}{\LastDeclaredEncoding}{\accdasia}
  \DeclareTextCommand{\&gt;}{\LastDeclaredEncoding}{\accpsili}
  % Composite accents starting with the new-defined shortcuts:
  \DeclareTextCompositeCommand{\&gt;}{\LastDeclaredEncoding}{'}{\accpsilioxia}
  \DeclareTextCompositeCommand{\&gt;}{\LastDeclaredEncoding}{`}{\accpsilivaria}
  \DeclareTextCompositeCommand{\&gt;}{\LastDeclaredEncoding}{~}{\accpsiliperispomeni}
  \DeclareTextCompositeCommand{\&lt;}{\LastDeclaredEncoding}{'}{\accdasiaoxia}
  \DeclareTextCompositeCommand{\&lt;}{\LastDeclaredEncoding}{`}{\accdasiavaria}
  \DeclareTextCompositeCommand{\&lt;}{\LastDeclaredEncoding}{~}{\accdasiaperispomeni}
}{}
</pre>
</div>
</div>
<div class="section" id="default-declarations">
<h2>Default declarations</h2>
<p>The following definitions ensure that the Greek LICR macros can be used
anywhere in the document also with 8-bit TeX by declaring LGR as their
default font encoding. Abort here, if the LGR font encoding is not defined:</p>
<pre class="literal-block">\&#64;ifl&#64;aded{def}{lgrenc}
  {}
% else return:
  {\expandafter\endinput}
</pre>
<div class="section" id="greekscript-ensuregreek">
<h3>greekscript, ensuregreek</h3>
<p>The <tt class="literal">\greekscript</tt> declaration ensures the current font encoding supports
the Greek script. <tt class="literal"><span class="pre">greek-fontenc.def</span></tt> sets this to the empty declaration
for font encodings that do so. This is currently used by <tt class="literal">lgrenc.def</tt>
(LGR) and <tt class="literal"><span class="pre">greek-euenc.def</span></tt> (Greek LICR macros for EU1 and EU2).</p>
<p>We define LGR as default encoding for Greek text. We use
<tt class="literal">\ProvideTextCommandDefault</tt> to enable the author or other packages to use
an alternative definition (see [<a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a>]):</p>
<pre class="literal-block">\ProvideTextCommandDefault{\greekscript}{\fontencoding{LGR}\selectfont}
</pre>
<p>The <tt class="literal">\ensuregreek</tt> command can be used to ensure that its argument is set in
a font encoding with support for Greek. Again the default is LGR:</p>
<pre class="literal-block">\ProvideTextCommandDefault{\ensuregreek}[1]{\leavevmode{\greekscript #1}}
</pre>
<!-- The [fntguide_] writes

  Note that ``\DeclareTextAccentDefault`` can be used on any
  one-argument encoding-specific command, not just those defined with
  ``\DeclareTextAccent``.

However, the simpler alternative
``\DeclareTextAccentDefault{\ensuregreek}{LGR}`` fails with the table of
Unicode characters in the test document `<textalpha-doc.tex>`__:

  ``! You can't use a prefix with `end-group character }'.`` -->
<p>Eventually, all font encodings supporting Greek script (e.g. LGI, PU, EU1,
EU2) will declare <tt class="literal">\ensuregreek</tt> as text command that passes the argument
unchanged. This way, kerning and selection of precomposed glyphs would work
also for cases like <tt class="literal"><span class="pre">\ensuregreek{\'A}U</span></tt>.</p>
</div>
<div class="section" id="greek-alphabet">
<h3>Greek Alphabet</h3>
<p>Define the <tt class="literal">text*</tt> marcos as default for all font encodings:</p>
<pre class="literal-block">\DeclareTextSymbolDefault{\textAlpha}{LGR}
\DeclareTextSymbolDefault{\textBeta}{LGR}
\DeclareTextSymbolDefault{\textGamma}{LGR}
\DeclareTextSymbolDefault{\textDelta}{LGR}
\DeclareTextSymbolDefault{\textEpsilon}{LGR}
\DeclareTextSymbolDefault{\textZeta}{LGR}
\DeclareTextSymbolDefault{\textEta}{LGR}
\DeclareTextSymbolDefault{\textTheta}{LGR}
\DeclareTextSymbolDefault{\textIota}{LGR}
\DeclareTextSymbolDefault{\textKappa}{LGR}
\DeclareTextSymbolDefault{\textLambda}{LGR}
\DeclareTextSymbolDefault{\textMu}{LGR}
\DeclareTextSymbolDefault{\textNu}{LGR}
\DeclareTextSymbolDefault{\textXi}{LGR}
\DeclareTextSymbolDefault{\textOmicron}{LGR}
\DeclareTextSymbolDefault{\textPi}{LGR}
\DeclareTextSymbolDefault{\textRho}{LGR}
\DeclareTextSymbolDefault{\textSigma}{LGR}
\DeclareTextSymbolDefault{\textTau}{LGR}
\DeclareTextSymbolDefault{\textUpsilon}{LGR}
\DeclareTextSymbolDefault{\textPhi}{LGR}
\DeclareTextSymbolDefault{\textChi}{LGR}
\DeclareTextSymbolDefault{\textPsi}{LGR}
\DeclareTextSymbolDefault{\textOmega}{LGR}
%
\DeclareTextSymbolDefault{\textalpha}{LGR}
\DeclareTextSymbolDefault{\textbeta}{LGR}
\DeclareTextSymbolDefault{\textgamma}{LGR}
\DeclareTextSymbolDefault{\textdelta}{LGR}
\DeclareTextSymbolDefault{\textepsilon}{LGR}
\DeclareTextSymbolDefault{\textzeta}{LGR}
\DeclareTextSymbolDefault{\texteta}{LGR}
\DeclareTextSymbolDefault{\texttheta}{LGR}
\DeclareTextSymbolDefault{\textiota}{LGR}
\DeclareTextSymbolDefault{\textkappa}{LGR}
\DeclareTextSymbolDefault{\textlambda}{LGR}
\DeclareTextSymbolDefault{\textmu}{LGR}
\DeclareTextSymbolDefault{\textnu}{LGR}
\DeclareTextSymbolDefault{\textxi}{LGR}
\DeclareTextSymbolDefault{\textomicron}{LGR}
\DeclareTextSymbolDefault{\textpi}{LGR}
\DeclareTextSymbolDefault{\textrho}{LGR}
\DeclareTextSymbolDefault{\textsigma}{LGR}
\DeclareTextSymbolDefault{\textvarsigma}{LGR}
\DeclareTextSymbolDefault{\textfinalsigma}{LGR} % alias for \textvarsigma
\DeclareTextSymbolDefault{\textautosigma}{LGR}  % char 115 in LGR
\DeclareTextSymbolDefault{\texttau}{LGR}
\DeclareTextSymbolDefault{\textupsilon}{LGR}
\DeclareTextSymbolDefault{\textphi}{LGR}
\DeclareTextSymbolDefault{\textchi}{LGR}
\DeclareTextSymbolDefault{\textpsi}{LGR}
\DeclareTextSymbolDefault{\textomega}{LGR}
</pre>
<div class="section" id="additional-greek-symbols">
<h4>Additional Greek symbols</h4>
<p>Including alias names for compatibility with hyperref’s puenc.def.</p>
<p>Ancient Greek Numbers (Athenian Numerals):</p>
<pre class="literal-block">\DeclareTextSymbolDefault{\textpentedeka}{LGR}    % GREEK ACROPHONIC ATTIC FIFTY
\DeclareTextSymbolDefault{\textpentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
\DeclareTextSymbolDefault{\textpenteqilioi}{LGR}  % GREEK ACROPHONIC ATTIC FIVE THOUSAND
\DeclareTextSymbolDefault{\textpentemurioi}{LGR}  % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
</pre>
<p>Archaic letters:</p>
<pre class="literal-block">\DeclareTextSymbolDefault{\textstigma}{LGR}      % ϛ
\DeclareTextSymbolDefault{\textstigmagreek}{LGR} % ϛ (puenc.def)
\DeclareTextSymbolDefault{\textvarstigma}{LGR}   % stigma variant
\DeclareTextSymbolDefault{\textkoppa}{LGR}       % ϟ (greek small letter koppa)
\DeclareTextSymbolDefault{\textkoppagreek}{LGR}  % ϟ (puenc.def)
\DeclareTextSymbolDefault{\textqoppa}{LGR}       % ϙ (archaic koppa)
\DeclareTextSymbolDefault{\textQoppa}{LGR}       % Ϙ (archaic Koppa)
\DeclareTextSymbolDefault{\textStigma}{LGR}      % Ϛ ϹΤ ligature in some fonts
\DeclareTextSymbolDefault{\textStigmagreek}{LGR} % Ϛ (puenc.def)
\DeclareTextSymbolDefault{\textSampi}{LGR}       % Ϡ
\DeclareTextSymbolDefault{\textSampigreek}{LGR}  % Ϡ (puenc.def)
\DeclareTextSymbolDefault{\textsampi}{LGR}       % ϡ
\DeclareTextSymbolDefault{\textsampigreek}{LGR}  % ϡ (puenc.def)
\DeclareTextSymbolDefault{\textanoteleia}{LGR}   % ·
\DeclareTextSymbolDefault{\texterotimatiko}{LGR} % ; (003B is the preferred character)
\DeclareTextSymbolDefault{\textdigamma}{LGR}     % ϝ
\DeclareTextSymbolDefault{\textDigamma}{LGR}     % Ϝ
\DeclareTextSymbolDefault{\textdigammagreek}{LGR} % ϝ (puenc.def)
\DeclareTextSymbolDefault{\textDigammagreek}{LGR} % Ϝ (puenc.def)
</pre>
<p>numeral signs: <a class="reference external" href="http://en.wikipedia.org/wiki/Greek_numerals">http://en.wikipedia.org/wiki/Greek_numerals</a></p>
<pre class="literal-block">\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR}      % (puenc.def)
\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def)
</pre>
</div>
</div>
<div class="section" id="diacritics">
<h3>Diacritics</h3>
<p>Greek diacritics via “named” macros:</p>
<pre class="literal-block">\DeclareTextAccentDefault{\accdasia}{LGR}
\DeclareTextAccentDefault{\accpsili}{LGR}
\DeclareTextAccentDefault{\acctonos}{LGR}
\DeclareTextAccentDefault{\accvaria}{LGR}
\DeclareTextAccentDefault{\accperispomeni}{LGR}
\DeclareTextAccentDefault{\accdialytika}{LGR}
%
\DeclareTextAccentDefault{\accdasiaoxia}{LGR}
\DeclareTextAccentDefault{\accdasiavaria}{LGR}
\DeclareTextAccentDefault{\accdasiaperispomeni}{LGR}
\DeclareTextAccentDefault{\accpsilioxia}{LGR}
\DeclareTextAccentDefault{\accpsilivaria}{LGR}
\DeclareTextAccentDefault{\accpsiliperispomeni}{LGR}
\DeclareTextAccentDefault{\accdialytikatonos}{LGR}
\DeclareTextAccentDefault{\accdialytikavaria}{LGR}
\DeclareTextAccentDefault{\accdialytikaperispomeni}{LGR}
</pre>
<p>Symbol macros for the breathings:</p>
<pre class="literal-block">\DeclareTextAccentDefault{\&lt;}{LGR}
\DeclareTextAccentDefault{\&gt;}{LGR}
</pre>
<p>Postfix accents:</p>
<pre class="literal-block">\DeclareTextSymbolDefault{\ypogegrammeni}{LGR} % &quot;small&quot; sub-iota
\DeclareTextSymbolDefault{\prosgegrammeni}{LGR}  % &quot;capital&quot; sub-iota
</pre>
<p>Other accents in LGR:</p>
<pre class="literal-block">\DeclareTextAccentDefault{\accinvertedbrevebelow}{LGR} % INVERTED BREVE BELOW
\DeclareTextAccentDefault{\textsubarch}{LGR}           % tipa, Teubner name: ut
\DeclareTextAccentDefault{\accbrevebelow}{LGR}         % BREVE BELOW
</pre>
</div>
<div class="section" id="auxiliary-macros">
<h3>Auxiliary macros</h3>
<p><tt class="literal">\MakeUppercase</tt> requires three internal commands:</p>
<pre class="literal-block">\DeclareTextAccentDefault{\LGR&#64;accdropped}{LGR}
\DeclareTextAccentDefault{\LGR&#64;accDialytika}{LGR}
\DeclareTextAccentDefault{\LGR&#64;hiatus}{LGR}
</pre>
<!-- References
- - - - - - - - - - -->
</div>
</div>
</div>
</div>
</body>
</html>