https://wiki.archlinux.org/api.php?action=feedcontributions&user=2piix&feedformat=atomArchWiki - User contributions [en]2024-03-29T13:01:01ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=TeX_Live&diff=130968TeX Live2011-02-14T22:52:26Z<p>2piix: /* Important information */</p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
[[Category:TeX (English)]]<br />
{{i18n|TeXLive|TeX Live}}<br />
<br />
From [http://www.tug.org/texlive/ TeX Live - TeX Users Group]:<br />
<br />
:''TeX Live is an easy way to get up and running with the [[:Category:TeX (English)|TeX]] document production system. It provides a comprehensive TeX system with binaries for most flavors of Unix, including GNU/Linux, and also Windows. It includes all the major TeX-related programs, macro packages, and fonts that are free software, including support for many languages around the world.''<br />
<br />
See [[:Category:TeX (English)]] for more information.<br />
<br />
Since September 12, 2008, TeX Live packages have been available in [extra] for both architectures, hence replacing the obsolete [http://www.tug.org/tetex/ teTeX]. Packages for the 2009 release of TeX Live have been available since early September 2009 (thus before the official upstream release). By installing the packages {{Package Official|texlive-core}} and its dependency {{Package Official|texlive-bin}}, you will have a very solid and bleeding-edge typesetting system at your disposal!<br />
<br />
== Important information ==<br />
<br />
* The way to handle font mappings for updmap has been improved in Sept. 2009, and installation should now be much more reliable than in the past. In the meanwhile, if you encounter error messages about unavailable map file, simply remove them by hand from the {{Filename|updmap.cfg}} file (ideally using {{Codeline|updmap-sys --edit}}). You can also run {{Codeline|updmap-sys --syncwithtrees}} to automatically comment out outdated map lines from the config file.<br />
<br />
* The ConTeXt formats (for MKII and MKIV) are not automatically generated upon installation. See [http://wiki.contextgarden.net '''the ConTeXT wiki'''] for instructions on how to do this.<br />
<br />
* The packages containing the documentation and sources are available in the [community] repository. You can also consult it online at http://tug.org/texlive/Contents/live/doc.html or on CTAN. <br />
<br />
* TeX Live (upstream) now provides a tool for incremental updates of CTAN packages. On that basis, we also plan to update our packages on a regular basis (we have written tools that almost automate that task).<br />
<br />
* Some tools and utilities included in TeX Live rely on {{Package Official|ghostscript}}, {{Package Official|perl}}, and {{Package Official|ruby}}. <br />
<br />
* For help and information about TeX Live see: http://tug.org/texlive/doc.html and http://tug.org/texlive/doc/texlive-en/texlive-en.html<br />
<br />
* System-wide configuration files are under {{Filename|/usr/share/texmf-config}}. User-specific ones should be put under {{Filename|~/.texlive/texmf-config}}. {{Codeline|$TEXMFHOME}} is {{Filename|~/texmf}} and {{Codeline|$TEXMFVAR}} is {{Filename|~/.texlive/texmf-var}}.<br />
<br />
* A skeleton of a local texmf tree is at {{Filename|/usr/local/share/texmf}}: this directory is writable for members of the group '''tex'''.<br />
<br />
===Paper Size===<br />
American users are advised to run<br />
texconfig<br />
in order to set the default page size to "Letter", as opposed to A4, the current default. This command is also capable of changing other useful settings. Not changing this setting can result in slightly flawed output, as the right margin will be bigger than the left.<br />
<br />
===Error with "formats not generated" upon update===<br />
<br />
See [http://bugs.archlinux.org/task/16467 this bug report]. ('''Note that if you don't use the experimental engine ''LuaTeX'', you can ignore this.''') This situation typically occurs when the configuration files language.def and/or language.dat for hyphenation patterns contain references to files from earlier releases of texlive-core, in particular to the latest experimental hyphenation patterns for German, whose file name changes frequently. Currently they should point to {{Filename|dehyph{n,t}-x-2009-06-19.tex}}. <br />
<br />
To solve this, you need to either remove the files<br />
/usr/share/texmf-config/tex/generic/config/language.{def,dat}<br />
or to update them using the newest version under <br />
/usr/share/texmf/tex/generic/config/language.{def,dat}<br />
and then run<br />
# fmtutil-sys --missing<br />
<br />
===Fonts===<br />
<br />
By default, the fonts that come with the various TeX Live packages are not automatically available to fontconfig. If you want to use them with, say XeTeX or OpenOffice, the easiest approach is to make symlinks as follows:<br />
ln -s /usr/share/texmf-dist/fonts/opentype/public/<some_fonts_you_want> ~/.fonts/OTF/ (or TTF or Type1) <br />
To make them available to fontconfig, run: <br />
fc-cache ~/.fonts<br />
mkfontscale ~/.fonts/OTF (or TTF or Type1) <br />
mkfontdir ~/.fonts/OTF (or TTF or Type1)<br />
Alternatively, you can also add a file /etc/fonts/texlive.conf that contains a list of the font directories you want to make available system-wide, with a content similar to this:<br />
<?xml version="1.0"?><br />
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"><br />
<fontconfig><br />
<dir>/usr/share/texmf-dist/fonts/opentype</dir><br />
<dir>/usr/share/texmf-dist/fonts/truetype</dir><br />
<dir>/usr/local/share/texmf/fonts/opentype</dir><br />
<dir>/usr/local/share/texmf/fonts/truetype</dir><br />
</fontconfig><br />
<br />
Note that this may cause conflicts with XeTeX/XeLaTeX if the same fonts are (separately) available to both TeX and fontconfig, i.e. if multiple copies of the same font are available on the search path.<br />
<br />
== List of all texlive-* packages ==<br />
<br />
The texlive packages are arranged into two groups: '''texlive-most''' and '''texlive-lang''' <br />
(NB: the groups '''texlive-most-doc''' and '''texlive-lang-doc''' are provided in [http://www.archlinux.org/packages/?sort=&arch=&repo=Community&q=texlive community]). <br />
<br />
The essential package '''texlive-core''' contains the basic texmf-dist tree, while '''texlive-bin''' contains the binaries, libraries, and the texmf tree. '''texlive-core''' is based on the “medium” install scheme of the upstream distribution. All other packages are based on the eponymous collections in TeXLive. To determine which CTAN packages are included in each package, lookup the files <br />
/usr/share/texmf-var/arch/installedpkgs/<package>_<revnr>.pkgs<br />
<br />
=== Group texlive-most ===<br />
* texlive-bin <br />
* texlive-core <br />
* texlive-bibtexextra <br />
* texlive-fontsextra <br />
* texlive-formatsextra <br />
* texlive-games <br />
* texlive-genericextra <br />
* texlive-htmlxml <br />
* texlive-humanities <br />
* texlive-latex3 <br />
* texlive-latexextra <br />
* texlive-music <br />
* texlive-pictures <br />
* texlive-plainextra <br />
* texlive-pstricks <br />
* texlive-publishers <br />
* texlive-science<br />
<br />
=== Group texlive-lang ===<br />
* texlive-langcjk <br />
* texlive-langcyrillic<br />
* texlive-langgreek <br />
* texlive-langextra<br />
<br />
NB: The latter replaces and provides texlive-lang{african, arab, armenian, croatian, hebrew, indic, mongolian, tibetan, vietnamese}.<br />
<br />
== TeXLive Local Manager ==<br />
<br />
There is now a new utility provided by Firmicus which allows to conveniently manage a TeXLive installation on Arch Linux. <br />
See http://aur.archlinux.org/packages.php?ID=23776 in AUR.<br />
<br />
'''NB: The tool is not yet updated for the 2010 packages in testing.''' <br />
<br />
Usage: tllocalmgr <br />
tllocalmgr [options] [command] [args]<br />
<br />
Running tllocalmgr alone starts the TeXLive local manager shell <br />
for Arch Linux. This shell is capable of command-line completion!<br />
There you can look at the available updates with the command 'status' <br />
and you can install individual CTAN packages using 'install' or 'update'<br />
under $TEXMFLOCAL. This is done by creating a package texlive-local-<pkg><br />
and installing it with pacman. Note that this won’t interfere with your <br />
standard texlive installation, but files under $TEXMFLOCAL will take<br />
precedence. <br />
<br />
Here are the commands available in the shell:<br />
<br />
Commands: <br />
status -- Current status of TeXLive installation<br />
shortinfo * -- Print a one-liner description of CTAN packages<br />
info * -- Print info on CTAN packages<br />
update * -- Locally update CTAN packages<br />
install * -- Locally install new CTAN packages<br />
installdoc * -- Locally install documentation of CTAN packages<br />
installsrc * -- Locally install sources of CTAN packages<br />
listfiles * -- List all files in CTAN packages<br />
search * -- Search info on CTAN packages<br />
searchfiles * -- Search for files in CTAN packages<br />
texhash -- Refresh the TeX file database<br />
clean -- Clean local build tree<br />
help -- Print helpful information<br />
quit -- Quit tllocalmgr<br />
<br />
The commands followed by * take one of more package names as arguments.<br />
Note that these can be completed automatically by pressing TAB.<br />
<br />
You can also run tllocalmgr as a standard command-line program, with<br />
one of the above commands as argument, then the corresponding task will<br />
be performed and the program will exit (except when the command is 'status').<br />
<br />
tllocalmgr accepts the following options:<br />
<br />
Options: --help Shows this help<br />
--version Show the version number<br />
--forceupdate Force updating the TeXLive database<br />
--skipupdate Skip updating the TeXLive database<br />
--localsearch Search only installed packages<br />
--location #TODO?<br />
--mirror CTAN mirror to use (default is mirror.ctan.org)<br />
--nocolor #TODO<br />
<br />
=== Recent "langukenglish" errors ===<br />
For issues involving this error when trying to run tllocalmgr commands,<br />
Can't get object for collection-langukenglish at /usr/bin/tllocalmgr line 103<br />
See ary0's solution at the AUR: http://aur.archlinux.org/packages.php?ID=23776. In summary, edit /usr/share/texmf-var/arch/tlpkg/TeXLive/Arch.pm and remove "langukenglish" from the section of the file shown here:<br />
my @core_colls =<br />
qw/ basic context genericrecommended fontsrecommended langczechslovak<br />
langdutch langfrench langgerman langitalian langpolish langportuguese<br />
langspanish **langukenglish** latex latexrecommended luatex mathextra metapost<br />
texinfo xetex /;<br />
<br />
== Manually installing .sty files ==<br />
Normally, new .sty files go ~/texmf/tex/latex/<package name>/*. Create this directory if you do not have it. This directory will automatically be searched when *tex is executed. Further discussion can be found at http://bbs.archlinux.org/viewtopic.php?id=85757.<br />
<br />
== Alternative: TeX Live network install ==<br />
See http://tug.org/texlive/doc/texlive-en/texlive-en.html#x1-140003<br />
<br />
== See also ==<br />
<br />
For frequently asked qustions about TeX, TeXLive, and how it is packaged on arch, see the [[TeX Live FAQ]]. For basic information on LaTeX see [[LaTeX]]. If you are interested in using CJK (Chinese, Japanese, Korean) characters, see [[TeX Live and CJK]]<br />
<!-- vim: set ft=Wikipedia: --></div>2piix