From 89b447fa4cc874e9b943fd67da2b4e74fded225e Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Mon, 3 Jun 2024 16:53:05 +0200 Subject: [PATCH 1/2] Last ddlevel specs --- src/tablegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tablegen.rs b/src/tablegen.rs index 597dff4..4496d93 100644 --- a/src/tablegen.rs +++ b/src/tablegen.rs @@ -154,7 +154,7 @@ pub fn make_latex_string(arg: &str) -> String { .replace('½', "\\sfrac{1}{2}") .replace('&', "\\&"); let res = RE.replace_all(&temp, |caps: &Captures| { - format!("\\ddlevel{{{}}}", caps[0].chars().count()) + format!("\\ddlvl{{{}}}", caps[0].chars().count()) }); res.to_string() } -- 2.45.1 From ee7043616d75254685221a785b18898e685f8101 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Sat, 15 Jun 2024 22:26:21 +0200 Subject: [PATCH 2/2] New tabular for classes --- helper_config.toml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/helper_config.toml b/helper_config.toml index 852f4ee..c7a9c3a 100644 --- a/helper_config.toml +++ b/helper_config.toml @@ -1,16 +1,20 @@ [classes] header = '\subsubsection{Tier {}}' -row = '''{\footnotesize - \rowcolors{2}{gray!25}{white} - \begin{tabularx}{\textwidth}{|p{0.17\linewidth\hyphenpenalty=9000}lp{0.13\linewidth}p{0.042\linewidth}X|} - \hline\rowcolor{gray!50}\hline - Technique & Niv & Type & Coût & Effet\\ - \hline''' +row = '''\begin{longtblr}{ + colspec = {Q[h,j,wd=3.5cm] Q[c,h, wd=0.52cm] h{2.5cm} Q[c,h,wd=0.75cm] Q[h,j,wd=9cm]}, + hspan = minimal, vspan=minimal, + width = 1\columnwidth, + colsep = 1mm, abovesep=0px,belowsep=0px, leftsep=2px, rightsep=2px, + row{odd} = {gray!25}, row{1} = {gray!50}, + cells = {font = \footnotesize\selectfont} +} + \hline + Technique & Niv & Type & Coût & Effet\\ + \hline''' end = ''' \hline - \end{tabularx} -}''' + \end{longtblr}''' [craft] header_alchemy = ''' Ingrédient & Partie & Rareté & Effet (Principal) & Effets (Catalysé) & Difficulté & Toxicité \\ -- 2.45.1