LSU College of Science
LSU  | Mathematics

Installing a TeX System for LSU Math



Installing an Integrated TeX system

January 2016

_                                                          _
                                                                                         

       * PDF version available by clicking here.

      A working installation of TeX is typically comprised of two main components. These are the “TeX system” and the “TeX editor.” The TeX system is the collection of various programs, fonts, configurations, and header files that enable a document written in the TeX markup language to compile. The TeX editor is a word processor with options and features that aid in programming in the TeX markup language. The TeX editor must be configured for the particular TeX system installed.
      The output of a compiled TeX document is often in the Adobe PDF format. To be able to view the documents, a PDF viewer must be installed. Some TeX editors like TeXMaker for Windows now include built-in PDF viewers.
      Some TeX documents require compilation into Postscript (PS). This requires the installation of a PS viewer and a PS compiler.


      The steps for installing these components are listed below. The instructions are separated by the operating system used.


      The instructions for TeX on a Linux system vary depending on the flavor of Linux in use. See your distribution’s documentation or package listings for exact instructions on where to find and install a TeX system.
      Linux installations in the LSU Math Department use the Texmaker editor for TeX.






Disclaimer:  The procedures in this document involve making changes to your computer such as installing/removing programs, downloading files, and setting options. Please realize that preexisting problems or unforeseen computer configurations may lead to unexpected results. The IT staff in the LSU Math department cannot fix large problems on personal computers.








Windows

      Miktex 2.9 will be used as the TeX system. TexMaker will be used as the TeX editor. TeXMaker includes a built-in PDF viewer. Ghostscript and Ghostview will be used as the Postscript system. TeXMaker will attempt to automatically adjust its settings for use with Miktex, Acrobat Reader, and Ghostview.
      Note that the Miktex download is large ( 1000MB )  and can take some time.
      It is assumed that the person installing these programs has ‘admin’ rights to the computer.


  1. Download the Full Miktex package
    1. Go to < miktex.org >. Click “Download” at the top. Look for the heading called “Other Downloads” and click on that to expand the list. Find the option called “Net installer” which should look something like "Miktex 2.9.5721 64-bit Net Installer". Save this small file to your computer.

    2. Go to where the file was saved, and run the installer. Proceed through the initial setup screens. Choose to Download Miktex instead of installing it. Select the complete install instead of the basic install. When asked to choose a download server, choose a server in your country. Choose a folder to download to. Select “Start” to begin the Download. This will now download a large number of small files to the selected folder.
      NOTE:  Be aware that there is no notification that the download has completed. Upon completion, the Next button will be clickable.
      NOTE: If a download fails partway through, restart the download and choose a different server to download from.

    3. Run the same installer again. Instead of choosing to download Miktex, choose to install Miktex. Choose the complete Miktex install. Choose to install for all users of the computer. For the question “Install Miktex From,” choose the folder that was selected in the previous step b., where the downloaded files were saved, and click next. Leave the install folder at the default location.
      IMPORTANT: Select ‘letter’ size paper instead of A4. Select “Yes” For the question, “Install missing packages on-the-fly.”
      NOTE:  Be aware that there is no notification that the installation has completed. Upon completion, the Next button will be clickable.

    4. The folder with the downloaded files, and the small downloader program may be moved or deleted. These files are not needed for TeX to work.


  2. Verify MikTex settings
         
    - Options selected during install are sometimes not honored properly

    1. Start the Miktex Settings program. Open the Windows Start menu then select  All Programs -> Miktex 2.9 -> Maintenance (Admin) -> Settings (Admin).

    2. n the General tab, select “Letter” size paper, then click the “Refresh FNDB” and “Update Formats” buttons above.

    3. Click OK to Exit.


  3. Download and install Ghostscript and Ghostview
          - If you have a PDF printer installed, these programs may affect its operation. If there are problems after installing Ghostscript, re-install the PDF printer program.

    1. Go to < www.ghostscript.com/download/gsdnld.html >.  Click on the link to download either the 32-bit or 64-bit version of Ghostscript for Windows, under the GNU Affero General Public License heading. Most computers are now 64-bit computers.

    2. Go to < pages.cs.wisc.edu/~ghost/ >.  Click on the link “ GSView 5.0”. At the top of the download page, click on the link for the Windows download, either 64-bit (gsv50w64.exe) or 32-bit (gsv50w32.exe). Again, most computers now are 64-bit computers.

    3. Install Ghostscript. Run the setup program. Leave all the options at the default settings.
            Windows 7+: You may see a screen asking if the install completed successfully. Choose the option to indicate that the install was successful

    4. Install Ghostview. Run the setup program ( gsv50wXX.exe ). Leave all the options as default.
            Windows 7+: You may see a screen asking if the install completed successfully. Choose the option to indicate that the install was successful



      Both downloaded install files may be deleted after installation is complete.




  4. Download and install TexMaker

    1. Go to < www.xm1math.net/texmaker/ >. Click on the Download link on the right side of the page. Look under the “TexMaker for Windows” heading, and download the
      texmakerwin32_install.exe “ file.

    2. Run the downloaded file. Leave any settings at default.

    3. Open TexMaker.


      At this point, the installation is complete. However, there may be some customization required. TeX editors do not always correctly auto-configure themselves to work with a given TeX system on a computer. Texmaker seems to not auto-detect very well. Below are some tips for configuring TexMaker if there are problems. You will have to determine what needs to be done for your particular computer

 

      • Go to Options → Configure Texmaker.  Look for the box “Ghostscript” near the bottom-left. The path can be wrong in up to three ways:

  -bit  version wrong. For example,  “gswin32c.exe”  for 32-bit  and   “gswin64c.exe”  for 64-bit
