新浪博客


\documentclass{article}
\usepackage{times}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.0pt}

\makeatletter
\renewcommand\@seccntformat[1]{\fbox
{\csname the#1\endcsname}\hspace{0.5em}}
\makeatother

\begin{document}
\section{This is correct}\label{sec:OK}
Referencing a section using this
definition generates the correct result
for the section reference~\ref{sec:OK}.
\end{document}

效果图:
LaTeX技巧77:如何调整章节标题编号和标题的距离

我的更多文章

下载客户端阅读体验更佳

APP专享