Tag Info

Hot answers tagged

14

The version without the braces is processed a tiny bit faster than the version with braces. Typesetting one million times $\frac12$ required 8.69 seconds, while a million $\frac{1}{2}$ took 8.81 seconds. This is what I call a negligible difference; the latter syntax is clearer.


11

I am the founder of ShareLaTeX. Pouyas answer is very good so I won't go into too much detail. Essentially we know security is very important to all of our users so we take the most care possible. However as soon as your put your data on any 3rd party service there is a chance it could all go very wrong. It is a good idea for you to always be cynical and ...


6

You could define your own conditional, say \ifTikZVthree and use \ifTikZVthree % <TikZ version 3 stuff> \else % <TikZ version pre-3 stuff> \fi in your document to define separate version 3/pre-3 stuff. The following minimal example defines \checkTikZversion that checks the version of tikz via the macro \ver@tikz.sty - defined whenever a ...


6

Irrespective of the 'document level' interface you use, at the level of primitives using Lua means that the \directlua primitive is being used. The logic here is easy enough to follow provided you bear in mind this is 'Lua-in-TeX'. When LuaTeX parses a file it works in the same way as 'classical' TeX. Thus each token is read and expanded, executed or ...


6

The easiest answer is to follow the table in the autolatex site. According with that table, Autolatex: Is more recent (2014 vs 2012, and in active development, as it can be seen in its git repository) Is implemented in python (vs Perl). This is a + for me :-) Supports more tex engines (as xelatex, lualatex) Can automatically convert some file types to ...


5

This .tex code uses a counter called NumberOfRuns and writes its value to the .aux file at the end of the document (\AtEndDocument). In the beginning of the document, after the .aux file is read, the counter value is known and then increased. It is easy then to react to the current counter value via \ifnum or \ifnumexpr commands, for example from the ...


5

With all solutions I tried back in the day (definitely not all), I had at least one of the following issues. You have to manually specify which commands should be executed how often and in which order. Temporary files crowd the document folder. No automatic rebuild on file changes. No support for external tool X and hard to integrate. No help at all with ...


5

It's a good question, because the issue can happen to other users. For several years, the only practical way for inputting Greek was through a transliteration table (a for alpha, b for beta, 'a for alpha with tonos and so on). TeX Live 2012 included the lgrx package that allowed direct UTF-8 input of Greek, so that a UTF-8 document like ...


4

When you do \usepackage{tikz} you have the macro \pgfversion available. We actually want to compare the main version number only, so we can do \documentclass{article} \usepackage{tikz} \newif\iftikziii \begingroup \def\getmainversion#1.#2\getmainversion{#1} \ifnum\expandafter\getmainversion\pgfversion\getmainversion=3 \global\tikziiitrue \fi \endgroup ...


3

You can make your life easier if you could switch to xelatex or lualatex: \documentclass[a4paper]{article} \usepackage{fontspec} \usepackage{libertine} \usepackage[polutonikogreek,english]{babel} \begin{document} The starting verse of the Iliad is \begin{quotation} Μῆνιν ἄειδε, θεά, Πηληιάδεω Ἀχιλῆος \end{quotation} and it's really great. \end{document} ...


3

I think the issue comes from the "&" in "Logistics & Distribution Management". When parsing it, latex thinks it is alignment tab caracter (as stated in your log). You can try to replace "&" by "\&" (or "and" :) ).


2

No. There is no way to do that. At least, there is no way to do that with beamer or any TeX software I'm aware of. The pauses just are separate pages in the output PDF. When you display the slides, a pause corresponds to a change from one page of the PDF to the next. So, if you have n pauses on a slide, you need n+1 pages in the PDF. Remove the page breaks ...


2

It's just a warning, which tells you, you didn't set a backend to manage your bibliography, so biblatex uses the fallback biber. If you want to get rid of the message, you can choose manually between bibtex, bibtex8, bibtexu and biber. Just add backend=xxx in your biblatex line. Since you didn't modify the code (and hence your outcommented string says it), ...


2

One of the most used way to do that is to split your main file in several files, and to include them with the include command. \documentclass{article} % Preamble \begin{document} \include{chap1} \include{chap2} \include{chap3} \include{chap4} \end{document} chap1.tex, …, chap4.tex being tex files containing only the content of those chapter (no preamble ...


2

My objective was to be able to compile easily even if the system haven't latex installed or the package are not up-to-date compared to my own system (I used several computer without all the package or with a 2 years back version). I have a git repository to centralized all my source (you can use a draft repository easily). A Makefile similar to Charlie. In ...


2

http://latex.aslushnikov.com/ Is what you are searching for. Example of compile git repo from some master LaTeX file: PDF


1

This is a quick and dirty solution, but I do not recommend it really (;-)) Use the command \printthis[false]{% before the portions of code you do not want to end up in the .pdf file and add } after the end of that portions. It hides the content as if would be a comment. \documentclass{book} \usepackage{blindtext} \usepackage{etoolbox} ...


1

This isn't the prettiest solution, but it gets some of the way towards what you wanted (i.e., using latexmk and a confirmation dialog): First, your first script can be substituted for something like this: for f in "$@" do file_ext=${f##*.} if [ "$file_ext" = "tex" ] then foldername=$(dirname "$f") filename=$(basename "$f" .tex) ...



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