# Tag Info

5

This code works for me using the subfig package. \documentclass[11pt,a4paper,twoside]{book} \usepackage{caption} \usepackage{subfig} \usepackage[demo]{graphicx} % [demo] is just for the example \begin{document} \begin{figure}[ht] \centering \subfloat[A bounded feasible region]{\includegraphics[width=0.3\textwidth, ...

3

For subcaption you need a different syntax \documentclass[11pt,a4paper,twoside]{book} %\usepackage{caption} \usepackage{subcaption} \usepackage[demo]{graphicx} % [demo] is just for the example \begin{document} \begin{figure} \centering \begin{subfigure}{0.3\textwidth}\Huge A\caption{A bounded feasible ...

3

In addition to loading the subfig package instead of the subcaption package, you should also provide some code to provide whitespace between the three items in the figure. I suggest you drop the \centering instruction and insert \hspace{\fill} in two places. \documentclass[11pt,a4paper,twoside]{book} %\usepackage{caption} %% not needed for this MWE ...

2

The normal way to prevent centering of one line captions is to add \usepackage[singlelinecheck=no]{caption} to the preamble. However, according to the documentation for the IEEEtran document class (appendix A), the caption package interferes with other aspects of caption formatting. Therefore I think the best solution is to hack away the centering: ...

2

Use \reversemarginpar and \marginnote{this is just a test1}[-3 cm] \marginnote{ \includegraphics[width=\marginparwidth]{filename} \captionof{figure}{Text of the caption} } Code: \documentclass{article} \usepackage[left=3 in]{geometry} \usepackage{blindtext} \usepackage[demo]{graphicx} \usepackage{marginnote} \usepackage{caption} ...

2

Something useful: scope environment. This allows to set properties such as scale/red/thick separately. \paperwidth, \textwidth, and 72.27(which is your margin). xshift, or ingeneral shift={(1,2)}. \useasboundingbox. This makes TeX reconsider the bounding box (hence the size) of tikzpicture. It is like smash or clap but far more flexible. ...

1

Your pictures are aligned exactly as you request: in centre of text width. I suspect, that you wish, that the right borders of them also be aligned. This you can accomplish with putting each picture in minipage (or equivalent parabox) where they are aligned to right, and than all mini pages to centre. Edit: I replace my example with MWE which contain ...

1

A possible solution with tabulars \documentclass{article} \usepackage{graphicx} \usepackage{tabularx} \usepackage[export]{adjustbox} \usepackage{mwe} \begin{document} \lipsum[1] \begin{center} \begin{tabular}{r} \includegraphics[height=1cm,width=5cm]{example-image-a}\\ \includegraphics[height=1cm,width=5.5cm]{example-image-a}\\ ...

1

The following code is not perfect yet but I think you can make it. I use float package to declare new floating environments. So whenever you say \questionQuarterTag{tpye}{coptain} it typesets a floating environment of type tpye and passes the caption coptain to the corresponding List of XXX. \documentclass{article} \usepackage{float} ...

1

This approach, the index-like one, does not use multiple indexes. Instead, I use ! to assign subentries. At the beginning of the following code, \newkeyword{win13}{13-4}{Winter 2013} declares a key win13 sorted as 13-4 and shown as Winter 2013. While including figures, \questionQuarterTag{win13}{black}{Black} adds under win13 a subentry sorted as black and ...

1

This has been already asked here. But anyway, here it is for your case. You should not call the package caption and graphicx twice. Then you need package adjustbox from here. The minimal code will be: \documentclass[12pt]{report} \usepackage[font=small,labelfont=bf]{caption} \usepackage{graphicx} \usepackage{adjustbox} \begin{document} Some text here. ...

1

With tikz as usual: \documentclass{article} \usepackage{tikz} \usepackage{lipsum} \newcommand{\myback}[1]{% \begin{tikzpicture}[remember picture,overlay] \node[anchor=north west,inner sep=0pt,outer sep=0pt] at (current page.north west) {\includegraphics[width=\paperwidth,height=\paperheight]{#1}}; \end{tikzpicture} } \begin{document} ...

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