Tag Info

Hot answers tagged

13

standalone can be set up to recompile included pictures only if required. Otherwise, it will include the previously compiled PDF. So it is not necessary to switch to \includegraphics to benefit from pre-compilation. Here's a basic example. The figure: % mytikz.tex \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{cathod} \begin{document} ...


4

This is what I do: If you are serious about it, it is possible to save your entire LaTex distribution (including binaries) as well as your own code with every final compile. I do this in fact and it is not as much of a problem as you might think. You could use a version control system, but I use 7zip which allows differential backups of all modified (and ...


3

First of all, you have to check if your desired commands are already defind: % arara: xelatex \documentclass{article} \usepackage{unicode-math} \show\feq \show\nfeq \begin{document} foo \end{document} The .log shows: > \feq=undefined. l.12 \show\feq > \nfeq=undefined. l.13 \show\nfeq So there should be no problem in using those. If they ...


3

The following restores the missing \faLinkedInSign and \faCircleBlank required under XeLaTeX (taken from Revision 29485 of moderncv): % !TeX TS-program = xelatex \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry} \name{John}{Doe} \title{Resum\'e title} ...


2

This is a comment not a question, but it's too long to fit into the comment field. Let's try to get the output from latexmk when its run through Sublime Text since it seems to be different from running latexmk from the console. To do this we'll need to modify your local copy of makePDF.py. To find this file: In Sublime Text, run the Preferences: Browse ...


2

It seems to me that publications will mostly want pre-compiled graphics. You can ease your quandary relatively painlessly by moving your preamble and Tikz/PGF graphics to separate .tex files and use \input to give yourself a choice at compile time. For instance, your main document might look like: \documentclass{report} \input{preamble} \begin{document} ...


2

It turns out that the unicode-math package I was using was an old one (0.7e) and the new version (0.7f) does not have the problem... Also, in case anyone gets into trouble with the package updating and both TeXworks and the package updater cannot run (they complain of missing DLLs), I solved it by copying the old DLLs (I'm on Windows so I could retrieve them ...


2

Don't use empty lines in an align* etc. enviroment. In the example above, there's an empty line between the only math content line and the \end{align*} statement. The same is true for align, alignat and equation, gather etc. It's better to use \DeclareMathOperator for \alt, since alt is apparently an operator. \documentclass[12pt]{amsart} ...


2

You could use the package polyglossia which allows you to define a main language and additional languages as well as special fonts for each language (you have to make sure the font you want does contain the desired characters at the code points you enter!). It also takes care of selecting the correct hyphenation algorithm for the chosen languages: ...


1

From the subfiles docs: If the subfile is typeset by itself, it takes as preamble the one of the main file (including its \documentclass). The rest is typeset normally. It depends what you mean by "undefine" (and I don't have enough rep to ask in a comment for you to clarify), but I read it as one of two things: You removed ...


1

The packages ifluatex provide for \ifluatex and ifpdf for \ifpdf statements. Use it \ifluatex ... \else ... \fi (\ifpdf as well) \documentclass{article} \usepackage{ifluatex} \usepackage{ifpdf} \ifluatex \usepackage{luaotfload} \else \ifpdf \usepackage[utf8]{inputenc} \typeout{PDF only} \fi \fi \begin{document} \ifluatex Yeah, it's lualatex ...


1

If I use the command line > pdflatex -interaction=batchmode -file-line-error test and press Return, here's the output I get on the terminal This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode although the file starts with \error and, indeed, the log file ...


1

Here is a basic tutorial for a Unix-like system (tested on Debian GNU/Linux). Yes, one can use latexmk, arara, shell scripts, or editor functions to automate much of this, but I wanted to demonstrate the simplest way to write and compile a LaTeX file "by hand" in the terminal. Open Terminal emulator Enter a directory where you will create your files. Type ...



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