为什么使用 minipage 功能时单词间距会发生变化?
\documentclass[a4paper, 14pt, oneside]{article}
\usepackage{soul} % Used for the title name (eg. title)
\usepackage{titlesec}
\usepackage{marvosym} % add the symbols for email and phone contact data
\usepackage{fancyhdr} % Required for the footer
\usepackage{tabularx} % Nicer table style than the default
\usepackage{amsthm}
\usepackage{abstract}
\usepackage{setspace}
\usepackage[usenames,dvipsnames]{xcolor} % Allows the definition of hex colors
\definecolor{headings}{HTML}{701112} % Dark red color for headings
\definecolor{text1}{HTML}{2b2b2b} % Main document font color, off-black
\usepackage[none]{hyphenat} % Prevents hyphenation in text
\usepackage[margin=10mm,bottom=20mm]{geometry}
\linespread{1.1} % Line spacing
% Sections formatting
\titleformat{\section}{\color{headings}
\scshape\Large\raggedright}{}{0em}{}[\color{black}\titlerule]
\pagestyle{fancy}
% Prevents overfull hbox and vbox
\hbadness=10000
\hfuzz=50pt
\vbadness=10000
\vfuzz=50pt
\renewcommand\headrulewidth{0pt} % Size of the header rule
\renewcommand\footrulewidth{0.001pt} % Size of the footer rule
\usepackage[pdfborder={0 0 0},bookmarks=true,pdftitle={CV},pdfauthor={first last},pdfsubject={Curriculum Vitae},pdfcreator={www.abhij.com},pdfproducer={www.abhij.com}]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CV STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NAME AND CONTACT %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
%Uncomment below to color the \textsl{\textit{\textbf{\emph{\textsc{\textsc{\textsc{headings}}}}}}}
%\color{headings}
%\textsc{\Huge{\so{Abhilash Sukumari}}} \\ % Use for extra spacing inbetween the words.
\textsc{\Huge{First Last}} \\
\vspace{0pt}
\color{text1}{\Large\Telefon} (Area code)-xxx-xxxx \hfill {\Large\Writinghand} Street, Apt \# XXXX, City, EX-7xxxx \hfill {\Large\Letter} \href{mailto:[email protected]}{[email protected]}
%%%%%% SKILLS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Start the left-hand side of the page
\begin{minipage}[t]{0.48\textwidth}
\vspace{0pt} % Trick for alignment
\section{Skills}
\begin{tabularx}{1\linewidth\centering\arraybackslash}{>{\raggedright\scshape}p{2.5cm}X}
\textbf{Something} & Something, Something, Something, Something, C, C++\\
\textbf{Others} & \LaTeX, \textsc{html}\\
\textbf{Others} & Something Something (Something), Something Something (Something Something Something)
\end{tabularx}
\end{minipage} % End left-hand side of the page
\hfill
%%%%%% Tool proficiency %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Start the right-hand side of the page
\begin{minipage}[t]{0.48\textwidth}
\vspace{0pt} %trick for alignment
\section{Tools}
\begin{tabularx}{1\linewidth}{>{\raggedright\scshape}p{1cm}X}
\textbf{Tool} & Something-Something (Something) $\&$ Something Something \\
\textbf{Others} & Something, Something Something, Something, Something Something, Something-Something, Something \\
\end{tabularx}
\end{minipage} % End right-hand side of the page
%%%%%% END %%%%%%%%%%%%%%%
\end{center}
\end{document}
答案1
您有相互冲突的要求:如果您禁用连字符,则必须预料到单词间距会很糟糕,除非您将窄列排版得参差不齐。
如果移除两侧的填充,列可能会更宽一些。我添加了
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
tabularx
并将调用改为
\begin{tabularx}{1\linewidth}{>{@{}>{\bfseries}lY@{}}
请注意,默认字体没有小写粗体。如果您使用其他有小写粗体的字体系列,只需\scshape
在 后添加 即可\bfseries
。
\documentclass[a4paper, 14pt, oneside]{article}
\usepackage{soul} % Used for the title name (eg. title)
\usepackage{titlesec}
\usepackage{marvosym} % add the symbols for email and phone contact data
\usepackage{fancyhdr} % Required for the footer
\usepackage{tabularx} % Nicer table style than the default
\usepackage{amsthm}
\usepackage{abstract}
\usepackage{setspace}
\usepackage[usenames,dvipsnames]{xcolor} % Allows the definition of hex colors
\definecolor{headings}{HTML}{701112} % Dark red color for headings
\definecolor{text1}{HTML}{2b2b2b} % Main document font color, off-black
\usepackage[none]{hyphenat} % Prevents hyphenation in text
\usepackage[margin=10mm,bottom=20mm]{geometry}
\linespread{1.1} % Line spacing
% Sections formatting
\titleformat{\section}{\color{headings}
\scshape\Large\raggedright}{}{0em}{}[\color{black}\titlerule]
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt} % Size of the header rule
\renewcommand\footrulewidth{0.001pt} % Size of the footer rule
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
\usepackage[pdfborder={0 0 0},bookmarks=true,pdftitle={CV},pdfauthor={first last},pdfsubject={Curriculum Vitae},pdfcreator={www.abhij.com},pdfproducer={www.abhij.com}]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CV STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NAME AND CONTACT %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
%Uncomment below to color the \textsl{\textit{\textbf{\emph{\textsc{\textsc{\textsc{headings}}}}}}}
%\color{headings}
%\textsc{\Huge\so{Abhilash Sukumari}} \\ % Use for extra spacing inbetween the words.
\textsc{\Huge First Last} \\
\vspace{0pt}
\color{text1}{\Large\Telefon} (Area code)-xxx-xxxx \hfill {\Large\Writinghand} Street, Apt \# XXXX, City, EX-7xxxx \hfill {\Large\Letter} \href{mailto:[email protected]}{[email protected]}
%%%%%% SKILLS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Start the left-hand side of the page
\begin{minipage}[t]{0.48\textwidth}
\vspace{0pt} % Trick for alignment
\section{Skills}
\begin{tabularx}{1\linewidth}{@{}>{\bfseries}lY@{}}
Something & Something, Something, Something, Something, C, C++\\
Others & \LaTeX, \textsc{html}\\
Others & Something Something (Something), Something Something (Something Something Something)
\end{tabularx}
\end{minipage} % End left-hand side of the page
\hfill
%%%%%% Tool proficiency %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Start the right-hand side of the page
\begin{minipage}[t]{0.48\textwidth}
\vspace{0pt} %trick for alignment
\section{Tools}
\begin{tabularx}{1\linewidth}{@{}>{\bfseries}lY@{}}
Tool & Something-Something (Something) \& Something Something \\
Others & Something, Something Something, Something, Something Something, Something-Something, Something \\
\end{tabularx}
\end{minipage} % End right-hand side of the page
%%%%%% END %%%%%%%%%%%%%%%
\end{center}
\end{document}