# Tag Info

4

Using polar relative coordinates it is easy to build a path in a triangular grid, such as: \draw (0,0) -- ++(0:1) -- ++(120:1) -- ++(0:1) -- ++(-120:1) -- ++(0:1) -- ++(120:2); Each coordinate is given in the form (angle:distance) relative to the previous one (this is what ++ is for). This draws the path: Using again polar relative coordinates ...

0

Based on Oliver's answer, I used: pcregrep -M "\\\label{.*}\r*\n*\\\caption{.*}" */*.tex

3

Would this be close to what you need. the proposed solution uses \newgeometry from geometry package to remove the margin, but keep the bottom margin for page number. Here lastpage package is added for the correct page numbering. Code \documentclass[a4paper,11pt,openany]{book} \usepackage{fancyhdr} \usepackage[graphicx]{realboxes} \usepackage{varwidth} ...

3

If you're only after a watermark on a page where a certain type of float appears, then you can tap into the shipout routine using atbegshi and condition on some counter magic with a float counter tracking mechanism: \documentclass{article} \usepackage{atbegshi,refcount,etoolbox,graphicx,xcolor} \usepackage{lipsum,afterpage} \newcounter{floatcntr} ...

2

If your editor supports regular expressions this expression should find all wrong label+caption statements \\label\{.*\}\r*\n*\\caption\{.*\}

3

I would suggest to insert systematically the \label command inside the argument of \caption to avoid that sort of “errors”: \caption{\label{fig:foo}Bla}

4

A simple way (for the \chapter* figures) is to just redefine \thefigure within the figure environments that need to be changed. \begin{figure} \renewcommand\thefigure{A} % Make this Figure A ... A working example: \documentclass[]{amsbook} \usepackage[demo]{graphicx} % Set counter to include Chapter \usepackage{chngcntr} ...

4

