# Tag Info

## New answers tagged errors

0

Try, epstool --copy --bbox curve.eps --output curve1.eps This should generate proper bounding box. Then, epstopdf curve1.eps should work properly. Hope it helps.

1

Inlage, by default, has this path: C:\Program Files (x86)\MiKTeX 2.9, which is true if you install a 64 bit windows. On the 32 bit windows, you have make it like C:\Program Files\MiKTeX 2.9 i.e, without(x86). This can be done in the following manner. Go to Build → Compiler Options and choose Compiler. This window will open: Here you can change the path. ...

2

A solution with PSTricks. \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-plot} \psset{algebraic} \begin{document} \begin{pspicture}(-2,-1)(2.5,10.5) \psaxes{->}(0,0)(-2,-1)(2,10)[$x$,0][$y$,90] \psplot[linecolor=red]{-1.5}{1.5}{x^4} \psplot[linecolor=green]{0}{1.5}{sqrt(x)} ...

2

As ferahfeza mentioned, you can use the axis environment to plot functions. Here is an example: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot {x^4}; \addlegendentry{$x^4$}; \end{axis} \end{tikzpicture} \begin{tikzpicture} \begin{axis} \addplot {sqrt(x)}; \addlegendentry{$\sqrt{x}$}; ...

1

This can also happen if one of the BibTeX entries is missing the label (shortcode). One possible scenario is when the bibliography is exported from e.g. EndNote and the label for the entry has not been set in EndNote. (This happened to me.)

0

Thanks to Andrew Swann for suggesting the following fix: Added (important note: This was not necessarily directly related to my original problem, but was a part of the changes made before my setup worked without errors): \usepackage[utf8]{inputenc} and changed: \bibliography{citations.bib} into: \addbibresrouce{citations.bib} This solved my ...

4

You need to use \protect\grn or else \grn is expanded to \color{NGREEN} when the section heading is converted to upper case. \documentclass{revtex4} \usepackage{color} \definecolor{ngreen}{rgb}{0.2,0.7,0.2}%161 \newcommand{\grn}{\color{ngreen}} \begin{document} \section{\protect\grn This is a section} \end{document} This is not specific to revtex except ...

0

The error is not connected with tcolorbox. You have to put the closing bracket after \end{verbatim} in a new line because it is dropped otherwise: \documentclass[10pt,a4paper,oneside,spanish]{article} \usepackage[spanish,es-nodecimaldot]{babel} \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage[T1]{fontenc} ...

1

From Version 4.1 onwards, Texmaker gives more meaningfull error compared to the earlier Could not start the command error, but unfortunately it does not prompt for SAVE dialog box with untitled-1.tex like TeXworks. A document must be saved with an extension (and without spaces or accents in the name) before being used by a command. So as alessandro ...

2

Try to save your document before compiling,if you haven't done it yet.

1

This answer has been tested and it works as expected. Step 1: Create a batch file To avoid recompiling the C# source code to be in sync with the (La)TeX compiler you want to use, it will be convenient to create a batch file. The batch file executes (La)TeX compiler behind the scene. Save the batch file anywhere and set the PATH system variable to the batch ...

4

For some reasons, \CurrentOption is defined to expand \@nil and not to empty, as LaTeX expects. This seems to ba a bug in totpages, which processes options in a personalized way. The problem may be solved by loading totpages before any package that loads it and to add \def\CurrentOption{} after it. \documentclass[titlepage]{article} ...

9

\documentclass{article} \begin{document} $$\mu_{A}(x)\in [0,1]$$ \end{document} If you change the expression to the one in your question then you get the error message ! LaTeX Error: Bad math environment delimiter. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... ...

1

This would be a reply to the OP's comment, but for the need for formatting (and probably length). Create a file containing the following, call it hw.tex \documentclass{article} \begin{document} Hello World \end{document} from the command line, in the folder where that file is saved, type pdflatex hw. Does it work? then move hw.tex to c:\, and run ...

3

After testing your example, these warnings seem to be the result of the \multiply commands in the code of \pgf@arrowset. The expression after by in a \multiply command must be an integer. If it expands to a decimal number the . and the digits following are seen as text. The following changes should be made: change \multiply\pgflinewidth by ...

1

I've never heard about a default.sty file. It's a risk one incurs in when using templates found somewhere, which are customized in various ways and maybe refer to personal style files that are not available to the general public. Judging from the error message, you have a line \usepackage{default} that you should remove.

4

