我正在尝试使用 Latex 创建简历,但在定位图片和文本时遇到了困难。我想要获得的内容在右侧,但实际发生的却在左侧。我只想将文本和图片独立地放在我想要的位置。
这是我的代码:
\documentclass[11pt,oneside,a4paper,titlepage]{article}
%tcolorbox for the formatting
\usepackage[most]{tcolorbox}
%geometry package for margins, locations etc.
\usepackage{geometry}
\geometry{
a4paper,
left=0cm,
right=0cm,
top=0cm,
% bottom=0.1cm
}
%color of title
\definecolor{titleBack}{RGB}{224,220,220}
%title
\title{John Doe}
\date{}
\begin{document}
\tcbset{colframe=titleBack,colback=titleBack,arc=0mm}
\begin{tcolorbox}
\begin{minipage}{4.5cm}
\hspace*{-0.3cm}\includegraphics[width=3cm]{mypicture.eps}
\end{minipage}
\begin{minipage}{15cm}
\begin{center}
\Huge{\textcolor{black}{John Doe}} \\
\vspace*{0.5cm}
\Large{\textcolor{black}{\emph{Computer Engineering Student}}}
\end{center}
\end{minipage}
\end{tcolorbox}
\end{document}