New answers tagged

2

If I compile the following example with LuaLaTeX from TeX Live 2015 \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item \'Angel \item Ángel \item Pedro Rodr\'{\i}guez \item Pedro Rodríguez \end{itemize} \end{frame} \end{document} I get which is expected. If I add also \usepackage[T1]{fontenc}, the output is but it is ...


8

Experiment 1: \documentclass{article} \usepackage[cmyk]{xcolor} \usepackage{xcolor} \begin{document} a \end{document} Terminal output: This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./exp.tex LaTeX2e <2016/03/31> patch level 2 Babel <3.9r> and ...


0

As mentioned in the comments, MiKTeX offers on the homepage several installer programs. Theese installer are updated from time to time. So for a new installation download the needed current installer from the MiKTeX homepage and run it after you have deleted the old files causing your problems. BTW: after downloading the installer it is a good idea to ...


1

There are several errors here. First: a path for windows 64 bit has to look like c:\Program Files\MiKTeX 2.9\doc\bibtex\apalike\apalike.doc and not yours path="C/program Files/MiKTeX 2.9\doc/bibitex/apalike/apalike.doc. you missed : and mixed \ and /. In LaTeX it could be that the path is printed with the linux path delimiter /. But if there is a mixing ...


7

You have to add a # in every of your \newcolumntype definitions: \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} \newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} \newcolumntype defines a macro with one argument, this argument(the column width) can be accessed by #1.


8

You have \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{1}} You meant \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} as it is it always uses 1 as the width and complains about no unit.


3

It means that you have \label{split of ad} in two places. (The line 1 will refer to a file that is input, not your main file.)


6

