diff --git a/.verify-helper/docs/static/base.css b/.verify-helper/docs/static/base.css index b167f05..18ed6d6 100644 --- a/.verify-helper/docs/static/base.css +++ b/.verify-helper/docs/static/base.css @@ -7,7 +7,6 @@ html, code { font-family: 'Jetbrains Mono', ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-variant-ligatures: none; - font-size: 7.5pt; } pre { @@ -141,7 +140,9 @@ td, th { .token.selector .token.attribute { color: #001575; } - +.content { + break-before: avoid; +} .content-md { font-family: sans-serif; } diff --git a/.verify-helper/docs/static/notebook.css b/.verify-helper/docs/static/notebook.css index d280b10..0b7d11e 100644 --- a/.verify-helper/docs/static/notebook.css +++ b/.verify-helper/docs/static/notebook.css @@ -6,6 +6,10 @@ code { font-size: 7.4pt; } +nav#toc { + break-after: column; +} + @media print { body { column-count: 2; diff --git a/.verify-helper/docs/static/notebook.pdf b/.verify-helper/docs/static/notebook.pdf index 6ae55f8..432d469 100644 Binary files a/.verify-helper/docs/static/notebook.pdf and b/.verify-helper/docs/static/notebook.pdf differ diff --git a/build/base.css b/build/base.css index b167f05..18ed6d6 100644 --- a/build/base.css +++ b/build/base.css @@ -7,7 +7,6 @@ html, code { font-family: 'Jetbrains Mono', ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-variant-ligatures: none; - font-size: 7.5pt; } pre { @@ -141,7 +140,9 @@ td, th { .token.selector .token.attribute { color: #001575; } - +.content { + break-before: avoid; +} .content-md { font-family: sans-serif; } diff --git a/build/build.js b/build/build.js index 3b1a371..58ae25d 100644 --- a/build/build.js +++ b/build/build.js @@ -3,6 +3,7 @@ const teamname = "tatyam/ICPC_notebook"; // チーム名 + 大学名 (各ペ const fontsize = "7.4pt"; // フォントサイズ const orientation = "portrait"; // portrait (縦長) / landscape (横長) const num_columns = 2; // 何段組みか +const break_after_toc = "column"; // toc の後に : page (改ページする) / column (改段する) / auto (強制しない) const section_order = ["template", "data-structure", "math", "modint", "FPS", "graph", "graph/tree", "flow", "string", "algorithm", "geometry", "memo"]; // src/* のフォルダを読み出す順序 @@ -129,6 +130,10 @@ code { font-size: ${fontsize}; } +nav#toc { + break-after: ${break_after_toc}; +} + @media print { body { column-count: ${num_columns}; diff --git a/build/notebook.css b/build/notebook.css index d280b10..0b7d11e 100644 --- a/build/notebook.css +++ b/build/notebook.css @@ -6,6 +6,10 @@ code { font-size: 7.4pt; } +nav#toc { + break-after: column; +} + @media print { body { column-count: 2; diff --git a/notebook.pdf b/notebook.pdf index 6ae55f8..432d469 100644 Binary files a/notebook.pdf and b/notebook.pdf differ