Tag Info

Hot answers tagged

5

I would place the graphic and equation in the following way: \documentclass{article} \usepackage[export]{adjustbox} \begin{document} \begin{figure} \centering \includegraphics[valign = c, width = .3\linewidth]{example-image} \qquad $\displaystyle A = \frac{B}{C}$ \caption{A picture and an equation} \end{figure} \end{document} The image would ...


4

The floatrow package is done for that. It has an eponymous environment that takes an argument, the number of figures in a row (default is 2) and figures are inserted in the form: \ffigbox{image}{caption title+label}. Similarly there is a \ttabbox command for tables. If you want subfigures, there is a subfloatrow environment. The package cooperates with the ...


2

I don't see any problem with this code if I do either of the following: (1) run latex and then dvips and then ps2pdf; or (2) convert the eps figures to pdf (with epstopdf) and then run pdflatex. I do see the problem described when running first latex and then dvipdfm, but that is a rather unnatural way to process a file with a lot of eps figures.


2

If you want to compile with dvipdfmx, then you should explicitly pass the option to graphicx; without it, the behavior is indeed like you describe, and it is caused by graphicx believing that the dvips driver is desired. \documentclass[preprint]{revtex4-1} \usepackage[dvipdfmx]{graphicx} \begin{document} \begin{figure}[htp] \centering ...


2

You can get captions identical to the ones for figure in the following way: \documentclass[10pt]{article} \usepackage{showframe} \usepackage[figure,noend,noline,linesnumbered]{algorithm2e} \usepackage[font=bf,skip=\baselineskip]{caption} \usepackage{etoolbox} \AtBeginEnvironment{algorithm}{% \captionsetup{margin={-\algomargin,\algomargin}}% } ...


1

Too long for a comment, thus posted as an "answer"... The following should work, i.e., produce a float that's as wide as a single column. Note that there's no need to use a center environment if you make the graph as wide as possible given the available space (which equals \columnwidth). Don't use 0.5\textwidth to specify the width, since a column is less ...


1

My suggestion would be to first prepare all the documents in separate pdf files and then compile them into a single pdf file using some third party softwares. For example, if you are using OS X, preview.app can do this and in Ubuntu there are different options. If you want a pure latex solution, then you can use pdfpages to merge all your documents to a ...


1

On the advice of some of the comments I received, I took a proper look at whether simply doing something like \begin{figure}[!ht] would produce this desired effect. From experimenting with different floats and different positions. I am a little embarrassed to say that, yes, it seems like that is all that was needed after all. Maybe it won't suffice always ...



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