summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-04-29 16:32:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-04-29 16:32:41 +0000
commita5ec86a7c787832d28d5e50400ec96a5190f2555 (patch)
tree66dcdaca8fff2d82f22b221d0b9a0113402edd4d /doc/src
parentfa171dd8e5dcf364b8b3ffc90b8488111e990117 (diff)
Install a workaround for 'TeX capacity exceeded' problem
when building PDF output for recent versions of the documentation. There is probably a better answer out there somewhere, but we need something now so we can build beta releases.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/jadetex.cfg30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/src/sgml/jadetex.cfg b/doc/src/sgml/jadetex.cfg
new file mode 100644
index 00000000000..45ff76ffbbb
--- /dev/null
+++ b/doc/src/sgml/jadetex.cfg
@@ -0,0 +1,30 @@
+% $PostgreSQL: pgsql/doc/src/sgml/jadetex.cfg,v 1.1 2010/04/29 16:32:41 tgl Exp $
+%
+% This file redefines FlowObjectSetup to eliminate one of the two control
+% sequences it normally creates, thereby substantially reducing string usage
+% and permitting the complete Postgres documentation to be built without
+% overflowing a hard-to-expand TeX limit. The only known penalty is an
+% increased number of TeX warnings about ignoring duplicate definitions.
+%
+% Curiously, we only see the failure when building PDF output --- plain PS
+% output does not come anywhere close to overflowing the string table.
+% There may be another solution hidden in that observation.
+%
+\def\FlowObjectSetup#1{%
+\ifDoFOBSet
+ \ifLabelElements
+ \ifx\Label\@empty\let\Label\Element\fi
+ \fi
+ \ifx\Label\@empty\else
+ \bgroup
+ \ifNestedLink
+ \else
+ \hyper@anchorstart{\Label}\hyper@anchorend
+ \PageLabel{\Label}%
+ \fi
+ \egroup
+ \let\Label\@empty
+ \let\Element\@empty
+ \fi
+\fi
+}