-
Notifications
You must be signed in to change notification settings - Fork 0
/
Solutions.tex
executable file
·146 lines (117 loc) · 4.18 KB
/
Solutions.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
\documentclass[9pt,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{relsize}
\usepackage{multicol}
%\usepackage{xr}
\usepackage{siunitx}
%%%%%%%%%%%%%%%%
%
% TRIANGLE OF POWER
%
% https://tex.stackexchange.com/questions/307833/how-to-represent-the-triangle-of-power-in-latex
%
%%%%%%%%%%%%%%%
\newcommand{\dotriangle}[1]{%
\raisebox{-.7ex}{$\vcenter{#1\kern.2ex\hbox{$\triangle$}\kern.2ex}$}%
}
\newcommand{\tripow}[3]{% Syntax: \tripow{#1}{#2}{#3} gives you #1 ^ {#2} = #3
\mathop{% We want it to an operator
\mathchoice% We want different functionality in text and display mode
{% DISPLAY MODE
\vphantom{\dotriangle\LARGE}% \vphantom off-set: places the bottom entries.
\rule[-1.4ex]{0.1em}{0pt}% Syntax: [<vetical drop #1>]{<left margin>}{<Should be 0>}
_{\scriptstyle #1}% style of #1 entry
{\overset{\scriptstyle #2}% style of #2 entry
{\dotriangle\LARGE}}% Size of the displayed operator - should match the \vphantom off-set.
\rule[-1.4ex]{0em}{0pt}% Syntax: [<vetical drop #3>]{<Should be 0>}{<Should be 0>}
_{\scriptstyle #3}% style of #3 entry
\rule[0ex]{0.1em}{0pt}% Syntax: [<Should be 0>]{<right margin>}{<Should be 0>}
}%
{% TEXT MODE
\vphantom{\dotriangle\normalsize}%
\rule[-1.05ex]{-0.7ex}{0pt}%
_{#1}%
\overset{#2}%
{\dotriangle\normalsize}% size in text mode
\rule[-1.05ex]{0pt}{0pt}%
_{#3}%
\rule[0ex]{-0.2em}{0pt}%
}%
{% SCRIPT MODE
\vphantom{\dotriangle\normalsize}%
\rule[-1.05ex]{-0.8ex}{0pt}%
_{\scriptstyle #1}%
{\overset{\scriptstyle #2}%
{\dotriangle\normalsize}}% size in script mode
\rule[-1.05ex]{0pt}{0pt}%
_{\scriptstyle #3}%
\rule[0ex]{-0.3em}{0pt}%
}%
{}% SCRIPTSCRIPT MODE
}%
}
%Check if we are compiling under latex or pdflatex
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex]{graphicx}
\else
\usepackage[dvips]{graphicx}
\fi
\usepackage{pdfpages}
% Set the margins
\setlength{\marginparwidth}{0pt}
\setlength{\marginparsep}{0pt}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{0in}
\setlength{\headheight}{0.125in}
\setlength{\headsep}{0.25in}
\setlength{\textheight}{8.75in}
\setlength{\footskip}{0.35in}
% \setlength{\headwidth}{\textwidth}
\raggedbottom
% This package sets the page header style
\usepackage{calc}
\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\fancyheadoffset[LE,RO]{\marginparsep+\marginparwidth}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\fancyfoot[LO,RE]{\scriptsize{Duplication or distribution in any form, electronic or otherwise, is strictly prohibited.}}
\renewcommand{\chaptermark}[1]{\markboth{Solutions}{\chaptername \ \thechapter \ \ #1}}
\usepackage[labelfont=bf,labelsep=none]{caption}
\DeclareCaptionFormat{suggested}{{\small #1#2 #3}}
\captionsetup{format=suggested}
% This package makes hyperlinks for the index and bookmarks for the pdf
\usepackage{xr-hyper}
\usepackage[bookmarksnumbered,pdfpagelabels=true,plainpages=false,pdfstartview=FitH,colorlinks=true,linkcolor=black,citecolor=black,urlcolor=blue]{hyperref}
\externaldocument{main}
\renewcommand\theequation{\arabic{equation}}
\allowdisplaybreaks
\usepackage{tikz}
\begin{document}
\frontmatter
\chapter*{Solutions for \emph{Elementary Mathematical Analysis}}
You'll need to create a new file for the solution of each problem in the
solutions subdirectory. Also, if you rename your main file,
change TextbookExample in this document (two places) to your new name.
\cleardoublepage
\addcontentsline{toc}{chapter}{Table of Contents}
\setcounter{tocdepth}{1}
\tableofcontents
\mainmatter
\pagestyle{fancy}
%\setcounter{chapter}{-1}
\chapter{Solutions}
\renewcommand{\theenumi}{\alph{enumi}}
\begin{multicols}{2}
\input{main.sln}
\end{multicols}
\end{document}