# Tag Info

0

As clemens, Henri Menke and cfr already mentioned (thanks!!), .choice_code:n (as well as .generate_choices:n) were removed from l3keys in revision 5655 of latex3. After rereading the LaTeX3 interfaces documentation (Section XX.3, pages 176-179), I was able to patch my problem. The example of the question can be adapted to the following: \keys_define:nn {...

1

\keys_define:nn { edu } { rmfont .choices:nn = { computermodern, libertine, palatino } { \tl_gset:NV \g_edu_rmfont_tl \l_keys_choice_tl } , rmfont .initial:n = libertine }

4

You have a typo in the first line of your class file. If you compile interactively, LaTeX tells you this. ! Undefined control sequence. l.5 \NeedsTexFormat {LaTeX2e} The macro should be \NeedsTeXFormat{LaTeX2e}

1

The main problem is that you are expanding \@car, but not \@cdr, because the chain of \expandafters doesn't reach it. Here's an implementation in expl3 that you may enjoy studying. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \cs_new_protected:Nn \bodin_ifnext_chars:nnnn { \tl_if_in:nnTF { #1 } { #2 } { #3 } { #4 } #2 } \...

4

You cannot expand the second argument like that. Here's a simple way with the help of eTeX: \documentclass{article} \makeatletter \newcommand\@ifnextchars[3]{% \if\relax\detokenize{#1}\relax \def\@ifnextchars@tmp{#3}% \else \edef\@ifnextchars@tmp{% \noexpand\@ifnextchars@aux {\unexpanded\expandafter{\@car#1\@nil}} {\...

1

There is a syntax error in inputfile.tex. The end tag should not contain a space: % </mytag1> ⇒ %</mytag1> Corrected version of inputfile.tex: \documentclass{article}% \begin{document} Some text. %<*mytag1> This is the text for mytag1. %</mytag1> %<*mytag2> This is the other text for mytag2. %</mytag2> \end{...

1

Although it's usually a coding error that leads to this message, I think in this case it's legitimate. I wasn't able to grok the implementation immediately, but in the documentation of the spreadtab package we read: ... spreadtab proceeds in 3 main stages before \begin{<table environment>}sees the table: first, it reads the body of the ...

0

Try to run this in the Terminal: sudo apt-get install texstudio These two packages are essentially the same... You do not even need to download the .deb file manually if you are installing from Ubuntu repositories. Should you (for some reason) want texmaker instead of texstudio, just replace the last word of the command. (The texstudio package seems to ...

3

In an earlier version used variable \makecvtitlenamewidth has been renamed to \makecvheadnamewidth in the current version of moderncv, version 2.0.0. So you have to change the variable name in your code. See the following MWE (changes marked with <==============): \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} ...

0

This solution is effectively the solution provided by moewe here. The following code is added to the end of the preamble: \newcommand{\ifprefchar}{\ifpunctmark{'}} This is a workaround for the BibLaTeX bug described here.

3

The syntax of \newtheorem can be confusing: See the amsthm documentation for more detailled explanation but in short it's like this: Use \newtheorem{theorem}{Theorem} if theorem shall be the counter (it's defined then, and Theorem is the environment name.) \newtheorem{theorem}{Theorem}[foo] if Theorem should be the environment name and foo is an ...

0

Ulrike Fischer above got me on the right track with more detailed output logging, thanks! ...If this isn't the source of the problem run on a command line xelatex --no-pdf file and xdvipdfmx -vv file to get a better error message. Running xelatex --no-pdf test.tex completed fine with no errors Running xdvipdfmx -vv test.xdv returned the following ...

2

I just remembered: I added some time ago this in my the UserData-texmf tree in ...\fontconfig\config\localfonts2.conf <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <selectfont> <rejectfont> <glob>D:/MiKTeX2.9/fonts/type1/public/fontawesome/*</glob> </rejectfont> &...

6

I suggest you use  instead  for display math formulas. Like @WillieWong say, with amsmath package You can get a result, perhaps, more appropriate: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \binom{m+n}{m} = \frac{(m+n)!}{m!\,n!} = \frac{\overbrace{(m+n)(m+n-1)\cdots(n+1)}^{m \text{ factors}}}{\underbrace{m(m-1)\...

2

This will do: \documentclass{article} \usepackage{amsmath} \begin{document} $$\left( \begin{array}{c} m+n\\ m \end{array} \right) = \frac{(m+n)!}{m!n!} = \frac{\overbrace{(m+n)(m+n-1)\cdots(n+1)}^{\mbox{m factors}}}{\underbrace{m(m-1)\cdots 1}_{\mbox{m factors}}}$$ \end{document} The ^\mbox{$m$ factors} was changed to ^{\mbox{$m$ factors}} in two ...

3

You can try this patch (I moved the math dollar inside \mcell@agape), but I didn't test it thoroughly: \documentclass{article} \usepackage{makecell} \makeatletter \renewcommand\mcell@classz{\@classx \@tempcnta \count@ \prepnext@tok \@addtopreamble{%\mcell@mstyle \ifcase\@chnum \hfil \mcell@agape{\d@llarbegin\insert@column\d@...

3

See, if the following solution is usuable for you: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{caption} \usepackage{array,makecell} \renewcommand\theadfont{\bfseries\normalsize} \begin{document} \begin{table} \setcellgapes{5pt} \makegapedcells \caption{Pronombres personales.} \label{tab:personales} \centering \begin{...

0

For a local texlive installation from 2015 dvd, none of the method described above worked for me. From a thread, I learned that it was a bug in mhchem. @Joseph ah sorry, it's mhchem that seems to cause it, not siunitx, but still, it looks to me like some L3 incompatibility -- I surely don't define \c_backslash_str myself... Ok, putting \RequirePackage{...

1

So I've downloaded the .log file and found a couple of things. It starts on line 1192 (of that log file). Something is wrong with your math environment. I think I traced your problem back to the file 02.mehthod_ch2.tex on line 111-113. \begin{eqnarray} rs_{f}(x,y) =|{(\prod_{i=1}(s_{\lambda_{i}},\sigma_{i},\rho_{i},\phi_{i}(x,y)^_\omega_{i})^_{1/\sum^{...

0

You can also use expl3 (that you already load along with fontspec). Case switching is simpler and also defining error messages. \documentclass{article} \usepackage{xparse} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german} \ExplSyntaxOn \NewDocumentCommand{\mymacro}{m} { \str_case:nnF { #1 } { {A}{\mymacroA} ...

3

\documentclass{article} \usepackage{xltxtra} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german} \usepackage{ifthen} \newcommand{\mymacro}[1]{% \ifthenelse{ \equal{#1}{A} }% {A case}% {% \ifthenelse{ \equal{#1}{B} }%%% {B case}%%% {% \ifthenelse{ \equal{#1}{C} }%%% {C case}%%% ...

2

For very mysterious reasons, the gfsartemisia-euler package has the line \@ifpackagewith{fontenc}{T1}{}{\def\"#1{\accent168#1}} which is a very silly thing to do (I could use stronger words), because the font has ĺ at that position. However, if you change the loading order to \documentclass[a4paper,openright,12pt]{book} \usepackage[a4paper, total={165mm,...

1

Changing the loading of the packages to a more common order seems to get it right. \documentclass[a4paper,openright,12pt]{book} \usepackage[utf8]{inputenc} \usepackage{gfsartemisia-euler} \usepackage{tipa} \usepackage[T1]{fontenc} \usepackage[spanish, es-tabla]{babel} \usepackage[a4paper, total={165mm, 240mm}]{geometry} \usepackage{fancyhdr} \usepackage{...

5

You seem to be mixing the syntax of different algorithm-like packages into one: \STATE is from algorithmic; \While and \For are from algpseudocode; \; as a line-ending is typical for algorithm2e. Also, even though you specify \usepackage[noend]{algpseudocode} you still have to provide an accompanying \End... for every programming structure. Here's ...

1

The problem in your code is located in this line: \begin{displayquote}[\cite[235]{westfahl:space}] The problem here is that LaTeX has a problem to find the corresponding closing ] and }. To avoid this just enclose the parameter inside [...] with an own grouping pair of {..}. Result: \begin{displayquote}[{\cite[235]{westfahl:space}}] % ^...

0

You should use unicode-math package by adding: \usepackage{unicode-math} in the beginning of your file. remember to delete all auxiliary files including the .bbl file then run your .tex file using XeLaTeX and again using BibTeX and again using XeLaTeX.

4

\colorbox is an horizontal box. Neither environment center nor command \centering do have any business there. The uneven left and right margins comes from the additional unwanted space from the line end after \end{tabular}. Fixed example: \documentclass{article} \usepackage{xcolor} \begin{document} \colorbox{red}{% \begin{tabular}{c} Step 2 \end{...

3

Replace \begin{center} and \end{center} with \centering and all is well. The code below compiles fine. \documentclass{article} \usepackage{xcolor} \begin{document} \colorbox{red}{% \centering \begin{tabular}{c} Step 2 \end{tabular} } %NO ERROR ON THIS LINE \end{document}

3

There is a invoice package already, but here ... we don't use it ;-) Don't say \newcounter{...} in an environment that is assumed to be called more than once. The main errors are missing \tabularnewline (or \\) statements and the alignment errors that can be prevented with \noalign{...}, because \multicolumn expects to be in the first item in a cell (as ...

0


0

The essence of the problem is that from a LaTeX parsing point of view, \trimA \trimB \trimC \trimD has no spaces between the dimensions. One must add a space between the dimensions, here with \trimA{} \trimB{} \trimC{} \trimD{} to get it to be digested properly. I have little experience with the trim option myself, but it appears that it just adjusts the ...

1

Both TeX and LaTeX are case-sensitive, i.e. it matters whether a command is written with uppercase or lower case letters. Most likely, the command \LaTeX was intended, but was spelled as \latex which is wrong (unless somebody defines this command) So out of the 32 possible variants of \latex, \Latex, \lATeX etc. only \LaTeX is correct ;-) Please note ...

0

1) You should never install files not in the distribution in the main TeXMF root.Instead, you should create a local TeXMF root, say C:\LocalTeXMF, preferably as Administrator if you want everyone using your computer has access to these files. This can be done via MiKTeX Settings (Admin), Roots tab. Such a local root must be organised to repect the TDS (TeX ...

1

You encountered an internal limitation in pgfplots: the axis range must not become "too small" when using log scales (and it does not report that it reached the limit, unfortunately). You can file a feature request if you believe that this should be added. In order to get the idea of @percusse up and running, you can modify both ymin and log plot exponent ...

4

If you do not want to escape # from the link and not worry about it, here is a lualatex \documentclass[11pt]{scrartcl} \usepackage{hyperref,xcolor} %\colorlet{linkcolor}{green!20!black} \colorlet{linkcolor}{red} %changed to red to make it more clear \usepackage{luacode} \begin{luacode*} function linc(arg1,arg2) tex.print("\\href{"..arg1.."}{".."\\...

1

In this case you need to escape the # symbol of \linc's first argument. The following will work without error: \documentclass{article} \usepackage{hyperref,xcolor} \colorlet{linkcolor}{green!20!black} \newcommand{\linc}[2]{\href{#1}{\textcolor{linkcolor}{#2}}} \begin{document} \linc{http://tex.stackexchange.com/}{TeX.SE}%Causes no errors \linc{https://...

3

In you example there are basically two problems: The error is due to \multicolumn{2}{c|c|}{Cash Flow at} in which only one column specifier is required as second argument, which should be \multicolumn{2}{c|}{Cash Flow at}. Another problem is \tilde y which should be inside $...$ symbols, i.e. $\tilde{y}$. The corrected MWE will be: \documentclass{...

3

You need to load the package graphicx in the preamble (between \documentclass{...} and \begin{document}) with \usepackage{...} command, the following code works with no errors, even if the values of \resizebox are exaggerated: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{center} \resizebox{10cm}{7cm}{ \begin{tabular}{ | p{1cm} | ...

1

I have found out that downloading dummy-space.pfb and dummy-space.tfm from here and storing them next to my tex file makes my second MWE compile successfully. The line \pdfmapline{+dummy-space <dummy-space.pfb} seems to be required -- it does not compile without it. Of course, I would be interested in a more automated solution available through the ...

3

Sorry I fixed this earlier but it seems I never pushed the fix to the public distribution. You can extend the testing to be luatex aware as shown below. \documentclass{ltjarticle} \usepackage{luatexja} \usepackage{bm} \makeatletter \def\bm@test@token#1{% \let\bm@next\@empty \ifx#1\@@end \else\ifx#1\mathchoice \let\bm@next\bm@mathchoice \else\...

1

I'm not sure if LyX can recognize Foxit Reader, but it will recognize the other readers if you've put them in the path. I installed 2.2.0 (which is not really an upgrade, as it makes a separate install) on Windows 10 and had trouble getting LyX to recognize my Sumatra PDF installation. Two things I had to do: Add the path to the PDF viewer's binary, e....

0

Add \usepackage{shellesc} in main.tex before \usepackage{minted}

4

You are seeing a classical overflow — the fastest way to fix it is with \draw(0 cm,\PI/180*\diameter*\angle*\n*\nstep) circle (2mm); (you'll learn this when programming microcontrollers — the difference is that at least LaTeX errors out instead of crashing your robot). Anyway, as a general thing, I will share what I know about math calculations of big ...

2

There are several problems here, I think. First, your given message l.1185 \@ ... N{932}{15} comes usualy from package lineno you didn't mention in your problem description. I guess you activated an option for class copernicus to get a numbered line output? If that is true and you changed the option to be unnumbered you should delete file .aux before ...

2

To make things easier: The LaTeX build wrapper ltx2any offers a nice (and aesthetical very pleasing) summary of any error or warnings in different file formates, amongst them pdf and markdown. From its webpage: Aggregates error messages and warnings from all tools into a nicely formatted log (Markdown or PDF) with references to source files and ...

0

The LaTeX build wrapper ltx2any may be a solution. It creates (aesthetical very pleasing) summaries of errors and warnings in different file formates, amongst them pdf and markdown. From its webpage: Aggregates error messages and warnings from all tools into a nicely formatted log (Markdown or PDF) with references to source files and original logs.

1

ccmap.sty seems to be a chinese version of cmap.sty. It is required by the document class cpbtex. You can download a zip archive with a LaTeX CPB template, cpbtemplate.tex, that contain both the cptex class and the missing ccmap.sty from this page: http://cpb.iphy.ac.cn/CN/column/item208.shtml I had problems extracting the zip but I managed to get by. I ...

0

CMakeOutput.log Because the file is so long, I thought it would be better to just take pictures, the formatting is better too.

2

I kind of had the same issue in Ubuntu 14.04. I was trying to use pgf/tikz in a code like below: \begin{tikzpicture} \begin{scope}[blend group = soft light] \fill[red!30!white] ( 90:1.2) circle (2); \fill[green!30!white] (210:1.2) circle (2); \fill[blue!30!white] (330:1.2) circle (2); \end{scope} \node at ( 90:2) {One}; ...

4

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 ...

Top 50 recent answers are included