Skip to content

Commit

Permalink
Update to fix parts but without messing up page numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
profvjreddi committed Jan 3, 2025
1 parent 0d682bb commit 09ee91a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
12 changes: 5 additions & 7 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,9 @@ book:
- contents/core/ai_for_good/ai_for_good.qmd
- contents/core/conclusion/conclusion.qmd
- text: "---"
- part: contents/labs/labs.qmd
chapters:
- contents/labs/overview.qmd
- contents/labs/getting_started.qmd
- part: "LABS"
- contents/labs/overview.qmd
- contents/labs/getting_started.qmd
- part: contents/labs/arduino/nicla_vision/nicla_vision.qmd
chapters:
- contents/labs/arduino/nicla_vision/setup/setup.qmd
Expand All @@ -156,9 +155,8 @@ book:
- contents/labs/shared/kws_feature_eng/kws_feature_eng.qmd
- contents/labs/shared/dsp_spectral_features_block/dsp_spectral_features_block.qmd
- text: "---"
- part: REFERENCES
chapters:
- contents/core/references.qmd
- part: "REFERENCES"
- contents/core/references.qmd

bibliography:
- contents/core/introduction/introduction.bib
Expand Down
2 changes: 1 addition & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ We've created this open-source book to demystify the process of building efficie
As a living and breathing resource, this book is a continual work in progress, reflecting the ever-evolving nature of machine learning systems. Advancements in the ML landscape drive our commitment to keeping this resource updated with the latest insights, techniques, and best practices. We warmly invite you to join us on this journey by contributing your expertise, feedback, and ideas.

## Global Reach
## Global Outreach

Thank you to all our readers and visitors. Your engagement with the material keeps us motivated.

Expand Down
19 changes: 10 additions & 9 deletions tex/header-includes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,18 @@
twoside
}

% Redefine \part to do nothing
\renewcommand{\part}[1]{%
\typeout{Skipping \detokenize{#1}}% Print message in the log file
\chapter*{#1} % Render the part title without a number
\addcontentsline{toc}{part}{#1} % Add to TOC without numbering
}

% Ensure \partname is defined, just in case it's referenced elsewhere
\renewcommand{\partname}{}
% % Redefine \part to do nothing
% \renewcommand{\part}[1]{%
% \typeout{Skipping \detokenize{#1}}% Print message in the log file
% }

% % Ensure \partname is defined, just in case it's referenced elsewhere
% \renewcommand{\partname}{}

% % Redefine \part (if you want to apply the Crimson color here)
% \titleformat{\part}[display]
Expand Down Expand Up @@ -180,14 +185,10 @@
\renewcommand{\chaptername}{Chapter}

\setcounter{tocdepth}{2}
\setlength{\cftsecnumwidth}{2.75em} % Adjust width for section numbers
\setlength{\cftsecnumwidth}{2.35em} % Adjust width for section numbers
\setlength{\cftsubsecnumwidth}{3.25em} % Adjust width for subsection numbers
\setlength{\cftsubsubsecnumwidth}{4em} % Adjust width for subsubsection numbers





% Page numbering setup
\makeatletter
% Store whether we've seen the first of each type
Expand Down

0 comments on commit 09ee91a

Please sign in to comment.