与包含的图像平行的迷你页面

与包含的图像平行的迷你页面

你好!

\itemize我在两个不同的环境中创建了两列信息\minipage。现在我想在这两列“列”中同时包含一个图像。我尝试在小页面内和小页面外包含(包装的)图形,但到目前为止,它们无法并排工作,图像将显示在小页面下方。也许这与环境有关adjust width。您有什么建议可以创建三个并排的“列”,其中两个包含信息,第三个包含图形?

\documentclass{article}
\reversemarginpar

\usepackage{changepage}
\usepackage[]{geometry}
\usepackage{color}
\usepackage[nochapters]{classicthesis} % Use the classicthesis style for the style of the document
\usepackage[LabelsAligned]{currvita} % Use the currvita style for the layout of the document
\usepackage{color}
\usepackage{changepage}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{graphicx,wrapfig}
\hypersetup{colorlinks, breaklinks, urlcolor=Maroon, linkcolor=Maroon} 
\begin{document}

\begin{adjustwidth}{7.75em}{0em}
{\color{Maroon}\noindent\footnotesize\spacedallcaps{Personal Information}}\vspace{1.5pc} 
\end{adjustwidth}

\begin{adjustwidth}{-7.25em}{9em}

\begin{minipage}{0.25\textwidth}
\begin{itemize}
\setlength\itemsep{0.15em}
  \item[] \it{Nationality}
  \item[] \it{Date of Birth}
  \item[] \it{Adress}
  \item[] \it{Mail / website}
  \item[] \it{Phone}
\end{itemize}
\end{minipage}%
\hfill
\begin{minipage}{0.575\textwidth}
\begin{itemize}
\setlength\itemsep{0.15em}
  \item[] French
  \item[] 1 august 1981, Paris (FR)
  \item[] Teststreet 1, 75013 Paris
  \item[] \href{mailto:[email protected]}{[email protected]} / \href{http://www.test.com}{www.test.com}
  \item[] 0000 00 000 000
\end{itemize}
\end{minipage}
\end{adjustwidth}

\end{document}

答案1

这有效!

\documentclass{article}
\reversemarginpar

\usepackage{changepage}
\usepackage[]{geometry}
\usepackage{color}
\usepackage[nochapters]{classicthesis} % Use the classicthesis style for the style of the document
\usepackage[LabelsAligned]{currvita} % Use the currvita style for the layout of the document
\usepackage{color}
\usepackage{changepage}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{graphicx,wrapfig}
\hypersetup{colorlinks, breaklinks, urlcolor=Maroon, linkcolor=Maroon} 
\begin{document}

    \begin{adjustwidth}{7.75em}{0em}
{\color{Maroon}\noindent\footnotesize\spacedallcaps{Personal Information}}\vspace{1pc} 
\end{adjustwidth}

\begin{adjustwidth}{-7.75em}{-7.75em}

\begin{minipage}{0.25\textwidth}
\begin{itemize}
\setlength\itemsep{0.15em}
  \item[] \it{Nationality}
  \item[] \it{Date of Birth}
  \item[] \it{Adress}
  \item[] \it{Mail / website}
  \item[] \it{Phone}
\end{itemize}
\end{minipage}%
\hfill
\begin{minipage}{0.65\textwidth}
\begin{itemize}
\setlength\itemsep{0.15em}
  \item[] \hspace{3.5em} French
  \item[] \hspace{3.5em} 1 august 1981, Paris (FR)
  \item[] \hspace{3.5em} Teststreet 1, 75013 Paris
  \item[] \hspace{3.5em} \href{mailto:[email protected]}{[email protected]} / \href{http://www.test.com}{www.test.com}
  \item[] \hspace{3.5em} +000 0000 0000
\end{itemize}
\end{minipage}
\hfill
\begin{minipage}{0.5\textwidth}
\vspace{-6em}
\hspace{5em}
\includegraphics[width=0.8\textwidth, height=0.2\textheight]{../Pictures/test.png}
\end{minipage}
\end{adjustwidth}
\end{document}

答案2

您应该使用tabular

\documentclass{article}

\usepackage[nochapters]{classicthesis} % Use the classicthesis style for the style of the document
\usepackage[LabelsAligned]{currvita} % Use the currvita style for the layout of the document
\usepackage{color,graphicx}

\begin{document}

\noindent\makebox[\textwidth]{%
  \hspace{-3cm}%
  \begin{tabular}{@{}l@{\hspace{3.5em}}l@{}}
  \multicolumn{2}{c}{\color{Maroon}\footnotesize\spacedallcaps{Personal Information}} \\[1pc]
  \textit{Nationality} & French \\[1ex]
  \textit{Date of Birth} & 1 august 1981, Paris (FR) \\[1ex]
  \textit{Address} & Teststreet 1, 75013 Paris \\[1ex]
  \textit{Mail} / \textit{website} &
    \href{mailto:[email protected]}{[email protected]} / \href{http://www.test.com}{www.test.com} \\[1ex]
  \textit{Phone} & +000 0000 0000
  \end{tabular}%
  \hfill
  \begin{tabular}{@{}c@{}}% for vertical centering
  \includegraphics[width=0.8\textwidth, height=0.2\textheight]{example-image}
  \end{tabular}%
  \hspace{-3cm}%
}

\end{document}

在此处输入图片描述

相关内容