An automatic way would (probably) mean to redefine the \chapter* command. Perhaps, this will work also for you. \documentclass{amsbook} \begin{document} \newcounter{otherfigure} \setcounter{otherfigure}{0} \let\originalthefigure\thefigure \renewcommand{\thefigure}{\Alph{figure}} \chapter*{Introduction} \begin{figure} \caption{There should be a figure ...

0

I have found the answer: If you use "hungarian" as the last language in the options of babel package, the error occurs. If you use any other permutations, the code will compile without any problem....

5

Here's a possibility that makes use of the \subcaption command of the subcaption package and the minipage environment (see p. 4 of the documentation; there are also dedicated subfigure and subtable environments that are explained on p. 5, if you prefer another possibility). \documentclass{article} \usepackage{pgfplots} \usepackage{subcaption} ...

2

The align environment is essentially treated as text for the purposes of splitting and flow. It seems as though things are happening the way the are supposed to, just not the ideal way in this particular case. The align environment is not a float, and so it would not make sense to have the rest of the align equations appear above the table on the next ...

3

As chemstyle loads chemscheme automatically, I have commented chemscheme. chemscheme uses a counter scheme for the schemes. You can do this \chapter{Experimental part} \renewcommand*{\thescheme}{E.\arabic{scheme}}% \setcounter{scheme}{0} right where the experimental part starts. \documentclass[a4paper]{report} \usepackage{a4wide} ...

7

This is caused by chemstyle package, and to be more precisely by the varioref option. Set it to false if you don't need it.

4

This is a very simple solution. Notice! I moved the label below the caption statement. \documentclass[a4paper]{book} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{lipsum} \begin{document} \chapter*{Introduction} \renewcommand{\thefigure}{I.\arabic{figure}} \lipsum[1] \begin{figure}[h!] \vspace{2cm} \caption{Figure in the ...

1

The subfigure package is deprecated. With IEEEtran you can use subfig, with the option caption=false that doesn't load the incompatible package caption. I repeat the figure twice, one with the default setting, one with a setting for farskip and nearskip to show the difference. Note that the demo option for graphicx is just not to bother with a real file; ...

3

Since SCfigure defines a float object, it will float according to the algorithms implemented in LaTeX. You can try to restrict the positioning using the second optional argument (as you are already doing), but this won't force LaTeX to place the figure exactly where you want in all the cases. In the code below I show one option; I also made some changes to ...

3

You need to change the default floatseparator (\columnsep) used. None of the predefined separators will be of use here given the widths of your figures, but you can easily define one using \DeclareFloatSeparators: \documentclass[]{report} \usepackage[a4paper,showframe]{geometry} \usepackage{subcaption} \usepackage{lipsum} \usepackage{graphicx} ...

2

Package hyperref with package nameref changes the internal data format of the \label data, because they need additional data. Therefore errors can be triggered, if the data in the .aux file is written by a different package combinations, especially with or without hyperref/nameref. Workarounds: In this case, the error can be ignored, a new .aux file is ...

7

For the first (risky (see link below)) possibility (force all figures to appear exactly where they are declared in the code, suppressing flotation), you can use the float package and its \floatplacement command together with the H specifier: \documentclass{article} \usepackage{float} \floatplacement{figure}{H} \begin{document} <contents> ...

0

The following (somewhat complicated approach) seems to cover all cases: \documentclass{article} % packages needed only for the purpose of illustration \usepackage[a6paper,margin=0.5cm,bottom=1.5cm,landscape]{geometry} \usepackage{graphicx} \usepackage[english]{babel} \usepackage{blindtext} % packages which are actually used for putting the credits box at ...

1

If different PDF viewers show different things, they are probably broken. Check with Adobe's reader (that one should be the gold standard), check with tools that do only PDF (or document) viewing, like on Linux xpdf(1) or evince(1). See what your (PDF) printer prints. You might want to check if newer versions of the tools are available, and if they still ...

7

The error happens when \pr@\end@dblfloat is being executed, which uses \end@dblfloat. Let's compare the definitions of \end@dblfloat in the kernel and in fixltx2e: latex.ltx \def\end@dblfloat{% \if@twocolumn \@endfloatbox \ifnum\@floatpenalty <\z@ \@largefloatcheck \@cons\@dbldeferlist\@currbox \fi \ifnum \@floatpenalty =-\@Mii ...

3

On line 822 of the code you linked to, you have: \begin{figure} % fl1400 \begin{figure} % kroA150 So you start a figure environment inside another and this produces the error (you cannot nest floats); remove the \begin{figure} from line 822. This will leave you now with a ! LaTeX Error: Too many unprocessed floats. error, since LaTeX can't handle all ...

4

You can use adjustbox \documentclass{scrreprt} \usepackage[export]{adjustbox} %% export option makes adjustbox -- %% -- goodies available inside includegraphics command \usepackage{graphicx} \begin{document} X\hrulefill X \begin{figure}[htp] \includegraphics[width=1.1\textwidth,center]{example-image-a} \end{figure} ...

7

The \centerline command should never be used in a LaTeX document (unless you know precisely what you're doing, and probably only in the preamble for some definition). Use \begin{figure}[htp] \centering <whatever> \end{figure} and <whatever> (a graphic, a TikZ picture or anything) will be centered.

5

Your table has several problems. Mentioning some of them, in no particular order: There are 50 [!] \multirow directives in your code, but (a) the syntax of these directives isn't correct and (b) it's not clear what they're supposed to achieve. In the code below I've eliminated all of them. The table's header is a mess, I hate to have to tell you. You ...

1

In case you don't know it, bytefield package can be used to type binary values. Its main goal is drawing protocol data fields, but can be used for any kind of data field. It just type what you want, but you can not use it to convert from binary to decimal like jbfu proposes with his great xint package. A little example with bytefield ...

2

I don't think you can get the same output by exporting from Geogebra. You'll have to edit the source manually. I've used node anchors to put labels next to the desired points. See section 17.5 Positioning Nodes in the TikZ & PGF manual (version 3.0.0). \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} ...

3

Some more explanations on how to detect the problem. The command \clip clips the picture part that that lies within the rectangle bounded by (-4.3,-10.66) and (17.58,6.3). To get a visual of this rectangle you can add some sort of grid like \draw (-5,-10) grid (18,6.5); %\clip(-4.3,-10.66) rectangle (17.58,6.3); in your tikzpicture and you will get Now ...

4

The offending line in the TikZ code is the first line, which clips the output to the specified rectangle. Normally this is used to trim the bounding box and show only part of a figure, however, in your case, whatever program/code generated the TikZ code has used the \clip functionality to expand the bounding box (likely to match the view shown in the ...

7

One can indeed define a command and automatize a bit. \documentclass{article} \usepackage{xinttools} \newcounter{bitindex} \newcommand\bitpicture [3]{% \setlength{\unitlength}{1mm} \setlength{\fboxsep}{0mm} \begin{picture}(130,16) % sign bit \put(2,4){\framebox(4,8){#1}} % exponent \setcounter{bitindex}{1}% \xintFor* ##1 in {#2} ...

3

dirtree is just text, so you could use \scalebox and friends but it's usually better with text just to select a smaller fontsize as that gives more regular output. so \footnotesize or \small or whatever. I used \small here, I also fixed several other spacing issues (you need to allow space for the fbox rules and padding when allocating the width to the ...

1

Issue a \cleardoublepage just before your reference section. \clearpage may be enough, depending on your document layout/class.

1


Top 50 recent answers are included