# Tag Info

2

A quick workaround is to create a little package with the code. Create a file, say mycode.sty, starting with \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{mycode} and then move there all the code I gave you (without \makeatletter nor \makeatother). Save this file somewhere TeX can find it (local TDS tree of current working directory) and then use ...

6

The environment thebibliography should be used only for a “manually typed” bibliography. With \printbibliography you definitely don't need it. So, remove \begin{thebibliography}{99} and \end{thebibliography}.

6

The problem comes at the end of the list of cases in your \foreach loops \foreach \a/\b/\c in { 0/x1/0, 2/x2/1, 4/x3/2, 6/x4/3 } When it reads 6/x4/3, there’s no comma or closing brace afterwards, so it includes the whitespace in the definition of \c. This means you get a node called brz3 (+ some other stuff). Somebody who understands TikZ better ...

1

Another plug for Emacs is M-x check-parens which does as it says: checks to make sure all your parentheses, braces, and square brackets have a matching partner. (Note that it can become confused by opening or closing braces that have been commented out.)

0

The issue is not with using TiKz for your figures, it's how you're doing the subfigures. I write a lot of papers where I want a series of side-by-side (or more complicated) subfloats in my figures. In addition, I'd like the figures to be centered vertically. I finally gave up and switched from subfloat or subfig to using the floatrow package. Here's a ...

3

The subfigure environment has a mandatory argument specifying the width: \documentclass[a4paper,10pt]{article} \usepackage{amsmath,amssymb,amsfonts,amsthm,tikz,caption,subcaption} \begin{document} \begin{figure} \begin{subfigure}{.5\linewidth} \centering \begin{tikzpicture}[scale=1] \path (0,0) coordinate (P0) node[right=0.1cm] {P0}; \fill (P0) ...

0

Exit LyX, rename ~/.lyx to something else, and restart LyX. ~/.lyx contains your preferences, shortcuts, templates (if any), and other things. Look in the folder "bind" to see the shortcuts.

1

Upgrading Biber have implied that I must encode my report on UTF8. Thanks to @Bernard, @cfr, @Speravir, @moewe and @gns_ank.

10

The problem is that the syntax of atan2, the two-argument variant of arctangent, changed between TikZ 2.10 and TikZ 3.0. The effect of this change of syntax on Toscho's code makes the trajectory of the orbiting body (an asteroid?) become completely unstable very quickly: the asteroid quickly "shoots off the page". As as a result, the dimension of the ...

1

As the problem actually seems linked to the fact that MiKTeX 64-bit doesn't include biber, which is a 32-bit application, you should take a look at the answers to this question. Don't forget to create a Local TeXMF root if you don't already have one.

0

Thanks for the long explanation. It didn't solve the problem but answered the asked question about how to deal with log files. I had the suspicion that the macros are fine and that there are some chars too much or less in the main document. So I moved an extra \end{document} through my document to see when the error appears. It was that simple: Just one { ...

1

