vspace 및 vfill 이외의 줄 간격 옵션

vspace 및 vfill 이외의 줄 간격 옵션

줄 간격에 문제가 있는 문서가 있습니다.

\vfill및 이외의 줄 간격에 대한 다른 옵션은 무엇입니까 \vspace?

문제를 보여주는 코드는 다음과 같습니다.

\documentclass[a4paper,10pt]{article}
%-----------------------------------------------------------
\usepackage[top=0.75in, bottom=0.75in, left=0.55in, right=0.85in]{geometry}
\usepackage{graphicx}
\usepackage{url}
\usepackage{palatino}
\usepackage{makecell}
\usepackage{tabularx}
\usepackage{verbatim}
\usepackage{pbox}
\renewcommand{\labelitemii}{$\star$}
\fontfamily{SansSerif}
\selectfont
\raggedbottom
\usepackage[T1]{fontenc}
\usepackage
%[ansinew]
[utf8]
{inputenc}

\usepackage{color}
\definecolor{mygrey}{gray}{0.75}
\textheight=9.75in
\raggedbottom

\setlength{\tabcolsep}{0in}
\newcommand{\isep}{-2 pt}
\newcommand{\lsep}{-0.5cm}
\newcommand{\psep}{-0.6cm}
\renewcommand{\labelitemii}{$\circ$}

