4.32 Things to do post Installation of texlive 2016 on Linux

These are the steps I need to do after installation of TL

  1. fix \pgfusepathqfill bug. See http://tex.stackexchange.com/questions/185349/error-using-pgfsysdriver-with-tex4ht-only-shows-up-with-texlive-2014-ok-with-t
  2. There is a new error when compiling make4ht --lua see http://tex.stackexchange.com/questions/315162/error-with-tex4ht-under-tl-2016-when-using-lua-string-contains-an-invalid-utf-8 but this should be fixed very soon (ok, allready fixed)
  3. If compiling with lualtaex, need to add this to all files

    \IfFileExists{luatex85.sty} 
    { 
    \usepackage{luatex85} 
    } 
    {}
     
    
  4. Watch out, do not use \usepackage[T1]{fontenc} Makes tex4ht \verb not accept different fonts. Bug. see http://tex.stackexchange.com/questions/318232/why-tex4ht-do-not-change-font-size-of-verb-when-including-usepackaget1font
  5. Increase bufsize, else it will fail on some large builds

    sudo vi /usr/local/texlive/2016/texmf.cnf
     
    

    Added these:

    % (Public domain.) 
    % This texmf.cnf file should contain only your personal changes from the 
    % original texmf.cnf (for example, as chosen in the installer). 
    % 
    % That is, if you need to make changes to texmf.cnf, put your custom 
    % settings in this file, which is .../texlive/YYYY/texmf.cnf, rather than 
    % the distributed file (which is .../texlive/YYYY/texmf-dist/web2c/texmf.cnf). 
    % And include *only* your changed values, not a copy of the whole thing! 
    % 
     
    buf_size=90000000 
    pool_size=9000000 
    main_memory=8000000 
    save_size=1000000
     
    
  6. increase open file limit, lualatex still has problem

    edit the file /etc/security/limits.conf as root and add these lines

    * soft nofile 4096 
    * hard nofile 4096
     
    
  7. install pdf2svg sudo apt-get install pdf2svg
  8. install scour (do not use apt-get install scour, use pip to get latest version)

    sudo apt-get install python-pip 
    sudo pip install scour 
     
    Downloading/unpacking scour 
      Downloading scour-0.33.tar.gz 
      Running setup.py (path:/tmp/pip_build_root/scour/setup.py) egg_info for package scour 
     
    Downloading/unpacking six>=1.9.0 (from scour) 
      Downloading six-1.10.0-py2.py3-none-any.whl 
    Installing collected packages: scour, six 
      Running setup.py install for scour 
     
        Installing scour script to /usr/local/bin 
      Found existing installation: six 1.5.2 
        Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS 
    Successfully installed scour six 
    Cleaning up... 
     
    >which scour 
    /usr/local/bin/scour 
     
    >scour --version 
    0.33
     
    

    used to shrink size of svg images (clean them)

  9. fix algorithm2e.sty so that lualatex can use

    styles>kpsewhich  algorithm2e.sty 
    /usr/local/texlive/2016/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty
     
    

    and remove 2 lines with non-ascii chars, around lines 1313 and 1315.

  10. Make sure not to use subimport* but use \subimport
  11. install sudo apt-get install imagemagick for convert command
  12. install  sudo apt-get install optipng to optimize png