Improve LaTeX font configuration and add log files to gitignore
- Set DejaVu fonts for serif, sans, and mono - Add longtable, booktabs, array, calc packages for tables - Add unicode symbol substitutions for checkmark and times - Ignore *.log files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1a44dc8753
commit
3398dd2bae
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ dist-newstyle
|
||||
/svg-inkscape/
|
||||
dist-newstyle
|
||||
output/
|
||||
*.log
|
||||
|
||||
@ -15,9 +15,16 @@ latexTemplate bodyContent = T.unlines
|
||||
[ "\\documentclass{article}"
|
||||
, "\\usepackage[utf8]{inputenc}"
|
||||
, "\\usepackage{fontspec}"
|
||||
, "\\setmainfont{DejaVu Serif}[Scale=1.0]"
|
||||
, "\\setsansfont{DejaVu Sans}[Scale=1.0]"
|
||||
, "\\setmonofont{DejaVu Sans Mono}[Scale=0.85]"
|
||||
, "\\usepackage{graphicx}"
|
||||
, "\\usepackage{adjustbox}"
|
||||
, "\\usepackage{geometry}"
|
||||
, "\\usepackage{longtable}"
|
||||
, "\\usepackage{booktabs}"
|
||||
, "\\usepackage{array}"
|
||||
, "\\usepackage{calc}"
|
||||
, "\\geometry{margin=1in}"
|
||||
, "\\usepackage{hyperref}"
|
||||
, "\\usepackage{enumitem}"
|
||||
@ -30,6 +37,10 @@ latexTemplate bodyContent = T.unlines
|
||||
, syntaxHighlightingCommands
|
||||
, "\\providecommand{\\tightlist}{%"
|
||||
, " \\setlength{\\itemsep}{0pt}\\setlength{\\parskip}{0pt}}"
|
||||
, "\\newcommand{\\real}[1]{#1}"
|
||||
, "% Unicode symbol substitutions"
|
||||
, "\\providecommand{\\checkmark}{\\ensuremath{\\checkmark}}"
|
||||
, "\\providecommand{\\times}{\\ensuremath{\\times}}"
|
||||
, "% Auto-scale oversized images to fit page"
|
||||
, "\\makeatletter"
|
||||
, "\\def\\maxwidth{\\ifdim\\Gin@nat@width>\\linewidth\\linewidth\\else\\Gin@nat@width\\fi}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user