\pagestyle{empty}
%-----------------------------------------------------------
%Custom commands
\newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
\newcommand{\resheading}[1]{{\small \colorbox{mygrey}{\begin{minipage}{0.975\textwidth}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}
\newcommand{\ressubheading}[3]{
\begin{tabular*}{6.62in}{l @{\extracolsep{\fill}} r}
    \textsc{{\textbf{#1}}} & \textsc{\textit{[#2]}} \\
\end{tabular*}\vspace{-8pt}}
%-----------------------------------------------------------

\begin{document}
\linespread{1.25}
\hspace{0.5cm}\\[-0.2cm]

\textbf{Anupam Bisht} \\
\indent $2^{nd}$ Year, B.Tech Student\\
\indent Electrical and Electronics Engineering
\hfill Ph: +91 7200660151\\
\indent VIT University, Vellore, TN -632014
\hfill Email: [email protected] \\

\resheading{\textbf{OBJECTIVE} }\\[\lsep]
\vspace{4mm} \vfill
\indent To obtain a job in a core-company so that the technical skills and the knowledge acquired during the past \indent can  be used to develop a new solution or optimize existing solutions for the profit of company as well as \indent betterment of the society.

\vspace{2mm}
\resheading{\textbf{ACADEMIC DETAILS} }\\[\lsep]
\vspace{5mm} \vfill
%\begin{table}[ht!]
%\begin{center}
\indent \begin{tabular}{ l @{\hskip 0.15in} l @{\hskip 0.20in} l @{\hskip 0.20in} l @{\hskip 0.20in} l }
\hline
\vspace{0.1mm}
\textbf{Year} &\textbf{Degree} & \textbf{Institute}   & \textbf{CGPA/\%} \\
\hline
2015- Present&B.Tech Electrical and Electronics Engineering & VIT Vellore  & 9.69 CGPA \\

2015 & 12th CBSE Board Examination & Kendriya Vidyalaya & 94.8\%\\

2013 & 10th CBSE Board Examination & Kendriya Vidyalaya & 10 CGPA\\
\hline
\end{tabular}
%\end{center}
%\end{table}
\vspace{2mm}

%\resheading{\textbf{FIELDS OF INTEREST} }\\[\lsep]
%\begin{itemize}
%\item \noindent Wireless Network and Network Security, %Another one, a third one
%\end{itemize}
\resheading{\textbf{AREA OF INTEREST} }\\[\lsep]
\vspace{1.0mm}
\begin{itemize}
\item Medical Sensors, circuit design, computer interfacing of hardware, control systems.
\end{itemize}
\vfill

\resheading{\textbf{TECHNICAL SKILLS} }\\[\lsep]
\vfill \vspace{1.0mm}
\begin{itemize}
\item \noindent \textbf{Languages:\space} C ,\space C++,\space Python, \space R
\item \noindent \textbf{Tools:\space}MATLAB,\space Orcad Pspice,\space Arduino\space, LabView ,\space\LaTeX
\item \noindent \textbf{Platforms:\space} Linux and Windows
\end{itemize}

\resheading{\textbf{PROJECTS} }\\[\lsep]
\vfill \vspace{0.5mm}
\begin{itemize}\itemsep2pt
\item \textbf{Calculation of HeartBeat using Photoplethysmogram in LabVIEW.} \textit{(Feburary 2017 - Currently Working)}
\end{itemize}
\indent We have designed to algorithms, which are inspired from the Pan-Tompkins Algorithm for QRS waveform detection for calculation of heartbeat. We also trying to do statistical analysis of the data using the R software


\resheading{\textbf{EXTRA CURRICULAR ACTIVITIES} }\\[\lsep]
\begin{itemize}
\item \noindent  A volunteer at Kulethi primary school Champawat,Uttarakhand. I helped to promote tablet assisted teaching in the primary school.Also helped in video making of basic science experiments in Hindi, which are uploaded in YouTube.(June 2016)

\item \noindent  Core Committee member at IEEE student chapter of VIT University.
(October 2015 - March 2016)

\end{itemize}

\resheading{\textbf{ACHIEVEMENTS} }\\[\lsep]
\begin{itemize}

\item \noindent  Awarded with cash prize for ranking 3rd out of the 250 students in the branch at VIT University for the academic year 2016-17.

\item \noindent  Awarded with cash prize for ranking 2nd out of the 250 students in the branch at VIT University for the academic year 2015-16.

\item \noindent  Awarded with cash prize for scoring 10 CGPA in class 10th Board Examination.

\item \noindent  Selected to represent KVS for Jawaharlal Nehru National Science, Mathematics and Environment Exhibition for children(JNNSMEE) held at Gangtok, Sikkim during November 2013.

\item \noindent  Awarded 3rd Prize at KVS National Level Science Exhibition held at Kendriya Vidiyalaya Ballygunge, Kolkata for the project titled "Principle of Fiber Optic Communication and Related  Applications" in the year 2012.

\end{itemize}


%\resheading{\textbf{MAJOR PROJECTS AND SEMINAR} }\\[\lsep]
%\begin{itemize}
%\item \textbf{Media Access Control Controling
%} (Research Project) \\
% \emph{(Guide:Prof. Hubert F.
%, May'13 - till date)} \\[-0.6cm]
%   \begin{itemize}\itemsep \isep
%   \item Objective :Performance analysis of HTTP web browsing traffic.
%.
%   \item Performance analysis will help in comparing different MAC protocols based on different network sce-
%narios.

 \end{document}

답변1

LaTeX는 (일반적인 상황에서) 수직 공간이 전역적으로 정의되도록 설계되었습니다. 결과적으로 항목, 단락 등 사이의 거리를 수동으로 조정하는 것은 잉여입니다. 더욱이 문서의 일관성을 파괴하고 보기 흉하게 만듭니다.

\indent after나는 당신의 코드에 있는 모든 잉여 항목을 \item , manual correction of vertical space, use of\textbf{...} in\resheading`(이미 정의되어 있음) 등 으로 정리하려고 합니다 .

\resheading또한 앞뒤에 수직 공간을 추가하고 너비를 수정하는 부분 도 다시 디자인했습니다 . 표의 경우 패키지를 itemize사용하기 때문에 이전 질문의 답변을 사용합니다 enumitem.

사용하셨기 때문에 a4paper영국식 단위도 모두 SI 단위(mm)로 변경합니다. 결국 나는 다음을 얻습니다.

여기에 이미지 설명을 입력하세요

\documentclass[a4paper,10pt]{article}
%-----------------------------------------------------------
\usepackage[margin=20mm]{geometry}
\raggedbottom
\usepackage{palatino}
\fontfamily{SansSerif}\selectfont
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{xcolor}
\definecolor{mygrey}{gray}{0.75}

\usepackage{booktabs, makecell, tabularx}
\renewcommand\arraystretch{1.3}
\usepackage{verbatim}
\usepackage{pbox}

\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}

\usepackage{url}

\setlength{\parindent}{0pt}
\pagestyle{empty}
%-----------------------------------------------------------
%Custom commands
\newcommand{\resheading}[1]{\medskip
    \colorbox{mygrey}{\begin{minipage}{\dimexpr\textwidth-2\fboxsep\relax}\small 
                        \textbf{#1 \vphantom{p\^{E}}}
                      \end{minipage}}
                            \par\medskip}
\newcommand{\ressubheading}[3]{
\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} r}
    \textsc{\textbf{#1}} & \textsc{\textit{[#2]}} \\
\end{tabular*}\vspace{-8pt}}
%-----------------------------------------------------------

\begin{document}
\linespread{1.25}

\textbf{Anupam Bisht} \\
$2^{nd}$ Year, B.Tech Student\\
Electrical and Electronics Engineering
\hfill Ph: +91 7200660151\\
VIT University, Vellore, TN -632014
\hfill Email: [email protected] \\

\resheading{OBJECTIVE}
To obtain a job in a core-company so that the technical skills and the knowledge acquired during the past \indent can  be used to develop a new solution or optimize existing solutions for the profit of company as well as \indent betterment of the society.

\resheading{\textbf{ACADEMIC DETAILS} }
\begin{tabularx}{\linewidth}{l X l l}
    \midrule
\textbf{Year}
     & \textbf{Degree}  & \textbf{Institute}   & \textbf{CGPA/\%}   \\
    \midrule
2015- Present
     & B.Tech Electrical and Electronics Engineering
                        & VIT Vellore           & 9.69 CGPA         \\

2015 & 12th CBSE Board Examination
                        & Kendriya Vidyalaya    & 94.8\%            \\

2013 & 10th CBSE Board Examination
                        & Kendriya Vidyalaya    & 10 CGPA           \\
    \midrule
\end{tabularx}

\resheading{\textbf{AREA OF INTEREST} }
    \begin{itemize}
\item   Medical Sensors, circuit design, computer interfacing of hardware, control systems.
    \end{itemize}

\resheading{TECHNICAL SKILLS} 
    \begin{itemize}
\item \textbf{Languages:\space} C ,\space C++,\space Python, \space R
\item \textbf{Tools:} MATLAB,\space Orcad Pspice,\space Arduino\space, LabView ,\space\LaTeX
\item \textbf{Platforms:} Linux and Windows
    \end{itemize}

\resheading{PROJECTS}
    \begin{itemize}
\item   \textbf{Calculation of HeartBeat using Photoplethysmogram in LabVIEW.} \textit{(Feburary 2017 - Currently Working)}
    \end{itemize}
We have designed to algorithms, which are inspired from the Pan-Tompkins Algorithm for QRS waveform detection for calculation of heartbeat. We also trying to do statistical analysis of the data using the R software

\resheading{EXTRA CURRICULAR ACTIVITIES}
    \begin{itemize}
\item   A volunteer at Kulethi primary school Champawat,Uttarakhand. I helped to promote tablet assisted teaching in the primary school.Also helped in video making of basic science experiments in Hindi, which are uploaded in YouTube.(June 2016)
\item   Core Committee member at IEEE student chapter of VIT University.
(October 2015 - March 2016)
    \end{itemize}

\resheading{ACHIEVEMENTS}
    \begin{itemize}
\item   Awarded with cash prize for ranking 3rd out of the 250 students in the branch at VIT University for the academic year 2016-17.
\item   Awarded with cash prize for ranking 2nd out of the 250 students in the branch at VIT University for the academic year 2015-16.
\item   Awarded with cash prize for scoring 10 CGPA in class 10th Board Examination.
\item   Selected to represent KVS for Jawaharlal Nehru National Science, Mathematics and Environment Exhibition for children(JNNSMEE) held at Gangtok, Sikkim during November 2013.
\item   Awarded 3rd Prize at KVS National Level Science Exhibition held at Kendriya Vidiyalaya Ballygunge, Kolkata for the project titled "Principle of Fiber Optic Communication and Related  Applications" in the year 2012.
    \end{itemize}
\end{document}

목록의 간격을 다르게 설정하려면 의 옵션을 사용하여 이를 변경할 수 \itemsep있습니다 \setlist[itemize]{leftmargin=*}. 자세한 내용은 패키지 설명서를 참조하세요. 내 의견으로는 기본 설정이 잘 선택되어 있습니다.

관련 정보