forked from chenshuo/typeset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinebreak.tex
61 lines (55 loc) · 1.65 KB
/
linebreak.tex
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
\documentclass[10pt,adobefonts,fancyhdr,UTF8]{ctexbook}
\usepackage[centering,paperwidth=100mm,paperheight=80mm,%
body={200pt,150pt},marginparsep=10pt,marginpar=50pt,showframe]{geometry}
\usepackage{underscore}
\makeatletter
\renewcommand*{\Gm@vrules@mpi}{%
\hb@xt@\@tempdima{\llap{\Gm@vrule}\ignorespaces
\hskip \textwidth\Gm@vrule}}%
\renewcommand*{\Gm@pageframes}{%
\vb@xt@\z@{%
\ifGm@showframe
\if@twoside
\ifodd\count\z@
\let\@themargin\oddsidemargin
\else
\let\@themargin\evensidemargin
\fi
\fi
\moveright\@themargin%
\vb@xt@\z@{%
\vskip\topmargin\vb@xt@\z@{\vss}%\Gm@hrule}%
\vskip\headheight\vb@xt@\z@{\vss}%\Gm@hruled}%
\vskip\headsep\vb@xt@\z@{\vss\Gm@hrule}%
\@tempdima\textwidth
\advance\@tempdima by \marginparsep
\advance\@tempdima by \marginparwidth
\Gm@vrules@mpi
\vb@xt@\z@{\vss\Gm@hrule}%
%\vskip\footskip\vb@xt@\z@{\vss\Gm@hruled}%
\vss}%
\fi%
}}%
\makeatother
\setlength{\parskip}{2ex plus 0.5ex minus 0.5ex}
\begin{document}
\pagestyle{empty}
\mbox{}
\newpage
\noindent\marginpar[\hfill Input]{}%
一二三四五六七八九十一二三四五六七八九十
\mbox{一二三四五六七八九十一二三四五六
\texttt{shared_ptr}。}
\vspace{1ex}
\hrule
\noindent\marginpar[\hfill Word]{}%
一二三四五六七八九十一二三四五六七八九十\linebreak
一二三四五六七八九十一二三四五六\linebreak
\texttt{shared_ptr}。
\vspace{1ex}
\hrule
\noindent\marginpar[\hfill \TeX]{}%
一二三四五六七八九十一二三四五六七八九十
一二三四五六七八九十一二三四五六
\texttt{shared_ptr}。
\end{document}