{"id":17,"date":"2010-04-28T11:38:45","date_gmt":"2010-04-28T11:38:45","guid":{"rendered":"https:\/\/pim.famnit.upr.si\/wp\/?p=17"},"modified":"2021-11-17T11:39:40","modified_gmt":"2021-11-17T11:39:40","slug":"texmaker-and-xetex-on-os-x","status":"publish","type":"post","link":"https:\/\/pim.famnit.upr.si\/wp\/?p=17","title":{"rendered":"Texmaker and Xetex on OS X"},"content":{"rendered":"<p>As I am coming from a Linux world I am quite used to some software that is available for Linux. One of the software I used often was <a href=\"http:\/\/www.xm1math.net\/texmaker\/\" target=\"_blank\" rel=\"noopener\">Texmaker<\/a>. After switching to OS X I used <a href=\"http:\/\/www.uoregon.edu\/~koch\/texshop\/\">TexShop<\/a> (as it comes bundled with <a href=\"http:\/\/www.tug.org\/mactex\/2009\/\">MacTex<\/a>) for a couple of years. It is a good LaTex editor and it (besides Latex) also supports <a href=\"http:\/\/scripts.sil.org\/cms\/scripts\/page.php?site_id=nrsi&amp;id=xetex\">Xetex<\/a> (a TeX typesetting engine that uses Unicode and system fonts) out of the box and it nicely updates PDF documents almost on the fly.<\/p>\n<p>But I recently switched back to Texmaker because of some of its strengths that I really like (most UI related):<\/p>\n<ul>\n<li>one window<\/li>\n<li>tabs<\/li>\n<li> auto completition of commands, references &#8230;<\/li>\n<li>a lot of icons for math symbols<\/li>\n<li>document structure on the left side<\/li>\n<li>quick access to almost every LaTeX command from menus and most often used ones from drop down menus<\/li>\n<li>a better search box (although I would like it to be <a href=\"http:\/\/en.wikipedia.org\/wiki\/Incremental_search\">incremental<\/a> like in Emacs :))<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<p>But it doesn&#8217;t work with Xetex right away. There is a simple solution<br \/>\nto this, though. All it is needed is to <strong>change two preferences<br \/>\nfields<\/strong> (assuming you have <a href=\"http:\/\/www.tug.org\/mactex\/2009\/\" target=\"_blank\" rel=\"noopener\">MacTex<\/a> installed).<!--more--><\/p>\n<p>Go to&nbsp; <strong>texmaker -&gt; Preferences<\/strong><\/p>\n<p>Under <strong>Commands<\/strong> change <strong>Latex<\/strong> field to:<\/p>\n<pre>  \/usr\/texbin\/xelatex&nbsp; %.tex<\/pre>\n<p>Under <strong>Quick Build<\/strong> change <strong>User<\/strong> field to:<\/p>\n<pre>  \/usr\/texbin\/xelatex %.tex|open %.pdf&nbsp;<\/pre>\n<p>The second command can include several commands divided by | sign. So<br \/>\nfor example we could compile the .tex file with xetex first, then<br \/>\ncompile the auxiliary .aux file and compile the .tex document twice more<br \/>\n(<a href=\"http:\/\/en.wikibooks.org\/wiki\/LaTeX\/Labels_and_Cross-referencing\">why this is necessary<\/a> is beyond this post). User field should now look<br \/>\nlike (all in one line):<\/p>\n<pre>\/usr\/texbin\/xelatex %.tex|\/usr\/texbin\/bibtex %.aux\n      |\/usr\/texbin\/xelatex %.tex|\/usr\/texbin\/xelatex %.tex\n          |open %.pdf<\/pre>\n<p>Edit: there&#8217;s one drawback&nbsp; &#8212;&nbsp; if there are some errors in the .tex<br \/>\ndocument, Texmaker hangs up and only forcing it to shut down helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I am coming from a Linux world I am quite used to some software that is available for Linux. One of the software I used often was Texmaker. After switching to OS X I used TexShop (as it comes bundled with MacTex) for a couple of years. It is a good LaTex editor and&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1804,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[43,44,45,46,40],"class_list":["post-17","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-6-pim-research","tag-file-browser","tag-file-manager","tag-navigation","tag-protoype","tag-search"],"_links":{"self":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":2,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":1805,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions\/1805"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/media\/1804"}],"wp:attachment":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}