# Tag Info

## New answers tagged errors

0

Thez problem comes from the paragraph that comes just after the quotation environment and begins with Tímto pravidlem. More precisely the use of \Alph: it's a LaTeX command that formats a counter display, and its argument has to be a counter. I don't understand what was expected with this command.

3

You need braces for the subscripts: \mu_{\hat{p}} and \sigma_{\hat{p}} \documentclass{article} \usepackage{amssymb} \begin{document} \begin{itemize} \item $\mu_{\hat{p}}$ is the mean of all possible values of $\hat{p} = \pi$. \item $\sigma_{\hat{p}}$ represents the standard deviation of all possible values of $\hat{p} = \sqrt{\frac{\pi(1-\pi)}{n}}$ ...

0

This also occurs if you already have an install of MikTex but for some reason it gets broken. As happened to me this morning :S The fix is to simply as MikTex to update. It will then tell you there is a problem as it can't find itself, but offers to fix the problem. Update any files you want to update eh Presto, problem solved.

3

Despite the fact I've never heard of Texnicle it appears that it runs latex at the location of the project file, so your main tex file needs to be there (or on teh Tex input path) otherwise TeX won't find it.

1

I had same problem, but I found the solution. In my case, I had \\ in some fields, for example : \title{ Administrateur système GNU--Linux \\ Responsable technique. } When I deleted \\, the compilation ran correctly. \title{ Administrateur système GNU--Linux Responsable technique. } If there is a \\ string in the fields firstname, ...

1

Just adapt the commands for the pdf viewer (Configure Texmaker -> commands) or use the "Use a 'build' subdirectory..." option for the (pdf)latex command.

1

Here is a version using stringstrings. While the \convertchar macro cannot be nested inside of a \num argument, its result (\thestring) is expandable, and can thus be solved in a two-step, as I do in the macro \Inum (indirect \num). EDITED to take not just letters, but words, as arguments. \documentclass{article} \usepackage{stringstrings} ...

4

As the manual says, commands from xstring are not fully expandable and may not be nested nor used e.g. in \edef. Several of the xstring commands thus have a final optional argument which is a macro where the result may be stored. This in to the situation for \IfStrEqCase, so you need to provide something like this in the code for each case. For example: ...

2

