Skip to content

Commit

Permalink
Some more docs for latex output. (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Dec 10, 2018
1 parent 5a29390 commit 1fdd03e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
7 changes: 5 additions & 2 deletions docs/src/man/other-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ using DocumenterLaTeX

When `DocumenterLaTeX` is loaded, you can set `format = LaTeX()` in [`makedocs`](@ref),
and Documenter will generate a PDF version of the documentation using LaTeX.
You should also specify the `sitename` and `authors` keywords for `makedocs` when using the
LaTeX output.
The `makedocs` argument `sitename` will be used for the `\\title` field in the tex document,
and if the build is for a release tag (i.e. when the `"TRAVIS_TAG"` environment variable is set)
the version number will be appended to the title.
The `makedocs` argument `authors` should also be specified, it will be used for the
`\\authors` field in the tex document.

### Compiling using natively installed latex

Expand Down
15 changes: 14 additions & 1 deletion src/Writers/LaTeXWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ import ...Documenter: Documenter
"""
LaTeXWriter.LaTeX(; kwargs...)
Sets the behavior of [`LaTeXWriter`](@ref).
Output format specifier that results in LaTeX/PDF output.
Used together with [`makedocs`](@ref), e.g.
```julia
makedocs(
format = LaTeX()
)
```
The `makedocs` argument `sitename` will be used for the `\\title` field in the tex document,
and if the build is for a release tag (i.e. when the `"TRAVIS_TAG"` environment variable is set)
the version number will be appended to the title.
The `makedocs` argument `authors` should also be specified, it will be used for the
`\\authors` field in the tex document.
# Keyword arguments
Expand Down

0 comments on commit 1fdd03e

Please sign in to comment.