发布时间:2009-11-18 20:25:35
文章类别:小技巧
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100g39i.html
QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载
示例如下:
\documentclass{article}
\usepackage{times}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.0pt}
\setlength\fboxrule{1pt}
\renewcommand\thesubsection
\begin{document}
\setcounter{section}{3}
\subsection{A mistake}\label{wrong}
Referencing a subsection in this format
produces a funny result as we can see
looking at subsection~\ref{wrong}.
We get a boxed reference.
\end{document}
效果如图:
示例二:
\documentclass{article}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.0pt}
\makeatletter
\renewcommand\subsection{\@startsection
\makeatother
% redefinition of
\subsection shown below
\setcounter{section}{4} % simulate previous
\begin{document}
\ldots\ some text above.
\subsection{Example of a Section Heading}
The heading is set in normal-sized italic
and the separation from the preceding text
is exactly one baseline. The separation
from the text following is one-half
baseline and this text is not indented.
\end{document}
效果图:
发表评论 取消回复