Installing TeX Live

Before installing TeX Live, you must install the fonts required for TeX Live.

Procedure

The procedure to install Tex Live is the same for the Windows and Red Hat Linux Enterprise machines. To install TeX Live, use the following procedure:

  1. Download TeX Live installation file using the following URLs.
    • For Windows: http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip.
    • For Linux: http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
  2. Extract the file, and copy the Texlive installation folder to a directory on the server.
  3. Run the following command:
    • For Windows: > install-tl -no-gui
    • For Red Hat Enterprise Linux: $ ./install-tl -no-gui
  4. When the Do you want to continue with the exact same settings as before (y/N) option is displayed, enter N.
  5. Enter C to install TeX Live with the standard collections.

    All the options are selected by default.

  6. Enter – to deselect all options, and then type the required keys to install TeX Live.

    Example: To install the Essential Programs and files option, type a.

    The following options are available:
    • Essential Programs and files
    • Tex auxiliary programs
    • Recommended Fonts
    • Recommended generic packages
    • Basic LaTeX packages
    • LaTeX supplementary packages
    • LaTeX recommended packages
    • Advanced math type setting
    • Graphics packages and programs
    • XeTeX packages
  7. Enter R to return to the main menu, and then L to select the supported languages.
  8. Enter to deselect all languages, and then type j to select the US and UK English language option.
  9. Enter R to return to the main menu.
  10. Enter O for Options Setup, enter – to deselect all the options, and then select the following options:
    • Execution of restricted list of programs
    • Create format files
  11. Enter R to return to the main menu.
  12. Review the selected options, and then enter I.

Installing Tex Live in a setup with no Internet connection

Procedure

  1. If your setup does not have an Internet connection, follow the instructions given in the following table:
    Note: Ensure that you have downloaded the fonts and the installation file into your setup.
    Table 1. Installation steps for a setup with no internet connection
    Operating System Procedure
    Windows
    1. On the primary server, download the font files (Hanazono, LinLibertineTTF) and copy them to the Windows > Fonts directory.
    2. Create a <plinthos_node1_install_dir>/texlive directory.
    3. Extract the contents of the texlive.zip file to the < plinthos_ node1_install_dir>/texlive folder.
    4. On Reporting Node1, set the texlive.executable.location property in the dashboard_configuration.properties to the correct value.
    Linux
    1. On the primary server, run the following commands.
      sudo mkdir -p /usr/share/fonts/TTF
      sudo unzip -o <spend_texlive_folder>
      /fonts/hanazono-20110516.zip -d/usr/share/fonts/TTF
      sudo unzip -o <spend_texlive_folder>
      /fonts/LinLibertineTTF_5.1.3_2011_06_21.zip -d /usr/share/fonts/TTF
      sudo /sbin/service xfs reload
      mkdir -p <plinthos_node1_install_dir>/texlive
      tar xvfz <spend_texlive_folder>/texlive.tar.gz -C
      <plinthos_node1_install_dir>/texlive
      sudo chown -R emptoris <plinthos_node1_install_dir>/texlive
    2. On the Reporting node, set the texlive.executable. location property in the dashboard_configuration. properties file to the correct value.
  2. Launch the Tex Live application.

Reinstalling TeX Live

If the installation for TeX Live fails, you must reinstall TeX Live. The texlive.profile file is written to the tlpkg subdirectory of your installation. This file re-uses the selected options in the prior installation so that you can install in batch mode for subsequent systems.

Procedure

  1. To reinstall TeX Live, follow the procedures in the table below:
    Table 2. Installing Fonts for TeX Live
    Operating system Procedure
    Windows Server 2008 R2 (64-bit)
    1. Delete all your old installation contents from the C:\- texlive directory.
    2. Run the following command:
      install-tl -profile texlive.profile
    Red Hat Enterprise Linux 5.7 or 6.0 (64-bit)
    1. Delete all your old installation contents from the /usr/ share/fonts/TTF directory.
    2. Run the following commands.
      $rm -rf /usr/local/texlive/2011
      $rm -rf ~/.texlive2011
  2. Launch the Tex Live application.

Checking for Successful installation

To verify if the installation has been successful, check that the size of the installed folder with custom selection is 429 MB.

Procedure

Use the following procedure to test if PDFs are being generated correctly.

Run the following command: Xelatex <tex file name>.
The tex file has the following changes as per new fonts:
  • For the LinLibertine font:
    \setmainfont{Linux Libertine}
  • For the Hanazono font:
    \\setCJKmainfont{HanaMinA}
    \\usepackage[CJKchecksingle]{xeCJK}
Configuring Tex Live
Procedure

After successful installation, perform the following tasks:

  1. Access the <Installation directory for Reporting Node 1>\ BaseDirectory\config\grid-config\dashboard_configuration.
  2. Modify the following properties in the Red Hat Enterprise Linux machines:
    enable.texlive.for.pdf=true
    texlive.executable.location=/usr/local/texlive/2011/bin/x86_64-linux
  3. Modify the following properties in the Windows machines:
    enable.texlive.for.pdf=true
    texlive.executable.location= C:\\texlive\\2011\\bin\\win32
  4. Create the pdf directory, by running the following command:
    mkdir d:\opt\emptoris\var\data\spend\dashboard_pdf