Skip to content

Commit

Permalink
Make document compile with caption3
Browse files Browse the repository at this point in the history
  • Loading branch information
user202729 committed Nov 4, 2024
1 parent 54970ea commit 263cc2a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ch_inference_for_means/TeX/ch_inference_for_means.tex
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@
Elevated mercury concentrations are an important problem
for both dolphins
and other animals, like humans, who occasionally eat them.
\setlength{\captionwidth}{86mm}
\captionsetup{width=86mm}

\begin{figure}[h]
\centering
Expand All @@ -662,7 +662,7 @@
\end{minipage}
\stdvspace{}
\end{figure}
\setlength{\captionwidth}{\mycaptionwidth}
\captionsetup{width=\mycaptionwidth}

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.

Expand Down
4 changes: 2 additions & 2 deletions ch_inference_for_props/TeX/ch_inference_for_props.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ \subsection{More on 2-proportion hypothesis tests (special topic)}
standard-quality blades.
$p_{highQ} - p_{standard} \neq 0.03$.}

\setlength{\captionwidth}{85mm}
\captionsetup{width=85mm}

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

\setlength{\captionwidth}{\mycaptionwidth}
\captionsetup{width=\mycaptionwidth}

\D{\newpage}

Expand Down
4 changes: 2 additions & 2 deletions ch_intro_to_data/TeX/ch_intro_to_data.tex
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ \subsection{Anecdotal evidence}
Data collected in this haphazard fashion are called
\term{anecdotal evidence}.

\setlength{\captionwidth}{\textwidth-75mm}
\captionsetup{width=\textwidth-75mm}
\begin{figure}[h]
\centering
\hspace{8mm}\Figuress
Expand All @@ -899,7 +899,7 @@ \subsection{Anecdotal evidence}
\label{mnWinter}}
\end{minipage}
\end{figure}
\setlength{\captionwidth}{\mycaptionwidth}
\captionsetup{width=\mycaptionwidth}

\begin{onebox}{Anecdotal evidence}
Be careful of data collected in a haphazard fashion.
Expand Down
4 changes: 2 additions & 2 deletions ch_regr_simple_linear/TeX/ch_regr_simple_linear.tex
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ \subsection{Using linear regression to predict possum head lengths}
the total length of each possum, from head to tail,
and the length of each possum's head.

\setlength{\captionwidth}{0.83\mycaptionwidth}
\captionsetup{width=0.83\mycaptionwidth}
\begin{figure}[h]
\centering
\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}
Expand All @@ -173,7 +173,7 @@ \subsection{Using linear regression to predict possum head lengths}
{CC~BY~2.0~license}.}}
\label{brushtail_possum}
\end{figure}
\setlength{\captionwidth}{\mycaptionwidth}
\captionsetup{width=\mycaptionwidth}

%Scatterplots were introduced in Chapter~\ref{introductionToData}
%as a graphical technique to present two numerical variables
Expand Down
4 changes: 2 additions & 2 deletions ch_summarizing_data/TeX/ch_summarizing_data.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ \subsection{Robust statistics}
\end{figure}

% See `loan_int_rate_robust_ex` figure code for calculations.
\setlength{\captionwidth}{135mm}
\captionsetup{width=135mm}
\begin{figure}[ht]
\centering
\begin{tabular}{l c cc c cc}
Expand All @@ -1034,7 +1034,7 @@ \subsection{Robust statistics}
variable been different.}
\label{robustOrNotTable}
\end{figure}
\setlength{\captionwidth}{\mycaptionwidth}
\captionsetup{width=\mycaptionwidth}

\begin{exercisewrap}
\begin{nexercise} \label{interestRateWhichIsMoreRobust}
Expand Down
2 changes: 1 addition & 1 deletion extraTeX/style/style.tex
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
% 8.3 Caption Width
\newlength{\mycaptionwidth}
\setlength{\mycaptionwidth}{0.825\textwidth}
\setlength{\captionwidth}{\mycaptionwidth}
\captionsetup{width=\mycaptionwidth}
\newcommand{\Figure}[3][]{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#3}}
\newcommand{\Figures}[4][]{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#4}}
\newcommand{\Figuress}[4][]{\includegraphics[width=#2]{\chapterfolder/figures/#3/#4}}
Expand Down
2 changes: 1 addition & 1 deletion extraTeX/style/style_simple.tex
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
% 8.3 Caption Width
\newlength{\mycaptionwidth}
\setlength{\mycaptionwidth}{0.825\textwidth}
\setlength{\captionwidth}{\mycaptionwidth}
\captionsetup{width=\mycaptionwidth}
\newcommand{\Figure}[3][]{\pdftooltip{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#3}}{#1}}
\newcommand{\Figures}[4][]{\pdftooltip{\includegraphics[width=#2\textwidth]{\chapterfolder/figures/#3/#4}}{#1}}
\newcommand{\Figuress}[4][]{\pdftooltip{\includegraphics[width=#2]{\chapterfolder/figures/#3/#4}}{#1}}
Expand Down

0 comments on commit 263cc2a

Please sign in to comment.