Hot answers tagged

371

These instructions have been updated for Ubuntu 16.04 and TeX Live 2016, they will probably work on most Ubuntu/Debian distributions. Installation Installing "vanilla" TeX Live is not as hard as you think. Things you will need: An internet connection. About 4 GiB of free space (2 GiB if not installing documentation). Root (sudo) powers. Note: the ...


160

So pdfpc on github (which is a forked and improved version of the pdf-presenter-console) is the closest thing I found. Features It has all the features I looked for. Regular slides on the projector, view of the next slide and the current one on the laptop. It pre-caches the slides for fast switch and can provide an overview with thumbnails for each slide (...


131

Method 1--(Preferred Method) Install the latest TeX Live This is for if the package is in TeX Live and you want to or are using 'vanilla' TeXLive. If you haven't yet installed TeX Live, follow the instructions at How to install "vanilla" TeXLive on Debian or Ubuntu? (these instructions apply to Linux systems in general, not just Debian-based ...


58

You could use apt-cache: apt-cache search outlines returns for me libfont-freetype-perl - Read font files and render glyphs from Perl using FreeType2 ... texlive-latex-extra - TeX Live: ergänzende Pakete für LaTeX You can see texlive-latex-extra here (even though it's not installed on my system, as dpkg -l | grep texlive shows - I installed TeX 2011 from ...


57

Personal Statement I am a command-line human and (blissfully) ignorant of LaTeX IDEs (front ends) and editor specific compilations. I do my typing in emacs using AUCTeX, and compile in a terminal. So, my answer is focused in the command-line area. The Solution Actually, there is a civilized way to kill LaTeX, as asked by you. Enter x at the prompt, then ...


51

The following four steps permit manual installation of packages on Debian/Ubuntu (and presumably other Linux) systems. Download the package from CTAN (e.g., footmisc.zip). Extract the files and place them in an appropriate directory (e.g., /usr/local/share/texmf/tex/latex/footmisc/). This location is preferable to the main installation tree (/usr/share/...


51

You can always put your personal files in a proper subdirectory of ~/texmf; for instance, your personal .sty files could go in ~/texmf/tex/latex/jana/ This "personal tree" is always consulted for input files before the other trees and doesn't need hashing (with texhash aka mktexlsr). This is by far the preferred method for personal input files. If instead ...


33

I wrote a script that automates Silex's answer and does (optionally) a lot more. It supports Ubuntu versions 12.04 up to the current version. Download install-tl-ubuntu and run it as sudo ./install-tl-ubuntu To download that script, run wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu && chmod +x ./install-tl-...


33

Most Linux distributions provide a tool to find out which distribution package contains which file. Some distributions provide a website as well. Which file do I want? For \usepackage{foo} (LaTeX package), you need foo.sty. For \documentclass{foo} (LaTeX class), you need foo.cls. For \input foo (TeX macro file), you need foo.tex. For \bibligraphystyle{foo} ...


32

elsarticle is not included in texlive-latex-extra http://packages.ubuntu.com/trusty/all/texlive-latex-extra/filelist, but in texlive-publishers packages http://packages.ubuntu.com/trusty/all/texlive-publishers/filelist. So, you need to install it first. Run this command on terminal sudo apt-get install texlive-publishers and then try compile your document ...


31

You can use the features provided by the listings package. \documentclass{article} \usepackage{listings} \begin{document} \noindent See the following command : \begin{lstlisting}[language=bash] $ wget http://tex.stackexchange.com \end{lstlisting} \end{document}


31

In case you're still interested, I have written a small viewing application in C++, called "dspdfviewer" for "Dual-Screen PDF Viewer". Its built specifically for latex-beamer, and it's "show notes on second screen" option. This latex-beamer option will give you a double-width PDF, where the right part are your beamer-notes, and the right part can include a ...


30

Debian derivatives I believe the easiest way is to install the texlive-fonts-extra package: sudo apt-get install texlive-fonts-extra This should take care of installation on Debian derivatives such as Ubuntu and Mint. Other distros For RPM-based distributions such as Fedora, try installing the textlive-bbm-macros- packages (on older versions, you may ...


29

Running some tests and looking at the output of the process monitor I found that on windows with miktex the "feature" of fontspec to load default settings from a file with the ending .fontspec is slowing down the font search considerably as miktex is looking everywhere for the files. Disabling the feature meant for me that this document needed only around 2....


27

If either of these two cases (or both) apply:--- [portability problems] examplestyle.sty = a file as described in the original question: namely, a personal .sty file generally available and used by several on-going projects (e.g., in TEXMFHOME or the less convenient place MikTeX likes to put it); [long-term stability problems] use of packages that are under ...


24

While in MiKTeX an installation process is automatically triggered if you have, say, \usepackage{beamer} in a document preamble without the corresponding package installed, there is no such feature on TeX Live. The last statement is not true actually, as pointed out by wasteofspace in the comments there is the texliveonfly package that implements the on ...


22

You could use a loop in the shell eg cd myfolder; for i in *.tex; do pdflatex $i;done


21

You can also use the minted package: \documentclass{article} \usepackage{minted} \begin{document} \noindent See the following command : \begin{minted}{bash} $ wget http://tex.stackexchange.com \end{minted} \end{document} You need Pygments and the --shell-escape flag when you compile.


21

Browsing around this morning, I came across pympress. It is cross-platform as it is written in python, and has the presenter look & feel you're looking for, with a window to show slides on screen and another for your laptop with time, slide numbers, next slide preview, annotations, etc. A few other nice features are native support for beamer notes on ...


21

It depends on how paranoid your settings in texmf.cnf are. Mine (default texlive 2014) says: % Allow TeX \openin, \openout, or \input on filenames starting with `.' % (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)? % a (any) : any file can be opened. % r (restricted) : disallow opening "dotfiles". % p (paranoid) : as `r' and ...


20

I wrote a grammar checker for checking TeX documents called LyX-GC. It can also be used online as a web app. It can use LanguageTool as a back-end. The main advantages over just using LanguageTool directly are that (1) it filters the TeX to avoid false positives from LanguageTool trying to interpret TeX commands as English and (2) it has hundreds of is own ...


20

Ok, I try to give as many answers as possible: Decide if you need it and can use it As you already know, ArXiv does not accept pdfs created from latex code. So you are out here if you use commercial fonts. Of course you can decide the following: print your articles with the commercial fonts submit the same article with a public fonts to arxiv distribute ...


20

Debian and Debian-related Linux distributions have apt-file to find the Linux package that contains a file, e.g.: apt-file update apt-file search extarticle.cls should result in texlive-latex-recommended: /usr/share/texlive/texmf-dist/tex/latex/extsizes/extarticle.cls Note, this method only shows files of already installed repositories. To be able to ...


19

I tested only a few minutes, but it is worth to take a look to Impressive - Is a presentation program that displays slideshows of image files (JPEG, PNG, TIFF and BMP) or PDF documents. Rendering is done via OpenGL, which allows for some "eye candy" effects. Installation is simply apt-get install impressive in Debian based distributions. Complete ...


19

from dcmst's answer -- user@host:~$ tlmgr install collection-fontsrecommended Some systems might require to run tlmgr as root, so add sudo: user@host:~$ sudo tlmgr install collection-fontsrecommended


17

You need the package perl-Digest-MD5 sudo yum install perl-Digest-MD5 After a Fedora 20 default installation, I also found that I needed wget sudo yum install wget Now you can install sudo ./install-tl


16

You're right: latex filename.tex and the other above command are means to run a flavor of TeX from the command line. They don't really require parameters, but you could also have a look at the configuration of GUI software like Texmaker, or type in the command line latex --help to show the complete list of available options. For example, the option -...


16

Under Ubuntu, fullpage.sty is in the package texlive-latex-extra. You can install it with sudo apt-get install texlive-latex-extra Since the documentation is very big (327 MB), I installed it with sudo apt-get install texlive-latex-extra --no-install-recommends


16

The full TeXLive installation comes with the documentation of its packages, usually under the path /usr/local/texlive/2016/tex-dist/doc/. The full installation takes about 4Gb, and is easiest done via the install-tl script that can be found here. More information how to install in this way can be found in this related question How to install vanilla-...


16

For SuSE Linux it is a little bit more tricky, because searching in the file list of a package is only provided for already installed package. zypper search provides searching for installed and not yet installed packages, that provides capabilities. But you have to know which capability you are searching. For TeX capabilities the packages contain provides ...


Only top voted, non community-wiki answers of a minimum length are eligible