Beruflich Dokumente
Kultur Dokumente
Contents
1 2 3 Why Install TEX Live instead of teTEX? Overview of the Process Pre-Installation 2 2 3
3.1
4
Mount the ISO Image on the Temporary Mount Point . . . . . . . Using the Installers Text Mode . . . . . . . . . . . . . . . . . . . Duration of Installation . . . . . . . . . . . . . . . . . . . . . . . .
4
4
Installation Proper
4.1 4.2
5 6
5 6
6 7
6.1 6.2
7 8 9
7 8
9 10 10
Testing the Installation Deleting the TL ISO Image Additional Goodies to Install
Editors . . . . . . . . . . . . . . . . . . . . . Fonts . . . . . . . . . . . . . . . . . . . . . . Conguring Texmaker to Display DVI Files A Conguring Geany for L TEX Use . . . . . . .
Abstract
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
10 10 11 11
Installing T EX Live 2013 on Salix OS 14.0.1 account. e general steps are as follows: Download a TL .iso image. Verify its md5sum and sha1sum to ensure that the download is not corrupted. Note: e ISO is a very large le2.4 GB in sizeso be prepared that the download will take a while if you have a non-broadband Internet connection. Save the le to an appropriate location in your /home directory. (In my case, I created a folder named TeX Live 2013 and saved it there). Remove tetex and tetex-doc packages, if you have them installed. Follow the instructions as outlined below to install TL and then do postinstallation conguration and testing.
3 Pre-Installation
First, you need to clean up any existing TEX installations. If you previously installed the tetex and tetex-doc packages, completely remove them with the Gslapt Package Manager. Create a temporary mount point for the TL ISO disk image. Open up a Terminal / Console within your regular user account, issue the command su - and type roots password to acquire root user privileges.
# mkdir /mnt/iso
N.B.: at pound sign (#) as the command prompt is your verication that you are logged in as the root user. It helps to visualize the mount point as a clothes hanger, and the le (our ISO le) as the clothesif you want to hang up your clothes, you need a hanger.
N.B. thats a hyphen used as the command argument. If you want to become the root user, and use its environment variables, you must type su As a comparison, if you just issue the command su (without a hyphen), you will become root but your non-root ( /home) environment variables will remain in place. Also known as the number sign, hash mark and octothorpe, depending on which part of the world you live in. anks to user HacK_MiNDeD for this analogy. For more information, see his article How to Mount ISOs on Linux Using Terminal. 6 Apr. 2011. http://www.hackerslane.com/2011/ how-to-mount-isos-on-linux-using-terminal/
Note: You need to surround the directory name with quotation marks in order to let the bash shell know that the interword spaces are part of the directory name. Point to the ISO image and tell Linux to mount it on our newly created mount point:
# mount -o loop texlive2013-20130530.iso /mnt/iso
4 Installation Proper
In general, we will use the ick Install instructions from TUGs website as a guideline:
-o loop Your TL .iso le. e temporary mount point we just created. How to: Mount an ISO image under Linux, NixCra, 11 Dec. 2008. cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html.
http://www.
All commands below were issued by / (root) rather than a normal user. Follow these steps: Navigate to your newly created directory / mount point:
# cd /mnt/iso
4.1
We will use the Installers text mode to install TL 2013. Now you are ready to run the installer script (install-tl). Type
./install-tl
(Do not forget the initial period (.) before the forward slash). From the text menu, select the o command, then p, to change the default paper size (if you are a North American who uses leer-size paper rather than A4. A4 is commonly used in Europe and in most locations outside North America). Type the leer r to return to the main menu.
Installing T EX Live 2013 on Salix OS 14.0.1 If you wish to bypass the need for manually changing the PATH, as discussed in Section 6.1, you have the option here of selecting Create symlinks in system directories. I have never tried this option myself, but two A members of the L TEX Community Forum noted that it works and that it will auto-congure your PATH. Type the leer i (for i(nstall)) to begin the installation.
Installing T EX Live 2013 on Salix OS 14.0.1 Next, remove the directory you created at the beginning of the installation process.
# rmdir /mnt/iso
Be careful to not delete the /mnt directory, as it is one of Linuxs standard subdirectories.
6 Post-Installation Configuration
6.1 Seing the PATH Variable
When installation is complete, you must add the TEX Live binary directory to your PATH, if you did not select the option to Create symlinks in system directories when you began the installation process. (See Subsection 4.1 for details). I found that the method posted in the Zenwalk Wiki worked well. Its author, rsamurti (R.S. Ananda Murthy), proposes creating a small shell script and placing it in the /etc/profile.d directory. Heres how we accomplish that: From within your regular user account, use your favorite text editor (e.g., Geany, nano, vi, Emacs) to create a le called texlive.sh Paste these two lines into it, and save the le in your /home directory:
export PATH=$PATH:/usr/local/texlive/2013/bin/i386-linux export MANPATH=$MANPATH:/usr/local/texlive/2013/texmf-dist/doc/man
Become root ( su - ) and move the texlive.sh le into the /etc/profile.d directory:
# mv texlive.sh /etc/profile.d
A change in the PATH variable does not take eect immediately, so log out of your account, completely reboot your system and log back in.
Installing T EX Live 2013 on Salix OS 14.0.1 Finally, issue the command: # texhash
david[~]$ su Password: root@salix:~# texhash texhash: Updating /usr/local/texlive/2013/../texmf-local/ls-R... texhash: Updating /usr/local/texlive/2013/texmf-config/ls-R... texhash: Updating /usr/local/texlive/2013/texmf-dist/ls-R... texhash: Updating /usr/local/texlive/2013/texmf-var/ls-R... texhash: Done.
As root user, you will be copying this le to the /etc/fonts/conf.d directory and simultaneously renaming the le 13-texlive.conf.
root@salix:~# cd /usr/local/texlive/2013/texmf-var/fonts/conf root@salix:/usr/local/texlive/2013/texmf-var/fonts/conf# ls conf/ texlive-fontconfig.conf root@salix:/usr/local/texlive/2013/texmf-var/fonts/conf# cp texlive-fontconfig.conf /etc/fonts/conf.d/13-texlive.conf
If we test the XTEX font conguration now (from our regular user account), it should pass and produce a PDF le:
david[~]$ xetex opentype-info.tex This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) restricted \write18 enabled. entering extended mode (/usr/local/texlive/2013/texmf-dist/tex/xetex/xetexfontinfo/opentype-info.tex [1] [2] ) Output written on opentype-info.pdf (2 pages). Transcript written on opentype-info.log.
Installing T EX Live 2013 on Salix OS 14.0.1 Note: TL 2013 installs the xdvi viewer as part of its default routine. Apparently, Atril requires a plug-in to display DVI les. I received an error message when I tried opening a DVI with Atril. Section 9.3 provides info on changing Texmakers conguration so that it uses xdvi instead of Atril.
9.1 Editors
A Texmaker A L TEX editor with a friendly, easy-to-use GUI. e version available
TeXworks Another TEX editor with a user-friendly GUI, modeled on Dick Kochs
TeXShop for Mac OS X. You can use Sourcery to install version 0.4.4. Note: You rst need to install the hunspell package via Gslapt for TeXworks to build successfully.
A and has a L TEX plugin available. (See Subsection 9.4 for additional tips).
Geany Although it lacks some of Texmakers bells and whistles, it is quite capable
9.2 Fonts
Fonts are a subjective area, but Ive found that installing some dierent fonts can spice up your typographic life.
gentium-font An attractive, open-source serif typeface designed by Victor Gaultney. Works well with documents in XTEX (or LibreOffice). (This paragraph uses the Gentium typeface).
e xdvi binary is located in /usr/local/texlive/2013/bin/i386-linux/. Unable to open document. File type TeX DVI document (application/x-dvi) is not supported.
10
Poll as an alternative to Times Roman. (is documents primary font is Linux Libertine.)
SIL fonts SIL International has several nice fonts which are freely download-
able: Charis SIL (similar to Bitstream Charter), Doulos SIL (very similar to Times / Times New Roman) and Andika (a sans serif font designed especially for literacy use).
How quickly daft jumping zebras vex. (Charis SIL sample)
It is simple to manually install fonts from outside Salixs repositories. If you wish to install a particular font for all users, then move / copy it into the /usr/share/fonts/TTF directory. If you want it available for your user only, place it in the /.fonts directory. When you nish, you must update the font database by becoming root user and typing the command # fc-cache -fv.
anks to some online tips I found, it is possible to further customize Geany for A use with L TEX. Figure 2 illustrates where such custom commands are added. Under Build > Set Build Commands:
LaTeX > DVI LaTeX > PDF Clean rm "%e".log "%e".aux Make Make Custom Target Make Object XeLaTeX xelatex --file-line-error-style "%f"
11
12
Installing T EX Live 2013 on Salix OS 14.0.1 Note: In order to use Geanys Preview feature, you will rst have to install the xterm package.
I hope this compilation will be helpful for anyone considering installing TL 2013 on their system. Good Luck and Happy TEXing in 2014!
13