[Core] add preliminary support for multicols
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
\usepackage[export]{adjustbox}
|
||||
\usepackage[most]{tcolorbox}
|
||||
\usepackage{cancel}
|
||||
\usepackage{etoolbox}
|
||||
\usepackage{dsfont}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{mathrsfs}
|
||||
@@ -81,6 +82,8 @@
|
||||
\newcounter{numberSubsections}
|
||||
\newcounter{descriptorShadeStrength}
|
||||
\newcounter{shadeStrength}
|
||||
\newcounter{colCount}
|
||||
\newbool{cheatSheetLandscape}
|
||||
|
||||
% ── Setup ───────────────────────────────────────────────────────────
|
||||
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
||||
@@ -132,7 +135,20 @@
|
||||
\newcommand{\setupCheatSheet}[1]{
|
||||
\typeout{[Setup] Using CheatSheet setup}
|
||||
\loadLang
|
||||
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
||||
\edef\valtrue{true}
|
||||
\ifbool{cheatSheetLandscape}{
|
||||
\typeout{[Setup] Using landscape with \arabic{colCount} columns}
|
||||
\usepackage[landscape,a4paper,textwidth=28.5cm,textheight=20cm]{geometry}
|
||||
|
||||
\usepackage{flowfram}
|
||||
\allowdisplaybreaks
|
||||
\ffvadjustfalse
|
||||
\setlength{\columnsep}{1cm}
|
||||
\Ncolumn{\arabic{colCount}}
|
||||
}{
|
||||
\typeout{[Setup] Using portrait}
|
||||
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
||||
}
|
||||
\title{\Huge \textbf{#1}}
|
||||
\author{\authorTitle}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user