Skip to content

Commit

Permalink
Merge pull request #14 from musoke/joss
Browse files Browse the repository at this point in the history
add theme for JOSS
  • Loading branch information
liuyxpp authored May 9, 2024
2 parents 5d538fd + 25d179f commit 2437f79
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/MakiePublication.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export
theme_aps_2col,
theme_jcap,
theme_jhep,
theme_joss,
theme_rsc,
theme_rsc_1col,
theme_rsc_2col,
Expand Down
14 changes: 14 additions & 0 deletions src/journals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,17 @@ JHEP is single column, so `theme_jhep_1col` and `theme_jhep_2col` are not define
See also [`theme_acs`](@ref), [`theme_aps`](@ref), [`theme_jcap`](@ref), [`theme_rsc`](@ref), and [`theme_web`](@ref).
"""
theme_jhep(; kwargs...) = theme_acs(; width=5.95393, kwargs...)

"""
theme_joss(; kwargs...)
Generate Makie theme for producing figures for JOSS (The Journal of Open Source Software).
The usage is the same as [`theme_acs`](@ref) except figure `width=5.36066`.
The value of `width` is obtained from `\\uselengthunit{in}\\printlength{\\linewidth}`.
JOSS is single column, so `theme_joss_1col` and `theme_joss_2col` are not defined.
See also [`theme_acs`](@ref), [`theme_aps`](@ref), [`theme_jcap`](@ref), [`theme_rsc`](@ref), and [`theme_web`](@ref).
"""
theme_joss(; kwargs...) = theme_acs(; width=5.36066, kwargs...)
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ doctest(MakiePublication)
theme_aps_2col,
theme_jcap,
theme_jhep,
theme_joss,
theme_rsc,
theme_rsc_1col,
theme_rsc_2col,
Expand Down

0 comments on commit 2437f79

Please sign in to comment.