Skip to content

Commit

Permalink
add themes for JHEP and JCAP (#20)
Browse files Browse the repository at this point in the history
JCAP (Journal of Cosmology and Astroparticle Physics) and JHEP (Journal
of High Energy Physics) are physics journals.  They use the LaTeX styles
`jcappub.sty` and `jheppub.sty`.

Add settings with figure widths based on the output of
```
linewidth=\uselengthunit{pt}\printlength{\linewidth}
\\
linewidth=\uselengthunit{in}\printlength{\linewidth}
```
within figures with in documents with these styles.

For JCAP these are
```
440.0pt
6.08948in
```

For JHEP these are
```
430.20639pt
5.95393in
```

https://jcap.sissa.it/jcap/help/JCAP_TeXclass.jsp
https://jhep.sissa.it/jhep/help/JHEP_TeXclass.jsp
  • Loading branch information
musoke authored May 7, 2024
1 parent 1000de5 commit d2513e4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/settings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ SETTINGS = Dict(
base_fontsize = 9,
font = "TeX Computer Modern",
),
:JCAP => TuePlotsSetting(
width = 6.08948,
width_half = nothing,
base_fontsize = 11,
font = "TeX Computer Modern",
),
:JHEP => TuePlotsSetting(
width = 5.95393,
width_half = nothing,
base_fontsize = 11,
font = "TeX Computer Modern",
),
)

"""
Expand Down

0 comments on commit d2513e4

Please sign in to comment.