blob: 04d7d4fb855d7cf270032fe3c1944882ad6bdf1e (
plain)
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
|
% +--------------------------------------------------+
% | Typeset titlesec.tex to get the documentation. |
% +--------------------------------------------------+
%
% Copyright (c) 1998-2011 by Javier Bezos.
% All Rights Reserved.
%
% This file is part of the titlesec distribution release 2.9
% -----------------------------------------------------------
%
% It may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work is Javier Bezos.
\ProvidesFile{frame.tss}[2011/07/25]
\gdef\ttlh@frame#1#2#3#4#5#6#7#8{%
\def\ttl@filleft##1{\hfill}%
\def\ttl@filright##1{\hfill}%
\gdef\ttl@makeline##1{%
\ttl@calc\hspace{#6}##1\ttl@calc\hspace{#7}}%
\interlinepenalty\@M
\ttl@changecentercr
#1\ifhmode\ttl@hmode@error\fi
\parindent\z@
\leavevmode
\@tempdima\fboxrule
\addtolength\@tempdima{#3}%
\setlength\leftskip{#6}%
\setlength\rightskip{#7}%
\lower\@tempdima\hbox{%
\everypar{}%
\setbox\z@\hbox{#2}%
\addtolength\hsize{-#6}%
\addtolength\hsize{-#7}%
\@tempdima\dp\z@ % 2002/3/22
\advance\@tempdima.5\ht\z@
\vbox{%
\hbox to \hsize{%
\leaders\hrule\@height\fboxrule\ttl@filleft{#3}%
\ifttl@label\lower.5\ht\z@\box\z@\fi
\leaders\hrule\@height\fboxrule\ttl@filright{#3}}%
\vskip-\lineskip
\ifttl@label\vskip-\@tempdima\fi
\hbox{%
\vrule\@width\fboxrule
\kern-\fboxrule
\vbox{%
\ttl@calc\vspace{#3}%
\leavevmode
\addtolength\leftskip {#3}\addtolength\leftskip{-#6}%
\addtolength\rightskip{#3}\addtolength\rightskip{-#7}%
\strut#4{#8}\kern\z@\strut\@@par
\ttl@calc\vspace{#3}}%
\kern-\fboxrule
\vrule\@width\fboxrule}%
\hrule\@height\fboxrule}}%
\@@par\nobreak#5\@@par}
\endinput
|