Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom font #27

Open
ygalanak opened this issue Mar 28, 2022 · 2 comments
Open

custom font #27

ygalanak opened this issue Mar 28, 2022 · 2 comments

Comments

@ygalanak
Copy link

Is there an option to choose a custom font?

@eddelbuettel
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants