1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
| \usepackage{amsfonts}% \usepackage{amssymb} \usepackage{mathrsfs} \usepackage{latexsym,amsmath,amsfonts} \usepackage{xcolor}% http://ctan.org/pkg/xcolor \usepackage{ifmtarg}% http://ctan.org/pkg/ifmtarg \usepackage{xifthen}% http://ctan.org/pkg/xifthen \usepackage{environ}% http://ctan.org/pkg/environ \usepackage{multido}% http://ctan.org/pkg/multido \usepackage{lipsum,ctex}% http://ctan.org/pkg/lipsum
%\usepackage[displaymath]{lineno} \usepackage[backref]{hyperref} \linespread{1} %\usepackage{showkeys}
%\usepackage{times} \allowdisplaybreaks %\date{\today} \date{\today} \newcommand{\red}{\color{red} } %红色字体 \def\ft{\frac d{dt}} \def\pt{\partial_{t}} \def\r{\mathbb{R}^2} \def\no{\nonumber} \def\eps{\epsilon} \textwidth 150mm \textheight 220mm \voffset -25mm \hoffset -15mm\topmargin1.4 cm \renewcommand{\baselinestretch}{1.235}
\makeatletter% \newcommand{\commenthang}{% top comment decoration \begingroup% \setlength{\unitlength}{.005\linewidth}% \linewidth/200 \begin{picture}(0,0)(1.5,0)% \linethickness{0.45pt} \color{blue!50}% \put(-3,2){\line(1,0){206}}% Top line \multido{\iA=2+-1,\iB=50+-10}{5}{% Top hangs \color{blue!\iB}% \put(-3,\iA){\line(0,-1){1}}% Top left hang \put(203,\iA){\line(0,-1){1}}% Top right hang }% \end{picture}% \endgroup% }% \newcommand{\commenthung}{% bottom comment decoration \nobreak \begingroup% \setlength{\unitlength}{.005\linewidth}% \linewidth/200 \begin{picture}(0.0,0)(1.5,0)% \linethickness{0.45pt} \color{blue!50}% \put(-3,0){\line(1,0){206}}% Bottom line \multido{\iA=0+1,\iB=50+-10}{5}{% Bottom hangs \color{blue!\iB}% \put(-3,\iA){\line(0,1){1}}% Bottom left hang \put(203,\iA){\line(0,1){1}}% Bottom right hang }% \end{picture}% \endgroup% }%
\newcounter{comment} \renewcommand{\thecomment}{\arabic{comment}} \NewEnviron{comment}[1][]{% \par\noindent\commenthang\par\nobreak\noindent%\addvspace{-.5ex} \refstepcounter{comment}\postdisplaypenalty=10000 % {\sffamily\bfseries\upshape Comment \thecomment\@ifnotmtarg{#1}{\ (#1)}}\ \ \ignorespaces% \BODY % Typeset comment body/content \par\addvspace{-1ex}\nobreak\noindent\commenthung\par\addvspace{.4ex}% } \makeatother
|