如何为每两项添加一行?

如何为每两项添加一行?

项目.tex

\sectionTitle{Personal Projects}{\faCodeFork}

\begin{projects}
\project
    {Title}
    {Description}
    {Link}
    {tags} 
\project
    {Title2}
    {Description2}
    {Link2}
    {tags} 
\end{projects}

变种

\newcommand{\cvtag}[1]{%
  \tikz[baseline]\node[anchor=base,draw=darkGrey!70,rounded corners=0.5ex,inner xsep=1ex,inner ysep =0.55ex,text height=1.3ex,text depth=.25ex]{#1};
}

 % Define the 'projects' environment
 \newenvironment{projects}{%
}{%
  \hfill
  \bigskip
}

% Render an project in the projects environment
% Usage: 
% \projects
  \newcommand\project[4]{
  \hspace{1em}
   \begin{minipage}[t]{\dimexpr(\linewidth/2) - 3em}
    \begin{tabular}{>{}l >{}l}
      \multicolumn{2}{l}{\textbf{#1}}\\
      \multicolumn{2}{l}{#2}\\
      \multicolumn{2}{l} \codeSymbol \href{#3}{#3} \\   
      \footnotesize{\foreach \n in {#4}{\cvtag{\n}}}\\
    \end{tabular}
  \end{minipage}%
    }

结果

它适用于 2 个项目,但当我尝试在 Project.tex 中添加第 3 个项目时,文本不会转到下一行。如何为每两个项目添加一个新行?

相关内容