I have some problems of figures side by side.
- How to place figures like the "image1"? If someone could tell me how to manage them like "image2" (one figure occupies the body and has the same width as that of the body, while another occupies the margin and has the same width to that of the margin.), it could be perfect.
- How to place the figure caption directly under the figure? You can say the caption 2 of image 1 or 3 is at the wrong place.
Code: Select all
Code, edit and compile here:
\documentclass[10pt,a4paper]{book}% page layout\usepackage[%left=2cm,right=7cm,top=2cm,bottom=2cm,textheight=25cm,textwidth=11cm,marginparsep=1cm,marginparwidth=5cm]{geometry}% Language settings\usepackage[german,french]{babel}% font and other typographic settings:\usepackage{fontspec}\setmainfont[Ligatures=TeX]{Calibri-Light}\usepackage{ragged2e}\usepackage{ctex}\usepackage{array,color}% figures and the like:\usepackage{graphicx}\graphicspath{{fig/}}\usepackage{caption}\captionsetup[figure]{name={Figure.}}\captionsetup{font={scriptsize,singlespacing},justification=RaggedRight,skip=2pt}\usepackage{ifoddpage}%or: \usepackage[strict]{changepage}\usepackage{blindtext}\begin{document}\begin{figure}[t]%\setcapwidth{0.6\textwidth}\checkoddpage\edef\side{\ifoddpage l\else r\fi}%\makebox[\textwidth][\side]{%\begin{minipage}[t]{0.59\textwidth}