1. 程式人生 > >Latex 巨集包編寫,自定義巨集包

Latex 巨集包編寫,自定義巨集包

\renewcommand*{\maketitle}{
    \vspace{5ex}    % 建立列的空格,
 
    \begin{minipage}[m]{\cvtitlewidth}
    \@ifundefined{@cvtitle}{~}{\mystyle[title]\@cvtitle}
    \end{minipage}\hfill

%\begin{tabular}{>{\columncolor{mypink}\sf }lll@{}} 
    \begin{tabular}{l@{}c@{}r@{}}               % 建立三列的表格 system ,可以第二個引數使用{l|c|r} 來給表格新增豎線
%\begin{tabular}{@{}l@{}l@{}}

    \hspace{5ex}             % 建立橫的空格,
    \begin{minipage}[m]{\cvnamewidth}
%    \begin{flushright}
    \mystyle[name]\@cvfirstname\\[0em]\@cvlastname
%    \end{flushright}
    \end{minipage}\hspace{3ex} &
	
	    \begin{minipage}[!t]{\cvassetspanelwidth}
%        \begin{multicols}{2}
        \ifcvasset[0]{{\mystyle[assetbullet]}{\setlength{\leftmargin}{\cvassetspanelleftmargin}}
%\setlength{\itemsep}{\cvassetitemsep}
\renderassetifdefined{0}
\renderassetifdefined{1}
\renderassetifdefined{2}
\renderassetifdefined{3}
\renderassetifdefined{4}
\renderassetifdefined{5}
\renderassetifdefined{6}
\renderassetifdefined{7}
\renderassetifdefined{8}
\renderassetifdefined{9}
}{}
%        \end{multicols}
    \@ifundefined{@cvquote}{}{\mystyle[quote]\@cvquote}
    \end{minipage} &

    \@ifundefined{@cvpicture}{}{ \hspace{7ex}\begin{minipage}[m]{\cvpicturewidth} \fboxsep=1mm\fboxrule=0.05pt \
fcolorbox{black}{white}{ \includegraphics[keepaspectratio=true,width=\cvpicturewidth]{\@cvpicture} }\end{minipag
e}}

\en