Hot answers tagged

13

There are syntactical reasons. LaTeX has the concept of environments, not present in plain TeX. The environment document is the outer environment of the document contents. The setup/configuration of the document is separated from the actual document contents and this is done in the preamble before the environment document starts. The preamble loads the ...


11

Let's look at how \enddocument is defined (see latex.ltx, the LaTeX "kernel"): \def\enddocument{% \let\AtEndDocument\@firstofone \@enddocumenthook \@checkend{document}% \clearpage \begingroup \if@filesw \immediate\closeout\@mainaux \let\@setckpt\@gobbletwo \let\@newl@bel\@testdef \@tempswafalse ...


6

try this \documentclass[varwidth]{standalone}[2011/12/21]


5

One additional step, but might be of interest anyway: Add \pagestyle{empty} to the preamble, so you have pdflatex '\documentclass{article}\pagestyle{empty}\begin{document}\input{tab1}\end{document}' and then run pdfcrop article.pdf where article.pdf is the file made by pdflatex. This produces a file article-crop.pdf. pdfcrop is a command line tool ...


4

If you click on the "compile error" or "warning" label on the upper right, that should display the error message or warning message window (if it's not already open). There's a recompile from scratch option at the bottom of this message window; you can click on that to delete the auxiliary files (.aux, .toc, .lof...)


4

If you are happy setting this system wide, you can edit the customisation into texmf.cnf but it is important to pick the correct texmf.cnf. Probably kpsewhich texmf.cnf should return the correct file. On my system, for TeX Live 2015, this is /usr/local/texlive/2015/texmf.cnf. Wherever it is, the file should be almost empty with just some explanatory comments ...


3

The error log shows \int #1->\csname i-#1 some code that you have not shown has defined \int by something equivalent to \renewcommand\int[1]{\csname i-#1} so it no longer denotes an integral sign, and you get the errors that you state.


2

In the preferences of TeXShop you need to make sure that the path settings are correct. They should be: /Library/TeX/texbin As in the image below.


2

I was also looking for a way to make glossaries work with TeXworks (and XeLaTeX in my case). The short answer You can define a new processing tool in TeXworks by Edit > Preferences > Typesetting tab > Processing tools. Click on the + to give it a name like “makeglossaries”. Under “Program” simply enter makeglossaries and as arguments add one by clicking on ...


2

The errors and problems you get are comming from one bad bib entry. Please see this changes for the bib entry DICE83:online: @online{DICE83:online, author = {}, title = {DICE - eoPortal Directory - Satellite Missions}, url = {https://directory.eoportal.org/web/eoportal/satellite-missions/d/dice#foot17%29}, urldate = {2016-12-04}, } The ...


2

If you to separate your preambles from the 'body' of their document, you might think this is a good idea: create a preamble (say, preamble.tex) and their main file (say, main.tex). For example, % preamble.tex \documentclass{article} \usepackage{enumitem} \newcommand\myname{XXXX YYYYY} and then use it in: % main.tex \input{preamble} \begin{document} My ...


2

I have commented out the downright wrong code, with regards to LaTeX being able to compile it. As it stands, this code do compile, but the output result is not good. As mentioned in the comments to the question you are doing a lot of classic newbie mistakes (as we all have done at some point), and you should definitely read some basic LaTeX introductory ...


2

I've compiled your document, and the main problem comes from the fact you seem to consider that in a maths formula, only the variables have to be enclosed between a pair of $$ … $. Example: (2$x$ + 5)^{2} instead of $(2x+5)^2$. While some symbols can be understood in text mode, such as + (with a bad spacing), most of them are understood by the compiler only ...


2

Sorry, but nobody would use LaTeX if it forced such a horrible input code. Never disregard error messages you get when processing your input. Math formulas should be segregated inside $...$, like in the code below: \documentclass{article} \begin{document} $(A,B,\pi)$ having: \begin{itemize} \item $A=\{a_{ij}\}$: the state transitions probability matrix ...



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