# Tag Info

1

You could try the following. Note that this relies on an experimental package and so cannot be guaranteed as future-proof. To avoid the experimental package, you could use the underlying stuff provided by the LaTeX 3 kernel development since the equivalent programming functions are not marked as experimental - only the user-level interface which I use here. ...

3

First and most important: never use eqnarray for any reason whatsoever. Second: never leave a blank line before a display. Third: LaTeX doesn't force anybody to use \left and \right in front of each parenthesis or bracket; if your editor does it automatically, disable the feature. Fourth: from the chosen breaks, I guess you're writing in a two column ...

1

I have rebuilt your code from scratch (but using your colors, font sizes, etc.) solely in Tikz. The code is shorter and easier to maintain in some cases. There are very minor differences in positions, but I tried to replicate your own as close as I could I have wrapped everything in a newcommand \mytitlepage with 5 arguments: \mytitlepage{ <title> }{ ...

3

This is not a bug, in fact the behavior is (indirectly) documented in the manual: The between origins option can only be used for columns mentioned in the first row, that is, you cannot specify this option for columns introduced only in later rows. (Section 20.3.2 Setting and Adjusting Column and Row Spacing) In your matrix you only have one column ...

2

Here's a way of making the \fakefigure macro suggested in the question work. Well, at least it survives minimal testing in combination with Werner's answer on absolute placement. The proposed redefinition of \caption won't work because capt-of defines \captionof in terms of \caption. However, it is possible to first save the definition of \caption and then ...

2

If I understand what you're looking for, you may want to pursue the following approach: Using the facilities of your text editor, globally replace all instances of \begin{figure} with \par\noindent\begin{minipage}{\textwidth}% globally replace all instances of \end{figure} with \end{minipage} and globally replace all instances of figure-related ...

4


6

A stackengine approach, with scalerel for handling the change in math style size. REVISED ANSWER This can present nicely in all math styles and corrects the issue with my alternate solutions that the drop of a subscript is not uniform but depends on the letter height. For this application, that is not a helpful feature. \documentclass{article} ...

1

use the optional argument float: \lstinputlisting[language=php,caption={PHP code snippet A}, float, label=listing:codeA.php]{./codeA.php}

2

You can use \clearpage before the listing to flush any floats.

8

Well, it seems there is a bug (or is it a feature?) in your used class IEEEtran. Or it results in the using of package subfigure, which called package caption. And that package caption results in the following warning you should not oversee: Package caption Info: Unknown document class (or package), (caption) standard defaults will be used. ) ...

2

No mdframed based solution, but using tcolorbox and an automatic \mbox{} and some vertical upshift. The \tcolorboxenvironment is basically the same what \surroundwithmdframed does. \documentclass[12pt]{article} %\usepackage{mdframed} %\usepackage{enumitem} \usepackage[most]{tcolorbox} \usepackage[T1]{fontenc} \usepackage{fouriernc} ...

3

Package placins and \FloatBarrier might be of use here! \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{listings} \usepackage{color} \usepackage{courier} \usepackage{placeins} \usepackage{longtable,geometry} \definecolor{Gray}{gray}{0.95} \setlength\parindent{0pt} % Uncomment to remove all indentation from paragraphs ...

0

Something like this? This picture was produced by: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{floatrow} \floatsetup[table]{capposition=top,footnoterule=none,footskip=.35\skip\footins} \usepackage{subfig} \begin{document} \begin{table} \centering \begin{tabular}{cc} \subfloat[]{ \begin{tabular}[t]{cc} Test&Test\\ ...

1

I don't think the package provides for line breaks; you can add them as follows. \documentclass[draft,dutch]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{geometry} \geometry{tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm} \usepackage{backnaur} \newenvironment{bnfsplit}[1][0.7\textwidth] ...

3

add \usepackage{flafter} which is part of the base latex distribution and changes the definition of t not to allow t on the page on which the figure appears in the source, so that floats never go backwards.

2

This is a standard latex warning. You get it e.g. when you use \begin{figure}[] or \begin{table}[]: LaTeX Warning: No positions in optional float specifier. Default added (so using `tbp') on input line 9. And as latex adds a line number it should be easy to find.

1

This method works here since both graphs have the same right-side limit. Graphs with the same left-side limit could be dealt with by eliminating the \llap. However, this approach will not intrinsically work if one graph has extra stuff off to both the left and right. It works with the atbegshi package to overlay something over the graph at a specified ...

4

The solution in this case is easier than using absolute positioning on beamer. As both graphics are similar in size, except for the left label, you can include this long label in first graphic as a \phantom text. This way is not printed but the corresponding space is preserved, both graphics have same width and both will be centered on same slide position. ...

1

You are introducing some spurious white-space after the opening brace before including the image. It should be: % arara: pdflatex \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subfig} \usepackage{blindtext} \begin{document} \begin{figure} \centering \includegraphics[width=\textwidth,height=0.1\textwidth]{dummy.pdf} ...

0

See, if the following can help you: \documentclass{book} \usepackage{graphicx} \usepackage{showframe} \begin{document} \newpage \section{Appendix} \label{append} \vfill \begin{table}[htb] \includegraphics[width=\textwidth]{example-image} \caption['Tis table1]{'Tis table1} \label{table1} \end{table} \vfill \clearpage next page \end{document} I assume, ...

4

You know how to use coordinates. So you could just say \draw[thick] (C1.east) -- ++(1,1) coordinate (y) -- (y |- C2.south);. I left the red line in the code as thin and dashed for comparison. \documentclass[border=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[font=\sffamily] \node[draw, circle](C1) at ...

0

I cant reproduce your problem. Probably because I wrote own MWE (since you not provide your): \documentclass{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \begin{document} \begin{figure}[h] \begin{minipage}[t]{0.45\textwidth} \centering \includegraphics[width = 1\textwidth,fbox]{example-image-a} ...

Top 50 recent answers are included