Advertisement
Guest User

Untitled

a guest
Apr 17th, 2017
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. documentclass[a4paper]{article}
  2. usepackage{fontspec}
  3. usepackage{lipsum}
  4. usepackage{longtable}
  5. usepackage{url}
  6. %usepackage{scrpage2}
  7. usepackage{fancyhdr}
  8. usepackage{hyperref}
  9. setmainfont{Iwona}
  10. setmonofont{Inconsolata}
  11.  
  12. %clearscrheadfoot
  13. lhead{href{mailto:address@email.com}{nolinkurl{address@email.com}}}
  14. rhead{texttt{thepage}}
  15.  
  16. %pagestyle{scrheadings}
  17. pagestyle{fancy}
  18. begin{document}
  19.  
  20. lipsum[1]
  21.  
  22. texttt{some text in monospace font}
  23.  
  24. lipsum[2]
  25.  
  26. {setmonofont{Courier New}
  27. lipsum[3]
  28.  
  29. texttt{some text in monospace font}
  30.  
  31. lipsum[4]
  32. }
  33. newpage
  34. lipsum[5]
  35.  
  36. texttt{some text in monospace font}
  37.  
  38. lipsum[6]
  39.  
  40. begingroup
  41. setmonofont{Courier New}
  42. lipsum[7]
  43.  
  44. texttt{some text in monospace font}
  45.  
  46. lipsum[8-9]
  47.  
  48. texttt{some text in monospace font}
  49.  
  50. lipsum[10-11]
  51.  
  52. texttt{some text in monospace font}
  53.  
  54. lipsum[12]
  55. endgroup
  56.  
  57. lipsum[13]
  58.  
  59. texttt{some text in monospace font}
  60.  
  61. lipsum[14]
  62. end{document}
  63.  
  64. newfontfamily{differenttt}{Courier New}
  65. DeclareTextFontCommand{textdifferenttt}{differenttt}
  66.  
  67. documentclass[a4paper]{article}
  68. usepackage{fontspec}
  69. usepackage{lipsum}
  70. usepackage{url}
  71. usepackage{fancyhdr}
  72. usepackage{hyperref}
  73. setmainfont{Iwona}
  74. setmonofont{Inconsolata}
  75. newfontfamilynicemono{Inconsolata}
  76. DeclareTextFontCommand{textnicemono}{nicemono}
  77. newfontfamilycourier{Courier New}
  78. renewcommand{UrlFont}{nicemono}
  79. lhead{href{mailto:address@email.com}{nolinkurl{address@email.com}}}
  80. rhead{textnicemono{thepage}}
  81.  
  82. pagestyle{fancy}
  83. begin{document}
  84.  
  85. lipsum[1]
  86.  
  87. texttt{some text in monospace font}
  88.  
  89. lipsum[2]
  90.  
  91. {setmonofont{Courier New}
  92. lipsum[3]
  93.  
  94. texttt{some text in monospace font}
  95.  
  96. lipsum[4]
  97. }
  98. newpage
  99. lipsum[5]
  100.  
  101. texttt{some text in monospace font}
  102.  
  103. lipsum[6]
  104.  
  105. begingroup
  106. setmonofont{Courier New}
  107. lipsum[7]
  108.  
  109. texttt{some text in monospace font}
  110.  
  111. lipsum[8-9]
  112.  
  113. texttt{some text in monospace font}
  114.  
  115. lipsum[10-11]
  116.  
  117. texttt{some text in monospace font}
  118.  
  119. lipsum[12]
  120. endgroup
  121.  
  122. lipsum[13]
  123.  
  124. texttt{some text in monospace font}
  125.  
  126. lipsum[14]
  127. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement