% 编译方式: texify --engine=xetex 或 latexmk -xelatex 或 xelatex*2
\documentclass{ctexbook}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{diagbox}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{syntonly}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{ulem}
\usepackage{verbatim}
\usepackage{xcolor}
%\syntaxonly
\makeatletter
\newcommand{\starttoc}{
    \chapter*{\contentsname}\@starttoc{toc}
}
\makeatother
\renewcommand{\tableofcontents}{\twocolumn\starttoc\onecolumn}
\normalem
\hypersetup{
    colorlinks,
    linkcolor=blue,
    citecolor=red,
    filecolor=cyan,
    urlcolor=magenta,
}
\lstset{
    language=[18]Fortran,
    basicstyle=\ttfamily,
    keywordstyle=\color{black},
    identifierstyle=\color{black},
    stringstyle=\color{black},
    commentstyle=\itshape\color{black},
    showspaces=false,
    showstringspaces=false,
    numbers=left,
}
\usetikzlibrary{shapes,arrows.meta}
\def\bs{\textbackslash}
\def\ttt{\texttt}
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\DeclareMathOperator{\sgn}{sgn}
\newtheorem{convention}{规范}
\title{Fortran笔记}
\author{GasinAn}
\begin{document}
    \pagestyle{plain}
    \frontmatter
    \maketitle
    \include{copyright.tex}
    \setcounter{page}{1}
    \include{preface.tex}
    \tableofcontents
    \mainmatter
    \include{introduction.tex}
    \include{compiler.tex}
    \include{basic.tex}
    \include{intrinsic_type.tex}
    \include{assignment_and_operation.tex}
    \include{execution_control.tex}
    \include{array.tex}
    \include{procedure.tex}
    \include{io.tex}
    \appendix
    \include{plot.tex}
    \backmatter
\end{document}
