边缘的秒/亚秒

边缘的秒/亚秒

可以将秒/子秒数字放在页边距(放大)中,在偶数页的左侧,在奇数页的右侧?相应的标题必须在偶数页上左对齐,在奇数页上右对齐。

答案1

如果我理解得清楚的话,下面的代码应该可以完成你想要做的事情:

\documentclass[11pt, twoside]{article}% http://ctan.org/pkg/amsproc

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{titlesec, xcolor}
\titleformat{name=\section,page=odd}{\color{red}\bfseries\itshape\Large\boldmath}  {\upshape\LARGE\llap{\thesection\hspace*{0.5em}}}{0ex}{}%%
\titleformat{name=\section,page=even}{\filleft\color{blue}\bfseries\itshape\Large\boldmath}{\upshape\LARGE\rlap{\hspace*{0.5em}\thesection}}{0ex}{\llap}%  
\titlespacing*{\section}{0ex}{1.8\baselineskip}{1\baselineskip}%

\begin{document}

\section{First section}
Section title on an oddpage. Section title on an oddpage.Section title on an oddpage. Section title on an oddpage.  
\clearpage
Fiddle dee dee

\section{Another section}

 Section title on an even page. Section title on an even page. Section title on an even page. Section title on an even page. 
\end{document} 

结果是 第 1 页

第2页

相关内容