welcome: please sign in
location: Diff for "Computer/Latex/macTex"
Differences between revisions 2 and 7 (spanning 5 versions)
Revision 2 as of 2015-09-21 15:30:56
Size: 895
Editor: kristian
Comment:
Revision 7 as of 2022-04-20 14:03:02
Size: 1195
Editor: leif
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= LaTeX setup for mac = #acl Known:read,write,admin,delete,revert All:read

= LaTeX setup for Mac =
Line 5: Line 7:
 * Install the latest TeXLive available through the [https://www.tug.org/mactex/|MacTeX distribution].
 * Copy {{{/opt/texmf-local}}} from one of the department computers to the same location on the mac.
 *Run {{{kpsewhich texmf.cnf}}} to see where your tex {{{texmf.cnf}}} file is, and edit it to look something like:
{{{
TEXMFVAR = /usr/local/texlive/2014/texmf-var
TEXMFSYSVAR = $TEXMFVAR
TEXMFLOCAL = /opt/texmf-local
TEXMFCONFIG = $TEXMFSYSCONFIG
openout_any = r
openin_any = a
main_memory = 5000000
}}}
Change the first line (depends on where TeXLive is installed). Note that you have to be SU to save changes to the file. The last line (specifying memory) is very optional.
 * Install the latest TeXLive available through the [[https://www.tug.org/mactex/|MacTeX distribution]].<<BR>>
 During the installation it will possibly complain that 'mactex is from an unidentified developer', and refuse to continue. In that case, do a Ctrl-click on the file, and select 'open'. It will again complain about 'unidentified developer', but in this case allow you to continue anyway.
 * Execute
   {{{
sudo curl -o /usr/local/bin/update-texmf-local http://dist.control.lth.se/public/Texlive/texmf-local/scripts/update-texmf-local
Line 19: Line 13:
 * Run, as SU:
{{{
mktexlsr
updmap-sys
}}}
sudo chmod +x /usr/local/bin/update-texmf-local
Line 25: Line 15:
Done. sudo update-texmf-local
   }}}


Done. You may do a quick test by copying the directory `/usr/local/texlive/texmf-local/template/LTHreport` (use `cp -a`) to a test area and then run `pdflatex template`. This should confirm that everything works as intended.

It is a good idea to run {{{/usr/local/bin/update-texmf-local}}} regularly (once a month?) to get any new and updated packages.

LaTeX setup for Mac

If you are installing LaTeX on a mac, and want to use department-specific styles and fonts, follow these steps:

  • Install the latest TeXLive available through the MacTeX distribution.
    During the installation it will possibly complain that 'mactex is from an unidentified developer', and refuse to continue. In that case, do a Ctrl-click on the file, and select 'open'. It will again complain about 'unidentified developer', but in this case allow you to continue anyway.

  • Execute
    • sudo curl -o /usr/local/bin/update-texmf-local http://dist.control.lth.se/public/Texlive/texmf-local/scripts/update-texmf-local
      
      sudo chmod +x /usr/local/bin/update-texmf-local
      
      sudo update-texmf-local

Done. You may do a quick test by copying the directory /usr/local/texlive/texmf-local/template/LTHreport (use cp -a) to a test area and then run pdflatex template. This should confirm that everything works as intended.

It is a good idea to run /usr/local/bin/update-texmf-local regularly (once a month?) to get any new and updated packages.

Computer/Latex/macTex (last edited 2022-04-20 14:03:02 by leif)