我想将第二个小页面移到图片之外(见下图)。
这是包含“minipage”的代码部分
\documentclass[a4paper,12pt]{article}[12pt]
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{anysize}
\usepackage{graphicx}
\usepackage{float}
\usepackage{etoolbox}
\usepackage{amsbsy}
\usepackage{amsmath}
\usepackage{pbox}
\usepackage{fancyhdr}
\usepackage{cancel}
\usepackage{tikz}
\usepackage{subfig}
\usepackage{xcolor}
%\usepackage{package}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{textcomp}
\linespread{1.5}
\frenchspacing
\newcommand{\abs}[1]{\lvert#1\rvert}
\usepackage{floatflt,epsfig}
\usepackage{multicol}
\usepackage[a4paper,top=1.0cm,bottom=1.0cm,left=1.0cm,right=1.0cm]{geometry}
\renewcommand{\rmdefault}{phv}
\usepackage{lxfonts}
\newcommand{\makenonemptybox}[2]{%
\par\nobreak\vspace{\ht\strutbox}\noindent
\fbox{%
\parbox[c][\dimexpr#1-2\fboxsep][t]{\dimexpr\linewidth-2\fboxsep}{
\hrule width \hsize height 0pt
#2
}%
}%
\par\vspace{\ht\strutbox}
}
\begin{document}
\begin{enumerate}
\item TEXT TEXT TEXT
\noindent\begin{minipage}{.5\linewidth}
\centering
\includegraphics[width=1.2\linewidth]{img.pdf}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{itemize}
\item $ z$
\item $z^2$
\item $ z^3$
\item $ z$
\item $z^2$
\item $ z^3$
\end{itemize}
\end{minipage}
\end{enumerate}
\end{document}
答案1
\documentclass[a4paper,12pt]{article}[12pt]
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[demo]{graphicx}
\begin{document}
\begin{enumerate}
\item TEXT TEXT TEXT
\begin{minipage}{.5\linewidth}
\includegraphics[width=\linewidth]{img.pdf}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{itemize}
\item $z$
\item $z^2$
\item $z^3$
\item $z$
\item $z^2$
\item $z^3$
\end{itemize}
\end{minipage}
\end{enumerate}
\end{document}
要使用迷你页面开始新行,您应该在项目后插入空行。此外,图像的宽度不应超过minipage
其所包含的宽度。如果您喜欢更大的图像,请考虑萨姆卡特评论。例如
\begin{minipage}{.6\linewidth} % <---
\includegraphics[width=\linewidth]{img.pdf}
\end{minipage}%
\begin{minipage}{.4\linewidth} % <---
\begin{itemize}
\item $z$
\item $z^2$
\item $z^3$
\item $z$
\item $z^2$
\item $z^3$
\end{itemize}
\end{minipage}