Tag Info

Hot answers tagged

3

Your numbering doesn't really make sense: 1.1.1 <-- by section 1.1.1.1 <-- by subsection 1.1.1.2 <-- by subsection 1.2 <-- by chapter* 1.2.2.1 <-- by subsection The reference by chapter should start again from 1. To achieve a "restart numbering from every sectional unit" approach, you can use the following setup: ...


3

I know it makes a lot of time from this post but I had the same problem and found the solution you where looking for. I will post it just in case someone founds it useful. I took the idea from Gonzalo Medina's post (http://tex.stackexchange.com/a/58300/33066). Solution: Just add this line somewhere at the begining of you code: ...


3

You can use the subcaption package. Try something like this. \documentclass{article} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \centering \begin{subfigure}{0.49\textwidth} \centering \includegraphics[width = \textwidth]{tikzexample2.png} \caption{Left figure} \label{fig:left} \end{subfigure} ...


2

Something like this, the command \flushhere if placed between paragraphs tries to take a float off the deferred list and make it a here float at this point, if it succeeds it tries to pop the next deferred float and so on until it runs out. So if you use [hp] floats between paragraphs and put \flushhere after subsequent paragraphs, any floats that didn't ...


2

I found a solution. Adding the option trim axis left to the tikzpicture chops off everything left of the axis. Combined with \centering before the subfigure this aligns the plots nicely. \begin{subfigure}[t]{\linewidth} \centering \begin{tikzpicture}[trim axis left] \begin{axis}[my plot] ...


2

You can include the image in the background, setting it in a tikzpicture that takes up no vertical space and where we can move objects as we please. The important thing is to draw the background picture before any other thing is printed. I assume that the three images have the same height. In the third \subfloat, I just place a couple of invisible rules to ...


2

Add also subsection to the reset list of chapter and then redefine \thefigure to look what's the deepest non zero counter. \documentclass[12pt,a4paper]{report} \usepackage[titles]{tocloft} % one usually wants the `titles` option \usepackage{graphicx} \usepackage{chngcntr} \setlength{\cftfignumwidth}{4em} \counterwithin*{subsection}{chapter} ...


2

I'm gonna answer my own question, in case someone stumbles over this. I used the cutwin package, as suggesten in this thread. (Thanks Schumacher for the link). The output came out pretty nice. Below is the actual code I used in my report. \documentclass[12pt]{scrreprt} \usepackage{graphicx,pstricks,cutwin} \usepackage[onehalfspacing]{setspace} ...


1

There are still a few problems with your solution, although some are probably doe to not being complete (e.g. the geometry settings). The negative \vspace is mostly needed due to the use of the center environment instead of \centering. Also, \begin{minipage}[t] aligns the top baseline, which is actually the bottom of the first image. One can use \raisebox ...


1

You can use a node around each subfigure and draw lines later \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \usepackage{subcaption} \begin{document} \begin{figure} \begin{subfigure}[b]{.45\linewidth} \centering \tikz[overlay, remember picture] \node[anchor=south, inner sep=0] (model) ...


1

Do not use scale but relative lengths in your figure* (with the start if the float must fill both columns, but note that these floats are never placed in the page were is the code) or figure environment (for images in two columns). N.B.: Today is usually better use PNG, JPG or PDF images with pdflatex (or xelatex, or lualatex) than EPS files with latex ...


1

May be is not what you wanted (since you have accepted a answer with two subcaptions) but is what your asked ("the second must not be given a caption"): \documentclass{article} \usepackage{graphicx,lipsum} \begin{document} \lipsum[2] \begin{figure}[h] % Do not use only [h] in real documents. \begin{minipage}[t]{.45\linewidth} ...


1

If you have the possibility to obtain a vector graphics, it is the best solution, because it is scalable. An exemplary format is PostScript (*.ps and *.eps iles), but all depends on tools that you are using and a version of TeX (tex/pdftex engine) you want to use.



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