310
310
% 与模板选项相同,布尔型的参数可以省略 \meta{选项} = true 中的“= true”。
311
311
% 另有一些选项包含子选项,如 cover 和 info 等。它们可以按如下两种等价方式来设定:
312
312
%
313
- % \begin{latex}
313
+ % \begin{latex}[morekeywords={\BITSetup},emph={[1]BITSetup,cover,date,info,title,author}]
314
314
% \BITSetup{
315
315
% cover = {
316
316
% date = 2022年6月,
324
324
%
325
325
% 或者
326
326
%
327
- % \begin{latex}[morekeywords={\BITSetup},emph={[1]cover,date,info,title,author}]
327
+ % \begin{latex}[morekeywords={\BITSetup},emph={[1]BITSetup, cover,date,info,title,author}]
328
328
% \BITSetup{
329
329
% cover / date = 2022年6月,
330
330
% info / author = Feng Kaiyu,
482
482
% \end{function}
483
483
%
484
484
% \begin{function}{info/major,info/majorEn}
485
- % \begin{bitsyntax}[emph={[1]majorEn}]
485
+ % \begin{bitsyntax}[emph={[1]major, majorEn}]
486
486
% major = (*\marg{字符串}*)
487
487
% majorEn = (*\marg{字符串}*)
488
488
% \end{bitsyntax}
630
630
% 页眉文字。
631
631
% \end{function}
632
632
%
633
- % \subsubsection{样式信息}
633
+ % \subsubsection{目录选项}
634
+ %
635
+ % \begin{function}{TOC}
636
+ % \begin{bitsyntax}[emph={[1]TOC}]
637
+ % TOC = (*\marg{键值列表}*)
638
+ % TOC/(*\meta{key}*) = (*\meta{value}*)
639
+ % \end{bitsyntax}
640
+ %
641
+ % 该选项包含许多子项目,用于调整其他选项。具体内容见下。
642
+ % \end{function}
643
+ %
644
+ % \begin{function}{TOC/abstract,TOC/abstractEn}
645
+ % \begin{bitsyntax}[emph={[1]abstract,abstractEn}]
646
+ % abstract = (*(true)|false*)
647
+ % \end{bitsyntax}
648
+ %
649
+ % \textit{此选项一般不需要用户自行修改。}
650
+ %
651
+ % 是否在目录中索引摘要。
652
+ % \end{function}
653
+ %
654
+ % \begin{function}{TOC/symbols}
655
+ % \begin{bitsyntax}[emph={[1]symbols}]
656
+ % abstract = (*(true)|false*)
657
+ % \end{bitsyntax}
658
+ %
659
+ % \textit{此选项一般不需要用户自行修改。}
660
+ %
661
+ % 是否在目录中索引主要符号对照表。
662
+ % \end{function}
663
+ %
664
+ % \subsubsection{附录选项}
665
+ %
666
+ % \begin{function}{appendices}
667
+ % \begin{bitsyntax}[emph={[1]appendices}]
668
+ % appendices = (*\marg{键值列表}*)
669
+ % appendices/(*\meta{key}*) = (*\meta{value}*)
670
+ % \end{bitsyntax}
671
+ %
672
+ % 该选项包含许多子项目,用于调整其他选项。具体内容见下。
673
+ % \end{function}
674
+ %
675
+ % \begin{function}{appendices/chapterLevel}
676
+ % \begin{bitsyntax}[emph={[1]chapterLevel}]
677
+ % chapterLevel = (*<(false)|true>*)
678
+ % \end{bitsyntax}
679
+ %
680
+ % \textit{此选项一般不需要用户自行修改。}
681
+ %
682
+ % 开启后,可以使用以「chapter」为顶层的附录格式。
683
+ %
684
+ % \begin{latex}[emph={[1]appendices,chapter}]
685
+ % \begin{appendices}
686
+ % \chapter{附录A 题目}
687
+ % (*\meta{附录A 内容}*)
688
+ % \chapter{附录B 题目}
689
+ % (*\meta{附录B 内容}*)
690
+ % \end{appendices}
691
+ % \end{latex}
692
+ % \end{function}
693
+ %
694
+ % \begin{function}{appendices/title}
695
+ % \begin{bitsyntax}[emph={[1]title}]
696
+ % title = (*\meta{字符串}*)
697
+ % \end{bitsyntax}
698
+ %
699
+ % 可以覆盖附录的标题名称,默认为「附录」。
700
+ % \end{function}
701
+ %
702
+ % \begin{function}{appendices/TOCTitle}
703
+ % \begin{bitsyntax}[emph={[1]TOCTitle}]
704
+ % TOCTitle = (*\meta{字符串}*)
705
+ % \end{bitsyntax}
706
+ %
707
+ % 可以覆盖附录在目录中的名称,默认为「附录」。
708
+ % \end{function}
709
+ %
710
+ % \subsubsection{其他配置}
634
711
%
635
712
% \begin{function}{misc}
636
713
% \begin{bitsyntax}[emph={[1]misc}]
660
737
%
661
738
% \begin{function}{\MakeCover}
662
739
%
663
- % %%% TODO:
740
+ % %%% TODO:
741
+ %
664
742
% \textit{封面内容会根据模板参数中\meta{type}的值而变化。}
665
743
%
666
744
% 绘制封面。
693
771
% \begin{function}{abstract}
694
772
% \begin{bitsyntax}[emph={[1]abstract}]
695
773
% \begin{abstract}
696
- % \meta{中文摘要}
774
+ % (* \meta{中文摘要}*)
697
775
% \end{abstract}
698
- %
699
- % \begin{abstract}(*\oarg{可选参数}*)
700
- % \meta{中文摘要}
701
- % \end{abstract}
702
- % \end{bitsyntax}
703
776
% \end{function}
704
777
%
705
778
% \begin{function}{abstractEn}
706
779
% \begin{bitsyntax}[emph={[1]abstractEn}]
707
780
% \begin{abstractEn}
708
- % \meta{英文摘要}
709
- % \end{abstractEn}
710
- %
711
- % \begin{abstractEn}(*\oarg{可选参数}*)
712
- % \meta{英文摘要}
781
+ % (*\meta{英文摘要}*)
713
782
% \end{abstractEn}
714
783
% \end{bitsyntax}
715
784
%
719
788
%
720
789
% \end{function}
721
790
%
722
- % \begin{function}{addTOC}
723
- % \begin{bitsyntax}[emph={[1]addTOC}]
724
- % addTOC = (*<(true)|false>*)
725
- % \end{bitsyntax}
726
- %
727
- % 摘要的可选参数。
728
- %
729
- % 添加摘要到目录,默认开启。
730
- % \end{function}
731
- %
732
791
% \begin{function}{\MakeTOC,\listoffigures,\listoftables}
733
792
%
734
793
% 绘制目录、插图目录与表格目录。
735
794
% \end{function}
736
795
%
737
796
% \begin{function}{symbols}
738
797
% \begin{bitsyntax}[emph={[1]symbols}]
739
- % \begin{symbols}(*\oarg{可选参数}*)
798
+ % \begin{symbols}
740
799
% \item[BIT] 北京理工大学的英文缩写
741
800
% \item[\LaTeX] 一个很棒的排版系统
742
801
% \end{symbols}
772
831
%
773
832
% \begin{function}{algorithm,theorem,lemma,proposition,corollary,axiom,definition,conjecture,example,case,remark}
774
833
% \begin{bitsyntax}[emph={[2]proof}]
834
+ % \begin{theorem}[留数定理]
835
+ % (*\meta{定理内容}*)
836
+ % \end{theorem}
837
+ %
775
838
% \begin{proof}(*\oarg{小标题}*)
776
839
% (*\meta{证明过程}*)
777
840
% \end{proof}
833
896
% \begin{function}{conclusion}
834
897
% \begin{bitsyntax}[emph={[1]conclusion}]
835
898
% \begin{conclusion}
836
- % \meta{结论}
899
+ % (* \meta{结论}*)
837
900
% \end{conclusion}
838
901
% \end{bitsyntax}
839
902
% \end{function}
859
922
%
860
923
% \begin{function}{appendices}
861
924
% \begin{bitsyntax}[emph={[1]appendices}]
862
- % \begin{appendices}(*\oarg{可选参数}*)
925
+ % \begin{appendices}
863
926
% \section{附录A 题目}
864
- % \meta{附录A 内容}
927
+ % (* \meta{附录A 内容}*)
865
928
% \section{附录B 题目}
866
- % \meta{附录B 内容}
929
+ % (* \meta{附录B 内容}*)
867
930
% \end{appendices}
868
931
% \end{bitsyntax}
869
932
%
870
933
% 附录。
871
934
% \end{function}
872
935
%
873
- % \begin{function}{chapterLevel}
874
- % \begin{bitsyntax}[emph={[1]chapterLevel}]
875
- % chapterLevel = (*<(false)|true>*)
876
- % \end{bitsyntax}
877
- %
878
- % 附录的可选参数。
879
- %
880
- % 开启后,可以使用以「chapter」为顶层的附录格式。
881
- %
882
- % \begin{latex}
883
- % \begin{appendices}[chapterLevel=true]
884
- % \chapter{附录A 题目}
885
- % \meta{附录A 内容}
886
- % \chapter{附录B 题目}
887
- % \meta{附录B 内容}
888
- % \end{appendices}
889
- % \end{latex}
890
- % \end{function}
891
- %
892
- % \begin{function}{title}
893
- % \begin{bitsyntax}[emph={[1]title}]
894
- % title = (*\meta{字符串}*)
895
- % \end{bitsyntax}
896
- %
897
- % 附录的可选参数。
898
- %
899
- % 可以覆盖附录的标题名称,默认为「附录」。
900
- % \end{function}
901
- %
902
- % \begin{function}{TOCTitle}
903
- % \begin{bitsyntax}[emph={[1]TOCTitle}]
904
- % TOCTitle = (*\meta{字符串}*)
905
- % \end{bitsyntax}
906
- %
907
- % 附录的可选参数。
908
- %
909
- % 可以覆盖附录在目录中的名称,默认为「附录」。
910
- % \end{function}
911
- %
912
936
% \begin{function}{publications}
913
- % \begin{bitsyntax}[emph={[1]publications}]
937
+ % \begin{bitsyntax}[emph={[1]publications,addtocategory,printbibliography }]
914
938
% \begin{publications}
915
939
% \nocite{\meta{引用内容的key}}
916
940
% \addtocategory{mypub}{\meta{引用内容的key}}
924
948
% \begin{function}{acknowledgements}
925
949
% \begin{bitsyntax}[emph={[1]acknowledgements}]
926
950
% \begin{acknowledgements}
927
- % \meta{致谢内容}
951
+ % (* \meta{致谢内容}*)
928
952
% \end{acknowledgements}
929
953
% \end{bitsyntax}
930
954
%
934
958
% \begin{function}{resume}
935
959
% \begin{bitsyntax}[emph={[1]resume}]
936
960
% \begin{resume}
937
- % \meta{个人简介内容}
961
+ % (* \meta{个人简介内容}*)
938
962
% \end{resume}
939
963
% \end{bitsyntax}
940
964
%
@@ -4544,13 +4568,16 @@ footskip=0.7cm% 页脚 1.8cm %
4544
4568
style=lstStyleBase,
4545
4569
frame=l,
4546
4570
rulecolor=\color {purple},
4547
- language=bash}
4571
+ language=bash,
4572
+ }
4548
4573
4549
4574
\lstdefinestyle {lstStyleLaTeX}{%
4550
4575
style=lstStyleBase,
4551
4576
frame=l,
4552
4577
rulecolor=\color {violet},
4553
- language=[LaTeX]TeX}
4578
+ language=[LaTeX]TeX,
4579
+ emphstyle=[1]\color {teal},
4580
+ }
4554
4581
4555
4582
\lstdefinestyle {lstStyleSyntax}{%
4556
4583
style=lstStyleBase,
@@ -4560,7 +4587,7 @@ footskip=0.7cm% 页脚 1.8cm %
4560
4587
emphstyle=[1]\color {teal},
4561
4588
}
4562
4589
4563
- \lstnewenvironment {latex}{\lstset {style=lstStyleLaTeX}}{}
4590
+ \lstnewenvironment {latex}[1][] {\lstset {style=lstStyleLaTeX, #1 }}{}
4564
4591
\lstnewenvironment {shell}{\lstset {style=lstStyleShell}}{}
4565
4592
\lstnewenvironment {bitsyntax}[1][]{\lstset {style=lstStyleSyntax, #1}}{}
4566
4593
0 commit comments