SHARE
TWEET

Untitled

pdpd123 Aug 11th, 2019 330 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass[12pt, a4paper, oneside]{memoir}
  2.  
  3. %%%%%%%%%%%%%%%% 引入 package %%%%%%%%%%%%%%%%
  4. \usepackage[margin=3cm]{geometry}
  5. \usepackage{amsmath,amsthm,amssymb} % 引入 AMS 數學環境
  6. \usepackage{yhmath}         % math symbol
  7. \usepackage{graphicx}       % 圖形插入用
  8. %\graphicspath{{images/}}   % 搜尋圖片目錄
  9. %\usepackage{wrapfig}       % 文繞圖
  10. \usepackage{floatflt}       % 浮動 figure
  11. %\usepackage{float}         % 浮動環境
  12. %\usepackage{subfig}        % subfigures
  13. %\usepackage{caption3}      % caption 增強
  14. %\usepackage{setspace}      % 控制空行
  15. \usepackage{fontspec}       % 設定字體
  16. \usepackage{type1cm}        % 設定fontsize
  17. \usepackage{titlesec}       % 設定section等的字體
  18. \usepackage{titling}        % 加強 title 功能
  19. \usepackage{fancyhdr}       % 頁首頁尾
  20. \usepackage{tabularx}       % 加強版 table
  21. \usepackage{listings}       % 內嵌程式碼
  22. \usepackage{indentfirst}    % 首行縮排
  23. \usepackage{enumerate}      % 加強 enumerate
  24. \usepackage{upquote}        % verbatim 中引號顯示
  25. \usepackage{ulem}           % 裝飾
  26. \usepackage{enumitem}
  27. \usepackage[square, comma, numbers, super, sort&compress]{natbib}
  28. \usepackage[unicode=true, pdfborder={0 0 0}, bookmarksdepth=-1]{hyperref}
  29. \usepackage[usenames, dvipsnames]{color}
  30. \usepackage[many]{tcolorbox}
  31.  
  32. \usepackage{tikz} %繪圖用
  33. \usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
  34.     decorations.pathreplacing,decorations.pathmorphing,shapes,%
  35.     matrix,shapes.symbols}
  36. \usepackage{forest}
  37.  
  38. \usepackage{xeCJK}  % xelatex 中文
  39. %設定標楷體為中文字型,而英文不去更動,使用原TeX字型
  40. \setCJKmainfont[AutoFakeBold=3,AutoFakeSlant=.4]{Noto Sans CJK TC Regular}
  41. \defaultCJKfontfeatures{AutoFakeBold=3,AutoFakeSlant=.4}
  42. \XeTeXlinebreaklocale "zh"
  43. \XeTeXlinebreakskip = 0pt plus 1pt
  44. \setmonofont{Consolas}
  45.  
  46. %%%%%%%%%%%%%%%% 頁面設定 %%%%%%%%%%%%%%%%
  47. \setlength{\headheight}{15pt}  %with titling
  48. \setlength{\droptitle}{-1.5cm} %title 與上緣的間距
  49. \parindent=24pt %設定縮排的距離
  50.  
  51. \fancyhf{}
  52. \fancyhead[L]{\rightmark}
  53. \fancyhead[R]{\thepage}
  54. \renewcommand{\headrulewidth}{0.4pt}
  55. \renewcommand{\footrulewidth}{0.4pt}
  56. \pagestyle{fancy}
  57.  
  58. %%%%%%%%%%%%%%%% chapter 樣式 %%%%%%%%%%%%%%%%
  59. \usepackage{calc} \makechapterstyle{combined}{ \setlength{\midchapskip}{-60pt} \setlength{\afterchapskip}{2.5cm} \renewcommand*{\printchaptername}{\thispagestyle{fancy}} \renewcommand*{\chapnumfont}{\normalfont\sffamily\bfseries\fontsize{80}{0}\selectfont} \renewcommand*{\printchapternum}{\flushright\chapnumfont\textcolor[rgb]{.64,.79,.87}{\thechapter}} \renewcommand*{\chaptitlefont}{\normalfont\sffamily\Huge\bfseries} \renewcommand*{\printchaptertitle}[1]{ \raggedright\chaptitlefont\parbox[t]{\textwidth-3cm}{\raggedright##1}} } \chapterstyle{combined}
  60. \tcbuselibrary{skins,raster}
  61.  
  62. %%%%%%%%%%%%%%%% custom environment %%%%%%%%%%%%%%%%
  63. \input{cpp_env}
  64. \newtcbtheorem[number within=section]{eericbox}{跟著蕭電這樣做}{
  65.     colback=white,colframe=purple,fonttitle=\bfseries,
  66.     enhanced,
  67.     coltitle=white,
  68.     attach boxed title to top left={xshift=2mm,yshift=-2mm,yshifttext=-1mm},
  69.     boxed title style={colframe=purple,colback=purple},
  70. }{th}
  71.  
  72. \newtcbtheorem[number within=section]{thm}{定理}{
  73.     colback=white,colframe=purple,fonttitle=\bfseries,
  74.     enhanced,
  75.     coltitle=white,
  76.     attach boxed title to top left={xshift=2mm,yshift=-2mm,yshifttext=-1mm},
  77.     boxed title style={colframe=purple, colback=purple},
  78. }{th}
  79.  
  80. \newtcbtheorem[number within=section]{dfn}{定義}{
  81.     colback=white,colframe=green,fonttitle=\bfseries,
  82.     enhanced,
  83.     coltitle=white,
  84.     attach boxed title to top left={xshift=2mm,yshift=-2mm,yshifttext=-1mm},
  85.     boxed title style={colframe=purple, colback=purple},
  86. }{th}
  87.  
  88. \newtcbtheorem[number within=section]{lem}{引理}{
  89.     colback=white,colframe=editorGreen,fonttitle=\bfseries,
  90.     enhanced,
  91.     coltitle=white,
  92.     attach boxed title to top left={xshift=2mm,yshift=-2mm,yshifttext=-1mm},
  93.     boxed title style={colframe=editorGreen,colback=editorGreen},
  94. }{th}
  95.  
  96. \newtcbtheorem[number within=section]{prbox}{習題}{
  97.     colback=white,colframe=blue!75,fonttitle=\bfseries,
  98.     enhanced,
  99.     coltitle=white,
  100.     attach boxed title to top left={xshift=2mm,yshift=-2mm,yshifttext=-1mm},
  101.     boxed title style={colframe=blue!75,colback=blue!75},
  102. }{th}
  103.  
  104. \newcommand{\hint}[1]{
  105.     \begin{tcolorbox}[lowerbox=ignored,skin=enhanced,interior style={left color=red!35,right color=white}, colframe = white]
  106.         #1
  107.         \tcblower
  108.     \end{tcolorbox}
  109. }
  110. \newcommand{\definition}[2]{ \begin{dfn}{#1}{} #2 \end{dfn} }
  111. \newcommand{\theorem}[2]{ \begin{thm*}{#1}{} #2 \end{thm*} }
  112. \newcommand{\eeric}[1]{ \begin{eericbox}{}#1 \end{eericbox} }
  113. \newcommand{\lemma}[3]{ \begin{lem}{#1}{#2} #3 \end{lem} }
  114. \newcommand{\problem}[2]{ \begin{prbox}{#1}{} #2 \end{prbox} }
  115.  
  116. \begin{document}
  117.     %\maketitle %製作tilte page
  118.     %\tableofcontents %目錄
  119.     %%%%%%%%%%%%%%%% \include{filename} %%%%%%%%%%%%%%%%
  120.     \include{chapter10}
  121. %   \include{dp_bsearch}
  122. %   \include{basicDS+STL}
  123. %   \include{DSU}
  124. %   \include{STL應用}
  125. %   \include{MST}
  126. %   \include{shortest_path}
  127. %   \include{offline_algo}
  128. %   \include{LCA}
  129.     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  130.     %\begin{thebibliography}{99}
  131.     %\bibitem[1]{ex}\verb|http://www.example.com/|
  132.     %\end{thebibliography}
  133. \end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top