我想开发一个moderncv
和文章类的混合体,另一个简历模板。我遇到了困难。这是我到目前为止的代码:
\documentclass[12pt]{article}
\usepackage{libertine}
\usepackage{kantlipsum}
\usepackage[osf]{mathpazo}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage{array}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{siunitx}
\usepackage[left=2.54cm,right=2.54cm,top=2.54cm,bottom=2.54cm]{geometry}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\titleformat{\section}
[block]
{\normalfont\bfseries}
{\rule[0ex]{2cm}{4pt}}
{1em}
{}
\begin{document}
\noindent
\begin{minipage}{\textwidth}
\textbf{SUBHAM SONI}\\
address\\
\end{minipage}
\\[2mm]
\hrule
\section{CAREER OBJECTIVE}
\kant[2]
\section{EDUCATIONAL QUALIFICATION}
\centering
\begin{threeparttable}
\centering
\tabcolsep=3pt
\begin{tabular}{C{\dimexpr0.06\textwidth-2\tabcolsep-2\arrayrulewidth\relax}
C{\dimexpr0.22\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.22\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.22\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.15\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.13\textwidth-2\tabcolsep-\arrayrulewidth\relax}}\toprule
\textbf{Sl. No.} & \textbf{Course} & \textbf{Institution/ School} & \textbf{Board/University} & \textbf{Year of passing} & \textbf{Aggregate} \\ \midrule
1. & B.Tech. (Computer Science and Engineering)& Pondicherry Engineering College Puducherry & Pondicherry University& April 2015 (pursuing) & 8.554\tnote{*} \\
2. & Higher Secondary & Petit Seminaire H.S.S. Puducherry & Tamilnadu Board of
Higher Secondary Education & March 2011 & \SI{92}{\percent} \\
3. & Matriculation & Petit Seminaire H.S.S. Puducherry & Tamilnadu Board of
Higher Secondary Education & March 2009 & \SI{90}{\percent} \\ \bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item \textbf{\item[*] \textbf{Cumulative grade point average up to 5\textsuperscript{th} semester}}.
\end{tablenotes}
\end{threeparttable}
\section{AREAS OF INTERESTS}
\begin{enumerate}
\item hollaa
\end{enumerate}
\end{document}
这里,为什么兴趣领域是这样分布的?其次,enumerate
或itemize
环境,我如何将其移到栏之外,正好位于章节标题的第一个字母下方?
答案1
\centering
是一个开关,它使后面的组中的所有内容居中。删除它,因为您在此上下文中不需要它 - 它是导致您的部分标题出现对齐问题的原因。
将列表环境向右移动可以使用enumitem
的leftmargin
或wide
键值。
\documentclass[12pt]{article}
\usepackage{libertine,enumitem,kantlipsum}
\usepackage[osf]{mathpazo}
\usepackage{titlesec,marvosym,array,booktabs}
\usepackage{threeparttable,siunitx}
\usepackage[left=2.54cm,right=2.54cm,top=2.54cm,bottom=2.54cm]{geometry}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\titleformat{\section}
[block]
{\normalfont\bfseries}
{\rule[0ex]{2cm}{4pt}}
{1em}
{}
\begin{document}
\noindent
\begin{minipage}{\textwidth}
\textbf{SUBHAM SONI}\\
address\\
\end{minipage}
\\[2mm]
\hrule
\section{CAREER OBJECTIVE}
\kant[2]
\section{EDUCATIONAL QUALIFICATION}
%\centering
\begin{threeparttable}
\centering
\tabcolsep=3pt
\begin{tabular}{C{\dimexpr0.06\textwidth-2\tabcolsep-2\arrayrulewidth\relax}
C{\dimexpr0.22\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.22\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.22\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.15\textwidth-2\tabcolsep-\arrayrulewidth\relax}
C{\dimexpr0.13\textwidth-2\tabcolsep-\arrayrulewidth\relax}}\toprule
\textbf{Sl. No.} & \textbf{Course} & \textbf{Institution/ School} & \textbf{Board/University} & \textbf{Year of passing} & \textbf{Aggregate} \\ \midrule
1. & B.Tech. (Computer Science and Engineering)& Pondicherry Engineering College Puducherry & Pondicherry University& April 2015 (pursuing) & 8.554\tnote{*} \\
2. & Higher Secondary & Petit Seminaire H.S.S. Puducherry & Tamilnadu Board of
Higher Secondary Education & March 2011 & \SI{92}{\percent} \\
3. & Matriculation & Petit Seminaire H.S.S. Puducherry & Tamilnadu Board of
Higher Secondary Education & March 2009 & \SI{90}{\percent} \\ \bottomrule
\end{tabular}
\begin{tablenotes}
\small\bfseries
\item[*] Cumulative grade point average up to 5\textsuperscript{th} semester.
\end{tablenotes}
\end{threeparttable}
\section{AREAS OF INTERESTS}
\begin{enumerate}[wide=\dimexpr2cm+1em]
\item hollaa
\end{enumerate}
\end{document}