是否可以在文本右侧显示一个图形,同时让文本环绕它?
我试过使用 wrapfig 软件包,但似乎不起作用。有什么建议吗?
草图:https://i.stack.imgur.com/hGoN4.jpg
\documentclass{tikzposter}
\title{The Title}
\author{The Author}
\usepackage{lipsum}
\begin{document}
\maketitle
\block{A Title}{
\lipsum
\begin{center}
\begin{minipage}{0.45\linewidth}
\centering
\begin{tikzfigure}[Caption of figure1]
\includegraphics[height = 10cm]{example-image-a}
\end{tikzfigure}%
\end{minipage}\hfill
\begin{minipage}{0.45\linewidth}
\centering
\begin{tikzfigure}[Caption of figure2]
\includegraphics[height = 10cm]{example-image-b}
\end{tikzfigure}%
\end{minipage}
\end{center}
}
\end{document}
答案1
粗略尝试——没有用过tikzposter
——下面概述了两种方法——图像的对齐方式将随着文本行数的变化而变化
\documentclass{tikzposter}
\title{The Title}
\author{The Author}
\usepackage{lipsum, wrapfig}
\begin{document}
\maketitle
\block{A Title}{
\lipsum[1]
\begin{wrapfigure}[9]{r}{0.3\linewidth}
\begin{tikzfigure}[Caption]
\includegraphics{example-image}
\end{tikzfigure}
\end{wrapfigure}
\lipsum
\tikz[remember picture,overlay]\node[scale=1,anchor=east,xshift=.3\linewidth,yshift=1cm,inner sep=0pt, label=below:Fig1: label] {\includegraphics{example-image}};
\lipsum
}
\end{document}