when TeX opens a file for input it adds ( to the log and when it closes it it adds ) so you can tell which file is open at the point the error is detected by seeing which file path is by the nearest unmatched (. In both cases here the error is detected in the top level input file. If you use test1.tex \documentclass{article} \input{test2} \begin{document}...


1

You can try to make your compilation more verbose using \message: \newcommand{\myinput}[1]{\message{[START input of #1}\input{#1}\message{END input of #1]}} \myinput{test2}


0

I just had this same problem. I was able to solve it by going to my "main.tex" and selecting "Options->Define Current Document as 'Master Document'". It seems the error was caused because when I selected a chapter/section in the "Structure" pane, or right-clicked and selected "Jump to pdf", it was looking for "current_file.pdf", which didn't exist, instead ...


1

I had the same problem. I solved it as follows: Notice that you do not have to change all the /usr/texbin to /Library/TeX/texbin. The path for latexmk must remain as /usr/texbin. In my case this fixed the problem.


0

It might be easier just to break this into two flags: one for LaTeX and one for knitr. Changing line three to true and the logical in the first block to TRUE should evaluate to what you want. \documentclass{article} \usepackage{ifthen} \newcommand{\isinstructor}{false} %change to false/true \newcommand{\instructor}[1]{\ifthenelse{\equal{\isinstructor}{true}}...


1

You need \ElsIf, not \Elsif: \documentclass{article} \usepackage[noend]{algpseudocode} \newcommand{\cardict}[1]{\mbox{car\_dictionary[#1]}} \begin{document} \begin{algorithmic}[1] \For {each field fd in car\_dictionary}: \If{ polarity of $\cardict{fd} < -3 $ }: \State {add "EXTREME BAD" to \cardict{fd};} \ElsIf{$ -3 <=$ ...


4

Before the error you get a fairly clear message: Package transparent Warning: Loading aborted, because pdfTeX is not running in PDF mode. The package does not support dvi mode. The package uses uses several commands specific to the pdf features of pdftex so making a variant of the package that worked with dvi mode might be non trivial (but no doubt ...


3

Don't use a command with an argument -- this will always be difficult if catcode changes are involved. Better use the comment package: \documentclass{article} \usepackage{comment} \includecomment{instructor} %\excludecomment{instructor} \begin{document} bllb \begin{instructor} some text \catcode`\%=11 12 %% 13 \catcode`\%=5 \begin{verbatim} \section \end{...


1

This isn't a great solution, but it works. A better but more complicated solution is in the edit below. Wrap each use of the \instructor{} macro that contains literal % characters in \catcode changes, e.g. in the original knitr code: \catcode`\%=11 \instructor{ <<>>= 1 %% 2 @ } \catcode`\%=5 A TeX wizard might know how to build that into the ...


0

The error is caused by \graphicspath. Like @Dzaic pointed out in a comment, you must not use commata between different paths in the argument of \graphicspath. If you change the MWE to the following form, it works: \documentclass{article} \usepackage{tikz} \usepackage{tikzscale} \graphicspath{{fig/auxiliary/}{fig/Matlab/}{fig/Visio/}{fig/other/}} \begin{...


0

\usepackage[strings]{underscore}


7

The culprit is the line \DeclareFieldFormat[article,book,thesis,incollection,unpublished,inproceedings]{titlecase}{\MakeSentenceCase*{#1}}% \MakeSentenceCase* checks for the document language as saved in \bbl@main@language, since you load neither babel nor polyglossia, no such command is available and biblatex complains. The problem has been addressed in ...


2

If you had the current version of latex (or the one before) then it would work by default, but for older releases you can just define the needed character \DeclareUnicodeCharacter{2010}{-}


4

Since the bug is in \@yargdef, it can be fixed by patching this macro as follows: \gdef\@my@aaa{*} \ifx\@my@aaa\@my@bbb \immediate\write16{skip redefining yargdef} \else% \gdef\@my@bbb{*}% %%--- the original code of \@yargdef goes here ---%% \fi% I have ready-to-use solutions with cyrillic (russian) Plain TeX, AmSTeX, and LaTeX 2.09 in MiKTeX 2.4 and ...


3

It looks like a simple spelling mistake. The error message from the question contains a misspelled tabularx: ! LaTeX Error: File `tablularx.sty' not found. tablularx ⇒ tabularx After correcting the package name in the source, the error message should go away.


0

I had the same error message. My system: OS: Windows 7 64 Bit MikTex: 2.9.5987 64 Bit Net Installer Installation: Started Net Installer Downloaded Complete MikTex Saved in local directory on a desktop folder Restarted Net Installer Install Complete MikTex from local directory on desktop folder in C:\Program Files\MikTex2.9\ Here comes the error ...


1

I had the same problem, too. My system is Microsoft Windows 7, 64bits. I have tried to 1) download MikTeX from another repository, 2) reinstall it several times, 3) install 32bits version, 4) close all programs before installing in order to gain some memory etc, but the this problem persisted. Finally, I solved it as follows: 1) I installed the basic ...


3

Use in the bibliographische entry the url field: @article{ ... Url={https://en.wikipedia.org/wiki/Bidirectional_scattering_distribution_function}, }


3

I solved the issue by installing SciTE from the original website (link). I copied the lexer add-in and the settings instructed, but I also had to create a batch file with the following instructions: rem Use to start SciTE for ConTeXt @echo off c: cd C:\context\tex call setuptex cd C:\wscite start scite.exe %1% Note that you can change the path for context ...


4

your bibliography style is trying to print https://en.wikipedia.org/wiki/Bidirectional_scattering_distribution_function as text but _ is the math subscript command so generates an error if used in text, you need to make sure that your URL are either in bibliography fields that are just used for URL in which case the bibliography style can quote them ...


1

\documentclass[10pt,a4paper]{article} \usepackage[margin=3cm]{geometry} \usepackage{float} \frenchspacing \usepackage{hyperref} \usepackage{graphicx} \usepackage{paralist} \usepackage{color} \hbadness=10000 %.........................................................% \begin{document} \begin{flushleft} \textcolor[rgb]{0.00,0.00,1.00}{\underline{Anum Naeem ...


2

Changed $ as $$, and used amsmath package: Input: \documentclass{article} \usepackage{amsmath} \begin{document} $$ \text{I.F.}= \frac{1}{Mk+Nt}= \frac{1}{k \sqrt{t^2+k^2}+kt-kt}= \frac{1}{k\sqrt{t^2+k^2}} $$ \end{document} Output:


2

Thoughtless use of \def, \let, \global etc. costs lives. Well, they waste time, anyway, and if you waste enough of that, that's a life gone. You have overridden TeX's definition of \value and made this redefinition global by saying \global\let\value=\value TeX is, therefore, unable to do anything which depends on \value after this point in the ...


0

The bib-file with biblatex is incorporated with the command \addbibresource{Bibtest.bib} The command \bibliography is no longer valid. I would also recommend to remove the .aux file since it may contain information which is no longer valid.


7

Don't take up LEd. That project has deprecated long time ago and the editor is quite buggy though I wish they continued. Because it had really nice ideas implemented as beta. There are much more recent and advanced editors out there for each OS and LEd is just a historical artifact.


0

With an current MiKTeX 2.9 (XeTeX, Version 3.14159265-2.6-0.99996 (MiKTeX 2.9 64-bit) (preloaded format=xelatex 2016.5.27)) I can compile the following MWE without errors or warnings. Please see the added command \listfiles causing a list of used packages and class and there version numbers added at the end of the log file. MWE: \listfiles \documentclass{...


0

Use \begin{itemize}[<+->] for overlays. Math is no problem: \documentclass{beamer} \usepackage{beamerthemesplit} % new \usepackage{amsmath} \begin{document} \begin{frame}[allowframebreaks]{What is an Ordinary differential equation?} \begin{itemize}[<+->] \item Firstly what is a Differential equation? An differential equation is an equation ...


7

Alternatively, I'd put this in a cases environment (additionally, BEL should be treated like an operator or function instead of the product of three variables B, E, and L; and also using \ldots): \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\bel}{BEL} \begin{document} \begin{equation} x = \begin{cases} R_{e_1,\ldots,e_k} & \text{...


2

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \left \{ \begin{tabular}{ccc} $R_{e_1,...,e_k}$ & when $T_{e_1,...,e_k} > 0$ & and $BEL(R_{e_1,...,e_k})\geq \alpha$\\ & & \\ $M+1$& otherwise&\\ \end{tabular} \right \} \end{equation}


6

All mathematical expressions, as R_{e_1,...,e_k} shoud be in dollars: $R_{e_1,...,e_k}$ , or better $R_{e_1,\ldots,e_k}$. But much easier and more natural is to change your tabular into array (using amsmath is assumed to have \text macro): \begin{equation} \left \{ \begin{array}{ccc} R_{e_1,\ldots,e_k} & \text{when }T_{e_1,\ldots,e_k} > 0 & \...


2

Change the package loading order. Note that graphicx is already loaded by beamer. On the other hand, loading lmodern is not needed, unless you're on MiKTeX and don't have a working installation of the CM-Super fonts. \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{mathtools} \usepackage{bm} \...


2

Without a proper MWE, this is the best help I can offer: invoking professionalfonts produces no such error. \documentclass{beamer} \usefonttheme{professionalfonts} \usepackage{graphicx} \usepackage{booktabs} \usepackage{bm} \usepackage{mathtools} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} Test. \end{document}...


1

../classicthesis.sty means latex searches in the parent folder for the sty file. to fix this you have two possibilities: if classicthesis.sty is located in the same folder as your document, change ../classicthesis.sty to ./classicthesis.sty move classicthesis.sty to the folder above your document.


3

By default, WinEdt uses the PDF viewer which is associated with .pdf files. Surely you have .pdf files associated with Maxthon browser. I suggest you to install the free SumatraPDF reader which works as a charm together with WinEdt. Install the 64-bit version if you have WinEdt 64-bit, otherwise install the 32-bit version. If you want to set SumatraPDF as ...


3

The reason for your problem is a Windows reason: you can not copy an installed program from computer A to computer B. That can be possible with UNIX, but not with Windows. Windows needs to install several files into a special system drive. Theese files are missing when you did your copy. So please delete all this files, download the MiKTeX installer you ...


0

Instead of using \usepackage[brazilian]{babel}, use \usepackage[brazil]{babel}. It should work. According to the documentation, brazilian should work as well as brazil, but it isn't. Perhaps brazilian was removed (no longer in use) but the documentation wasn't updated. The weird thing is that taking a fast look at the code, brazilian is there! Maybe it's a ...


4

Adding somewhere after \begin{document} \catcode`$=15 % for example - PS gives what is expected in your question.


0

Another way to solve this problem is by adding the field "sort": \newglossaryentry{CSV} { name={\emph{comma separated values}}, sort={comma separated values}, description={Formato eletrónico de armazenamento de dados, sendo cada campo separado por um carater (tabulação ou vírgula)} }


5

This character is only available if you also load the tipx package. So you should use: \usepackage[T1]{tipa} \usepackage{tipx} This is documented, but easy to miss in the documentation. The list of symbols in the tipx package is given in Appendix B. In the introduction to the Annotated List of Symbols (Appendix A) the following line shows up: In the ...


3

quote is an environment, it is wrong to use \quote in the document body. Using \quote inside the document body is wrong: you start a list environment and don't close it. Using \quote inside a group makes everything go awry. Don't use \quote in the document body. Is it clear that \quote is not a command to be used in the document body? 😉 \documentclass[...


2

Please, don't use the minimal class for testing, see Why should the minimal class be avoided? You have two ways for avoiding the infinite loop: either doing \lstset in the preamble or using \sb instead of _. First way \documentclass{article} \usepackage{ fontspec, unicode-math, listings, syntax, } \lstset{ literate={N0}{{$ℕ$}{$_0$}}2 }...


0

Inserting % !TEX encoding = UTF-8 Unicode at the beginning of the file solved this issue for me.


0

Without an example, we of course cannot help you fix the root problem, so I will answer the question of under what situation this error is given. The error message you received happens when pdflatex exited with a non-zero status code, pdflatex produced a log file, and LyX could not figure out what the error was from parsing the log file. Those are the three ...



Top 50 recent answers are included