[ C:/Program Files/gs/gs9.15/bin/gswin32c.exe ]  →  [  C:/Program Files/gs/gs9.15/bin/gswin64c.exe  ]


   Program Files folder is wrong. On 64-bit computers, 32-bit programs go in the “ (x86)” folder.
[ C:/Program Files/gs/gs9.15/bin/gswin32c.exe ]  →  [  C:/Program Files (x86)/gs/gs9.15/bin/gswin32c.exe  ]


   The version of ghostscript was not detected correctly. Go to the C:\Program Files\gs  folder to see the correct name
[ C:/Program Files/gs/gs9.07/bin/gswin64c.exe ]  →  [  C:/Program Files/gs/gs9.15/bin/gswin64c.exe  ]


      • Go to Options → Configure Texmaker.  Look for the box “DVI Viewer” on the right. The path can be wrong in up to two ways:


   Program Files folder is wrong. On 64-bit computers, 32-bit programs go in the “ (x86)” folder
[ C:/Program Files/Miktex 2.9/miktex/bin/yap.exe ]  →  [  C:/Program Files (x86)/Miktex 2.9/miktex/bin/yap.exe  ]

   For the 64-bit mixtex, the program path is different than expected
[ C:/Program Files/Miktex 2.9/miktex/bin/yap.exe ]  →  [  C:/Program Files/Miktex 2.9/miktex/bin/x64/yap.exe  ]


      • Go to Options → Configure Texmaker.  Look for the box “PS Viewer” on the right. The path can be wrong:


   -bit  version wrong. For example,  “gsview32.exe”  for 32-bit  and   “gsview64.exe”  for 64-bit
[ C:/Program Files/Ghostgum/gsview/gsview32.exe ]  →  [ C:/Program Files/Ghostgum/gsview/gsview64.exe ]


Done!



 

 


Apple Macintosh  ( OS X )


      The program called TeXShop for Macintosh computers will be used. This program takes advantage of programs installed with OS X to form one package that will perform all of the TeX functions. It includes TeXLive as the TeX system and a custom program for the TeX Editor.
      Note that the full TeXShop package download is very large ( 2400 MB ) and may take some time.
      OS X 10.11 has introduced features that may cause problems with applications like TeX. Some error messages may be encountered that can be ignored. As long as the instructions here are followed, the setup should work.


  1. Download and Install TeXShop

    1. Go to < www.tug.org/mactex > and click on the link “MacTeX Download”, then on the link "MacTeX.pkg" to begin the download.

    2. Double-click the downloaded .pkg file. Proceed through the installation screens. When the installation is complete, a folder called TeX will be created under the Applications folder.

    3. Create Shortcut in the Dock. At the top of the screen, select Go -> Applications. Open the “TeX” folder. Drag the icon for “TeXShop” to the Dock at the bottom of the screen to create a shortcut.


      You can move or delete the .pkg file after the installation is complete.

  2. Update and Configure TeX
    1. At the top of the screen, select Go -> Applications. Open the “TeX” folder, then open “TeX Live Utility”. Ignore any repository error messages. Open the "TeXlive Utility" menu at the top-left and select "check for updates". Download and install any updates mentioned. Again, ignore any error messages.
      Close and  re-open the utility, and check for updates again. Repeat this until there are no more updates.

    2. Close and re-open the utility again. Go to "Actions" at the top and select "update all packages". Allow all the packages to update. This may take some time.

    3. Close and re-open the utility again. Go to the "Configure" menu at the top, then select "Change paper size" Ensure that "Letter" is selected, then click on "accept". This step will take some time. No notification will be given when the process has completed. The small, spinning wheel at the top of the utility window will disappear when the process has finished.

    4. Exit the utility.

  3. Update Texshop

    1. Open the Texshop program. Go to the "TeXshop" menu at the top-left and select "check for updates". Perform any updates.

Done !




AttachmentSize
InstallingTeX-LSUMath-1-2016.pdf75.1 KB