-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththisbook.sty
102 lines (83 loc) · 2.91 KB
/
thisbook.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
% https://tex.stackexchange.com/a/44277/15
%-------
%% code from mathabx.sty and mathabx.dcl
\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{
<5> <6> <7> <8> <9> <10>
<10.95> <12> <14.4> <17.28> <20.74> <24.88>
mathx10
}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}
\DeclareMathAccent{\widecheck}{0}{mathx}{"71}
%\DeclareMathAccent{\wideparen}{0}{mathx}{"75}
\def\cs#1{\texttt{\char`\\#1}}
%-----------------------------------------
\definecolor{BlueDarker}{HTML}{0000AA}
\definecolor{RedDarker}{HTML}{AA0000}
\definecolor{PurpleDarker}{HTML}{550055}
\definecolor{OrangeDarker}{HTML}{AA5500}
\definecolor{GreenDarker}{HTML}{00AA00}
\definecolor{YellowDarker}{HTML}{AAAA00}
%-----------------------------------------
% proof env:
\usepackage{amsthm}
%-----------------------------------------
\usepackage{macros_cal}
%-----------------------------------------
\newcommand{\mychapter}[1]{%
\chapter{#1}%
\thispagestyle{empty}%
}
%-----------------------------------------
% Switch to plain L for Lagrangians and calL for Lagrangian densities.
% but use a macro to allow for easy switch back.
\newcommand{\Lq}[0]{L}
%-----------------------------------------
\usepackage{peeters_figures}
\usepackage{txfonts}
\newcommand{\chapcite}[1]{\ref{chap:#1}}
% http://tex.stackexchange.com/questions/75773/how-to-reference-problems-by-the-text-label-in-an-exercise-envioronment
% This is for \cref{} used in \makeproblem, \makeanswer stuff, and in some sources also for figure references.
\usepackage[english]{cleveref}
% \inbookchapcite{chaplabel}{book}. Use for reference now within this "book".
% Really want this to be conditional, so that if book == classicalmechanics (current book directory/basename), this is like so
\newcommand{\bookchapcite}[2]{\ref{chap:#1}}
% but if book != classicalmechanics, then we do:
%\newcommand{\bookchapcite}[2]{\citep{#2:#1}}
\newcommand{\gpgradezeroNoOp}[1]{{#1}}
%-----------------------------------------
%
% stubs for article class.
%
\newcommand{\blogpage}[1]{}
\newcommand{\email}[1]{}
\newcommand{\beginArtWithToc}[0]{}
\newcommand{\beginArtNoToc}[0]{}
\newcommand{\EndArticle}[0]{}
\newcommand{\EndNoBibArticle}[0]{}
\newcommand{\revisionInfo}[1]{}
\newcommand{\gitRevisionInfo}[1]{}
\newcommand{\keywords}[1]{}
%-----------------------------------------
\newcommand{\nbref}[1]{%
\itemRef{classicalmechanics}{#1}%
\index{Mathematica}%
}
% with an alternate label for the link.
% {nb}{text}
% nb of the form: ps2b:countItersAndPlot.m
\newcommand{\nbcite}[2]{%
\itemCite{classicalmechanics}{#1}{#2}%
}
%-----------------------------------------
\usepackage{book_layout}
\usepackage{peeters_layout_exercise}
\usepackage{macros_qed}
%-----------------------------------------
\RequirePackage{makeidx}
\makeindex
%-----------------------------------------
% proof environment:
%\usepackage{amsthm}
%-----------------------------------------