Skip to content

Commit 263cc2a

Browse files
committed
Make document compile with caption3
1 parent 54970ea commit 263cc2a

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

ch_inference_for_means/TeX/ch_inference_for_means.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@
648648
Elevated mercury concentrations are an important problem
649649
for both dolphins
650650
and other animals, like humans, who occasionally eat them.
651-
\setlength{\captionwidth}{86mm}
651+
\captionsetup{width=86mm}
652652

653653
\begin{figure}[h]
654654
\centering
@@ -662,7 +662,7 @@
662662
\end{minipage}
663663
\stdvspace{}
664664
\end{figure}
665-
\setlength{\captionwidth}{\mycaptionwidth}
665+
\captionsetup{width=\mycaptionwidth}
666666

667667
We will identify a confidence interval for the average mercury content in dolphin muscle using a sample of 19 Risso's dolphins from the Taiji area in Japan. The data are summarized in Figure~\ref{summaryStatsOfHgInMuscleOfRissosDolphins}. The minimum and maximum observed values can be used to evaluate whether or not there are clear outliers.
668668

ch_inference_for_props/TeX/ch_inference_for_props.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ \subsection{More on 2-proportion hypothesis tests (special topic)}
11681168
standard-quality blades.
11691169
$p_{highQ} - p_{standard} \neq 0.03$.}
11701170

1171-
\setlength{\captionwidth}{85mm}
1171+
\captionsetup{width=85mm}
11721172

11731173
\begin{figure}[h]
11741174
\centering
@@ -1183,7 +1183,7 @@ \subsection{More on 2-proportion hypothesis tests (special topic)}
11831183
\label{quadcopter_david_j}
11841184
\end{figure}
11851185

1186-
\setlength{\captionwidth}{\mycaptionwidth}
1186+
\captionsetup{width=\mycaptionwidth}
11871187

11881188
\D{\newpage}
11891189

ch_intro_to_data/TeX/ch_intro_to_data.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ \subsection{Anecdotal evidence}
884884
Data collected in this haphazard fashion are called
885885
\term{anecdotal evidence}.
886886

887-
\setlength{\captionwidth}{\textwidth-75mm}
887+
\captionsetup{width=\textwidth-75mm}
888888
\begin{figure}[h]
889889
\centering
890890
\hspace{8mm}\Figuress
@@ -899,7 +899,7 @@ \subsection{Anecdotal evidence}
899899
\label{mnWinter}}
900900
\end{minipage}
901901
\end{figure}
902-
\setlength{\captionwidth}{\mycaptionwidth}
902+
\captionsetup{width=\mycaptionwidth}
903903

904904
\begin{onebox}{Anecdotal evidence}
905905
Be careful of data collected in a haphazard fashion.

ch_regr_simple_linear/TeX/ch_regr_simple_linear.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ \subsection{Using linear regression to predict possum head lengths}
160160
the total length of each possum, from head to tail,
161161
and the length of each possum's head.
162162

163-
\setlength{\captionwidth}{0.83\mycaptionwidth}
163+
\captionsetup{width=0.83\mycaptionwidth}
164164
\begin{figure}[h]
165165
\centering
166166
\Figure[A common brushtail possum of Australia is shown. It has a brown fur coat with some gray sprinkled in along with a face and ears that somewhat resemble a house cat. The possum also has a big bushy tail.]{0.5}{brushtail_possum}
@@ -173,7 +173,7 @@ \subsection{Using linear regression to predict possum head lengths}
173173
{CC~BY~2.0~license}.}}
174174
\label{brushtail_possum}
175175
\end{figure}
176-
\setlength{\captionwidth}{\mycaptionwidth}
176+
\captionsetup{width=\mycaptionwidth}
177177

178178
%Scatterplots were introduced in Chapter~\ref{introductionToData}
179179
%as a graphical technique to present two numerical variables

ch_summarizing_data/TeX/ch_summarizing_data.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ \subsection{Robust statistics}
10091009
\end{figure}
10101010

10111011
% See `loan_int_rate_robust_ex` figure code for calculations.
1012-
\setlength{\captionwidth}{135mm}
1012+
\captionsetup{width=135mm}
10131013
\begin{figure}[ht]
10141014
\centering
10151015
\begin{tabular}{l c cc c cc}
@@ -1034,7 +1034,7 @@ \subsection{Robust statistics}
10341034
variable been different.}
10351035
\label{robustOrNotTable}
10361036
\end{figure}
1037-
\setlength{\captionwidth}{\mycaptionwidth}
1037+
\captionsetup{width=\mycaptionwidth}
10381038

10391039
\begin{exercisewrap}
10401040
\begin{nexercise} \label{interestRateWhichIsMoreRobust}

extraTeX/style/style.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
% 8.3 Caption Width
236236
\newlength{\mycaptionwidth}
237237
\setlength{\mycaptionwidth}{0.825\textwidth}
238-
\setlength{\captionwidth}{\mycaptionwidth}
238+
\captionsetup{width=\mycaptionwidth}
239239
\newcommand{\Figure}[3][]{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#3}}
240240
\newcommand{\Figures}[4][]{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#4}}
241241
\newcommand{\Figuress}[4][]{\includegraphics[width=#2]{\chapterfolder/figures/#3/#4}}

extraTeX/style/style_simple.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
% 8.3 Caption Width
236236
\newlength{\mycaptionwidth}
237237
\setlength{\mycaptionwidth}{0.825\textwidth}
238-
\setlength{\captionwidth}{\mycaptionwidth}
238+
\captionsetup{width=\mycaptionwidth}
239239
\newcommand{\Figure}[3][]{\pdftooltip{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#3}}{#1}}
240240
\newcommand{\Figures}[4][]{\pdftooltip{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#4}}{#1}}
241241
\newcommand{\Figuress}[4][]{\pdftooltip{\includegraphics[width=#2]{\chapterfolder/figures/#3/#4}}{#1}}

0 commit comments

Comments
 (0)