# Tag Info

-1

The following steps worked for me after building format files was not sufficient (pdflatex kept throwing errors re dump file not found and lualatex just quit silently): Uninstall MikTex. Blow away all instances of MikTex folders under all of the user's folders. Reinstall MikTex (the most recent version). In my special scenario there were additional steps ...

0

Just wanted to mention a scenario where I got error 5 'access denied'. I run lualatex from an ASP.NET web site under impersonation. According to this http://support.microsoft.com/en-us/kb/317012 an impersonating user actually uses Default User directory and runs as NETWORK SERVICE. I might be getting it wrong, but the solution is anyway, to create MikTex ...

2

---Update--- Dear All, thanks for the suggestions. I made a minimal example and tested not loading certain packages. It turns out that when I first load the mhchem package and only afterwards the xpatch one the error disappears. So changing this solved my problem. Minimal example of non working code: \documentclass[11pt,a4paper,oneside,notitlepage]{book} ...

1

The tex-file contained ... metóda \begin{lstlisting}add_gaps_to_graph_default(...)\end{lstlisting}, ktorá. ... It works after changing to ... metóda add\_gaps\_to\_graph\_default(...), I thought lstlisting was something similar to verbatim. It successfully generates pdf file now. Thanks for MWE suggestion Steven! I'm a bit surprised error was not ...

1

@AndrewCashner's answer lead me to an answer that works for me. Open the file with vi, vim, or gvim Locate the warning (this should be easy) Type `A)' to add an open parenthesis at the end of the current line in the log file. The editor's showmatch function will take you to the line in the log file which presents the file most recently referenced in the ...

2

What's the most effective way to find the name of the file in which under- or over- full warnings occur? Search the .log file for the string erfull (either in text editor or command-line tool). This will give you all the overfull and underfull box warnings. The warnings will tell you which lines in the source file the error came from, and the log file ...

5

According to Ulrike Fischer comment (see above) "Open Miktex settings, go to the tab Formats, select lualatex and click on Build" First do it in admin mode, then in user mode. Now everything is working!

2

Bug Hunting Here's the error I get when compiling: (/usr/local/texlive/2014/texmf-dist/tex/latex/tikz-timing/tikz-timing-advnodes. sty ! Undefined control sequence. <argument> ...ter {\csname pgf@anchor@\shape@name @center\endcsname }\nodepa... l.188 } OK. So this tells us the problem is probably ...

3

Press on "edit" below that question and copy the MathJax code. You will have to replace  with $and$, though. This is valid for this example, but not for every MathJax source you will find. % arara: pdflatex \documentclass{article} \usepackage{mathtools} \DeclareMathOperator{\MSE}{MSE} \DeclareMathOperator{\NMSE}{NMSE} \begin{document} Many papers ...

2

There are several problems with your example code. You should start by immediately removing both arguments from the document environment. The instruction should read \begin{document} rather than \begin{document}[a4paper,12pt]. The document environment does not take arguments. Nothing good is going to come from supplying arguments, optional or ...

0

