在乳胶中撰写简历

问题描述 投票:0回答:1

我正在尝试用Latex编写简历,但现在我陷入了困境。因为我想学习Latex,所以我真的不想只使用模板。

我正在考虑将页面分为几列/小页面:

  • 左栏:图片+联系信息等
  • 右栏:教育,经验,志愿者工作等

尝试过微型页面和列,但图像破坏了整个格式...试图使用模板中的部分,效果很好,即安全等。请参见下面的示例。

不是一个特定的问题,但是希望有人对如何从这个想法中有所作为有一个好主意:)

示例:

%Preamble
\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{geometry}
\geometry{a4paper, total={170mm,257mm}, left=10mm, top=10mm}
\pagestyle{empty}

%%% Custom sectioning (sectsty package)
\usepackage{sectsty}
\sectionfont{\usefont{OT1}{phv}{m}{n}\sectionrule{0pt}{0pt}{-10pt}{1pt}}
\subsectionfont{\usefont{OT1}{phv}{m}{n}}

%Document
\begin{document}
\begin{minipage}[250mm]{0.4\linewidth}
\includegraphics{image.png}
Date of birth:
Phone:
Email:
\end{minipage}

\begin{minipage}[250mm]{0.65\linewidth}
\part*{Name}
\section*{EDUCATION}
\section*{EXPERIENCE}
\end{minipage}
\end{document}
latex
1个回答
0
投票

很高兴看到您不只是复制现有模板之一,而是想学习一些乳胶。

关于您的代码的一些评论:

  • 如果您希望彼此之间的小页面互相模仿,则它们的总和必须等于或小于线宽。在您的示例中,0.4 + 0.65 = 1.05,因此它们不能排成一行。实际上,我可以将它们缩小一些,并在它们之间添加\hfill以便在它们之间留出一些空间

  • 为确保每个小页面的宽度都仅与您指定的宽度相同,我将[width=\linewidth]选项添加到图像中。这将自动正确缩放图像

  • 如果要同时将两个小页面都放在一行中,请不要在它们之间留空行。在乳胶和源代码中的空行被解释为一个段落中断,从而迫使您的第二个迷你页换行

  • 为了获得更好的图像垂直对齐方式,我将从小型页面中删除可选的height参数,并让tex确定小型页面的高度,并分别添加选项[T][b]以确定垂直对齐方式


%Preamble
\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{geometry}
\geometry{a4paper, total={170mm,257mm}, left=10mm, top=10mm}
\pagestyle{empty}

%%% Custom sectioning (sectsty package)
\usepackage{sectsty}
\sectionfont{\usefont{OT1}{phv}{m}{n}\sectionrule{0pt}{0pt}{-10pt}{1pt}}
\subsectionfont{\usefont{OT1}{phv}{m}{n}}

%Document
\begin{document}
\noindent
\begin{minipage}[T]{0.4\linewidth}
\includegraphics[width=\linewidth]{example-image-duck}

Date of birth:

Phone:

Email:
\end{minipage}%
\hfill
\begin{minipage}[b]{0.55\linewidth}
\part*{Name}
\section*{EDUCATION}
\section*{EXPERIENCE}
\end{minipage}
\end{document}

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.