浏览代码

Fix alignment of year marginpar environment

Ryan C. Thompson 5 年之前
父节点
当前提交
b4f518d8e1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xetexCV.cls

+ 1 - 1
xetexCV.cls

@@ -67,7 +67,7 @@ uses the xetex typesetting system.]
 
 
 % Spcial Commands for Fancy Characters and Years
 % Spcial Commands for Fancy Characters and Years
 \newcommand{\amper}{{\fontspec[Scale=.95]{Hoefler Text}\selectfont\itshape\&}}
 \newcommand{\amper}{{\fontspec[Scale=.95]{Hoefler Text}\selectfont\itshape\&}}
-\newcommand{\years}[1]{\marginpar{\hspace{5.13cm}\parbox{3.0cm}{\emph{#1}}}}
+\newcommand{\years}[1]{\leavevmode\marginpar{\hspace{5.13cm}\parbox{3.0cm}{\emph{#1}}}\ignorespaces}
 
 
 % Headings and Heading Fonts
 % Headings and Heading Fonts
 \RequirePackage[normalem]{ulem}
 \RequirePackage[normalem]{ulem}