If you take my tikz answer and add 0.5pt between the two \draw commands, you get no error, and the output looks the same but the log warns: Missing character: There is no 0 in font nullfont! Missing character: There is no . in font nullfont! Missing character: There is no 5 in font nullfont! Missing character: There is no p in font nullfont! Missing ...

0

In (plain)TeX one of ASCII character has category code 15 (invalid). Probably such a characters appears somewhere in you files. Please try to add \catcode\^^?=12 just after \begin{document}, as it is shown below. \documentclass{article} \begin{document} \catcode`\^^?=12 % Comment this line to see the difference AAA ^^? \end{document} If the problem ...

2


1

Even though the OP has indicated a reluctance to switch from pdfLaTeX to LuaLaTeX so close to the submission deadline, I'll offer the following method anyway, as it's really not that difficult to implement: % !TEX TS-program = lualatex \documentclass[11pt]{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{EB Garamond} % Remainder of document same ...

0

Check out http://en.wikibooks.org/wiki/LaTeX/Mathematics#Matrices_and_arrays Has everything you need about dots and such.

5

Your issue is you haven't defined all the columns you want in the tabular environment. \begin{tabular}{ccc} only defines a table with 3 columns; add another c.

7

\\ can not be used to break a paragraph in math mode... Probably you wanted something like or Code (for both of them) \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} 6x_1 + 4x_2 = 9\\ x_1 + 5x_2 = 0 \end{gather*} \begin{align*} 6x_1 + 4x_2 & = 9\\ x_1 + 5x_2 & = 0 \end{align*} \end{document}

3

You are probably expecting: \documentclass{article} \begin{document} The system of linear equations $\begin{array}{r} 6x_1 + 4x_2 = 9 \\ x_1 + 5x_2 = 0 \end{array}$ can be also depicted as $\left( \begin{array}{ccc} 6 & 4 & 9 \\ 1 & 5 & 0 \end{array} \right).$ \end{document} The meaning of double backslash depends on ...

2

I suggest to proceed with something like this, which is (in my opinion) more \LaTeXy and compiles fine for me. If you really need the italic title and sections, this can probably be changed, I just went with the defaults. \documentclass[paper=a4]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{amsmath} ...

0

Sorry to reactivate this old post but there was no correct answer. The message : (running on Debian, switching to user mode!) cannot setup TLPDB in /home/USER/texmf at /usr/bin/tlmgr line 5308. is generated when tlmgr was not initialized. In most cases, launching the following command (as a normal user) solves the problem : $tlmgr init-usertree ... 1 According to this post Are itemize and EBGaramond compatible? there is a bug in EBGaramond. Using the code @egreg posted in his answer, you can fix your example like this: \documentclass[11pt]{article} \usepackage{ifluatex,ifxetex} \ifluatex\else\ifxetex\else \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \fi\fi \usepackage{ebgaramond} ... 0 karlkoeller's answer solves the problem. Using the cvcolumns environment also works. However, I wanted to know why this error occurred. I dug into the code of the moderncv class and its various styles, and I think that the asymmetry that I experienced is due to an asymmetry in the definition of the \cvlistdoubleitem macro. Its definition (in the classic, ... 6 As you have discovered, the error is caused by the line: \renewcommand{\bibname}{Bibliography \addcontentsline{toc}{chapter}{Bibliography}} This is a terrible place to put the \addcontentsline command, and that's the source of the problem. The simplest solution (without modifying the package itself) is simply to undo this command and put the two parts ... 0 As noted in the other answers, you should stay in math mode within your equations, nesting text mode inside where text is needed (si$u_n$est pair/impair). You seem to have some issues with accents, too. This question on How to type special/accented letters in LaTeX? might be useful. 1 Your definition of pfof10 says it has an argument, but you use it without any argument. This will cause LaTeX to go looking for one and take the first thing it finds. In your example, that is \\. This alone should not cause any error, but it could give unexpected results. You also include a \ref{n} in the code. This is fine if you are proving a theorem ... 5 First, let me explain what was wrong with the original code. The cells of an array environment are already in math mode, so the first$ typed inside one leaves math mode. In an array, one needs special commands like \text{} or \mbox{} to enclose the non-math portions, but nothing special for the math. However, given amsmath is being used, the cases ...

4

You can fix it using \newline instead of \\. \documentclass{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \name{John}{Doe} \begin{document} \section{References} \cvlistdoubleitem{Prof. Charles Xavier}{Prof. John Frink \newline Trinity College, Cambridge} \end{document} Output:

3

\documentclass{article} \usepackage{amsmath} \begin{document} This is your equation corrected: \begin{equation*} f(\mathrm{count}_{i,t}\mid\lambda_{i,t},\theta_i) = {\Gamma(\lambda_{i,t} + \mathrm{count}_{i,t})/{\Gamma(\lambda_{i,t})\Gamma(\mathrm{count}_{i,t}+1)}}{(\theta_i/{1+\theta_i})}^{\mathrm{count}_{i,t}}{(1/{1+\theta_i})}^{\lambda_{i,t}} ...

0

Only one part, to show the idea. Original lines commented, then changed. \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} Suite de Syracuse : %$\forall U_0\ge 1, u_{n+1} =$\left\{ $\forall U_0\ge 1, u_{n+1} =\left\{ \begin{array}{lcr} %$\dfrac{u_n}{2}$si$u_n$est pair\\ \dfrac{u_n}{2} \mbox{ si$u_n\$ est pair}\\[6pt] 3u_n ...

12

\newline is not defined in Plain TeX. There are also other problems in your code: you set \leftskip and \rightskip but close the group before it can act. \input plipsum % for mock text \def\thm[#1]{% \par % get in vertical mode \begingroup % open a group \leftskip 1in \rightskip 1in % set the margins \noindent {\bf Theorem.} {\it #1}\par\nobreak % ...

6

You can not have a floating environment inside the optional argument of \twocolumn also you need to hide inner [] from any LaTeX optional argument by using a brace group. [{... [...]...}] \documentclass[twocolumn,12pt]{article} \usepackage[demo]{graphicx}% [demo] as I have not got the figure \usepackage{setspace} \doublespacing \usepackage{capt-of} ...

0

The \twocolumn macro looks for an optional argument by checking if the next token is [. Therefore the rogue [ after \twocolumn upsets LaTeX enormously. Delete it, and your document will (probably) compile.

4

\show uses the same internal routines that TeX employs for error messages. Judging now this may seem a design error, but one always has to keep in mind that TeX was released in 1982, when computer memory was quite scarcer than it is today. A front-end like Texmaker could, in principle, distinguish between diagnostic messages given by \show (or \showthe) and ...

8

The issue here is the mdwtab package, which completely alters the tabular code from array. Within siunitx, the code attempts to be cross-compatible by not making too many assumptions, but array is very widely used and so is treated as a baseline. To fix the issue, there are a couple of changes needed. First, you have to account for this altered table ...

12

The trick is to bind the macro to something which is not defined. Traditionally, the macro \undefined is left undefined (!) so you can simply do \let\foo\undefined If, for some (probably wrong) reason you or some package defines \undefined then this trick won't work. In any case, if you later want to manually check whether \foo is defined or not, you can ...

0

Thank you again to everyone for their input above. Credit for resolving what proved to be quite a specific problem goes to author of the 'chemstyle' package himself, Joseph Wright. An old version of 'caption.sty' was hidden in a template package installed in the root texmf tree - simply deleting this allowed correct compilation of all test files. The ...

0

Hit Alt+F7 and set viewer preferences according to the example. It works with win7 and Adobe 11.

0

I got the same error with Pandoc. It was: pandoc: Error producing PDF from TeX source. This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) restricted \write18 enabled. ---! /home/user/.texmf-var/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied) I fixed it by removing / renaming the ...

4

The error message too deeply nested error is removed if the description environment is used. It seems that (and I quote) "There are three predefined environments for creating lists, namely enumerate, itemize, and description. The first two can be nested to depth three". This comment pushes me to use 'description' and it does work. Please check page 111-114 ...

1

I found the answer: \usepackage{amsmath}

1

Note that this is not a Zotero bug, though. You have set the Zotero export charset to utf-8 and an en-dash is a valid utf-8 character. You can solve this without search & replace by either using \usepackage[utf8]{inputenc} as e.g. per Highlight changes in a specific entry of a reference list created with biblatex. Alternatively, you can set the export ...

0

This is indeed a bug in media9 in connection with really big files, the bigfiles option and the dvips route. An update, version 0.34, is being prepared and will be available for TeX-Live users within the next 2 days. MiKTeX may take somewhat longer.

0

For me (on Ubuntu 13.10 with TeX Live 2013) I solved the problem by re-installing the texlive-base package. # sudo apt-get install --reinstall texlive-base I installed my tex-dist with the normal installer, not the install-tl-ubuntu.

1

Follow these steps: Delete the .aux and the .bbl files Do your changes (in the \bibliographystyle or in any option of natbib) Run LaTeX Run BibTeX

Top 50 recent answers are included