return { s( ";updarkmode", t({ "\\usepackage{xcolor}", "\\pagecolor[rgb]{0.1,0.1,0.1}", "\\color[rgb]{1,1,1}", }) ), s(";upurlpackage", t("\\usepackage{hyperref}")), -- % https://old.reddit.com/r/LaTeX/comments/m8frij/aligning_text_across_lines/ -- % allign dates in working experience -- for \brlap or \stackunder or \bllap s(";upstack", t("\\usepackage{stackengine}")), -- % for \CurrentLineWidth s(";uptabto", t("\\usepackage{tabto}")), -- % https://tex.stackexchange.com/questions/5036/how-to-prevent-latex-from-hyphenating-the-entire-document -- % disable hyphenation at the edge s(";upnohyphen", t("\\usepackage[none]{hyphenat}")), s(";upinpututf8", t("\\usepackage[utf8]{inputenc}")), s(";up", fmta("\\usepackage[<>]{<>}", { i(2), i(1) })), -- Help using xeCJK -- https://tex.stackexchange.com/questions/510853/using-one-xecjk-font-family-on-english-and-chinese-at-the-same-time -- https://tex.stackexchange.com/questions/264265/defining-subfamilies-for-a-font/264275#264275 s( ";upxecjk", fmta( [[ \usepackage[AutoFallBack=true]{xeCJK} \setCJKmainfont<> ]], { c(1, { t({ "{Source Han Serif TC}", "\\newCJKfontfamily\\secondaryfont{Source Han Sans TC}", "\\newcommand*{\\sfont}[1]{{\\secondaryfont #1}}", }), t({ "{Source Han Sans TC}", "\\newCJKfontfamily\\secondaryfont{Source Han Serif TC}", "\\newcommand*{\\sfont}[1]{{\\secondaryfont #1}}", }), t({ "[Path=\\string~/.local/share/fonts/", ",UprightFeatures = {FontIndex=13}", ",BoldFeatures = {FontIndex=28}", "]{SourceHanSerif.ttc}", "\\newCJKfontfamily[Path=\\string~/.local/share/fonts/", " ,UprightFeatures = {FontIndex=28}", " ,BoldFeatures = {FontIndex=38}", "]\\secondaryfont{Source Han Sans TC}", "\\newcommand*{\\sfont}[1]{{\\secondaryfont #1}}", }), t({ "[Path=\\string~/.local/share/fonts/", ",UprightFeatures = {FontIndex=28}", ",BoldFeatures = {FontIndex=38}", "]{SourceHanSans.ttc}", "\\newCJKfontfamily[Path=\\string~/.local/share/fonts/", ",UprightFeatures = {FontIndex=13}", ",BoldFeatures = {FontIndex=28}", "]\\secondaryfont{Source Han Serif TC}", "\\newcommand*{\\sfont}[1]{{\\secondaryfont #1}}", }), }), } ) ), }