Skip to content

Commit

Permalink
fix typos in styling.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
montesmariana committed May 19, 2024
1 parent 9b33a49 commit f23b350
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vignettes/styling.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ knitr::opts_chunk$set(
comment = "#>"
)
library(glossr)
default_width <- glossr:::config$word$page_width
```

Users of glossr can configure certain styling parameters in different ways. From version 0.8.0,
Expand Down Expand Up @@ -182,15 +183,15 @@ Boldface and italics are already specified via $\LaTeX$ or markdown formatting
but font family and size can be specified as the `styling` arguments
`font_family` and `font_size` or under the `word` section in the YAML file.
If they are a character/numeric vector of length 1
(e.g. `font_family = "Cambria` and `font_size = 11`),
(e.g. `font_family = "Cambria"` and `font_size = 11`),
they will be applied to all the lines.
Alternatively, you can specify the values for certain lines if, for example,
you combine different scripts with different font families or sizes.
For instance, `font_family = list(a = "Arial", default = "Cambria")` will assume that the first aligned line is in Arial and the second and third, in Cambria.

A third Word-specific argument is `page_width`,
which indicates the width covered by the lines in pixels.
This number (by default 411) is used to wrap the lines properly when they are too long.
This number (by default `r default_width`) is used to wrap the lines properly when they are too long.
If the width of your text differs from the one used to set up this default,
you can easily modify it via `use_glossr()` or the configuration file.

Expand Down

0 comments on commit f23b350

Please sign in to comment.