Tag Info

Hot answers tagged

8

I am not too sure if getting advice from TeX hackers on typography is good advice but certainly is solid advice on anything related to LaTeX. My own preference is to mix both floating and non-floating figures and I like non-floating figures. Here are some samples: Here is the same "style" for an arts page Here is one "Life Magazine style" These and ...


7

This is very easy and may be a duplicate too. Any way, I am posting this and if this is closed a duplicate, I will delete this answer. \documentclass[tikz,border=2mm]{standalone} \begin{document} \begin{tikzpicture} \node[anchor=south west,inner sep=0] (image) at (0,0,0) {\includegraphics[width=4in]{example-image-a}}; \begin{scope}[x={(image.south ...


7

The answers depend a lot on what kind of document you are producing. LaTeX's float placement algorithm is a lot better and has a lot more parameters than many users believe. See Frank's description One of the most common problems of course is that when things don't go quite as people expect they use [h] which makes it much more likely that the figure can ...


5

It is better to use tabular than array: \documentclass[demo]{article} %% remove demo in your file \usepackage{amsmath} \usepackage[export]{adjustbox} %% gives valing key \usepackage{graphicx} \begin{document} \begin{figure} \centering \begin{tabular}{r@{\hspace{2pt}}lr@{\hspace{2pt}}l} (a) & \includegraphics[valign=b,height=2cm]{image1.jpg} ...


4

You missed the width for subfigure which is the mandatory argument: \begin{subfigure}{0.45\textwidth} Use any length instead of 0.45\textwidth as you need. Also don't leave blank lines in between two subfigures as it will amount to a par break. With this I get: \documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} %% no demo in ...


3

Just a minor modification to your MWE, but better output: \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \begin{document} \begin{figure} \[ \begin{array}{rlrl} (a) & \includegraphics[height=2cm]{image1.jpg} & (b)& \includegraphics[height=2cm]{image3.jpg} \\ (c) & \includegraphics[height=2cm]{image2.jpg} & (d)& ...


2

Is it like this? \documentclass[10pt, twoside]{book} \usepackage[demo]{graphicx} %%% remove demo in your file \usepackage{multicol} \usepackage{caption} \usepackage{kantlipsum} \begin{document} \begin{multicols}{2} a test file for picture inclusion along with the captions and labeling \noindent \begin{minipage}{0.5\columnwidth} \centering ...


1

multicol package doesn't work well with figure environment (which is a float). You stand better chances by using the \includegraphics and add the caption using \captionof macro from caption (or \capt-of) package. \documentclass[10pt, twoside]{book} \usepackage[demo]{graphicx} %%% remove demo in your file \usepackage{multicol} \usepackage{caption} ...


1

By default, matlab2tikz produces the code that enable scale only axis option of the axis environment (see 4.10.1 Common Scaling Options of the pgfplots documentation). Just remove that line from your .tikz file to solve the first issue. The second problem is more about your personal representation of the data, so I may only suggest to reduce the font or ...


1

Code \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage[numbers,square]{natbib} %The following is uesd to make the caption colored \usepackage{xcolor} \definecolor{ocre}{RGB}{1,160,233} \usepackage{caption} \usepackage[font={small,color=ocre}]{caption} \usepackage{graphicx,subfigure} \usepackage[hidelinks]{hyperref} % hyperlinks ...


1

\documentclass{article} \usepackage[demo]{graphicx} \usepackage{lipsum} \begin{document} \twocolumn \begin{figure*}[t] \begin{minipage}[c]{.47\linewidth} \null \includegraphics[width=\textwidth,height=8cm]{example} \end{minipage}\hfill \begin{minipage}[c]{0.47\textwidth} \caption{\protect\lipsum[3] } \label{fig:1} \end{minipage} ...


1

The following should achieve your goal I think: \documentclass{book} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure}[H] \centering \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=\linewidth]{Example-Image} \caption{} \label{fig:dragratio} \end{subfigure} \hfill ...



Only top voted, non community-wiki answers of a minimum length are eligible