我在这里找到了一个很好的简历模板:http://www.rpi.edu/dept/arc/training/latex/resumes/
我用的是第一个。
有什么简单的方法可以在每个段落的左侧添加学校/公司的徽标?
谢谢
答案1
或许这就是你所追求的:
% LaTeX file for resume
% This file uses the resume document class (res.cls)
\let\nofiles\relax% https://tex.stackexchange.com/q/27139/5764
\documentclass{res}
%\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)
%\usepackage{newcent} % uses new century schoolbook postscript font
\setlength{\textheight}{9.5in} % increase text height to fit on 1-page
\newlength{\imagewidth}\setlength{\imagewidth}{4em}
\usepackage{graphicx}
% https://tex.stackexchange.com/a/69076/5764
\usepackage{zref-savepos}
\makeatletter
% \zsaveposx is defined since 2011/12/05 v2.23 of zref-savepos
\@ifundefined{zsaveposx}{\let\zsaveposx\zsavepos}{}
\makeatother
\newcounter{hposcnt}
\renewcommand*{\thehposcnt}{hpos\number\value{hposcnt}}
\makeatletter
\newcommand{\schoolimage}[2][]{%
\stepcounter{hposcnt}%
\zsaveposx{\thehposcnt u}%
\zref@refused{\thehposcnt u}%
\llap{% Left margin (overlap)
\raisebox{\dimexpr-\height+\baselineskip}[0pt][0pt]{% Remove vertical height + reposition
\includegraphics[width=\imagewidth,#1]{#2}% Insert logo
}%
\hspace*{-\dimexpr\zposx{\thehposcnt u}sp-\zposx{hpos0s}sp-\sectionwidth}%
}%
}
\makeatother
\AtBeginDocument{\noindent\leavevmode\zsaveposx{hpos0s}}%
\begin{document}
\name{HAROLD C. GOODBETTER\\[12pt]} % the \\[12pt] adds a blank
% line after name
\address{\bfseries PRESENT ADDRESS\\193 5th Avenue\\Troy, NY 12180\\(518) 274-1234}
\address{\bfseries PERMANENT ADDRESS \\ 110 Brant Avenue \\ Upper Saddle
River, NJ 07458 \\ (201) 555-9509}
\begin{resume}
\section{JOB OBJECTIVE}
A summer position that will use my accounting and computer
skills.
\section{EDUCATION}
Rensselaer Polytechnic Institute, Troy, NY \\
Bachelor of Science, Management, May 1990 \\
Concentration in Management Systems \\
Minors in Computer Science and Economics \\
G.P.A. 3.3/4.0
\section{EXPERIENCE}
\vspace{-0.1in}
\begin{tabbing}
\hspace{2.3in}\= \hspace{2.6in}\= \kill % set up two tab positions
\schoolimage{example-image-a}{\bfseries Telefund Associate} \>Rensselaer Fund \>Fall 1987-Present\\
\>Troy, NY
\end{tabbing}\vspace{-20pt} % suppress blank line after tabbing
Generated alumni and parent support to reduce tuition,
increase scholarship and financial aid funds; averaging 80
percent pledge rate. Top three percent associate.
\begin{tabbing}
\hspace{2.3in}\= \hspace{2.6in}\= \kill % set up two tab positions
\schoolimage{example-image-b}{\bfseries Team Programmer} \>Group W Cable, Westinghouse Corp \> ~~~~~~ Summer 1987\\
\>Mahway, NJ
\end{tabbing}\vspace{-20pt}
Liaison between accounting department and controller,
provided assistance with invoice liabilities after
divestiture of Group W Cable by Westinghouse.
\begin{tabbing}%
\hspace{2.3in}\= \hspace{2.6in}\= \kill % set up two tab positions
\schoolimage{example-image-c}{\bfseries Sales Assistant} \>AP Technical Sales Inc. \> Summers 1985-86\\
\>Palisades Park, NJ
\end{tabbing}\vspace{-20pt}
Duties included telemarketing, data entry, and invoicing.
Successfully converted catalog inquiries to sales
opportunities by telemarketing program.
\section{COMPUTER SKILLS}
Extensive knowledge of hardware and software for IBM PC and
MTS. \\
Proficient programming skills in COBOL, WATFIV (FORTRAN), and
BASIC.
\section{HONORS AND AWARDS}
Epsilon Delta Sigma: Honorary Management Society at
Rensselaer \\
Dean's List of Distinguished Students: Fall 1986-Spring 1988 \\
National Honor Society: Northern Highlands High School \\
Creative Essay Award: Northern Highlands High School \\
Meritorious Action Life Saving Award: Boy Scouts of America
\section{EXTRACURRICULAR ACTIVITIES}
Epsilon Delta Sigma Public Relations Committee \\
Rensselaer Ski Club \\
Bergen County Task Force Student Liaison 1986 \\
LEADD (Legislators and Educators Against Drunk Driving) Chairman
1985-86 \\
Youth Group - Temple Beth Or Activities Chairman 1985-86
\end{resume}
\end{document}
无论您执行什么操作,图像都会放置在左边距\schoolimage[<opt>]{<image>}
。
请注意,因为我正在使用zref
并且需要.aux
-file \label
- \ref
s 处于活动状态,我\let\nofiles\relax
。