The ws-ijcis is not compatible with amsmath; it defines its own equation* environment. It's not compatible with amsthm either, because it defines a proof environment. The weird error is due to the fact that you don't load amsmath prior to amsthm, so following a branch in a conditional where a wrong assumption is made on \[ (which is again redefined by the ...

5

Heiko already provided a solution (use the alphalph package); I'll add a quote from section 1.6. of the footmisc (sic!) documentation which refers to constraints of the package's symbol option. symbol can handle at most 16 footnotes per page, so it is likely that its problematic behaviour also applies to your example using alph (which can handle 26 footnotes ...

9

In the first run it is not known, on which pages the footnotes go. Thus it might happen, that a footnote exceeds the 26 letters. You can try package alphalph to allow higher values for the footnote counter: \usepackage{alphalph} \renewcommand{\thefootnoteB}{\emph{\alphalph{\value{footnoteB}}}}

6

Your code can be reduced to \documentclass{article} \usepackage[latin1]{inputenc} \begin{document} õ \end{document} and it will still throw the ! Missing $inserted. error. Exactly what happens 'behind the scenes' I don't know, but it may be that this is caused by your editor using a different character encoding than that specified for inputenc. According ... 8 egreg is right, of course. The statement should be$\beta = -0.84$,$t = -0.209$,$P = 0.04$\beta is a math character and will need some math environment to be displayed. That could be inline math mode, using$...\$ or some equation environment. You would also like the spacing to be correct between the numbers and the mathematical symbols, thus wrapping ...

4

Change all those accidentally copied HTML codes &lt; and &gt; to < and >, respectively. Then the code becomes (completed): \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[line/.style={>=latex}] \coordinate (V1) at (1, 1.3); \coordinate (V2) at (-1.6, 0.4); ...

4

In his answer Werner has shown in detail, how the file can be found that belongs to the line number in the error message. My guess is the .aux file, because deleting it has cured the problem. \zref@n looks like a command of package zref. However, it does not define or know this command; it is not listed in the index of the package documentation. Also ...

7

TeX uses external files to manage its process of compilation. The reason for this is that it does a compile in a very straight-forward one-pass way, gobbling and typesetting on the fly. The only way you can therefore have a successful forward-looking reference, say, is to retro-actively correct it once you've established what it should be. TeX's way of ...

2

border code=\color[blue]{0.4}\pgfsetlinewidth{20pt}\pgfstroke,% I suppose you meant color model gray \color[gray]{0.4} or maybe \color{blue!40}

2

use \scalebox{0.7}{\parbox{\linewidth}{% ... }} Otherwise you'll get two paragraphs inside scalebox. However, two equation environments can be replaced by one of the align environments from amsmath.

7

The error happens when \pr@\end@dblfloat is being executed, which uses \end@dblfloat. Let's compare the definitions of \end@dblfloat in the kernel and in fixltx2e: latex.ltx \def\end@dblfloat{% \if@twocolumn \@endfloatbox \ifnum\@floatpenalty <\z@ \@largefloatcheck \@cons\@dbldeferlist\@currbox \fi \ifnum \@floatpenalty =-\@Mii ...

3

On line 822 of the code you linked to, you have: \begin{figure} % fl1400 \begin{figure} % kroA150 So you start a figure environment inside another and this produces the error (you cannot nest floats); remove the \begin{figure} from line 822. This will leave you now with a ! LaTeX Error: Too many unprocessed floats. error, since LaTeX can't handle all ...

1

It does not compile because of the line 11, uncomment %\usepackage{unicode-math} and uncomment %%%%%%%%%%%%%%% BRACES %%%%%%%%%%%%%%%% %\setmathfont[BoldFont={latinmodern-math.otf}]{latinmodern-math.otf} %\setmathfont[range=\mathscr,Scale=MatchUppercase]{Asana-Math.otf} where I don't know anything about the package. Perhaps someone here able to help with ...

1

My suggestion: Remove package pgf from MiKTeX with Package Manager and reinstall. There must be a flaw in your installation. Too long for a comment. I do not observe an error with MiKTeX 2.9, which was updated yesterday and does contain the update to pgf/TikZ 3.0. File list for compilation of example code with \listfiles: *File List* article.cls ...

1

I had the same issue, and then I had a little difficulty getting TexShop to locate ecta.bst. Namely, there are two library folders, one is invisible in finder by default, and MacTex is picky about where the .bst can go. Here are a few pieces of information that remedy these issues: 1) (http://pages.uoregon.edu/koch/texshop/whereisstuff.html) Personal ...

3

you should define (before \maketitle) something like \degree{Master of Universe} otherwise the internal \@degree is not defined which is used for the title.

3

The diagnosis made by Gonzalo Medina is good. However, the workaround he proposes is not really good. Actually, redefining < and > as active characters expanding to \textless and \textgreater is simply wrong. The template uses the in the acknowledgment section, whereas the correct characters would be \textlangle and \textrangle. In any case, using ...

6

The problem is that the file csm-thesis-encoding.sty turns > and < into active characters; search around lines 47-52 and you'll see: \begingroup \catcode\>=\active \csm@redefine@char{>}{\textgreater} \catcode\<=\active \csm@redefine@char{<}{\textless} \endgroup You can either: Comment out those lines; this implies that now > and ...

2

The error message you get is indeed puzzling: forgetting the second argument for \setlength most of the times results in ! Missing number, treated as zero. or, if a number happens to follow, in ! Illegal unit of measure (pt inserted). Let's see why you get the mysterious ! LaTeX Error: \relax undefined. error message. First of all, as already ...

1

Footnotes, by default, cannot contain "naked" verbatim content. However, loading the bigfoot package, for instance, will allow you to use a single-character shorthand for inline listings (such as |) in footnotes without any problem. Typesetting an inline listing in a caption using a single-character shorthand is more difficult; see, for instance, verb ...

3

You compile it in a wrong way. Correct compiling order is: htlatex filename "tex4ht.sty opt" "tex4ht command opt" "t4ht command opt" "latex opt" in your case this means this command: htlatex filename "MyFonts, NoFonts, -css" " -utf8" "" -shell-escape this generates fine html for me. some further notes: you request -utf8 option for tex4ht command, ...

2

Make sure the file is in the encoding you are trying to use, and that the right \usepackage[...]{inputenc} (or whatever other magic is required) is at hand. I've had cases where the .aux or other LaTeX-written files contained cruft from earlier runs, or just were plain corrupt, and gave symptoms as you describe. Starting with a clean slate might help.

0

Most of the time I see error messages like this it is due to forgetting a mandatory argument (some length) to a command, sometimes due to a {...} or similar that gets misinterpreted. Check the documentation for the environments/commands used on the offending line (and nearby ones, or sometimes the one just closed) and make sure nothing is amiss. [Yes, I ...

1

Don't use \pagetotal in \cfoot. Use lastpage to get the total number of pages tex.ac.uk/cgi-bin/texfaq2html?label=nofm.

8

Probably you have an out-to-date KOMA-Script bundle and that's why you get those errors. Apart from that, try to avoid using fancyhdr with KOMA classes, since it is not recommended. You can use the package scrlayer-scrpage which is designed to work with such classes. So, you can replace the lines \usepackage{fancyhdr} % Custom headers and footers ...

2

I've just taken a look at your code and it seems to compile perfectly normally in TexMaker. This is the output I got using your code with no changes: Is this what you were expecting? I've tried sticking your code into the Writelatex website for a live preview and it works fine too. Try the Write a new paper link, delete the template code and add your ...

3

Load the package \usepackage{amssymb} to enable the macro \mathbb. Loading the amsmath package too is always a good idea: \usepackage{amsmath} Here you'll find some more information.

0

(As has already been pointed out, the immediate reason for the compilation failure is that you're missing a right curly brace after the first .508 bar in the final calculation of V.) In addition to using the capabilities of the siunitx package to handle the formatting of units, I'd also use an align* environment to typeset the sequence of calculations. ...

10

You won't be needing one big math environment for this. Further, it is a good idea to use siunitx package for typesetting your units. Here is a sample: \documentclass[]{scrreprt} \usepackage{amsmath} \usepackage[per-mode=symbol,detect-weight]{siunitx} \DeclareSIUnit{\inHg}{inHg} \DeclareSIUnit{\mmHg}{mmHg} \begin{document} \noindent Molar Mass of Nitrogen\\ ...

2

Too long as a comment. \documentclass[oneside]{book} \usepackage{graphicx} %\graphicspath{{./}{./SubdirOne/}{./SubdirTwo/}<... more items here ...>{./SubdirOne/SubsubdirOne/}} \graphicspath{{./}{./SubdirOne/}{./SubdirTwo/}} \begin{document} \chapter*{Basic Graphics} \begin{figure}[h] \centering \includegraphics[width=0.5\linewidth]{quadratic} ...

3

I wouldn't recommend using utf8x; with the package option utf8x to either inputenc or inputenx, but it works also with XeLaTeX and LuaLaTeX, you can use newunicodechar: \documentclass{article} %%% Optional part if you want to use multiple engines \usepackage{ifxetex,ifluatex} \newif\ifxetexorluatex \ifx\ifxetex\ifluatex % see ...

3

\usepackage[utf8]{inputenc} or \usepackage[utf8x]{inputenc} are needed for TeX engines that do not support UTF-8. Then TeX sees the two bytes C2 and AD and utf8.def or utf8x.def make C2 active to catch AD to print the symbol or execute \- or whatever. In XeTeX, the bytes C2 AD become the "big" character AD. "Big" character means that character with ...

4

This solution uses circuitikz environment rather than tikzpicutre environment, then the errors are gone. To move the v1 away from the resistor, raisebox{neg height}{content} is used while for the v2 only \,\, is used. Code \documentclass{article} \usepackage{tikz} \usepackage[american,siunitx]{circuitikz} \usepackage{latexsym,amssymb,amsmath} ...

2

By installing the right package that contains todonotes. I'm not a user of Fedora but after a quick search I think you can get todonotes.sty by installing this package (which seems to be a subpackage of texlive, but I don't know how Fedora manage it): https://apps.fedoraproject.org/packages/texlive-todonotes

3

Yes, it is known bug, it was caused by new Koma Script version in TL 2013. You can read some more information here. I created patch for tex4ht literary sources, scrfonts.patch: --- /home/mint/Downloads/tex4ht-4ht(1).tex 2014-01-20 10:10:43.922759293 +0100 +++ tmp/tex4ht-4ht.tex 2014-01-20 10:15:29.566168889 +0100 @@ -17243,10 +17243,11 @@ ...

4

Too long for a comment. Can you try the following example? \documentclass{article} \begin{document} Hello \pdfsetmatrix{.52495 0 0 .52495} World \end{document} If it breaks, what happens if the \pdfsetmatrix line is replaced by the following? \pdfsetmatrix{2 0 0 2} or \pdfsetmatrix{2.0 0.0 0.0 2.0} So far I could not reproduce the problem, ...

4

The first argument of the tabularx environment should be the width that the tabularx should span. In your case, you passed it a length #, which is incorrect. Instead, pass it something like \linewidth: \noindent \begin{tabularx}{\linewidth}{...} ... \end{tabularx} The usage/notation is mentioned in the tabularx documentation: ...

0

I got the same error message when I forgot to install MikTex on my computer by mistake. After I installed MikTex, my code compiled without any problem. Amir

1

To drop back to the command line on the first error like gcc (or other compilers do), use: pdflatex -halt-on-error yourfile.tex

4

Your code contains several "dangling" environments, e.g. a \begin{itemize} without a matching \end{itemize}, or an \end{block} without a matching \begin{block}; those cause beamer to throw errors, which, unfortunately, are not very informative, because they usually don't tell you where those "dangling" environments are. However, systematic code formatting ...

7

Add the line \usepackage{amsmath} in the preamble. amssymb is meant for special symbols. \documentclass[11pt, oneside]{article} \usepackage{geometry} \geometry{letterpaper} %\geometry{landscape} %\usepackage[parfill]{parskip} \usepackage{graphicx} % ...

3

You have a spurious \) before the start of the second \item, which should only be ).

Top 50 recent answers are included