# Tag Info

2

Partial answer about small cap "Figure": From the documentation of the french language in babel, which on my system I can read with texdoc frenchb, one learns that the command \frenchsetup takes the argument SmallCapsFigTabCaptions=false to turn off using small caps for figure and table name. Minimal Code: \documentclass{article} \usepackage[utf8]{...

1

As I said in my comment, I can't reproduce your warnings. With the following MWE, where i made three small changes: add siunitx to write \SI{>1}{\%} instead of the $>$1\% (not relevant to your problem) move \usepackage{hyperref} to the end of preamble (also not relevant to your problem) instead of \\ on the end of the (i suppose) first paragraph, i ...

0

0

This solution uses a minipage of known (estimated) size to wrap the minted. And I give the example with the listing environment of the minted package but it works equally well with figures. Pro: Can display line numbers from minted (unlike @egreg's solution) Con: You have to know/guess/estimate the size of the longest line (easy for text that you put ...

2

You get Package caption Warning: Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended. See the caption package documentation for explanation. ) ! Package subcaption Error: This package can't be used in cooperation (subcaption) with the subfigure package. See the ...

0

I had the same problem. The floats were Tables and I have inserted some code Listings into the tables. Suddenly, the float's type was shown as listing but the real type of the float (as shown in the settings) became empty. Then I couldn't compile the document. To fix this, I went to the float's settings and set the float type to Table. This needed to be ...

0

This may work: full page of text \twocolumn % starts a 2 column page \begin{figure} tall enough to fill the column \end{figure} text for the adjacent column \onecolumn % starts a 1 column page full pages of text This is not automatic, you have to decide where in your source you put the \twocolumn and \onecolumn.

0

Taking from @Zarko's comment above, I modified it to suit my question : \documentclass{article} \usepackage{caption,subcaption} \usepackage[demo]{graphicx} \usepackage{tabularx} \begin{document} \begin{figure} \centering \begin{tabularx}{\linewidth}{XX} \begin{subfigure}{\linewidth} \includegraphics[width=\...

1

like this? \documentclass{article} \usepackage{caption,subcaption} \usepackage[demo]{graphicx} \usepackage{tabularx} \begin{document} \begin{figure} \centering \begin{tabularx}{\linewidth}{XX} \begin{subfigure}{\linewidth} \includegraphics[width=\linewidth,height=5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/Elbow.pdf} \caption{A ...

1

An easy way would be just to use the \vspace command e.g. \documentclass[12pt]{memoir} \usepackage{caption,newfloat} \usepackage{graphicx} \def\listofquadrosname{List of Frames} \DeclareFloatingEnvironment[fileext=loq,placement={!hbtp},name=Frame, within=chapter,listname=\listofquadrosname]{quadro} \setlength{\belowcaptionskip}{-10pt} \begin{document} ...

0

You can also do it with a savebox, but fooling with the figure counter is probably easier. \documentclass[twocolumn]{article}% couldn't find vgtc.cls \usepackage{dblfloatfix}% allows [b] for figure* \usepackage{caption}% for \captionof{figure} \usepackage{graphicx} \usepackage{lipsum}% MWE only \newsavebox{\tempbox} \begin{document} \lipsum[1] %create ...

1

I was able to solve this problem by manipulating the counter. I embedded \setcounter{figure}{#} into the figure and figure*. The count reordered the figure numbering and preserves the placement.

3

Normally a top [t] float is only added if some numeric constraints such as topnumber (the number of floats allowed at top of a page) are not violated. The ! tells latex to ignore these constraints (that is, for this one float act as if they had their most permissive values)

4

I'll try to explain this using quotes from the TeXbook. Summary When the main vertical list isn't empty at the point where the \end token is digested, TeX inserts the equivalent of \line{}\vfill\penalty-'10000000000 into the main vertical list, exercises the page builder and prepares to read \end again (TeXbook pp. 264 and 283). In your example, this \line{...

4

It is tex-the-program's final endgame to flush out the insert: tex.web has @ We don't want to leave |main_control| immediately when a |stop| command is sensed, because it may be necessary to invoke an \.{\\output} routine several times before things really grind to a halt. (The output routine might even say `\.{\\gdef\\end\{...\}}', to prolong the life of ...

1

\documentclass[border=10pt]{standalone} %%%< \usepackage{verbatim} %%%> \begin{comment} :Title: A Venn diagram with PDF blending :Tags: Diagrams;Cookbook :Author: Stefan Kottwitz :Slug: venn PDF blend mode requires TikZ version 3.0 or above. \end{comment} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[blend group = soft light] ...

3

topinsert and pageinsert mostly share the same code, with one boolean switch distinguishing them \def\topinsert{\@midfalse\p@gefalse\@ins} \def\midinsert{\@midtrue\@ins} \def\pageinsert{\@midfalse\p@getrue\@ins} So for example the bigskip that you ask about appears at the end of topinserts as \ifp@ge is false in that case and \endinsert has \ifp@...

1

LaTeX will automatically insert a label and a number whenever you say \caption, if you don't want this, either don't use the word \caption or use \caption* from the caption package. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \begin{document} \begin{figure} \centering \includegraphics[width=\textwidth,height=9cm]{example-image} \...

2

Just change all four instances -- or at least the 3rd and 4th -- of \begin{subfigure}[b]{...} to \begin{subfigure}[t]{...}. I.e., change from bottom-alignment to top-alignment of the subfigure environments. Incidentally, none of the four \centering instructions are needed. \documentclass[demo]{article} % omit 'demo' option in real doc. \usepackage[T1]{...

1

I changed your used images to example-image-a etc. from package mwe which must be installed, but not called ... Now please see the following corrected and shortend mwe: \documentclass[a4paper, 12pt]{article} \usepackage[latin1]{inputenc} \usepackage[margin=2cm, left=2cm, top = 1.7cm, bottom=1.7cm]{geometry} \usepackage{graphicx} \usepackage{caption} \...

2

With the help of the valign=t option introduced by the adjustbox package there is no need for measuring: \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amsthm,amssymb} \usepackage[demo]{graphicx} \usepackage{calc} \usepackage[export]{adjustbox} \begin{document} \noindent {\bfseries Determine whether each relation is ...

1

Use \raisebox to lower the image into position: \documentclass{article} \usepackage{graphicx} \begin{document} \noindent \textbf{Determine whether each relation is a function.} \medskip \begin{tabular}{p{0.5\linewidth} p{0.5\linewidth}} 1. $\{(5, -7) (6, -7), (-8, -1), (0, -1)\}$ & 2. \raisebox{\dimexpr-\height+.7\normalbaselineskip}{\...

7

\newpage is a low level command on which \clearpage and \cleardoublepage are built upon. It ends the current paragraph (if not issued between paragraphs), fills the current page with white space and starts a new page. \clearpage does something more, as it also flushes the float queues, producing pages of floats if necessary, then starts a new page. \...

1

You can use two minipages of 0.45 columnwidth side by side. Because inside a minipage floating environments (such as table or figure) are not allowed, the tabular and includegraphics commands should be used without the surrounding environments. To indicate which type of float it is and to provide captions and labels, you can use \captionof from the capt-of ...

1


0

I used the \tabular-environment. This is useful for multiple figures with different (centered) titles especially. \begin{figure} \centering \begin{tabular}{c c} \textbf{\underline{Title One}} & \textbf{\underline{Title Two}} \\ \includegraphics{picture1.png} & \includegraphics{picture2.png} \end{tabular} \caption{Caption ...

1

As supplement to @leandris answer, some off-topic changes which my be useful to you. They are marked (in the first sub figure) by % <--- ... (red lines indicate page layout) \documentclass{article} \usepackage{geometry} \usepackage{subcaption} \usepackage{tikz} %---------------- show page layout. don't use in a real document! \usepackage{showframe} \...

1

Assuming that you are using the exam documentclass, I have made the following MWE. I have removed the empty lines between first and second as well as between the third and last subfigure. I have also increased the width of the subfigures to 0.5\textwidth (Make sure to add a % after \end{subfigure}). Additionally, I have added the \centering command into all ...

Top 50 recent answers are included