Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. documentclass{article}
  2. usepackage[utf8]{inputenc}
  3. usepackage{color}
  4. %custom command : shortcut for formating
  5. newcommand{gr}[1]{{bf color{red}#1}}
  6. newcommand{ro}[1]{{color{red}#1}}
  7. newcommand{g}[1]{{bf #1}}
  8. title{Latin' s Scansion}
  9. begin{document}
  10. maketitle
  11. begin{tabular}{rlll}
  12. 734 & ro{h={a}s} g{={i}n}ro{t={e}r} / g{p={e}s}ro{t={e}s} // g{d= {u}}ro{r={o}} /// g{Cu{a}}tu{o} gr{m={i}}lu{i}tu{e} gr{s={i}c}cum & SSSD & hhhh \
  13. end{tabular}
  14. end{document}
  15.  
  16. documentclass{article}
  17. usepackage[utf8]{inputenc}
  18. usepackage{color}
  19. %custom command : shortcut for formating
  20. newcommand{gr}[1]{{bfseries color{red}#1}}
  21. newcommand{ro}[1]{{color{red}#1}}
  22. newcommand{g}[1]{{bfseries #1}}
  23.  
  24. begin{document}
  25. begin{tabular}{rlll}
  26. 734 & ro{h={a}s} g{={i}n}ro{t={e}r} / g{p={e}s}ro{t={e}s} //
  27. g{d= {u}}ro{r={o}} /// g{Cu{a}}tu{o} gr{m={i}}lu{i}tu{e}
  28. gr{s={i}c}cum & SSSD & hhhh \
  29. end{tabular}
  30. end{document}
  31.  
  32. documentclass{article}
  33. usepackage[utf8]{inputenc}
  34. usepackage{color}
  35. %custom command : shortcut for formating
  36. newcommand{gr}[1]{{bfseries color{red}#1}}
  37. newcommand{ro}[1]{{color{red}#1}}
  38. newcommand{g}[1]{{bfseries #1}}
  39.  
  40. DeclareTextCompositeCommand{=}{OT1}{i}{=i}
  41. DeclareTextCompositeCommand{u}{OT1}{i}{ui}
  42.  
  43. begin{document}
  44.  
  45. begin{tabular}{rlll}
  46. 734 & ro{h={a}s} g{={i}n}ro{t={e}r} / g{p={e}s}ro{t={e}s} //
  47. g{d= {u}}ro{r={o}} /// g{Cu{a}}tu{o} gr{m={i}}lu{i}tu{e}
  48. gr{s={i}c}cum & SSSD & hhhh \
  49. end{tabular}
  50.  
  51. end{document}
  52.  
  53. documentclass{article}
  54. usepackage[utf8]{inputenc}
  55. usepackage{color}
  56. %custom command : shortcut for formating
  57. newcommand{gr}[1]{{bfseries color{red}#1}}
  58. newcommand{ro}[1]{{color{red}#1}}
  59. newcommand{g}[1]{{bfseries #1}}
  60.  
  61. newcommand*{LongShortAux}[2]{%
  62. begingroup
  63. sbox0{mdseries #1{}}%
  64. sbox2{mdseries #1{j}}% j is used instead of i to prevent endless loop
  65. ooalign{%
  66. hidewidthraisebox{dimexprht2-ht0relax}{mdseries#1{}}hidewidthcr
  67. hfill#2hfill
  68. }%
  69. endgroup
  70. }
  71.  
  72. DeclareTextCompositeCommand{=}{OT1}{a}{LongShortAux{=}{a}}
  73. DeclareTextCompositeCommand{=}{OT1}{e}{LongShortAux{=}{e}}
  74. DeclareTextCompositeCommand{=}{OT1}{i}{LongShortAux{=}{i}}
  75. DeclareTextCompositeCommand{=}{OT1}{o}{LongShortAux{=}{o}}
  76. DeclareTextCompositeCommand{=}{OT1}{u}{LongShortAux{=}{u}}
  77.  
  78. DeclareTextCompositeCommand{u}{OT1}{a}{LongShortAux{u}{a}}
  79. DeclareTextCompositeCommand{u}{OT1}{e}{LongShortAux{u}{e}}
  80. DeclareTextCompositeCommand{u}{OT1}{i}{LongShortAux{u}{i}}
  81. DeclareTextCompositeCommand{u}{OT1}{o}{LongShortAux{u}{o}}
  82. DeclareTextCompositeCommand{u}{OT1}{u}{LongShortAux{u}{u}}
  83.  
  84. begin{document}
  85. begin{tabular}{rlll}
  86. 734 & ro{h={a}s} g{={i}n}ro{t={e}r} / g{p={e}s}ro{t={e}s} //
  87. g{d= {u}}ro{r={o}} /// g{Cu{a}}tu{o} gr{m={i}}lu{i}tu{e}
  88. gr{s={i}c}cum & SSSD & hhhh \
  89. end{tabular}
  90. end{document}
  91.  
  92. documentclass{article}
  93. usepackage[utf8]{inputenc}
  94. usepackage{color}
  95. usepackage{accsupp}
  96. usepackage{stringenc}
  97. usepackage{newunicodechar}
  98.  
  99. %custom command : shortcut for formating
  100. newcommand{gr}[1]{{bfseries color{red}#1}}
  101. newcommand{ro}[1]{{color{red}#1}}
  102. newcommand{g}[1]{{bfseries #1}}
  103.  
  104. newcommand*{LongShortAux}[3]{%
  105. begingroup
  106. StringEncodingConvert{x}{detokenize{#3}}{utf8}{utf16be}%
  107. BeginAccSupp{%
  108. unicode,%
  109. method=plain,%
  110. ActualText=x
  111. }%
  112. sbox0{mdseries #1{}}%
  113. sbox2{mdseries #1{j}}%
  114. ooalign{%
  115. hidewidthraisebox{dimexprht2-ht0relax}{mdseries#1{}}hidewidth
  116. cr
  117. hfill#2hfill
  118. }%
  119. EndAccSupp{}%
  120. endgroup
  121. }
  122.  
  123. makeatletter
  124. newcommand*{DeclareLatinDuration}[3]{%
  125. DeclareTextCompositeCommand{#1}{f@encoding}{#2}{%
  126. LongShortAux{#1}{#2}{#3}%
  127. }%
  128. @ifundefined{u8:detokenize{#3}}{%
  129. newunicodechar{#3}{#1{#2}}%
  130. }{}%
  131. }
  132. makeatother
  133.  
  134. DeclareLatinDuration{=}{a}{ā}
  135. DeclareLatinDuration{=}{e}{ē}
  136. DeclareLatinDuration{=}{i}{ī}
  137. DeclareLatinDuration{=}{o}{ō}
  138. DeclareLatinDuration{=}{u}{ū}
  139.  
  140. DeclareLatinDuration{u}{a}{ă}
  141. DeclareLatinDuration{u}{e}{ĕ}
  142. DeclareLatinDuration{u}{i}{ĭ}
  143. DeclareLatinDuration{u}{o}{ŏ}
  144. DeclareLatinDuration{u}{u}{ŭ}
  145.  
  146. begin{document}
  147. begin{tabular}{rlll}
  148. 734 & ro{hās} g{īn}ro{tēr} / g{pēs}ro{tēs} //
  149. g{dū}ro{rō} /// g{Că}tŏ gr{mī}lĭtĕ
  150. gr{sīc}cum & SSSD & hhhh \
  151. end{tabular}
  152. end{document}
  153.  
  154. documentclass{article}
  155. usepackage[utf8]{inputenc}
  156. usepackage{color}
  157.  
  158. usepackage{newunicodechar}
  159. %newunicodechar{ă}{u{a}} % not needed (already defined by the utf8 option)
  160. newunicodechar{ĕ}{u{e}}
  161. newunicodechar{ĭ}{u{i}}
  162. newunicodechar{ŏ}{u{o}}
  163. newunicodechar{ŭ}{u{u}}
  164. newunicodechar{ā}{={a}}
  165. newunicodechar{ē}{={e}}
  166. newunicodechar{ī}{={i}}
  167. newunicodechar{ō}{={o}}
  168. newunicodechar{ū}{={u}}
  169.  
  170. %custom command: shortcut for formatting
  171. newcommand{gr}[1]{textbf{color{red}#1}}
  172. newcommand{ro}[1]{textcolor{red}{#1}}
  173. newcommand{g}[1]{textbf{#1}}
  174.  
  175. begin{document}
  176.  
  177. title{Latin's Scansion}
  178. author{Evelyne}
  179. maketitle
  180.  
  181. begin{tabular}{rlll}
  182. 734 & ro{hās} g{īn}ro{tēr} / g{pēs}ro{tēs} // g{dū}ro{rō} ///
  183. g{Că}tŏ gr{mī}lĭtĕ gr{sīc}cum & SSSD & hhhh \
  184. end{tabular}
  185. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement