From d2513e47003b352ad0d84c55d1ef9a29b1d0d60c Mon Sep 17 00:00:00 2001 From: nathan musoke Date: Tue, 7 May 2024 03:53:17 -0400 Subject: [PATCH] add themes for JHEP and JCAP (#20) 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 --- src/settings.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/settings.jl b/src/settings.jl index a2468e6..6ae0e74 100644 --- a/src/settings.jl +++ b/src/settings.jl @@ -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", + ), ) """