-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathopenintroductiontoct.tex
186 lines (137 loc) · 5.72 KB
/
openintroductiontoct.tex
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
\documentclass[twoside, openright]{book}
%glossary and indexing stuff
\usepackage[toc, nopostdot, numberedsection]{glossaries}
\usepackage{datatool}
%\newglossary*{catstatements}{Chapter \ref{chap:catstatements} Key Terms}
%\newglossary*{catsyllogisms}{Key Terms}
\renewcommand{\glsnamefont}[1]{\makefirstuc{#1}}
\makeglossaries
%General packages
\usepackage{answers}
\usepackage{textcomp}
\usepackage{anyfontsize}
\usepackage{geometry}
\usepackage{url}
\usepackage{changepage}
\usepackage{syntonly}
\usepackage{enumitem}
\usepackage{turnstile}
\usepackage[normalem]{ulem}
\usepackage{fixltx2e}
\usepackage{wasysym}
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{fancyref}
\usepackage{etoolbox}
\usepackage[utf8]{inputenc}
%\usepackage{amsthm} for some reason, this conflicts with the fitch.sty part of openlogic.sty.
%%% Bibstuff
\usepackage[authordate,autocite=inline,backend=biber, natbib]{biblatex-chicago}
\bibliography{tex/z-openlogic}
% To typeset the bibliography, you need to run "biber --output-safechars openintroductiontoct" from the command line. You can't use the function within TeXworks, because it doen't have the --output-safechars flag. Without that flag, biber is unable to handle many characters used for Sanskrit words, like the n with a dot under it.
%%% graphics packages %%%
\usepackage{tikz}
\usetikzlibrary{shapes,backgrounds,matrix,arrows,decorations,positioning,arrows.new,decorations.markings}
\usepgflibrary{arrows.new}
\usepackage{graphicx}
\usepackage{xcolor}
%%% Table and figure packages %%%
\usepackage{float}
\usepackage[singlelinecheck=false, skip=0pt]{caption} %left aligns captions for tables, moves them closer to table.
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{tabu}
\usepackage[framemethod=1]{mdframed}
\usepackage{wrapfig} %I used this to put a frame around tables.
\tabulinesep=.75ex
\usepackage{colortbl}
\floatstyle{plain}
\restylefloat{figure}
\usepackage[export]{adjustbox}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{array}
\newcolumntype{?}{!{\vrule width 1pt}}
%linking and bookmarks in the pdf.
\usepackage{hyperref}
\hypersetup{pdftex,colorlinks=true,allcolors=blue}
\usepackage{hypcap}
\usepackage{openintroduction}
\pdfinfo{
/Title (An Open Introduction to Logic)
/Author (J. Robert Loftis, Cathal Woods, and P.D. Magnus)
/Subject (An open access introductory textbook in logic and critical thinking)
)
}
\begin{document}
%\label{showanswers} %uncomment this tag and typeset twice to show answers
%\label{blank_prob_set} %uncomment this tag and typeset twice to create a blank problem set sheet. Don't use with \label{showanswers} uncommented
\raggedright
\setlength{\parindent}{1em}
\setlength{\parskip}{1em}
\tikzset{myarrowhead/.style={decoration={markings,mark=at position 1 with %
{\arrow[scale=2,>=stealth]{>}}},postaction={decorate}}}
\frontmatter
\pagestyle{plain} %Says there are no running heads, only page numbers centered at the bottom.
\include{tex/01-cover-ct}
\include{tex/02-frontmatter}
{
\setlength{\parskip}{0em}
\cftpagenumbersoff{part}
%\cftpagenumbersoff{chapter}
\renewcommand{\cftpartpresnum}{\sf\Large\partname\ }
\tableofcontents
}
\include{tex/03-aboutthisbook}
\include{tex/04-acknowledgements}
\mainmatter
\setlength{\parindent}{1em}
\pagestyle{headings} % puts the running heads back.
\label{full_version} %Include this label to make cross references work right when typesetting full text
\label{CTVersion}
%\part{Basic Concepts} \label{part:basic_concepts}
%\include{tex/ch01-whatislogic} %label in text to remove explanation section
%\include{tex/ch02-basicevaluation}
\include{tex/ch19-maps}
%\include{tex/ch15-emotions}
%\include{tex/ch18-sources}
%\include{tex/ch17-analogy}
\label{part:CT}
%
%\part{Critical Thinking}
%\include{tex/ch12-whatiscriticalthinking}
%\include{tex/ch13-substitutes}
%\include{tex/ch14-incompletearguments}
%
%\include{tex/ch16-generalizations}
%
%
%\include{tex/ch20-practicalarguments}
%\part{Inductive and Scientific Reasoning} \label{part:inductive_scientific}
%\include{tex/ch21-whatareinductionandscientificreasoning}
%\include{tex/ch22-inductioninscience}
%\include{tex/ch23-mills-methods}
%\include{tex/ch24-causation-explanation}
%\include{tex/ch25-Analogy-in-Science}
%\include{tex/ch26-experimental-methods}
%\include{tex/ch27-Association-Diagrams-Cross-Tabulations}
%\include{tex/ch28-Explanation-Building}
%\include{tex/ch29-Problems-In-Induction}
\appendix
\iflabelexists{part:formal_logic}{\include{tex/z-app-notation}}{}
%\include{app-solutions}
%Bibstuff
%If the {part:CT} label is found, LaTeX will typeset separate bibliographies for sample passages and logical sources.
\iflabelexists{part:CT}{%text for CT version}
\defbibnote{sample}{\textit{ \large This bibliography includes all sources except for those that were used as examples for logical analysis, either in the main text or problem sets}}
\printbibliography [keyword=samplepassage, title=Bibliography of Sample Passages, prenote=sample, heading=bibnumbered] %for separate bibs sample passages and general citations
\printbibliography [notkeyword=samplepassage, title=General Bibliography, heading=bibnumbered] %for separate bibs sample passages and general citations
}% End CT version
{\printbibliography[heading=bibnumbered]} %single bib for non-CT version
%%The way I’ve set this up now is that there is one bib for sample passages and one bib for everything else. This means that it would not be possible to put one entry in both bibliographies. (This might be needed for Aristotle.) To do that, you will need to define a separate logicsource category
\setglossarysection{chapter}
\printglossaries
\iflabelexists{part:formal_logic}{\include{tex/zz-quickreference}}{}
\include{tex/zzz-backmatter}
\end{document}