2 Star 3 Fork 0

老李/计算机是如何运行的

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
style.sty 2.54 KB
一键复制 编辑 原始数据 按行查看 历史
老李 提交于 2020-09-09 13:36 . init
\definecolor{gray}{RGB}{119,136,153}
\definecolor{contrast}{RGB}{119,136,153}
\definecolor{blue}{RGB}{0,0,255}
\definecolor{boxgray}{RGB}{207,207,207}
\newcommand*\VerBar[2]{%
{\color{#1}\rule{#2}{4.25cm}}}
\newcommand*\HorBar[2]{%
{\color{#1}\rule{#2}{2\paperwidth}}}
\newif\ifBgUse
\newif\ifBgF
%\AddEverypageHook{%
% \setlength{\unitlength}{1cm}
% \checkoddpage
% \ifthenelse{\boolean{oddpage}}{
% \put(19, -2.5){\colorbox{blue}{\makebox(2,0.6){\textcolor{white}{\semester : \topic}}}}
% }{
% \put(0, -2.5){\colorbox{blue}{\makebox(2,0.6){\textcolor{white}{\semester : \topic}}}}
% }
%}
\AddEverypageHook{%
\ifBgUse%
\ifodd\value{page}
\backgroundsetup{position={current page.north east},vshift=1.5cm,%
contents={\VerBar{gray}{2\paperheight}}}%
\else
\backgroundsetup{position={current page.north west},vshift=-1.5cm,%
contents={\VerBar{gray}{2\paperheight}}}%
\fi%
\BgMaterial%
\fi}
\AddEverypageHook{
\ifBgF
\backgroundsetup{position={current page.north west},vshift=-0.5\paperwidth,%
contents={\HorBar{contrast}{30cm}}}%
\BgMaterial%
\fi}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=0.4pt] (char) {#1};}}
\renewcommand\maketitle[0]{
% titlepage
\input{tex/title}
%reset formatting
\newgeometry{left = 2cm, right = 2cm, top = 2cm, bottom = 2cm, marginparwidth = 0cm, marginparsep = 0cm}
\fontfamily{cmr}\selectfont
\fontsize{10pt}{10pt}\selectfont
}
\renewcommand\cite[1]{\iflanguage{ngerman}{(vgl. #1)}{(#1)}}
\renewcommand\quote[2]{\iflanguage{ngerman}{>>#2<< (#1)}{>>#1<< (#2)}}
\newcommand{\hl}[1]{\textbf{\textcolor{contrast}{#1}}}
\newcounter{mn}
\newcommand\mpar[1]{\refstepcounter{mparcnt}\marginpar{\themparcnt#1}}
\newcommand{\mnote}[1]{\refstepcounter{mn}\hspace{-0.25em}\textsuperscript{\fontsize{5pt}{5pt}\selectfont\circled{\arabic{mn}}}\marginpar{\raggedright\fontsize{8pt}{8pt}\selectfont \textcolor{white}{\textbf{\arabic{mn}:} #1}}}
\urlstyle{same}
\expandafter\def\expandafter\UrlBreaks\expandafter{\UrlBreaks% save the current one
\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j%
\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t%
\do\u\do\v\do\w\do\x\do\y\do\z\do\A\do\B\do\C\do\D%
\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M\do\N%
\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X%
\do\Y\do\Z}
\renewcommand{\arraystretch}{2}
\renewcommand{\paragraph}[1]{\mbox{}\\ \textbf{#1:} \hspace{0.15em}}
\setkeys{Gin}{width=\linewidth}
\let\origfigure\figure
\let\endorigfigure\endfigure
\renewenvironment{figure}[1][tbph]{%
\origfigure[#1]%
\centering
}{%
\endorigfigure
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TeX/LaTeX
1
https://gitee.com/uisu/computer-soft-sys-inter.git
[email protected]:uisu/computer-soft-sys-inter.git
uisu
computer-soft-sys-inter
计算机是如何运行的
master

搜索帮助