{"id":9956,"date":"2015-03-03T16:54:05","date_gmt":"2015-03-04T00:54:05","guid":{"rendered":"http:\/\/www.jlao.net\/?p=9956"},"modified":"2015-03-09T10:53:08","modified_gmt":"2015-03-09T17:53:08","slug":"texlive-2013-2014-%e6%8a%a5%e9%94%99%e4%b8%80%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.jlao.net\/en\/technology\/9956\/","title":{"rendered":"An Issue with TeXLive 2013 \/ 2014"},"content":{"rendered":"I recently updated a TeXLive 2013 installation to 2014 on a server, and XeLaTeX stoped working. First it kept running that<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">kpathsea: Running mktexfmt xelatex.fmt\r\n...\r\nI can't find the format file `xelatex.fmt'! \r\n<\/pre>\n<p>So I googled and stackoverflowed and saw that I can rebuild this <code class=\"EnlighterJSRAW\">fmt<\/code> file with<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">fmtutil --byfmt=xetex<\/pre>\n<p>But it told me that it was trying to get some file:<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">! I can't find file `dehypht-x-2013-05-26.tex'.<\/pre>\n<p><!--more--><\/p>\n<p>This is a German hyphenation tool. I don&#8217;t really write in German, but TeXLive wants to have this stuff anyway&#8230; Someone suggests to <a href=\"https:\/\/tex.stackexchange.com\/questions\/126519\/error-cant-find-the-format-file-pdflatex-fmt\">install texlive-lang-german<\/a> package, but since I install directly through TeXLive scripts instead of apt-get, this is a bit awkward. Others suggests to comment out this definition <code class=\"EnlighterJSRAW\">TEXMFSYSVAR=\/usr\/local\/texlive\/2013\/texmf-var<\/code> but I don&#8217;t feel good about that either.<\/p>\n<p>Looking further into this error, it turns out that we have a definition file<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">\/usr\/local\/texlive\/2013\/texmf-var\/tex\/generic\/config\/language.def<\/pre>\n<p>where we see this troublemaking file defined:<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">\\addlanguage{german-x-latest}{dehypht-x-2013-05-26.tex}{}{2}{2}<\/pre>\n<p>It asks us not to directly edit this file, so I ran<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">sudo tlmgr generate language<\/pre>\n<p>Now we see that <code class=\"EnlighterJSRAW\">language.def<\/code> has been updated to<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">\\addlanguage{german-x-latest}{dehypht-x-2014-05-21.tex}{}{2}{2}<\/pre>\n<p>I do need to get this file though, so<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">sudo tlmgr install dehyph-exptl<\/pre>\n<p>And then as suggested by <code class=\"EnlighterJSRAW\">tlmgr<\/code>, I ran<\/p>\n<pre class=\"show-plain-default:true toolbar:2\">sudo fmtutil-sys --byhyphen \/usr\/local\/texlive\/2013\/texmf-var\/tex\/generic\/config\/language.dat.lua\r\nsudo fmtutil-sys --byhyphen \/usr\/local\/texlive\/2013\/texmf-var\/tex\/generic\/config\/language.dat\r\nsudo fmtutil-sys --byhyphen \/usr\/local\/texlive\/2013\/texmf-var\/tex\/generic\/config\/language.def<\/pre>\n<p>All is good now.","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in \u4e2d\u6587.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[16,138,139,140],"class_list":["post-9956","post","type-post","status-publish","format-standard","hentry","category-technology","tag-latex","tag-texlive","tag-hyphen","tag-language-def"],"_links":{"self":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts\/9956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/comments?post=9956"}],"version-history":[{"count":0,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts\/9956\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/media?parent=9956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/categories?post=9956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/tags?post=9956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}