Solution for the macro just in case someone else should have this problem, I also want to post my solution to avoid this error in my macro \ABeschr: Sources How to check if a macro value is empty or will not create text with plain TeX conditionals? Code \newcommand{\ABeschr}[4]{\begin{minipage}{2cm} \Variable{#1}\newline \Einheit{#2} \tiny ...

7

The behaviour here is formally 'undefined': you've not supplied a value so anything could happen. I currently don't test for an empty value, only some internal tests to avoid out-and-out disaster, for example infinite loops. However, that should not be relied on one way or the other. As to where the value comes form: table-format is (currently) parsed by ...

0

Solved that by editing \Program Files (x86)\MiKTeX 2.9\miktex\config\texmf-defaults.ini and changing the line save_size=1000000 ;;50000

3

I believe your problem is due to the resolution (in dots per inch, not the number of pixels!) stored in the image file. I had the same problem with an image having a ridiculously low resolution (1 dpi or less, displayed as 1 dpi in GIMP). Saving the JPEG image again or recompressing to PNG did not help at all, but setting a reasonable resolution (e.g., 300 ...

5

If I compile on my system with save_size=1000000 lualatex bigforest I get no TeX capacity exceeded error, at least until the ! Dimension too large. <recently read> \pgf@x l.4628 \end{forest} error shows up. So one can certainly lift off the limitation on the save size (LuaTeX needs to allocate some special space for it, but it's extendable at ...

3

It does look like a bug. I haven't completely isolated it (yet!), but it seems to stem from a failure of the listings package to properly load the "aspect" keywordcomments (which the Algol language requires). If you load the latter explicitly in your preamble, with \lstloadaspects{keywordcomments} the error that's bothering you doesn't occur. You can use ...

3

Assuming your question is about the over full box, the line was overfull as you had specified the parbox to be the full \linewidth wise, but \colorbox adds \fboxsep padding either side, the box is indented by paragraph indent unless you suppress that, and there were one or two word spaces from missing % at ends of lines. This version has no warnings: ...

1

You have to run mpost on the produced file, the emp package doesn't do it automatically. This works: \documentclass{article} \usepackage{emp} \usepackage{ifpdf,graphicx} \ifpdf \DeclareGraphicsRule{*}{mps}{*}{} \fi \begin{document} \begin{figure} \centering \begin{empfile} \begin{empcmds} input metauml; \end{empcmds} \begin{emp}[classdiag2](20, 20) ...

1

You shouldn't mix the use of enumitem and enumerate since their interfaces differ and are conflicting. Perhaps you're after this type of layout: \documentclass{extarticle} \usepackage{enumitem} \setlist[enumerate]{itemsep=0mm} \begin{document} \section{TEXT} \begin{enumerate}[label=\thesection.\arabic*] \item \textbf{TEXT} ...

0

When you find mysterious error messages, a good strategy is trying with \protect: \Qcircuit @C=0.5cm @R=.2cm { \lstick{\ket{0}_n} & \gate{H_n} & \qw & \hdots && \gate{\mathsf{M}} & \rstick{\ket{y}_n} \qw \\ & & & \protect\underbrace{}_{\text{some text}} } However, this is a common problem with Xy-pic if an entry starts ...

2

When we are using plain TeX then we have two ways how to protect the macro. First one is possible by eTeX extension (commonly used). Instead of \def\macro we must say \protected\def\macro This technique is possible in LaTeX too. The second more comfortable way is available when OPmac macro package is used. We can say \addprotect\macro which ...

1

(summarizing the comments above) This issue is not directly related to LyX, but rather to the individual styles. Different styles provide different pitfalls. Best practice would be formatting the BIB file in accordance with the style to be used. Getting the bib cleaned up, maybe for a specific style, solves the issue. However several ...

7

\DeclareRobustCommand can be used for such cases, however, there are expansion issues (i.e. it's not expandible). The code uses the original version and a \DeclareRobustCommand version. In addition one could use \newrobustcmd from etoolbox package \NewDocumentCommand from xparse package \documentclass[11pt, a4paper]{scrbook} \usepackage{etoolbox} ...

5

The problem arises because you're compiling the file cpedoc.tex you've downloaded with pdfLaTeX and the file contains this line \usepackage[dvips,colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref} The dvips option is for when you compile with LaTeX, not with pdfLaTeX. If you want to compile with pdfLaTeX, remove that option: ...

1

With the help of @egreg above, I found the solution: It should be {#1} \\ {#2},{#1}.

1

I don't know why you're using different syntaxes for defining colors; the fact is that you get confused: \newrgbcolor{lightcyan}{.30 .86 .89} \newrgbcolor{orange}{1.0 .60 .00} \newrgbcolor{lightblue}{.30 .86 .89} \newrgbcolor{orange}{1.0 .60 .00} \definecolor{DeepSkyBlue1}{rgb}{0.00, 0.75, 1.00}% <---- commas needed \newrgbcolor{deepskyblue2}{0.00 0.70 ...

2

When using system font names, you must use the form found in the "Font name" field in Windows Font Viewer when you open an individual font. On my Windows 7 system, "Helvetica Neue LT Std 37" is the name of a Font Family which appears in Control Panel > All Items > Fonts, but it is not the name of an individual font. The fonts in this family are named ...

7

You cannot have a lstlisting in the argument of \textbf. In these cases use the \bfseries switch. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[slovene]{babel} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{indentfirst} \usepackage{caption} \usepackage{listings} \usepackage{tcolorbox} ...

2

A couple of things: Drop the draft class option. Keeping it will otherwise display images as black rectangles; Drop the dvipdf option for graphicx. The package will find the appropriate driver. This might be the cause of your problem; Not really an issue here, but you don't need the figure environment in order to include an image. I assume the option [H] ...

8

Just in case you are interested in fancier boxes, tcolorbox can be used and it nicely interacts with empheq. A little example showing some possibilities: \documentclass[dvipsnames]{article} \usepackage{empheq} \usepackage[many]{tcolorbox} \tcbset{ highlight math style={ enhanced, colframe=NavyBlue!70!black, colback=NavyBlue!10, ...

9

Saying \boxed\bgroup<tokens>\egroup is not the same as \boxed{<tokens>}. You can't use \bgroup as a substitute for an argument delimiter. You accomplish your need with the empheq package. \documentclass{article} \usepackage{empheq} \newenvironment{boxedeq} {\empheq[box=\fbox]{equation}} {\endempheq} \newenvironment{boxedeq*} ...

-1

I had the same problem. I fixed it by adding rights: # sudo chmod u+x install-getnonfreefonts than I ran # sudo /home/dirk/install-getnonfreefonts -a and # sudo /usr/local/bin/getnonfreefonts -a

6

use \mbox{} \documentclass{article} \usepackage{ulem} \begin{document} Works: \sout{Lorem ipsum dolor sit amet~\mbox{\cite{a}}} Compile error: \sout{Lorem ipsum dolor sit amet~\mbox{\cite{a,b}}} \begin{thebibliography}{99} \bibitem{a} Paper a \bibitem{b} Paper b \end{thebibliography} \end{document}

0

You can also use a tabular \documentclass[10pt]{article} \usepackage{lipsum} \makeatletter \renewcommand{\maketitle}{\noindent \begin{tabular}{@{}p{\textwidth}@{}} \Large\textbf{\@title}\\[2ex] \large \@author \\[2ex] \@date \\[1.5em] \end{tabular} } \makeatother \title{Some title} \author{% Author } \pagestyle{empty} % disables page numbers ...

0

I suggest to use \raggedright rather than flushleft environment. In a standard class there is no such error as reported by the OP, but I do not recommend to left (or right align) the author etc. all. However, here is a small solution. (The redefinition as proposed by the OP has the (undesireful?) feature that \date is ignored!) \documentclass{article} ...

1

Use the titling package: \documentclass{article} \usepackage{titling} \pretitle{\begin{flushleft}\LARGE\bfseries} \posttitle{\par\end{flushleft}} \preauthor{\begin{flushleft}\large} \postauthor{\par\end{flushleft}} \predate{\begin{flushleft}} \postdate{\par\end{flushleft}\vskip 0.5em} \title{The Title} \author{The Author} \begin{document} \maketitle ...

0

\framebox won't work here. It will frame short texts and long texts will be placed on one line protrudint into the margin. Besides this, trying to frame the item label using \framebox{\item...} gives the error you are getting. You can use a \parbox to enclose the \item contents beforehand: \documentclass{beamer} \begin{document} ...

2

Your code was lacking a } to close the preamble of the first blockarray environment. Also, it appears the text on the right of the braces (\Right{\}}{some text}}: has 0-width in the blockarray environment. A work around to achieve centring of this environment consists in adding after \end{blockarray} an \hphantom{some text}. Though not perfect, it seems to ...

3

Define \olok within the document preamble, not inside the document where you'll have other content-related information: \documentclass{article} \usepackage{amssymb,graphicx} \usepackage[turkish]{babel} % Document-related definitions \newcommand{\olok}{\rotatebox[origin=c]{135}{$\twoheadrightarrow$}} \begin{document} \olok \end{document} The above ...

1

I had this error for quite a while this morning. The only way to handle this is to wait some time. The problem is lying on the server side as changes of IP or election of another mirror did not do the trick here. In case, you get this error again, you may want to report that to the maintainer.

0

You use commands for bibtex and .bst files. The syntax for biblatex should be: \documentclass[12pt]{article} \usepackage{biblatex} \addbibresource{myBibRefsFile.bib} % with extension ... \section{References} \cite{Heine-Borel} \cite{L'Hospital} \printbibliography The default backend with biblatex is biber. If you want to stick to  bibtex, specify ìt ...

3

Using the rgb option as package option to xcolor: \usepackage[rgb]{xcolor} or, passing it as a global option, to be picked up by xcolor, as in \documentclass[rgb]{article} \usepackage{xcolor} seem to work both in beamer and in article. A little example: \documentclass{article} \usepackage[rgb]{xcolor} \usepackage{tikz} ...

4

Not a serious answer but just for your information, there is physics package providing this and many other goodies. For details, refer to its documentation. \documentclass[12pt,letterpaper]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{physics} \begin{document} \[\pdv{V}{c_{i}} \quad \pderivative{x} \quad \pdv{x} ...

5

Use an extra pair of braces for the argument with scripts: $\diffp{V}{{c_{i}}}$ A complete example: \documentclass[12pt,letterpaper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{esdiff} \begin{document} $\diffp{V}{{c_{i}}}$ \end{document} The extra pair of braces forms a group thus c_{i} is seen as ...

2

The first column is already declared in math mode with >{$} and <{$}, so what you have in the last row is, after all substitutions \sigma$\textsubscript{f}$ which causes \sigma to be outside of math mode. So just omit \$. You shouldn't use \textsubscript. Here's a better version that avoids specifying \hspace{0.5cm} every time. ...

9

The .log excerpt of the updated question shows that the underscore is an active character, which is expanded, when the graphics package with driver pdftex.def looks for the file. Here you can deactivate the underscore token with \string: \includegraphics{normalization\string_analysis-002} The .log file shows that the underscore is made active by package ...

9

An empty line in TeX should never be used just to arrange the source. It is an instruction exactly the same as the command \par which ends a paragraph and starts TeX's line breaking algorithm to split a paragraph into lines. So it is not allowed in display math and it should never be used on the line before display math either, in that position it does not ...

5


0

The file type .ctx is used for XML preprocessing files with texexec. You either have to rename your file to .tex or call context instead of texexec.

Top 50 recent answers are included