你好!
我創建了兩列,其中包含\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}