Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-fiddle.git
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Table of Contents Macro definition
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% TODO: These should be used instead of the definition below...
%\definelayout[RecipeTableOfContents]
%\definemakeup[RecipeTableOfContents]

% Themes can override this to provide their own ToC title.
\define\RecipeTextToC{\startalignment[middle]Contents\stopalignment}

% This macro is used in the final .tex document to place the ToC.
\define\RecipeTableOfContents{%
  \setupheadtext[en][content={\RecipeTextToC}]
  \setuplayout[RecipeStyleToCPageLayout]
  \completecontent
  \setuplayout[RecipeStylePageLayout]
}