單獨多次使用“vwcol”

單獨多次使用“vwcol”

我嘗試vwcol單獨使用多次,但沒有給出預期的結果。知道如何解決嗎?或者也許建議不同的包?特此提出 MWE:

\documentclass[12pt]{my_cv}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage[a4paper, total={7in, 11in}]{geometry}
\usepackage{xcolor, enumitem, multicol, hyperref, vwcol}

\definecolor{darkmidnightblue}{rgb}{0.0, 0.2, 0.4}

\setlength{\columnseprule}{1pt}
\def\columnseprulecolor{\color{darkmidnightblue}}
\setlength{\columnsep}{.5cm}

\hypersetup{colorlinks, urlcolor=darkmidnightblue}
%-------------------------------------------------------------
\begin{document}
%\pagecolor{lightgray}

\name{\color{darkmidnightblue} \textbf{-}
\vspace{.3em}
\name{\color{darkmidnightblue} \large \textit{Curriculum Vitae}}
\vspace{.5em}

\section*{\color{darkmidnightblue} Personal data}
\begin{description}[itemsep=0em, align=left, labelwidth=1.55in]
\item [Date of birth] -
\item [Address] -
\item [E-mail] -
\item [Mobile] -
\end{description}

\section*{\color{darkmidnightblue} Education}

\begin{vwcol}[widths={0.23, 0.5}, sep=.5cm, rule=1pt, postrule, indent=0em, rulecolor=darkmidnightblue, justify=flush]
\textsc{Sep 2018 -- Dec 2018}
\subsection{-} \vspace{-.8em}
\subsubsection{-} \vspace{-.8em}
-
\end{vwcol} 

\begin{vwcol}
...
\end{vwcol}
\end{document}

類別文件:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{my_cv}[2019/08/11 My custom CV class]
\LoadClass{article}


\newcommand{\name}[1]{%
  \leftline{\Large{#1}}
}

\RequirePackage{titlesec}
\titleformat{\section} % Customise the \section command 
  {\large\bfseries\scshape\raggedright} % Make the \section headers large (\Large)
    {}{0em}
  {}
  [\color{darkmidnightblue}\bfseries\titlerule] % Inserts a horizontal line after the heading

\titleformat{\subsection}
  {\large\bfseries\scshape\raggedright}
  {}{0em}
  {}

\titleformat{\subsubsection}
  {\large\scshape\raggedright}
  {}{0em}
  {}

\newcommand{\datedsection}[2]{%
  \section[#1]{#1 \hfill #2}%
}
\newcommand{\datedsubsection}[2]{%
  \subsection[#1]{#1 \hfill #2}%
}  

目前結果

相關內容