Skip to content

Commit b09c522

Browse files
pwt-cdclaude
andcommitted
📚 Add table captions and figures for complete PDF navigation
- Add multiple LaTeX compilation passes (3 passes) for TOC/LOF/LOT generation - Add captions to longtables for List of Tables functionality: - 'Complete BOOST Entity Summary with Thematic Areas' - 'BOOST Entity Relationship Foreign Key Mappings' - Add placeholder figures for List of Figures functionality: - 'Complete BOOST Entity Relationship Diagram Overview' - 'BOOST Thematic Areas and Entity Organization' - Add auxiliary file checking for debugging - This should resolve missing TOC, List of Tables, and List of Figures 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 7908dfd commit b09c522

File tree

4 files changed

+54
-3
lines changed

4 files changed

+54
-3
lines changed

.github/workflows/build-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ jobs:
179179
# Try LaTeX build first
180180
if [ -f "boost-spec.tex" ]; then
181181
echo "🔧 Building PDF from LaTeX..."
182-
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || echo "LaTeX build failed, trying Pandoc..."
182+
echo "📄 Running first LaTeX pass..."
183+
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || echo "LaTeX first pass failed"
184+
echo "📄 Running second LaTeX pass (for TOC, LOF, LOT)..."
185+
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || echo "LaTeX second pass failed"
186+
echo "📄 Running third LaTeX pass (for cross-references)..."
187+
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || echo "LaTeX third pass failed, trying Pandoc..."
183188
fi
184189
185190
# Fallback to Pandoc HTML->PDF conversion

.github/workflows/build-dev-docs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,16 @@ jobs:
143143
# Try LaTeX build first
144144
if [ -f "boost-spec.tex" ]; then
145145
echo "🔧 Attempting LaTeX PDF build with shell-escape..."
146+
echo "📄 Running first LaTeX pass..."
146147
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || true
148+
echo "📄 Running second LaTeX pass (for TOC, LOF, LOT)..."
149+
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || true
150+
echo "📄 Running third LaTeX pass (for cross-references)..."
151+
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || true
152+
153+
# Check auxiliary files generated
154+
echo "🔍 Checking generated auxiliary files..."
155+
ls -la *.aux *.toc *.lof *.lot *.log 2>/dev/null || echo "Some auxiliary files missing"
147156
148157
# Check if PDF was actually generated (ignore LaTeX warnings)
149158
if [ -f "boost-spec.pdf" ]; then

drafts/current/specifications/tex/entity-reference-generated.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ \subsection{Entity Summary Table}
55
\label{sec:entity-summary-generated}
66

77
\begin{longtable}{@{}p{0.25\textwidth}p{0.15\textwidth}p{0.45\textwidth}p{0.1\textwidth}@{}}
8+
\caption{Complete BOOST Entity Summary with Thematic Areas}
9+
\label{tab:entity-summary}\\
810
\toprule
911
\textbf{Entity} & \textbf{Thematic Area} & \textbf{Description} & \textbf{Fields} \\
1012
\midrule
1113
\endfirsthead
14+
15+
\multicolumn{4}{c}{\textbf{Table \thetable{} (continued): Complete BOOST Entity Summary with Thematic Areas}} \\
1216
\toprule
1317
\textbf{Entity} & \textbf{Thematic Area} & \textbf{Description} & \textbf{Fields} \\
1418
\midrule
@@ -56,10 +60,14 @@ \subsection{Entity Relationship Map}
5660
The following table shows all foreign key relationships between entities:
5761

5862
\begin{longtable}{@{}p{0.2\textwidth}p{0.2\textwidth}p{0.2\textwidth}p{0.3\textwidth}@{}}
63+
\caption{BOOST Entity Relationship Foreign Key Mappings}
64+
\label{tab:entity-relationships}\\
5965
\toprule
6066
\textbf{Source Entity} & \textbf{Field} & \textbf{Target Entity} & \textbf{Description} \\
6167
\midrule
6268
\endfirsthead
69+
70+
\multicolumn{4}{c}{\textbf{Table \thetable{} (continued): BOOST Entity Relationship Foreign Key Mappings}} \\
6371
\toprule
6472
\textbf{Source Entity} & \textbf{Field} & \textbf{Target Entity} & \textbf{Description} \\
6573
\midrule

drafts/current/specifications/tex/erd-diagrams.tex

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,38 @@ \subsection{Complete Entity Relationship Overview}
1717
\end{itemize}
1818

1919
% Static ERD diagrams will be inserted here
20-
% \includegraphics[width=\textwidth]{diagrams/boost-erd-complete.pdf}
20+
% Note: Placeholder figure for List of Figures functionality
21+
\begin{figure}[H]
22+
\centering
23+
\fbox{\parbox{0.8\textwidth}{\centering
24+
\vspace{2cm}
25+
\textbf{BOOST Entity Relationship Diagram}\\[0.5cm]
26+
\textit{Complete ERD showing all 33 interconnected entities}\\
27+
\textit{across 7 thematic areas}\\[0.5cm]
28+
\textcolor{gray}{Interactive version available at:\\
29+
\texttt{boost-spec.html\#erd-navigator}}\\
30+
\vspace{2cm}
31+
}}
32+
\caption{Complete BOOST Entity Relationship Diagram Overview}
33+
\label{fig:boost-erd-complete}
34+
\end{figure}
2135

2236
\subsection{Thematic Area Diagrams}
2337
\label{sec:thematic-area-diagrams}
2438

25-
% Individual thematic area diagrams will be inserted here
39+
% Individual thematic area diagrams will be inserted here
40+
\begin{figure}[H]
41+
\centering
42+
\fbox{\parbox{0.8\textwidth}{\centering
43+
\vspace{2cm}
44+
\textbf{BOOST Thematic Areas Structure}\\[0.5cm]
45+
\textit{7 thematic areas organizing 33 entities}\\[0.5cm]
46+
\coretraceability{Core Traceability} • \organizational{Organizational Foundation}\\
47+
\materialsupply{Material \& Supply Chain} • \transaction{Transaction Management}\\
48+
\sustainability{Measurement \& Verification} • \geographic{Geographic \& Tracking}\\
49+
\reporting{Compliance \& Reporting}\\[0.5cm]
50+
\vspace{1cm}
51+
}}
52+
\caption{BOOST Thematic Areas and Entity Organization}
53+
\label{fig:boost-thematic-areas}
54+
\end{figure}

0 commit comments

Comments
 (0)