如何解决乳胶文档节距
我正在制作简历,偶然发现了一个不错的模板,我开始用自己的详细信息更新文档,但是我遇到了一个问题,我的职位描述比初始模板文本长,因此我需要减少各个部分之间的空间,并减少标题和文档其余部分之间的空间,因此所有内容都可以很好地放在一页中。
我已将模板上传到背面: https://www.overleaf.com/read/hktjxsfzpcfp
更具体地说:
任何帮助将不胜感激,谢谢!
main.tex:
\documentclass[9pt]{developercv} % Default font size,values from 8-12pt are recommended
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% TITLE AND CONTACT informatION
%----------------------------------------------------------------------------------------
\begin{minipage}[t]{0.45\textwidth} % 45% of the page width for name
\vspace{-\baselineskip} % required for vertically aligning minipages
% If your name is very short,use just one of the lines below
% If your name is very long,reduce the font size or make the minipage wider and reduce the others proportionately
\colorBox{black}{{\HUGE\textcolor{white}{\textbf{\MakeUppercase{Alyx}}}}} % First name
\colorBox{black}{{\HUGE\textcolor{white}{\textbf{\MakeUppercase{Vance}}}}} % Last name
\vspace{6pt}
{\huge Web App Architect} % Career or current job title
\end{minipage}
\begin{minipage}[t]{0.275\textwidth} % 27.5% of the page width for the first row of icons
\vspace{-\baselineskip} % required for vertically aligning minipages
% The first parameter is the FontAwesome icon name,the second is the Box size and the third is the text
% Other icons can be found by referring to fontawesome.pdf (supplied with the template) and using the word after \fa in the command for the icon you want
\icon{MapMarker}{12}{Black Mesa East}\\
\icon{Phone}{12}{+1 123 456 789}\\
\icon{At}{12}{\href{mailto:alyx@vance.me}{alyx@vance.me}}\\
\end{minipage}
\begin{minipage}[t]{0.275\textwidth} % 27.5% of the page width for the second row of icons
\vspace{-\baselineskip} % required for vertically aligning minipages
% The first parameter is the FontAwesome icon name,the second is the Box size and the third is the text
% Other icons can be found by referring to fontawesome.pdf (supplied with the template) and using the word after \fa in the command for the icon you want
\icon{Globe}{12}{\href{https://alyx.vance.me}{alyx.vance.me}}\\
\icon{Github}{12}{\href{https://github.com/alyxvance}{github.com/alyxvance}}\\
\icon{Twitter}{12}{\href{https://twitter.com/@alyxvance}{@alyxvance}}\\
\end{minipage}
\vspace{0.5cm}
%----------------------------------------------------------------------------------------
% INTRODUCTION,SKILLS AND TECHNOLOGIES
%----------------------------------------------------------------------------------------
\cvsect{Who Am I?}
\begin{minipage}[t]{0.4\textwidth} % 40% of the page width for the introduction text
\vspace{-\baselineskip} % required for vertically aligning minipages
\lorem \lorem \lorem \lorem \lorem\\ % Dummy text
\end{minipage}
\hfill % Whitespace between
\begin{minipage}[t]{0.5\textwidth} % 50% of the page for the skills bar chart
\vspace{-\baselineskip} % required for vertically aligning minipages
\begin{barchart}{5.5}
\baritem{JavaScript}{60}
\baritem{PHP}{100}
\baritem{SASS/LESS}{70}
\baritem{Bootstrap}{70}
\baritem{Git}{40}
\baritem{LaTeX}{60}
\end{barchart}
\end{minipage}
\begin{center}
\bubbles{5/Eclipse,6/git,4/Office,3/Inkscape,3/Blender}
\end{center}
%----------------------------------------------------------------------------------------
% EXPERIENCE
%----------------------------------------------------------------------------------------
\cvsect{Experience}
\begin{entrylist}
\entry
{2017 -- 3/2018}
{Front-end developer}
{Big Corporation Name Inc.}
{\lorem \lorem \lorem\\ \texttt{node.js}\slashsep\texttt{Vue.js}\slashsep\texttt{Electron}}
\entry
{2015 -- 2018\\\footnotesize{part time}}
{Full stack developer}
{Famous Eshop Inc.}
{\lorem\lorem\\ \texttt{PHP}\slashsep\texttt{JS}\slashsep\texttt{MariaDB}\slashsep\texttt{Linux}}
\entry
{2013 -- 2014\\\footnotesize{part time}}
{Junior PHP Developer}
{example.com}
{\lorem\lorem\\ \texttt{PHP}\slashsep\texttt{Laravel}}
\end{entrylist}
%----------------------------------------------------------------------------------------
% EDUCATION
%----------------------------------------------------------------------------------------
\cvsect{Education}
\begin{entrylist}
\entry
{2013 -- 2017}
{Master's Degree}
{Another University Name}
{\lorem\lorem\lorem}
\entry
{2014}
{Postgraduate Diploma}
{A University Name}
{\lorem\lorem}
\entry
{2007 -- 2013}
{Bachelor's Degree}
{A University Name}
{\lorem\lorem}
\end{entrylist}
%----------------------------------------------------------------------------------------
% ADDITIONAL informatION
%----------------------------------------------------------------------------------------
\begin{minipage}[t]{0.3\textwidth}
\vspace{-\baselineskip} % required for vertically aligning minipages
\cvsect{Languages}
\textbf{English} - native\\
\textbf{German} - proficient\\
\textbf{Polish} - rudimentary
\end{minipage}
\hfill
\begin{minipage}[t]{0.3\textwidth}
\vspace{-\baselineskip} % required for vertically aligning minipages
\cvsect{Hobbies}
I love... \lorem
\end{minipage}
\hfill
\begin{minipage}[t]{0.3\textwidth}
\vspace{-\baselineskip} % required for vertically aligning minipages
\cvsect{Non profit}
I help... \lorem
\end{minipage}
%----------------------------------------------------------------------------------------
\end{document}
developer.cls:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Developer CV
% LaTeX Class
% Version 1.0 (28/1/19)
%
% This class originates from:
% http://www.LaTeXTemplates.com
%
% Authors:
% Jan Vorisek (jan@vorisek.me)
% Based on a template by Jan Küster (info@jankuester.com)
% Modified for LaTeX Templates by Vel (vel@LaTeXTemplates.com)
%
% License:
% The MIT License (see included LICENSE file)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% CLASS CONfigURATION
%----------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{developercv}[2019/01/28 Developer CV class v1.0]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{extarticle}} % Pass through any options to the base class
\ProcessOptions\relax % Process given options
\LoadClass{extarticle} % Load the base class
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONfigURATIONS
%----------------------------------------------------------------------------------------
\setlength{\parindent}{0mm} % Suppress paragraph indentation
\usepackage[hidelinks]{hyperref} % required for links but hide the default Boxes around links
\newcommand{\lorem}{Lorem ipsum dolor sit amet,consectetur adipiscing elit. Donec a diam lectus.} % Dummy text
\pagestyle{empty} % No headers or footers
\usepackage{moresize} % Provides more font size commands (\HUGE and \ssmall)
%----------------------------------------------------------------------------------------
% PAGE LAYOUT
%----------------------------------------------------------------------------------------
\usepackage{geometry} % required for adjusting page dimensions and margins
\geometry{
paper=a4paper,% Paper size,change to letterpaper for US letter size
top=1.50cm,% Top margin (WAS 1.75cm)
bottom=1.50cm,% Bottom margin (WAS 1.75cm)
left=2cm,% Left margin
right=2cm,% Right margin
headheight=0.75cm,% Header height
footskip=1cm,% Space from the bottom margin to the baseline of the footer
headsep=0.5cm,% Space from the top margin to the baseline of the header
%showframe,% Uncomment to show how the type block is set on the page
}
%----------------------------------------------------------------------------------------
% FONTS
%----------------------------------------------------------------------------------------
\usepackage[utf8]{inputenc} % required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage[default]{raleway}
%\usepackage[defaultsans]{droidsans}
%\usepackage{cmbright}
%\usepackage{fetamont}
%\usepackage[default]{gillius}
%\usepackage{roboto}
\renewcommand*\familydefault{\sfdefault} % Force the sans-serif version of any font used
%------------------------------------------------
\usepackage{fontawesome} % required for FontAwesome icons
% Command to output an icon in a black square Box with text to the right
\newcommand{\icon}[3]{% The first parameter is the FontAwesome icon name,the second is the Box size and the third is the text
\vcenteredhBox{\colorBox{black}{\makeBox(#2,#2){\textcolor{white}{\large\csname fa#1\endcsname}}}}% Icon and Box
\hspace{0.2cm}% Whitespace
\vcenteredhBox{\textcolor{black}{#3}}% Text
}
%----------------------------------------------------------------------------------------
% GRAPHICS DEFinitioNS
%----------------------------------------------------------------------------------------
\usepackage{tikz} % required for creating the plots
\usetikzlibrary{shapes,backgrounds}
\tikzset{x=1cm,y=1cm} % Default tikz units
% Command to vertically centre adjacent content
\newcommand{\vcenteredhBox}[1]{% The only parameter is for the content to centre
\begingroup%
\setBox0=\hBox{#1}\parBox{\wd0}{\Box0}%
\endgroup%
}
%----------------------------------------------------------------------------------------
% CHARTS
%----------------------------------------------------------------------------------------
\newcounter{barcount}
% Environment to hold a new bar chart
\newenvironment{barchart}[1]{ % The only parameter is the maximum bar width,in cm
\newcommand{\barwidth}{0.35}
\newcommand{\barsep}{0.2}
% Command to add a bar to the bar chart
\newcommand{\baritem}[2]{ % The first argument is the bar label and the second is the percentage the current bar should take up of the total width
\pgfmathparse{##2}
\let\perc\pgfmathresult
\pgfmathparse{#1}
\let\barsize\pgfmathresult
\pgfmathparse{\barsize*##2/100}
\let\barone\pgfmathresult
\pgfmathparse{(\barwidth*\thebarcount)+(\barseP*\thebarcount)}
\let\barx\pgfmathresult
\filldraw[fill=black,draw=none] (0,-\barx) rectangle (\barone,-\barx-\barwidth);
\node [label=180:\colorBox{black}{\textcolor{white}{##1}}] at (0,-\barx-0.175) {};
\addtocounter{barcount}{1}
}
\begin{tikzpicture}
\setcounter{barcount}{0}
}{
\end{tikzpicture}
}
%------------------------------------------------
\newcounter{a}
\newcounter{b}
\newcounter{c}
% Command to output a number of automatically-sized bubbles from a string in the format of '<size>/<label>',e.g. \bubbles{5/Eclipse,3/Blender}
\newcommand{\bubbles}[1]{
% Reset counters
\setcounter{a}{0}
\setcounter{c}{150}
\begin{tikzpicture}[scale=3]
\foreach \p/\t in {#1} {
\addtocounter{a}{1}
\bubble{\thea/2}{\theb}{\p/25}{\t}{1\p0}
}
\end{tikzpicture}
}
% Command to output a bubble at a specific position with a specific size
\newcommand{\bubble}[5]{
\filldraw[fill=black,draw=none] (#1,0.5) circle (#3); % Bubble
\node[label=\textcolor{black}{#4}] at (#1,0.7) {}; % Label
}
%----------------------------------------------------------------------------------------
% CUSTOM SECTIONS
%----------------------------------------------------------------------------------------
% Command to output section title headings
\newcommand{\cvsect}[1]{% The only parameter is the section text
\vspace{\baselineskip} % Whitespace before the section title
\colorBox{black}{\textcolor{white}{\MakeUppercase{\textbf{#1}}}}\\% Section title
}
%----------------------------------------------------------------------------------------
% ENTRY LIST
%----------------------------------------------------------------------------------------
\usepackage{longtable} % required for tables that span multiple pages
\setlength{\LTpre}{0pt} % Remove default whitespace before longtable
\setlength{\LTpost}{0pt} % Remove default whitespace after longtable
\setlength{\tabcolsep}{0pt} % No spacing between table columns
% Environment to hold a new list of entries
\newenvironment{entrylist}{
\begin{longtable}[H]{l l}
}{
\end{longtable}
}
\newcommand{\entry}[4]{% First argument for the leftmost date(s) text,second is for the bold entry heading,third is for the bold right-aligned entry qualifier and the fourth is for the entry description
\parBox[t]{0.175\textwidth}{% 17.5% of the text width of the page
#1 % Leftmost entry date(s) text
}%
&\parBox[t]{0.825\textwidth}{% 82.5% of the text width of the page
\textbf{#2}% Entry heading text
\hfill% Horizontal whitespace
{\footnotesize \textbf{\textcolor{black}{#3}}}\\% right-aligned entry qualifier text
#4 % Entry description text
}\\\\}
% Command to output a separator slash between lists,e.g. ' / '
\newcommand{\slashsep}{\hspace{3mm}/\hspace{3mm}}
解决方法
由于您拥有developercv.cls
的来源,因此可以对其进行更改。就像下面评论的@ samcarter_is_at_topanswers.xyz一样,首先将developercv.cls
重命名为developercvron.cls
,以便您可以轻松地返回到旧版本,这样就不会有人问有关原始developercv.cls
的问题从针对您的修改的答案中误导了。
我想减少标题(开发人员名称)和文档其余部分之间的空间。
您是指“ Web App Architect”和“我是谁”之间的空格吗?
在main.tex
的第43行中,您具有:
\vspace{0.5cm}
将其更改为较小的数字,或完全删除该行。
减少气泡部分和MyExperience部分之间的空间。
缩小MyExperience和MyEducation之间的空间。
在developercv.cls
的第173行上,您有
\vspace{\baselineskip} % Whitespace before the section title
注释该行或更改\vspace
参数。
请注意,此空格插入每个\cvsect
的前面,因此它不仅会更改这些标题,还会更改文档中的所有标题。如果您想在其他地方留出更多空间,则可能需要在\vspace{...}
中的其他\cvsect
调用之前手动添加main.tex
。但是,我可能会避免这种情况,以使文档看起来一致。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。