{"id":38,"date":"2021-02-21T11:24:48","date_gmt":"2021-02-21T11:24:48","guid":{"rendered":"https:\/\/eutypon.gr\/e-blog\/?p=38"},"modified":"2021-02-21T11:24:48","modified_gmt":"2021-02-21T11:24:48","slug":"using-the-soul-package-with-xelatex","status":"publish","type":"post","link":"https:\/\/eutypon.gr\/e-blog\/index.php\/2021\/02\/21\/using-the-soul-package-with-xelatex\/","title":{"rendered":"Using the soul package with XeLaTeX"},"content":{"rendered":"<p>Yesterday evening I was trying to use the soul package with XeLaTeX but it did not work. More specifically, the command<code> \\ul<\/code> did not work with Greek texts. I did some google search and I found a way to make the package usable with XeLaTeX. In the preable of your XeLaTeX file add the following commands:<\/p>\n<p>\\makeatletter<br \/>\n\\font\\SOUL@tt=&#8221;[FreeMono.otf]&#8221;<br \/>\n%\\makeatletter\\font\\SOUL@tt=&#8221;Consolas&#8221;<br \/>\n\\setbox\\z@\\hbox{\\SOUL@tt-}<br \/>\n\\SOUL@ttwidth\\wd\\z@<br \/>\n\\makeatother<\/p>\n<p>One needs a monospaced font that will be used internally by the soul package. Here I am suggesting the use of <a href=\"https:\/\/fontmeme.com\/fonts\/freemono-font\/\" target=\"_blank\" rel=\"noopener\">freemono<\/a> but one can use any other font that contains the script you intend to use in a document. If the font does not contain glyphs for the script one plans to use, then the package will not work at all. It sould be a good idea to create a package but since the solution depends on a font, it cannot be a generic solution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday evening I was trying to use the soul package with XeLaTeX but it did not work. More specifically, the command \\ul did not work with Greek texts. I did some google search and I found a way to make the package usable with XeLaTeX. In the preable of your XeLaTeX file add the following&hellip; <a class=\"more-link\" href=\"https:\/\/eutypon.gr\/e-blog\/index.php\/2021\/02\/21\/using-the-soul-package-with-xelatex\/\">Continue reading <span class=\"screen-reader-text\">Using the soul package with XeLaTeX<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":1,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/posts\/38\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eutypon.gr\/e-blog\/index.php\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}