eddelbuettel / linl

Linl Is Not Letter -- Markdown-based LaTeX Letter Template
111 stars 17 forks source link

custom font #27

Open ygalanak opened 2 years ago

ygalanak commented 2 years ago

Is there an option to choose a custom font?

eddelbuettel commented 2 years ago

Sort-of. You can tell rmarkdown to include a header (with anything latex lets you do), you can also add commands in the yaml. Using the former approach I just replace the output: linl::linl with

output:
  linl::linl:
    includes:
      in_header: myheader.tex

and in myheader.tex used

\usepackage[scaled=0.92]{helvet}
\usepackage[T1]{fontenc}
\renewcommand\familydefault{\sfdefault}

to obtain a letter with serifs:

image

eddelbuettel commented 2 years ago

We could probably follow other rmarkdown packages and pick it up from the YAML header but nobody has sat down to do it yet.