Example: barber

LATEX installation guide Sacha Epskamp …

LATEX installation guideSacha EpskampNovember 2, 20111 Contents1 Obtaining a LATEX distribution32 Installing MiKTEX .. Setting the PATH variable .. Installing Packages in MiKTEX .. Installing TEXworks ..53 Mac Installing MacTEX .. Setting the PATH variable .. Installing Packages in MacTEX .. Installing TEXworks ..64 Installing TEX live .. Setting the PATH variable .. Installing Packages in TEXLive ..721 Obtaining a LATEX distributionLATEX comes in distributions which make sure that you get everything needed to use LATEX . A gooddistribution has a package manager that can be used to install and update packages with relativeease. In this paper I will give a guide on how to obtain the distributions I prefer for Windows, Macand Linux. You can skip the parts that are not relative to your operating we will see in the course, the LATEX compiling programs are run from the command line(command prompt in Windows and terminal in Max and Linux).

1 Obtaining a LATEX distribution LATEX comes in distributions which make sure that you get everything needed to use LATEX.A good distribution has a package manager that can be used to install and update packages with relative ease. In this paper I will give a guide on how to obtain the distributions I prefer for Windows, Mac

Tags:

  Guide, Installation, Latex, Sacha, Latex installation guide sacha epskamp, Epskamp

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of LATEX installation guide Sacha Epskamp …

1 LATEX installation guideSacha EpskampNovember 2, 20111 Contents1 Obtaining a LATEX distribution32 Installing MiKTEX .. Setting the PATH variable .. Installing Packages in MiKTEX .. Installing TEXworks ..53 Mac Installing MacTEX .. Setting the PATH variable .. Installing Packages in MacTEX .. Installing TEXworks ..64 Installing TEX live .. Setting the PATH variable .. Installing Packages in TEXLive ..721 Obtaining a LATEX distributionLATEX comes in distributions which make sure that you get everything needed to use LATEX . A gooddistribution has a package manager that can be used to install and update packages with relativeease. In this paper I will give a guide on how to obtain the distributions I prefer for Windows, Macand Linux. You can skip the parts that are not relative to your operating we will see in the course, the LATEX compiling programs are run from the command line(command prompt in Windows and terminal in Max and Linux).

2 To make sure that your computerknows where to find these programs we need to set the PATH variable of your computer. Thisis simply a string with paths to folders containing programs. Below will be explained how to setthe PATH variable for your operating system. Most LATEX editors however do not need a correctPATH variable, but it is usefull to have this right for more advanced topics lateron in the sections on setting the PATH variable can be skipped for , it is recommended to do afull installof the distribution you choose if there is enoughroom on your computer. This will install all packages available in a distribution. Lateron in thecourse we will need theapaandapacitepackages. This guide will also explain how to install write LATEX documents an plain text editor is also needed. In this course we will useTEXworks, but other programs such as notepad++, Gedit, TeXniccenter, TeXmaker and Emacsare also possible.

3 After installing TEXworks it is recommended to enable syntax highlighting andline numbering. This can be done from theformatmenu: first selectLine Numbers, next undersyntax Installing MiKTEXFor Windows 71we will be looking at the MikTEX distribution. First, go pressinMiKTeX Scroll down toInstalling thecompleteMiKTeX system2, selectthe version appropriate for your system and pressDownload. If you are not sure on what systemyou have then go to the start menu and typedxdiagand look forOperating system, which is the setup window and pressnext, check the accept box andnextagain. SelectDownloadMiKTeXand pressnext. SelectComplete MiKTeXand pressnext. Choose a mirror close to yourlocation (for me that is Netherlands, HTTP) and pressnext. Now select a folder (recommendedto leave this to the default location), pressnextand thenstart.

4 Now you can go set some coffeebecause this will take a installing you might get a windows message saying that the install was not correct, butignore that. Now we have downloaded MiKTEX but we still need to install it. Run the setupprogram again and this time selectInstall MiKTeXand pressnext. SelectComplete MiKTeXandpressnext. Select which users you want to install LATEX for and pressnext. Now select the folder youdownloaded MiKTEX in (just pressnextif you used the default location). Choose an installationfolder (best leave this toC:\Program Files\MiKTeX ) and pressnext. Select next toPreferredpaper A4and next toInstall missing packages on-the-fly Yesand pressnext. Now pressStartandthe installation will start. After installing close the setup screen. You should now have Setting the PATH variableAfter installing MiKTEX the PATH variable should be automatically set.

