diff options
Diffstat (limited to 'README.adoc')
| -rw-r--r-- | README.adoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/README.adoc b/README.adoc index c9c8f383..f5d4bdfb 100644 --- a/README.adoc +++ b/README.adoc @@ -228,6 +228,13 @@ The layout and styling of the PDF is driven by a YAML configuration file. See the files [file]_default-theme.yml_ and [file]_asciidoctor-theme.yml_ found in the [file]_data/themes_ directory for examples. +Specify the path to an alternate theme file with the `pdf-style` attribute. For example to use the built-in _asciidoctor_ theme: + + $ ./bin/asciidoctor-pdf -a pdf-style=asciidoctor examples/example.adoc + +To refer to a theme at another location you can use the `pdf-stylesdir` attribute to specify the location of themes. +If the `pdf-style` value does not end in `.yml`, then the file name is calculated as `{pdf-style}-theme.yml` located in the `pdf-stylesdir` directory (which defaults to the built-in `data/themes` directory). + == Optional Scripts {project-name} also provides a shell script that invokes GhostScript (+gs+) to optimize and compress the generated PDF with minimal impact on quality. |