Too long for a comment. Typical reasons for "Runaway argument" errors are: A missing closing argument brace. A missing argument for a macro that confuses the internals of the macro. Bug. Example for a missing closing argument brace: \documentclass{article} \begin{document} Hello \textbf{World! \section{Foobar} \end{document} TeX complains: Runaway ...

3

Your image shows the pdflatex command is set up to use pdftex.exe (plain tex) not pdflatex.exe (latex) so latex commands are not defined.

7

As Joseph Wright has mentioned in his comment, the fact that sectional units have to be appropriately nested is a design choice made by Till Tantau. The "culprit" of the error you got can be found in the following lines of the definition of \beamer@subsection (given in beamerbasesection.sty) used by \subsection: ...

1

I had the similar problem, but I solved it by change the path in Commands, see it in the picture. In it, you only need to correct the path to PdfLaTeX. Hope this would help.

2

Hi，I had the same question and googled to this page. At last, I solved this problem by add one more c, the correct case should like below: \documentclass{article} \begin{document} \begin{tabular}{c|c|c} one & two & three \\ \hline one & two \end{tabular} \end{document}

3

Percusse has answered accordingly to the question. (I think his answer should be marked as "accepted", by the way). I took the liberty to propose a MetaPost solution, however. Until quite recently, this kind of function drawing would have been impossible to do with MetaPost, since it was based only on quite limited fixed-point numerics. But since its ...

2

!!NOTICE!! I worked out the problem. I haven't got a single clue to why this leads to conflict but.. In my introduction I have a table/tabular and in the first cell, first line I wrote "[g]" for indicating gram as a unit. \begin{table} \centering \caption{Recipes for initial experiments} \begin{tabular}{lcc} \toprule [g]& 5$\%$ cement sub. & 10$\%$ ...

9

Just simply use pgfplots. TikZ in this case is hopeless to deal with such precision. In fact, I just copy pasted and replaced commands. Also adjusted the y domain to make the plots seen. \documentclass[11pt,twoside]{book} \usepackage{pgfplots} \begin{document} \begin{figure} \centering \begin{tikzpicture} ...

5

You are surely trying to define your nomenclature entries in this way: \nomenclature[<prefix>]{<symbol>}{<description>} which is the way to define nomenclature entries when using the nomencl package. But you're using the nomentbl package, and the correct way to define nomenclature entries is: ...

3

You can avoid using many arguments. Here's an implementation of your \cmd where you specify the arguments as a comma separated list; with \selectorder you can decide what order is used in the output. Note that \cmd will happily accept any number of items in the list; all you need is to specify the correct number of columns in the tabular and precede it with ...

12

Cells inside a tabular form groups, so in your example the commands defined by \cmd are not available starting with the second cell. Solution: Use \gdef instead of \def in the definition of \cmd. \documentclass{article} \newcommand{\cmd}[5]{% \gdef\tA{#1}% \gdef\tB{#2}% \gdef\tC{#3}% \gdef\tD{#4}% \gdef\tE{#5}% \tA & \tB & \tC & ...

2

There are some conflicts between wasysym and mathabx; both define symbols with the same name, including \leftmoon and \rightmoon. The simplest thing would be to remove one of the packages, unless you really need both. In that case, you can delete the offending commands in between loading the packages. \documentclass[10pt,a4paper]{article} ...

5

This seems to be a issue more about xkeyval than auto-pst-pdf: when you type the option as pdfcrop = {--hires} for some reasons the program gets called as pdfcrop hires--hires "<filename>-autopp.pdf" "<filename>-pics.pdf" which is incorrect. If braces are omitted pdfcrop = --hires or the space following = is omitted pdfcrop ={--hires} ...

3

You weren't specific as to what you think is wrong with your example, but I'll assume it's the fact that several lines start far to the right -- basically, outside the text block. A straightforward way to fix this is to provide blank lines between certain lines of code, because all-blank lines are interpreted by TeX as paragraph breaks. ...

3

\\ is used by the tabbing environment to break lines. Since you've issued it inside the environment foo, the environment is not ended before the linebreak and tabbing gets confused. That's the reason of the error forgotten \endgroup. If you let foo end before the linebreak, you don't get the error, as in following MWE: ...

1

TeXShop will let you choose between typesetting using LaTeX and using plain TeX: the error suggests you are doing the latter. The main TeXshop windows has a dropdown next to the 'Typeset' button which should say 'LaTeX' (or similar), rather than 'Plain TeX'. Alter the setting and try again.

5

The error Missing $inserted Missing } inserted Extra }, or forgotten \endgroup is due to the fact that \alpha needs to be in mathmode; hence, within$<math content>$. Therefore, using \item$\alphavalue should fix the issue. The following is just a suggestion to look into. It is not fully optimized. \documentclass[letterpaper]{article} ... 0 With the threepartable, siunitx and booktabs packages, it requires less code (defining sim is no more useful) for a better aspect (the decimal dots in the middle column are vertically aligned): \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[para]{threeparttable} \usepackage{booktabs} \usepackage{amsmath} \usepackage{siunitx} ... 5 There errors were: The missing backslash before the %, You had used three \\\ instead of \\ at the end of some lines, and a single \ one on the last line. As per egreg's suggestion, I made the numbers to be in math mode. This is especially important for negative numbers -- otherwise you have a dash instead of a negative sign. Instead of \textit{} you ... 5 Both after one \Biggl and one \Biggr a delimiter, such as \lvert or \rvert or any other (parenthessis, brace, dot), is missing. There's just a blank and another command following. Compilable example code: \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \[ n \geq \Bigg\lvert \bigcup_{l \leq |A_{i}| \leq 2l} |A_{i}| \Bigg\rvert \geq ... 5 When TeX generates an error then (if you do not stop at that point, and let it carry on) it makes an essentially arbitrary "correction" that is designed to get itself unstuck and allow it to process the rest of the document, to speed up finding later errors compared to just fixing one error and then re-running. So the real output from TeX in this case is ! ... 0 The error occurs because natbib cannot find year information in the .bbl file (or possibly, but less likely, it cannot find author information). You can open it up yourself to see why this is the case. The simplest reason would be that you have a \bibitem with the year field missing. A trickier reason is that your bibliography style does not output year ... 10 Amazingly finding the problem was much easier than using the \ignorespaces, thanks to David Carlisle on chat, realizing my stupid mistake that \zap@space should be utilized. More fun is here if you haven't yet I'm a cargo cult programmer ... Anyway, the reason for the error is that the code is, with all respect, looking like unfinished there. The space ... 1 The problem in the bibliography.bib file (https://gist.github.com/gfarrell/9892791) was an undefined control sequence after all: ADSABS inserts control sequences for journals like \aap. Removing these and replacing them with the actual journal names fixes the problem. (If anyone knows a package that defines all of these it would be quite helpful). 3 You must use \DeclareExpandableDocumentCommand: \documentclass[a4paper]{report} \usepackage{multirow,xparse} \ExplSyntaxOn \DeclareExpandableDocumentCommand{\multi}{oom} { \IfNoValueTF{#2} { \IfNoValueTF{#1} { \errmessage{Too few arguments} \errhelp{You must specify either the number of columns or that of rows but not neither.} ... 4 Use the siunitx package for typesetting physical quantities: \documentclass{article} \usepackage{amsmath} \usepackage[ locale = DE % comma as decimal mark ]{siunitx} \begin{document} $$\label{eq:Bsp_OhmsLaw} R_{2} = \frac{U_{2}}{I_{2}} = \frac{\SI{2.95}{\volt}}{\SI{0.03e-3}{\ampere}} = \SI{7.10}{\kilo\ohm}.$$ Ohm's ... 6 In addition to removing the as cmhughes suggested, the blank lines in the equation environment confuse things. This may be why you added the dollar signs - with the blanks, LaTeX otherwise complains about missing $symbols in the code. Here's a working version: \documentclass{article} \begin{document} ... 0 If you didn't (as I didn't) do the full latex installation (3 GB !^oo^!), the answer might be as simple as a sudo apt-get install texlive-latex-extra 1 I was able to fix this by rearranging the PATH command in .bashrc. The problem manifested itself when the path was set like this: export PATH=$PATH:/usr/local/texlive/2013/bin/x86_64-linux However, changing to this: export PATH=/usr/local/texlive/2013/bin/x86_64-linux:PATH fixed the problem. I do not have TeXLive installed under the Ubuntu Software ... 5 It's not really an acute accent, but an inverted comma. The combelow package provides it. So define U+0123 to \cb{g} (and U+0122 to \cb{G}). If you don't use the utf8x option, but resort to utf8, you can exploit the newunicodechar package, for these definitions: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ... 0 This is quick and literally dirty fix (workaround), using the dirty option: \documentclass{article} \usepackage[dirty]{ucs} \usepackage[utf8]{inputenc} \begin{document} ģ \unichar{"0123} \end{document} The result is a bit ugly, but recognizable as g with cedilla. 5 The warning says: Package rerunfilecheck Warning: File model.out' has changed. (rerunfilecheck) Rerun to get outlines right (rerunfilecheck) or use package bookmark'. It is not clear to me, what is the question? hyperref creates the .out file for its bookmarks. It needs two passes. Thus rerun LaTeX. Or add ... 2 According to the documentation, the inputenc package allows the user to specify an input encoding (for example, ASCII, ISO Latin-1 or Macintosh) by saying: \usepackage[encoding name]{inputenc} The choices of encoding name are listed on pages 1-2 of the manual. 3 From my comment to a proper answer. :) The root of all evil relies on a hook named logParser.js inside <USERHOME>/.TeXworks/scripts/Hooks. If you are not sure where to find this path, TeXworks has a shortcut for it: Namely, Scripts ▶ Scripting TeXworks ▶ Show Scripts Folder. Then you can access a folder named Hooks in there. Pretty easy, isn't it? ... 3 You are trying to generate postscript picture directly from {pdf|lua}latex, it cannot be done this way. Use \usepackage{auto-pst-pdf} and run one the following commands (in depends on the TeX distribution you are using): lualatex --shell-escape your-file.tex lualatex --enable-write18 your-file.tex The next option is to use a sequence of tools ... 1 I deleted an extra {, but that wasn't the major problem. You haven't defined the second definition (\myUseCaseCTR) if you check it closely, the name is different from (\SharedCTR). I have used the \let command to define it, see line number 7. I enclose a working example and a preview. \documentclass{report} \pagestyle{empty} \begin{document} %{ % Deleted ... 5 texmaker is just the editor, the error comes from TeX. You have used & which is reserved for marking table cells (alignment tabs) to get a & in text you need \& (or better use the url package). 2 Try adding the .tex extension back on to the file. I'm not sure why arXiv would remove it, but many editors will assume that it's there when running compile sequences. To see what I mean, compare the compilation for pdfLaTeX and BibTeX: pdflatex myfile.tex $bibtex myfile Note that bibtex doesn't need the file extension since it also looks at the ... 7 If I strip out most of the custom commands and package loading, then this is what I’m left with which still shows the problem: \documentclass{revtex4} \usepackage{amsmath} \usepackage{colortbl} \begin{document}$\begin{bmatrix} 1 & 2 \\ \end{bmatrix}\$ \end{document} The problem seems to arise as a conflict between the revtex4 class and the ...

Top 50 recent answers are included