5 Open a command prompt(Start,All Programs,Accesories,Command Prompt). And type in:pdflatexYou should see something likeThis is pdfTeX, If so, your PATH variable is successfullyset. Close the command prompt and skip the next your PATH is not correctly set you need to do this manually. To do this, click onstart,right click oncomputerand selectproperties. Click onAdvanced system settingsand then onEnvironment variables. Undersystem variablesfindPathand click onEdit. Enter the path to theMiKTEX folder containing programs in front of the PATH variable followed by a semi colon. Forme, the first part of my PATH variables looks like:C:\\Program Files\\MiKTeX \\miktex\\bin; (..)Reboot the computer and you are this should work on XP and Vista as well2If you do not have a lot of memory on your computer you might want to download the basic version Installing Packages in MiKTEXMiKTEX has a Package Manager that easily allow you to manage your LATEX packages.

6 Find it inthe start menu and search forapain theNamefield. Make sure thatapaandapaciteare installed(you can right click the names to install them).With TEXworks any missing packages are also installed when you try to compile a Installing TEXworksTEXworks should already be installed with the MiKTEX installation and is available in the Mac OSXFor Mac OSX we will be looking at MacTEX. This is a very simple and straightforward Installing MacTEXF irst go click on the start downloadingthe distribution. This will take a while since the file is gb big. After downloading the installscreen should automatically come keep pressingcontinueandacceptuntil you get to the install screen (just use all defaultvalues), then pressinstalland the installation begins. When this is completed you have your LATEX distribution Setting the PATH variableAfter installing MacTEX the PATH variable should be automatically set.

7 Open a terminal (Appli-cations,Terminal). And type in:pdflatexYou should see something likeThis is pdfTeX, If so, your PATH variable is successfullyset. Close the Installing Packages in MacTEXWe can manage LATEX packages by usingtlmgrin terminal. For example, we can update all packagesby typing:tlmgr update --allTop check if a package is installed we can usetmlgr show. Check if apa and apacite are installed:tlmgr show apatlmgr show apaciteIf not, you need to install them. This must be done as root:sudo tlmgr install apasudo tlmgr install Installing TEXworksTEXworks should already be installed with the MacTEX installation and can be found in the TeXfolder in the applications LinuxFor Linux the preferred LATEX distribution is TEX live. Note that this is only tested on Installing TEX liveFirst download the following file: extract it.

8 Next open a terminal window, and cd to the extracted folder. For example:cd Downloads/install-tl-20110526 Once there install TEX live with:sudo ./install-tlAnd choose a full Setting the PATH variableAfter installing TEXlive you can edit your PATH variable by opening a terminal and entering:sudo gedit /etc/environmentBe sure not to remove anything. Enter as first entry/usr/local/texlive/2010/bin/x86_64- linuxfollowed by a on your system and might bei386if you have a 32 bit sys-tem, and2010might be a newer version when you are reading this. If not sure then browse to/usr/local/texlive/and look for the folder containinglatex. For me the content of my enviro-ment file (truncated) looks like:PATH="/usr/local/texlive/2010/bin/x 86_64-linux:/usr/local/sbin: (..)"Save the environment file and close gedit. You should now have a full install of Installing Packages in TEXLiveWe can manage LATEX packages by usingtlmgrin terminal.

9 For example, we can update all packagesby typing:tlmgr update --allTop check if a package is installed we can usetmlgr show. Check if apa and apacite are installed:tlmgr show apatlmgr show apaciteIf not, you need to install them. This must be done as root:sudo tlmgr install apasudo tlmgr install apacite7 Note that on Ubuntu this will give an error because Ubuntus PATH variable for root is differentthen the normal PATH variable. We can change this, but look out that you don t change anythingelse!To change the root PATH in Ubuntu to be the same as the normal PATH, go to terminal andtype:sudo gedit ~/.bashrcThen add in the file that opens the following line:alias sudo= sudo env PATH=$PATH Save and exit. Run on terminal:. ~/.bashrcto reload the basrc file, and now it should


Related search queries