Latex中

问题描述

我在乳胶中设置间距有问题。我使用表格和表格。问题是节标题和这些软件包之间的间距不一致。我知道我们可以使用vspac [2ex],但我正在寻找一种一致的方法解决
Result image

\documentclass[10pt]{article}
\usepackage{array,xcolor,lipsum,bibentry}
\usepackage[margin=1.5cm]{geometry}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{longtable}
\usepackage{ltablex}
\usepackage{titlesec}
\usepackage{indentfirst}

\title{\bfseries\huge None}
\date{}
\definecolor{lightgray}{gray}{0.8}
\newcolumntype{L}{>{\raggedleft}p{0.1\textwidth}}
\newcolumntype{R}{p{0.84\textwidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt} %Create a line
 
\setlength{\parskip}{0pt}
 
\titlespacing*{\section}
{0pt}{2ex plus 1ex minus 0.2ex}{1ex plus 0.2ex}
\titlespacing*{\subsection}
{0pt}{1ex plus 0.1ex minus 0.1ex}{0.5ex plus 0.2ex}
 
\begin{document}
\maketitle
\vspace{-2em}

{\setlength{\extrarowheight}{4pt} %Increase the height of rows 
%\\->make a new row; \newline: make a line in the same row

\section*{Projects}
\begin{tabular}{L!{\VRule}R}
    2016-2018&{\bfseries Numerical control is the automated control of machining tools and 3D printers by means of a computer.}
    \newline A CNC machine processes a piece of material to meet specifications by following a coded programmed instruction and without a manual operator directly controlling the machining operation. \\
    
    2011-2016&{\bfseries A water jet cutter}
    \newline also kNown as a water jet or waterjet,is an industrial tool capable of cutting a wide variety of materials using a very high-pressure jet of water,or a mixture of water and an abrasive substance.\\
\end{tabular}
 
\section*{Documents}
\subsection*{Managzines}
\hangindent=1.5em
    {\bfseries XXX},Victor,Knee Milling Machines are used for cutting the internal or external material of a workpiece by way of a rotating milling cutter. These machines are used for milling,drilling,tapping.

\subsection*{Machines}
\hangindent=1.5em
    {\bfseries CNC} and Daniel Computer Numerical Controlled (CNC) milling machines are used with end mills for removing and shaping material during milling operations. They are programed with an alphanumeric code (called a G code) instructing the machine to cut a workpiece in a specific pattern or preform a certain function.)\\[2pt]
\hangindent=1.5em
    Henry,{\bfseries David},Spindle Speed Control: Spindle speed control indicates the type of mechanism used to drive the spindle at a desired speed.

\section*{XXX}
\begin{tabularx}{\linewidth}{L!{\VRule}R}
    10/2018 - 12/2018&{\bfseries AAA},Intel \textbar \ Professional,scientific and technical activities
    \newline $\circ$  xxxxxxxxxxxx x x x x x xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    \newline $\circ$  xxxxxxxxxxxx x x x x x xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x x x x xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\
    05/2018 - 10/2018&{\bfseries YYYYYYY},Farbay \textbar \ Professional,scientific and technical activities
    \newline $\circ$  xxxxxxxxxxxx x x x x x xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    \newline $\circ$  xxxxxxxxxxxx x x x x x xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\
\end{tabularx}
 
\section*{References}

\end{document}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)