⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mcm.sty

📁 一个最容易懂的LaTeX 入门教材。这个文档已经被翻译成很多种语言
💻 STY
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% latex Template
%% The Template is writen by liuyu,I reference to it.
%% Revised: NOV 21th, 2006
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{MCM}

% packages
\RequirePackage{color}          % color image and color definition
\RequirePackage{calc}           % do size calculations
\RequirePackage{fancyhdr}       % personalize page header
\RequirePackage{graphicx}       % include graphics
\RequirePackage{ifthen}         % logic options
\RequirePackage{lastpage}       % refer to the number of last page
\RequirePackage{listings}       % format source code

% Declare Options
\newcommand{\MCM@control}{000}
\DeclareOption*
{
    \edef\MCM@control{\CurrentOption}
}

% Process Options
\ProcessOptions
\newcommand{\control}{\MCM@control}
\newcommand{\team}{Team \#\ \MCM@control}

% if we are running pdflatex?
\newboolean{pdf}
\ifthenelse{\isundefined{\pdfoutput}}%
    {\setboolean{pdf}{false}}%
    {\setboolean{pdf}{true}}

% style: hyperlinked references
\ifpdf
\RequirePackage[bookmarks=true,%
    linkcolor=black,citecolor=black,pagecolor=black,%
    colorlinks=true]{hyperref}
\fi

% style: page layout
\setlength{\headheight}{15pt}
\setlength{\headsep}{20pt}
\setlength{\footskip}{30pt}
\setlength{\voffset}{-5pt}
\setlength{\hoffset}{16pt}
\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{\paperwidth-2\hoffset-2\oddsidemargin-2in}
\setlength{\marginparpush}{0pt}
\setlength{\marginparwidth}{0pt}
\addtolength{\textheight}{3\baselineskip}

% style: float counter
\setcounter{totalnumber}{6}
\setcounter{topnumber}{3}
\setcounter{bottomnumber}{3}

% style: table & figure caption vertical space
\setlength{\abovecaptionskip}{10pt}
\setlength{\belowcaptionskip}{10pt}

% style: table & figure caption font size and face
\renewcommand{\figurename}{\footnotesize{\textbf{Fig}}}
\renewcommand{\tablename}{\footnotesize{\textbf{Tab}}}

% style: table of contents topic depth
\setcounter{tocdepth}{3}

% style: bibliography
\bibliographystyle{unsrt}

% style: list typesetting
\definecolor{grey}{rgb}{0.3,0.3,0.3}
\definecolor{darkgreen}{rgb}{0,0.3,0}
\definecolor{darkblue}{rgb}{0,0,0.3}
\definecolor{grey}{rgb}{0.95,0.95,0.95}
\definecolor{darkgreen}{rgb}{0.0,0.5078,0.0}

\lstset{language=Matlab} \lstset{xleftmargin=1em,xrightmargin=1em}
\lstset{frame=} \lstset{%backgroundcolor=\color{grey},
commentstyle=\color{darkgreen},keywordstyle=\color{blue},%,caption=\lstname,basicstyle=\footnotesize,
breaklines=true,columns=flexible,mathescape=fause }
\lstset{framexleftmargin=0.5em,framexrightmargin=1em,framextopmargin=0em,basicstyle=\footnotesize,framexbottommargin=1em}
%\lstdefinestyle{numbers}{numbers=left,stepnumber=1,numberstyle=\small,numbersep=1em}
\lstloadlanguages{C,C++,Java,Matlab,Mathematica}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -