Tag Info

New answers tagged

1

Perhaps it is something like that you want? \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \DeclareMathOperator{\sgn}{sgn} \begin{document} \begin{flalign*} +ba-ba& = +b × (+a-a)\\ & = (+a-a) × (+b),\\ & = -b × (+a-a),\\ & =(+a-a) × (-b),\\ \shortintertext{whence} 0 & =(+b) × 0=0 × (+b)=(-b) × 0=0 × ...


0

I did restart my computer and now it works well ;).


1

You need to obtain the non-standard latex class iis.cls. A quick search of the text in the abstract tells me that you are trying to prepare a document for the journal Interdisciplinary Information Sciences, published by the Graduate School of Information Sciences, Tohoku University. Somewhere on that website you should find the file iis.cls. Download it to ...


5

The error is earlier. In your code from https://www.writelatex.com/1668037kxgsvr#/4157018/ just after the line 250 you have \begin{matrix}. Commenting it makes the document compilable. (A MWE with this fragment can help the future visitors).


1

I am trying to answer all your question but the debugging work will stay with you: The error is caused by something in combination with the package endnotes. When having a look to its source, you can find the command \@doanenote. There are many commands called in a document, which you do not call by your self. So searching for it in your source will not ...


2

The problem is not specific to shrink. The Turkish module of babel activates = and this causes problems for the interpretation of key-value syntax. If you have an up-to-date TeX system you can disable the = shorthand (that does nothing useful, in my opinion) maintaining the other two: \usepackage[turkish,shorthands=:!]{babel} With an older TeX system ...


0

Just install the relevant packages from the repositories: sudo apt-get install texlive-latex-base That will get you a basic LaTeX system. For a more complete installation with more packages and fonts, use this: sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended for XeLatex sudo apt-get ...


0

Your font name database is likely broken. Do initexmf --mkmaps initexmf --update-fndb


3

The package mathpartir defines \snoc inside the mathpar environment, overriding whatever definition you give outside. Yes, it is a reserved command, although I couldn't find any trace of this in the documentation.


2

You should move\layout after \begin{document}.


0

Just to point out the answer is as indicated by @Johannes_B, where the dvips option for package color causes the problems. All credit to @Johannes_B Regards Roberto


7

Here is how I would typeset the table: \documentclass[12pt]{article} \usepackage[tableposition = top]{caption} \usepackage{longtable, booktabs} \usepackage{siunitx} \setlength{\oddsidemargin}{0in} \setlength{\evensidemargin}{0in} \setlength{\topmargin}{-.5in} \setlength{\headsep}{0in} \setlength{\textwidth}{6.5in} \setlength{\textheight}{8.5in} ...


14

