边际价值调整

边际价值调整

我需要从我自己的类文件中设置一些文本,在文档的左侧边距上,为此我使用 marginpar,而且最左侧的内容不应与边距右侧的内容重叠,因此需要根据要求进行调整。您能告诉我该怎么做吗?

以下代码是我的类文件

\usepackage{geometry,marginnote}
\newgeometry{left=13.8pc,right=3.5pc,top=5.9pc,textwidth=170mm}
\usepackage{lipsum}
\usepackage{xcolor,sectsty}
\usepackage{showframe}
\usepackage{afterpage}
\usepackage{authblk}
\def\Affilfont{\small\color{black}}
%usepackage{fancyhdr}
%pagestyle{fancy}
%cfoot{\ifnum\value{page} >1\newgeometry{left=19.8pc,right=3.5pc,top=5.9pc,textwidth=170mm}\thepage \else\fi}
\makeatletter
\def\@maketitle{%
  \newpage
  \vspace*{-\topskip}    
  \begingroup\centering  
  \let \footnote \thanks
  \hrule height \z@ 
    {\LARGE \color{yellow}\@title\par}%
    \vskip 1.5em 
    {\large
      \lineskip .5em 
      \begin{tabular}[t]{c}%
        {\color{yellow}{\@author}}
      \end{tabular}\par}%
    \vskip 1em 
    {\large \@date}%
  \par\endgroup     
  \vskip 1.5em
\reversemarginpar
\marginpar{
Name :Kevin
email:[email protected]
Received:28 November2016 
Accepted: 4 December2016
}
}
\endinput

tex 代码是

\documentclass{article}
\input /home/kevin/Desktop/script/tex/sample.cls
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\title{Sample File}
\author[1]{Author A\thanks{[email protected]}}
\author[1]{Author B\thanks{[email protected]}}
\author[1]{Author C\thanks{[email protected]}}
\author[2]{Author D\thanks{[email protected]}}
\author[2]{Author E\thanks{[email protected]}}
\affil[1]{Department of Computer Science, University}
\affil[2]{Department of Mechanical Engineering, University}
\date{}
\begin{document}
\maketitle

\lipsum[3-20]
\end{document}

相关内容