File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 23
23
\newunicodechar {├}{\textfallback {├}}
24
24
\newunicodechar {│}{\textfallback {│}}
25
25
26
+
27
+ % sidebar environment
28
+ \usepackage {framed,color }
29
+ \definecolor {shadecolor}{RGB}{242,242,242}
30
+ \makeatletter
31
+ \newenvironment {sidebar}{%
32
+ \medskip {}
33
+ \setlength {\fboxsep }{.8em}
34
+ \def\at@end@of@kframe {}%
35
+ \ifinner\ifhmode %
36
+ \def\at@end@of@kframe {\end {minipage}}%
37
+ \begin {minipage }{\columnwidth }%
38
+ \fi\fi %
39
+ \def\FrameCommand ##1{\hskip\@totalleftmargin \hskip -\fboxsep
40
+ \colorbox {shadecolor}{##1}\hskip -\fboxsep
41
+ % There is no \\@totalrightmargin, so:
42
+ \hskip -\linewidth \hskip -\@totalleftmargin \hskip\columnwidth }%
43
+ \MakeFramed {\advance\hsize -\width
44
+ \@totalleftmargin\z@ \linewidth\hsize
45
+ \@setminipage }}%
46
+ {\par\unskip\endMakeFramed %
47
+ \at@end@of@kframe }
48
+ \makeatother
49
+
You can’t perform that action at this time.
0 commit comments