% Copyright 2026 Open-Guji (https://github.com/open-guji) % % Licensed under the Apache License, Version 2.0 (the "License"); % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % http://www.apache.org/licenses/LICENSE-2.0 % % Unless required by applicable law or agreed to in writing, software % distributed under the License is distributed on an "AS IS" BASIS, % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. % 欧式族谱.cfg % European-style genealogy table layout % Based on default black-and-white template with smaller margins % ============================================================================= % Grid Calculation % ============================================================================= % % Page dimensions: % paper-width = 1136pt (40cm), paper-height = 894.6pt (31.5cm) % margin: top=80pt, bottom=60pt, left=70pt, right=70pt % % Raw content area: % content-width = 1136 - 70 - 70 = 996pt % content-height = 894.6 - 80 - 60 = 754.6pt % % Border parameters: % outer-border-thickness = 4pt % outer-border-sep = 3pt % border-thickness = 0.4pt % column-padding-top = 5pt (applied within each column, not in height calculation) % column-padding-bottom = 5pt % % Width calculation: % Both sides outer border: 2 × (4pt + 3pt) = 14pt % Inner border thickness: 0.4pt % Available for grids: 996 - 14 - 0.4 = 981.6pt % grid-width = 981.6 / 17 ≈ 57.74pt % % Height calculation: % Both sides outer border: 2 × (4pt + 3pt) = 14pt % Inner border thickness: 0.4pt % Padding: 5pt × 2 = 10pt % Available for grids: 754.6 - 14 - 0.4 - 10 = 730.2pt % grid-height = 730.2 / 21 ≈ 34.77pt % % ============================================================================= % ========================================================================== % Page Geometry % ========================================================================== \pageSetup{ paper-width = 37.2cm, paper-height = 29.2cm, margin-top = 4cm, margin-bottom = 2.5cm, margin-left = 3.5cm, margin-right = 3.5cm, } % ========================================================================== % Content Configuration (Grid, Typography, and Border) % ========================================================================== \contentSetup{ % Grid Configuration (17 cols x 21 chars) n-column = 8, % Typography font-size = 28pt, line-spacing = 28.5pt, vertical-align = center, font-color = {0, 0, 0}, % Number of characters per column n-char-per-col = 21, border = true, outer-border = true, % Inner column border thickness border-thickness = 0.4pt, % Outer frame border thickness outer-border-thickness = 4pt, % Gap between outer border and inner content outer-border-sep = 3pt, % Padding inside column (top and bottom) padding-top = 10pt, padding-bottom = 10pt, border-color = {0, 0, 0}, } \sidenoteSetup{ color = red, font-size = 19pt, grid-height = 20pt, yshift = 0em, column-padding-top = 0.5em, column-padding-bottom = 0.5em, } \pizhuSetup{ color = 1~0~0, font-size = 18pt, grid-width = 20pt, grid-height = 19pt, } \jiazhuSetup{ align = outward, font = {}, font-color = {0, 0, 0}, } % ============================================================================= % Banxin (版心) Configuration % ============================================================================= \banxinSetup{ banxin = true, banxin-upper-ratio = 0.282, banxin-middle-ratio = 0.563, lower-yuwei = false, upper-section = { font-size = 28pt, }, upper-section = { font-size = 32pt, }, middle-section = { grid-height = 28pt, font-size = 28pt, top-margin = 0pt, }, page-number = { font-size = 12pt, grid-height = 15pt, bottom-padding = 5pt, }, lower-section = { font-size = 15pt, grid-height = 17pt, }, middle-section = { }, } \endinput