Your example is far from minimal, but anyway seems like \midrule looks ahead and sees ( so you need \midrule\relax Just as you do to protect cells that start with [ from \\ looking ahead.


1

I was just trying these examples with a fresh TexLive 2014; I had been using the \let\l@ENGLISH\l@english fix for a while in TexLive 2011 with success, but now with 2014 the same document gave me the dreaded warning: Package babel Warning: You haven't loaded the language ENGLISH yet (babel) I'll proceed, but expect unexpected results. ...


0

I experienced that this problem arrises when a new package is installed and I press 'stop' at the "play/stop" button (to generate a PDF) too soon. When I press too soon the package is not installed correctly and it will not work, giving acces denied. In my case I saved my tex code file in a .txt file and deleted the entire editing program from my program ...


8

The example if fixed by braces around the problematic UTF-8 character inside the text for decorate: text={|\myshift| T{ự} do} Otherwise the text would be scanned byte by byte and disrupting the multi-byte UTF-8 character.


2

Something is defining \G so you can insert \show\G at several points in your document or package and at each tex will stop and show the definition. The error message indicates that \G has an encoding specific command definition. My local tex tree has the following possibilities allrunes/ara.fd:\DeclareTextSymbol{\G}{LRA}{167} ...


1

Disable your anti-virus and firewall for a while and try to install the MikTeX again. I'd experienced similar problem before and this actually worked.


2

Without a brace of \makeatletter/\makeatother, @ cannot be part of command names. \makeatletter \DeclareMathSymbol … … \let\slimits@\relax \makeatother seemed to work better for me (though I don't know what your intended result is – it compiled, at least).


2

I think you are missing \makeatletter before line 3 and \makeatother before \begin{document}. LaTeX tries to expand @-commands and so raise that error.


3

If you don't provide any \cite commands, then BibTeX (and LaTeX) won't know which entries in Bibliografy.bib to typeset: All of them? Just some of them -- and, if so, which ones? The result of having no \cite commands is the warning (not an error, by the way, "just" a warning) about Empty thebibliography environment on input line <line number>. The ...


2

I had the same problem, using a portable version of MiKTeX and TeXmaker on USB. It worked fine on my laptop (Windows 8.1) but then it stopped compiling and generating new PDFs on my work PC (Windows 7). When I deleted the old PDF file, it told me File not found, even though I had tried to compile a new one. For me, the simple solution was to got to Options ...


4

You need neither multirow nor blkarray: \documentclass{article} \usepackage{amsmath} \begin{document} \[ (\tilde A-\lambda)^m = \begin{pmatrix} (A-\lambda)^m & \vdots\vphantom{\Bigg|} \\ \begin{matrix}0 & \dots & 0\end{matrix} & (1-\lambda)^m \end{pmatrix} \] \end{document}


4

You were missing the $ in the \multirow and had an extraneous \end{pmatrix}: Notes: I replaced the $$...$$ with \[ ... \]. As Werner pointed out, please see Why is \[ ... \] preferable to $$ ... $$?. The $ were required in the option to \multirow as that parameter is assumed to be in text mode. Using the $ ensures that math mode is used. Code: ...


0

To typeset code in a document, use the listings package. To have sections in appendices, just use \section as you normally would; they will automatically be numbered as A.1 etc.


7

Adding to David's answer, just to give reasons why the compiler stops at line 75 and not at line 74, which is the real cause. First of all, \citation is a command used internally by LaTeX when writing in the .aux file a note about a citation made by \cite: % latex.ltx, line 6118: \let\citation\@gobble It's defined to do nothing with its argument, because ...


7

running your MWE shows an error on that line, ! LaTeX Error: Command \citation already defined. Or name \end... illegal, see p.192 of the manual. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.75 \mdfdefinestyle ...


1

A typical italian preamble may instead be \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} than followed by any \begin{document} Hello \end{document} (first comment by Ian Thompson is definitely right). ...but I am sure that, by today, you've learnt better than me the difference between ...


5

If you call pdflatex with the command line option -halt-on-error, the process will terminate at the first error.


2

This is caused by a new feature added to the latest version of the fixltx2e package. (Check the optional arguments of floats, section 5.1 of the package documentation.) I don't know how much freedom you have in LyX, but a standard LaTeX hackaround would be the following. \documentclass{article} \usepackage{float} \makeatletter \let\@tmp\@xfloat ...


4

There is a reason \xdef isn't a supported command in latex, most tex constructs blow up in an edef. use \protected@edef and then use \protect for any fragile commands. if you go \edef\foo{\def\zzz{hello}} then it tries to expand (only) the tokens while defining \foo. \def isn't expandable so is just left as is, then it tries to expand \zzz and then ...


1

There may be some fundamental confusion over what needs to run. You should probably run the command as pdflatex -synctex=1 -interaction=nonstopmode "document 3".tex I.e., pdflatex is the executable program, not document 3.tex. Since your tex file isn't executable, it's not surprising that the operating system throws an error. You haven't indicated which ...


6

Well, I managed to figure it out myself, but I want the procedure to be available to anyone. The error seems to be a result of LyX looking for the wrong installation of Python. In OS X 10.10, the Python version is 2.7.6, causing a problem according to this page. The steps I took to fix the problem are: Run LyX from Terminal.app by typing the following ...


1

I figured out the issue. I had an old hard drive with a version of LaTeX installed on it, so when the compiler ran it was calling packages from the old copy- resulting in an endless loop of sorts. Deleting any and all LaTeX files from the hard drive, plus a clear install on the new one, resulted in all the problems being solved. In hindsight I should have ...


0

I just stumbled across this error message in TeXworks. By the look of it, it happens, when the compiler runs into an error and followed by that, can't exit the pdflatex-process properly. So it has not the permission to execute an other instance of pdflatex. In TexMaker it simply says: 'Can't start the process.' System: Win7 32bit


1

As far as I can see, the cause of the original error message was the auto option, which seems to be incompatible with the way currents are typeset in circuitikz. I ran into the same problem and had to debug for quite some time before I found out that the culprit was a \tikzset{auto} that I had in the file header, that I needed for a number of other tikz ...


3

The issue is that \begin{itemize} ... \end{itemize} is not a line of text, so you cannot put \\ after it. The environments stand alone, so they will always be placed after a paragraph and before another one. It means, that the \\ you use after #4 is causing the error. Also you do not need \\ at the end of your macro, if you are using \vspace{\parsep}. ...


1

Well I am unable to comment on pdmadscience's comment. I just wanted to extend his response here. I had the same issue as the original poster and adding the pdflatex command (like pdmadscience suggested) fixed the issue. In the TexStudio documentation, they also add a few switches so that the full command looks like this: "C:\Program Files\MiKTeX ...


0

U just need to press Enter key and it goes on, that won't effect your PDF file, and you don't bother to figure it out where's the error. The easiest way for fixing it once for all, is, you download an installer and re-install for a complete installation, then it will be alright.


3

Perhaps you wish the table to be automatically filled in? Update adds code for 1ex vertical skip every four rows thing. \documentclass{article} \usepackage{booktabs} \usepackage{xintexpr} \newcommand\T{\textrm{T}} % "true" \newcommand\F{\textrm{F}} % "false" \newcommand\TF[1]{\if1#1\T\else\F\fi} \begin{document} \begin{table}[h] \centering ...


7

In addition to inserting the missing \\ line break instruction, you should contemplate undertaking the following steps: Implement fully the suggestions @egreg made with regard to your earlier posting, inluding the use of array instead of tabular and the use of macros rather than hard-coded letters for "True" and "False". (Do also think hard why you're ...


0

I'd experienced with same problem. I tried to make these steps for solving this issue. I downloaded the dvipdfmx.def file (i.e. http://tug.ctan.org/macros/latex/contrib/dvipdfmx-def/dvipdfmx.def) Copy this file to /etc/texmf/dvipdfrmx/ directory OR you can keep it in directory with your .dvi file. This solution works in Linux Mint 16 Petra.


5

LaTeX is good at typesetting math, but it's not clairvoyant: it doesn't know you want to typeset some math formula unless you tell it so. Several commands can be used only in math mode and raising an error upon finding them outside that mode is the best way to tell the user something's amiss. Indeed, the first error that is raised when typesetting your ...



Top 50 recent answers are included