New answers tagged

0

I have the same error and I know how to fix it. As you save the file, type: FILENAME.tex in the name box, and remember to put a dot between the file name and the format, usually you write tex. Example: PRIME NUMBERS.tex


6

You need to keep the colour restore within the noalign so need {} but colortbl allows you to colour \hline, so do you need this? \documentclass{article} \usepackage{color, colortbl} \begin{document} \begin{tabular}{l} x \\ \noalign{{\color{red}\hrule height 1pt}} \rowcolor{blue} x \end{tabular} \end{document}


4

You can use \texttt{++} instead, can't you? \documentclass{article} \usepackage{tcolorbox} \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} \newtcbox{\mybox}{nobeforeafter,colframe=mycolor,colback=mycolor!10!white,boxrule=0.5pt,arc=4pt, boxsep=-3pt,left=6pt,right=6pt,top=6pt,bottom=6pt,tcbox raise base} \begin{document} \mybox{C\texttt{++}} ...


3

I hope, at least this compiles for the O.P. ;-) \tcboxverb is designed for such small boxes with verbatim content. I've added a myboxstyle TikZ style for this. \documentclass{article} \usepackage[most]{tcolorbox} \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} ...


3

you can use \scrollmode or \batchmode so that TeX does not stop on errors but it would be a really bad idea to do so. The class should simply predefine constructs like \author if you have \def\author{your name goes here} in the class then you get that text unless the user sets author, or you could instead have \def\author{\ClassWarning{MG}{author name ...


0

As an alternative to \RequirePackage{luatex85} I opted to try out the experimental miktex packages (enabled with the checkbox on the main screen of Update (Admin) for MikTeX as described and illustrated: http://miktex.org/kb/miktex-next). Then in order to ensure everything was successfully registered(?) I went to Settings (Admin) for MikTeX and on the ...


0

Paragraph ended before \underline was complete.: You want to underline something but the argument of \underline{...} has an empty line, which is the end of a paragraph. But \underline works only inside one paragraph. In most cases one has forgotten the corresponding closing }


7

Don't use % if you want to write the % character directly. The % character is reserved to indicate a comment after which everything is ignored. This is no problem at the end of a line, but the % should not occur in between, say, $ 11 % $, because this way TeX has entered math mode which is not correctly closed (unless there's a stray $ following in one of ...


3

Solution 1 As GoogleDrive does not support (yet) exclude patterns, but does support exclude folders, one option is to dump all output files to a separate folder (in the case of MikTeX you can alternatively specify this for all the output files except the PDF) and make sure that GoogleDrive doesn't sync that folder specifically. (And temporary and ...


0

It is a combination of two problems: Some errors in my .tex file, referencing graphic images that are somehow using a DOS filepath like C:\folder\file.png which apparently makes the compiler freak out and give up. (this was caused by copying over from LyX) Some error in ShareLatex that doesn't properly clear the error log when the above happens, so it ...


2

Your TeX distribution is a little bit outdated and that causes your problem. Please see The following lines: Mine system: Version 3.14159265-2.6-1.40.16 ... (preloaded format=pdflatex 2016.1.29) ... Your system: 3.14159265-2.6-1.40.16 ... (preloaded format=pdflatex 2016.1.10) ... % ...


5

Just put the \cite{hong_groups_2004} in an extra pair of curly brackets ({}), without them, soul will do funny things with the \cite-command: \documentclass{article} \usepackage{color,soul} \begin{document} \hl{A statement {\cite{hong_groups_2004}}} \end{document} You will get some ideas from section 2.1 and 2.2. in the manual. I suggest you use the more ...


1

It's a common problem: a conditional cannot straddle two (or more) alignment cells. Here's a simpler implementation in xparse: \documentclass{article} \usepackage{xparse} \usepackage{tabularx} \newcounter{basesize} \setcounter{basesize}{15} \ExplSyntaxOn % \storedata{<name>}{item1,item2,...} \NewDocumentCommand{\storedata}{mm} { ...


1

Recent LaTeX versions declare the symbol U+2010 (DASH) in utf8enc.dfu, t1enc.dfu. The former is loaded by default. The declaration can be given explicitly for older LaTeX installations: \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{2010}{-}% support older LaTeX versions


1

On Fedora, I've managed to solve an almost identical error message by installing the texlive-hyphen-portuguese package. Hence, try running something like sudo dnf install texlive-hyphen-portuguese On Ubuntu, substitute dnf for apt; the package name may have a different name there too. On older Fedora versions, replace yum for dnf.


1

In case anyone else is struggling with a similar problem, I am posting the solution I found (even though it indicates I was missing a crucial understanding of something simple): In my example I had a spelled out table showing what I wanted: \vspace{10pt}Example of how it should look: \begin{tabularx}{\linewidth}{|c|c|X|c|} \hline Column 1 & Column2 ...


17

The error is due to breqn, of course. Only one definition for an active character can be valid at a given time. Since you have a math comma in the section title, this goes in the header and, with that long verbatim, it gets typeset when verbatim is active, which gives a different meaning to the active comma. Here's a minimal example showing the issue. ...


14

The main problem is the breqn math comma being written to the mark used in headings while verbatim is active. which gives a classic fragile command in moving argument cryptic error. \hbox hides this (a better fix allowing the comma to be used normally may be posted later) The fact that luatex segfaults after the runaway argument is a separate lower level ...


4

It's very simple: when TeX skips over tokens in the “false branch” of a conditional, it still keeps track of conditionals. So the \iftrue in the “false branch” needs a matching \fi, which TeX finds in the one you wanted to match the initial \iffalse. So the false branch is not yet finished and TeX basically gobbles everything until finding \else or \fi. The ...


4

Conditionals keep track only of certain tokens (als conditionals) which lets you have many of them inside others (my English is not fluent today). Easy solution: add \fi in any way you can to balance the \if..\fis. \providecommand*\comment[1]{} \let\commentstart=\iffalse \let\commentend=\fi \iffalse \renewcommand\comment[1]{#1} \let\commentstart=\iftrue ...


1

Extract all files from CMJ-style-files.zip into a new directory, for example c:\users\myuser\documents\test (c:\users\myuser\documents is the standard path for user myuser for windows os). Check, that all files, especially .tex, .sty and .pdfhave been extracted into directory test. Then just compile the file article-template.tex or capsule_template.tex, ...


6

The difference is a change in babel.def between 2012 and 2013: In TeXLive 2012 babel.def contains \bbl@redefine\LaTeX{\textlatin{\org@LaTeX}} And there the example compiles. This redefinition has then been dropped. Now the definition of \LaTeX is unchanged and no longer can be used in math in current tex systems.


3

Is this what is requested? The redefinition of \thesubsection as {\Alph{subsection}} strips the section information of course from \thesubsection. \thedefn is using \thesubsection.\arabic{defn} due to its definition, so \thesection is missing then. \documentclass{amsart} \newtheorem{defn}{Definition}[subsection] ...


0

Hm. The empty macro doesn't work in my instance. Pandoc complains if I use a bulleted list or an ordered list.


0

I had two similar problems: "Unicode char \u8: " "Unicode char \u8:." (with dot) The problems were related to the .bib file (references list). The first problem was solved based on the \DeclareUnicodeCharacter{00A0}{ } stated by @egreg. The second one was helped by the @Chris H 's answer. I opened the generated file .log and looked for errors. I found: ...


0

I Just experienced this same problem and couldn't find any offending code in my tex file. It turns out that the offending text was actually in a citation I had just added to BibText, which I was importing using the biblatex package. There must have been some sort of strange character in the abstract that was included when I exported the citation from PubMed. ...


1

Not all extra alignment tab has been changed to \cr errors are found via Google or Bing. Something as simple as defining a macro with arguments and forgetting the argument before the first \\ will reproduce the error. Same thing with \newcommand. e.g., \def\test#1#2{$\hbox to 4cm{#1}}$} \begin{tabular}{cccc} Oh & \test{tested}{} & Oh & ...


2

calc's macros are not expandable, though PGF expects a mathematical value. PGF does provide its own measurement functions: depth("…"), width("…") and height("…"). The " are needed because they escape the evaluation to text. If you have ,, = or ] in your text, you have to enclose the value in braces. For example: \tikzset{ text vert/.style={ ...


2

I am forever thankful to both @johannes_B and @Torbjorn. Again, I would never have gone around it if it was not for their help. The problem I was finding was how to write ideas found online on a template. It seems that I was writing every user packages in the main.tex when I should have written it in a particular file in that e main.tex. After I had done ...


1

The best practice to install TeXnicCenter is: If you have installed an TeX distribution and TeXnicCenter deinstall both! Reboot the computer! Install and upate the TeX distribution, you want to use. When the installation of the TeX distribution is finished (important!), please reboot! Download the current TeXnicCenter installer program and install it. ...


3

Here is an updated version of the Applescript that should solve the problem. Open the Macro Editor in TeXShop and click on the Paste Spreadsheet Cells macro. Replace the existing macro with the following, and save it. --Applescript direct --This script copyright 2009,2010,2016 by Alan Munn <amunn@msu.edu> --Version 1.2 2016/05/11 --Copy cells from ...


1

You can directly type accented letters in your code, with the utf8 input encoded (even accented capital letters – cf Etude vs Étude). This encoding is known to all modern systems. Also, I replaced \eq with =, . with \cdot for multiplication dots, and the clumsy itemize environments with \item[A] &c. with a simple nested enumerate: ...


2

Based on previous comments, here is a 'debugged' version of your code: \documentclass[a4paper,12pt,landscape]{slides} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} \usepackage{lmodern} \usepackage{calc} \usepackage{enumitem} \title{Dynamique des fonctions et le problème du chaos} ...


1

I had the same error and I was using XeLaTeX, which apparently doesn't support multimedia. I switched to LuaLaTeX and finally got a working movie in Okular.


4

You have publisher = {Springer Science $\mathplus$ Business Media},. Replacing $\mathplus$ by + should be enough.


4

Both versions of your input appear to contain a non-printing character, "­". (No, it's not visible in this posting! However, it's visible in my editor, and it looks like a very short - (dash) character.) The mystery character is located between $\sigma$-algebra in $\Omega$ and the sentence-ending . ("period", "full stop"). I suggest you remove this ...


3

Here is a trick that can be helpful. The idea is to use a .bat file (I am under windows but this is not really important.) Go to Options-> Configure texmaker use the command of pdflatex to build a .bat file here mtpdftex.bat @echo off D:/mtlatex/miktex/bin/pdflatex -interaction=nonstopmode %1 note here that %.tex is replaced with %1 Update: ...


1

I guess that C:\Archivos de programa\MiKTeX 2.9 is the standard path like c:\Progamme\MiKTeX 2.9 in a german installation or c:\Program Files\MiKTeX 2.9 in an english installation. Then please do not manually install files there. Looking into the named zip file I think the best way is for you to create a new directory MyLaTeX for your user "MyUser", for ...


2

The error seems to be similar to the one described in Biber 2.4, microtype, and special characters The workaround seems to consist in fixing the definition of \ifempty: \begin{filecontents}{\jobname.bib} @Article{ref, author = {Name, \v{a}}, } \end{filecontents} \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...


3

The example is not minimal. I've minimised it a bit further just by removing all the hyperref stuff. (I checked that this all has no relevance.) The basic problem involves the use of nested tikzpictures which are known to cause problems. Although not guaranteed to fail, failure is to be expected. Nesting should therefore (very nearly almost) always be ...


3

Your problem is that by using \begin{tikzpicture} \begin{tikzfadingfrompicture} \end{tikzfadingfrompicture} \end{tikzpicture} you do nothing else than nesting two tikzpicture environments, which is known to be a source of trouble. However, it is not necessary to do this, since you name the tikzfadingfrompicture to reuse it. When putting both ...


2

the ams document classes treat lists of "whatever" differently from the definitions in the basic document classes, and thus with some of the additional packages (like those for algorithms) that follow the method of the book class. if you add these definitions to your preamble, the form of the list of algorithms should be compatible with the amsbook way of ...


1

You have several errors in your bib file causing your problem. First a remark: it is better to use {...} than "...". I changed it in my following MWE. Please see the follwing bib file: @BOOK{bar, AUTHOR = {Star, R. M.}, TITLE = {Foo Bar Baz}, PUBLISHER = {MIT Press}, ADDRESS = {Cambridge, MA}, YEAR = {1989}, ...


1

You are using an elsed if hence the name \eIf already. So it expects an else statement \documentclass[]{article} \usepackage[ruled]{algorithm2e} \begin{document} \begin{algorithm}[H] \While{true:} { pl = Poll() \\ sd = PollSd() \\ \eIf{time}{ ok; } %<----- Here it expects an else block, basically ...


3

the error is occurring before the reported code. the complaint is about the two commands \setlength{\fboxrule}{.5} \setlength{\fboxsep}{.5} where one would expect something like .5pt or .5em. (of course, you will need to adjust these suggestions to what is appropriate.) this occurs twice in this example, so be sure to fix both places.


0

I have found that defining the spacing for that area of text to cause the text to properly wrap, especially for figures that have a transparent background. Use \begin{spacing}{1.0} ending with \end{spacing}, for example. You will need the setspace package: \usepackage{setspace}.


1

You can use \raggedright, that suddenly allows \\ in \docName, but requires terminating the rows with \tabularnewline; not a big deal, as this table can be defined in the preamble. \documentclass{article} \usepackage{tabularx} \newcommand{\docName}{Video Endoscope \& Imaging Module \\ DVT Support Manual} \newcommand{\HeaderBox}{% \par\noindent ...


2

Use a \Longunderstack or a \Longstack. EDITED to handle case where a macro containing the data is to be set in a stack (per the OP's comments). In this case, the line \setDocName{Video Endoscope \& Imaging Module \\DVT Support Manual} places the data in the variable \@setDocName. At a later point, the contents of \@setDocName are to be set in a ...


1

Use a tabular inside the tabularx: \documentclass{article} \usepackage{tabularx} \begin{document} \newcommand\docName{\tabular[t]{@{}l@{}}Video Endoscope \& Imaging Module \\ DVT Support Manual\endtabular} \noindent \begin{tabularx}{\textwidth}{|c|X|} \hline &\\ \footnotesize\sffamily\bfseries ...


3

Unrelated to tabulary: you are missing the minipage width in all the new entries \begin{minipage} Note the error message ! Missing number, treated as zero. <to be read again> \begin{minipage} A which shows the location of the error being the A \begin{minipage} A is the same as \begin{minipage}{A} so it tries ...



Top 50 recent answers are included