在复杂标题的两侧添加图像

在复杂标题的两侧添加图像

我已经花了好几个小时才弄清楚。我想在简历顶部的姓名和信息两侧添加 2 张图片。现在我的简历标题如下所示: 不带图形的简历标题

\documentclass[]{deedy-resume-openfont}
\usepackage{multicol}
\usepackage{graphicx}

\begin{document}

\namesection {Graeme}{Woods}{
\begin{multicols}{2}
\setlength{\columnseprule}{0.4pt}
\begin{normalsize}
\begin{flushright}
city, state \\
(xxx) xxx - xxxx \\
[email protected] \\
\columnbreak
\end{flushright}
\begin{flushleft}
website.com \\
github.com/username \\
linkedin.com/in/username
\end{flushleft}
\end{normalsize}
\end{multicols}
}
\end{document}

我想在我的姓名和信息两边添加 2 个图形。我得到的最接近我想要的是:[带图形的简历标题

\documentclass[]{deedy-resume-openfont}
\usepackage{multicol}
\usepackage{makecell}
\usepackage{calc}


\begin{document}


\noindent\begin{minipage}[t][4.0cm][t]{\textwidth}
\centering
\namesection{First}{Last}{
\begin{tabular}{p{0.2\textwidth-2\tabcolsep}p{0.3\textwidth-2\tabcolsep}|p{0.3\textwidth-2\tabcolsep}p{0.2\textwidth-2\tabcolsep}}
\includegraphics[width=3.25cm]{pics/left.png}

& \makecell[br]{
city, state \\
(xxx) xxx - xxxx \\
[email protected]
}
& \makecell[bl]{
website123.com \\
github.com/username \\
linkedin.com/in/username123
  }
& \makecell[br]{\includegraphics[width=3.25cm]{pics/right.png}}
\end{tabular}
}
\end{minipage}
\end{document}

但它占用了太多的垂直空间。因为这是一份简历,所以我需要它更紧凑。我想将联系信息移到列分隔符的顶部,然后缩短分隔符。完整的项目是这里如果你想看看我正在使用的课程。任何建议都将不胜感激!

答案1

一些视觉格式:

\documentclass[]{deedy-resume-openfont}
\usepackage{makecell,calc}

\begin{document}


\noindent
\begin{minipage}[t][4.0cm][t]{\textwidth}
\vspace{0pt}
\raisebox{-0.5\height+0.35cm}{\makebox[0pt][l]{\includegraphics[width=3.25cm]{pics/left.png}}}%
\begin{minipage}{\textwidth}
\centering
\namesection{First}{Last}{%
  \begin{tabular}{
    @{}
    p{0.5\textwidth-2\tabcolsep-0.5\arrayrulewidth}
    |
    p{0.5\textwidth-2\tabcolsep-0.5\arrayrulewidth}
    @{}
  }
  \makecell[br]{
    city, state \\
    (xxx) xxx - xxxx \\
    [email protected]
  }
  &
  \makecell[bl]{
    website123.com \\
    github.com/username \\
    linkedin.com/in/username123
  }
  \end{tabular}%
}
\end{minipage}%
\raisebox{-0.5\height+0.35cm}{\makebox[0pt][r]{\includegraphics[width=3.25cm]{pics/right.png}}}
\end{minipage}

\end{document}

在此处输入图片描述

答案2

也许您可以尝试使用表格来排列图像和信息(未经测试):

\documentclass[]{deedy-resume-openfont}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{makecell}
\usepackage{calc}


\begin{document}
\namesection{First}{Last}{
\begin{tabular}{p{0.2\textwidth-2\tabcolsep}p{0.25\textwidth-2\tabcolsep}|p{0.25\textwidth-2\tabcolsep}p{0.2\textwidth-2\tabcolsep}}
\includegraphics[width=2cm]{example-image} & \makecell[br]{city, state \\ (xxx) xxx - xxxx \\ [email protected] \\} & \makecell[bl]{website.com \\ github.com/username \\ linkedin.com/in/username} & \makecell[br]{\includegraphics[width=2cm]{example-image}}
\end{tabular}
}
\end{document}

相关内容