{"id":290,"date":"2014-01-04T13:13:43","date_gmt":"2014-01-04T12:13:43","guid":{"rendered":"http:\/\/www.graverini.net\/elena\/?page_id=290"},"modified":"2018-08-25T16:17:58","modified_gmt":"2018-08-25T14:17:58","slug":"latex","status":"publish","type":"page","link":"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/","title":{"rendered":"Latex"},"content":{"rendered":"<h5>Install Texmaker and the latest Texlive distribution<\/h5>\n<p><code>sudo apt install texlive texlive-science texlive-science-doc texlive-lang-italian texlive-lang-english texlive-lang-european texlive-fonts-recommended texlive-fonts-extra texlive-bibtex-extra feynmf texlive-metapost texlive-publishers texlive-latex-extra lmodern tex-gyre texlive-humanities texlive-xetex biber latexmk<\/code><\/p>\n<h5>Install nonfree latex fonts<\/h5>\n<p><code>curl -O http:\/\/tug.org\/fonts\/getnonfreefonts\/install-getnonfreefonts<\/code><br \/>\n<code>sudo texlua install-getnonfreefonts<\/code><br \/>\n<code>getnonfreefonts --help<\/code><br \/>\nInstall a specific font system-wide with:<br \/>\n<code>sudo getnonfreefonts --sys garamond && sudo mktexlsr<\/code><br \/>\nor simply install all of them:<br \/>\n<code>sudo getnonfreefonts --sys -a && sudo mktexlsr<\/code><br \/>\n(<a href=\"http:\/\/linuxdicas.wikispaces.com\/latex\" title=\"http:\/\/linuxdicas.wikispaces.com\/latex\">source<\/a>)<\/p>\n<h5>Use the URW-Garamond font<\/h5>\n<p><code>\\usepackage[T1]{fontenc}<\/code><br \/>\n<code>\\usepackage{lmodern}<\/code><br \/>\n<code>\\usepackage{amsmath,amsfonts,amssymb}<\/code><br \/>\n<code>\\usepackage[urw-garamond]{mathdesign}<\/code><br \/>\n(the order matters! AMS packages define symbols instead of redefining them, and should then come first)<\/p>\n<h5>Install <a href=\"https:\/\/github.com\/coolwanglu\/pdf2htmlEX\" title=\"pdf2htmlEX\" target=\"_blank\">pdf2htmlEX<\/a><\/h5>\n<p><code>sudo apt-add-repository ppa:coolwanglu\/pdf2htmlex<\/code><br \/>\n<code>sudo apt update && sudo apt install pdf2htmlex ttfautohint python-djvu<\/code><br \/>\nUsage: <a href=\"https:\/\/github.com\/coolwanglu\/pdf2htmlEX\/wiki\/QuickStart\" title=\"QuickStart\" target=\"_blank\">QuickStart<\/a><br \/>\n<code>pdf2htmlEX -f [number of first page] -l [number of last page] --external-hint-tool=ttfautohint --embed cfijo --dest-dir [output directory] [input pdf file]<\/code><\/p>\n<h5>Install vanilla texlive and integrate it with Ubuntu<\/h5>\n<p>Follow the installation instructions from <a href=\"https:\/\/www.tug.org\/texlive\/quickinstall.html\">tug.org<\/a> and <a href=\"https:\/\/www.tug.org\/texlive\/debian.html#vanilla\">these<\/a> instruction to integrate it. Test the integration with:<br \/>\n<code>sudo apt install texstudio<\/code><br \/>\nand check that it doesn&#8217;t want to install any texlive dependencies.<\/p>\n<h5>Let TexStudio open .tex files in new windows<\/h5>\n<p><code>sudo gedit \/usr\/share\/applications\/texstudio.desktop<\/code><br \/>\nChange the &#8220;Exec&#8221; line to:<br \/>\n<code>Exec=texstudio --start-always %F<\/code><br \/>\n(<a href=\"http:\/\/askubuntu.com\/questions\/90214\/how-to-set-default-program\">ref<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Texmaker and the latest Texlive distribution sudo apt install texlive texlive-science texlive-science-doc texlive-lang-italian texlive-lang-english texlive-lang-european texlive-fonts-recommended texlive-fonts-extra texlive-bibtex-extra feynmf texlive-metapost texlive-publishers texlive-latex-extra lmodern tex-gyre texlive-humanities texlive-xetex biber latexmk Install nonfree latex fonts curl -O http:\/\/tug.org\/fonts\/getnonfreefonts\/install-getnonfreefonts sudo texlua install-getnonfreefonts getnonfreefonts&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":97,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Latex - Elena Graverini<\/title>\n<meta name=\"description\" content=\"Some LaTeX tips\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Latex - Elena Graverini\" \/>\n<meta property=\"og:description\" content=\"Some LaTeX tips\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/\" \/>\n<meta property=\"og:site_name\" content=\"Elena Graverini\" \/>\n<meta property=\"article:modified_time\" content=\"2018-08-25T14:17:58+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.graverini.net\/elena\/wp-content\/uploads\/2013\/12\/Penguins.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/\",\"url\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/\",\"name\":\"Latex - Elena Graverini\",\"isPartOf\":{\"@id\":\"https:\/\/www.graverini.net\/elena\/#website\"},\"datePublished\":\"2014-01-04T12:13:43+00:00\",\"dateModified\":\"2018-08-25T14:17:58+00:00\",\"description\":\"Some LaTeX tips\",\"breadcrumb\":{\"@id\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.graverini.net\/elena\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Computing\",\"item\":\"http:\/\/www.graverini.net\/elena\/computing\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Ubuntu\/Mint\",\"item\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Latex\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.graverini.net\/elena\/#website\",\"url\":\"https:\/\/www.graverini.net\/elena\/\",\"name\":\"Elena Graverini\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.graverini.net\/elena\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Latex - Elena Graverini","description":"Some LaTeX tips","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/","og_locale":"en_GB","og_type":"article","og_title":"Latex - Elena Graverini","og_description":"Some LaTeX tips","og_url":"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/","og_site_name":"Elena Graverini","article_modified_time":"2018-08-25T14:17:58+00:00","og_image":[{"width":1024,"height":768,"url":"http:\/\/www.graverini.net\/elena\/wp-content\/uploads\/2013\/12\/Penguins.jpg","type":"image\/jpeg"}],"twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/","url":"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/","name":"Latex - Elena Graverini","isPartOf":{"@id":"https:\/\/www.graverini.net\/elena\/#website"},"datePublished":"2014-01-04T12:13:43+00:00","dateModified":"2018-08-25T14:17:58+00:00","description":"Some LaTeX tips","breadcrumb":{"@id":"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.graverini.net\/elena\/computing\/linux\/latex\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.graverini.net\/elena\/"},{"@type":"ListItem","position":2,"name":"Computing","item":"http:\/\/www.graverini.net\/elena\/computing\/"},{"@type":"ListItem","position":3,"name":"Linux Ubuntu\/Mint","item":"http:\/\/www.graverini.net\/elena\/computing\/linux\/"},{"@type":"ListItem","position":4,"name":"Latex"}]},{"@type":"WebSite","@id":"https:\/\/www.graverini.net\/elena\/#website","url":"https:\/\/www.graverini.net\/elena\/","name":"Elena Graverini","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.graverini.net\/elena\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/290"}],"collection":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/comments?post=290"}],"version-history":[{"count":17,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/290\/revisions"}],"predecessor-version":[{"id":571,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/290\/revisions\/571"}],"up":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/97"}],"wp:attachment":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/media?parent=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}