File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed
Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 4747% NOTE: natbib is loaded by econsocart.cls, but we include for completeness
4848\RequirePackage {natbib}
4949
50+ % Catchfile package for reading external files into macros
51+ % Required by: \fetchgeneratedtabular for standalone tables
52+ \RequirePackage {catchfile}
53+
5054% ═══════════════════════════════════════════════════════════════════════════
5155% BIBLIOGRAPHY DETECTION FOR STANDALONE FIGURES/TABLES
5256% ═══════════════════════════════════════════════════════════════════════════
168172% Note: \latexroot should be defined by \input{./._relpath-to-latexroot.ltx}
169173% which should be present at the top of each figure/table file
170174% ═══════════════════════════════════════════════════════════════════════════
175+
176+ % ═══════════════════════════════════════════════════════════════════════════
177+ % TABULAR DATA INCLUSION MACRO (for standalone tables)
178+ % ═══════════════════════════════════════════════════════════════════════════
179+ % Fetch dynamically-generated tabular content from external .ltx files
180+ % This allows standalone tables to compile independently while still
181+ % loading generated content from Code/HA-Models/.../*.ltx files
182+ %
183+ % Usage: \fetchgeneratedtabular{\latexroot/Code/HA-Models/.../table.ltx}
184+ \providecommand {\fetchgeneratedtabular }[1]{%
185+ \CatchFileDef {\fetchedcontent }{#1}{}%
186+ \fetchedcontent %
187+ }
188+ % ═══════════════════════════════════════════════════════════════════════════
Original file line number Diff line number Diff line change 99% % MINIMAL PACKAGE SET FOR QE SUBMISSION
1010% Bisection testing (2025-11-05) confirmed only these packages are needed:
1111
12- % Catchfile package for reading external files into macros
13- % Required by: \CatchFileDef in \fetchgeneratedtabular and @local/metadata.ltx
14- \usepackage {catchfile }
15-
1612% % FIGURES/TABLES PACKAGES (SHARED WITH STANDALONE FIGURES/TABLES)
1713% Source the minimal package set used by standalone figures/tables
1814% This ensures figures/tables compile the same way whether integrated or standalone
3834\providecommand {\whenintegrated }[1]{#1} % Execute content (doc is integrated)
3935\providecommand {\whenstandalone }[1]{} % Ignore content (doc is standalone)
4036
41- % Tabular data inclusion macro
42- % Fetch dynamically-generated tabular content from external .ltx files
43- %
44- % ARCHITECTURE: `tabulars` remain as external files so reproduce.sh can
45- % regenerate them in place. Pregenerated versions are included in submission
46- % for immediate PDF inspection. Uses catchfile package (not \input) to comply
47- % with QE journal requirements while preserving regeneration capability.
48- %
49- % Usage: \fetchgeneratedtabular{Tables/foo.ltx}
50- \providecommand {\fetchgeneratedtabular }[1]{%
51- \CatchFileDef {\fetchedcontent }{#1}{}%
52- \fetchedcontent %
53- }
37+ % NOTE: \fetchgeneratedtabular is now defined in local-qe-figs-and-tables.sty
38+ % (loaded above) to avoid duplication between main document and standalone tables.
39+ % See local-qe-figs-and-tables.sty for the command definition and documentation.
5440
5541% ═══════════════════════════════════════════════════════════════════════════
5642% CONDITIONAL PREGENERATED MARKER
You can’t perform that action at this time.
0 commit comments