Coverage for src/cosmic_toolbox/styles/jcap.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.15.0, created at 2026-07-10 10:31 +0000

1# Copyright (C) 2026 ETH Zurich 

2# Institute for Particle Physics and Astrophysics 

3# Author: Silvan Fischbacher 

4# created: Thu Mar 26 2026 

5 

6from .base import PaperStyle 

7 

8 

9class JCAP(PaperStyle): 

10 """ 

11 JCAP style for: 

12 \\documentclass[a4paper,11pt]{article} 

13 \\usepackage{jcappub} 

14 

15 Textwidth measured with \\the\\textwidth → 440.0 pt 

16 """ 

17 

18 TEXTWIDTH_PT = 440.0 

19 FONT_SIZE = 11 

20 LATEX_PREAMBLE = r"\usepackage{amsmath}" r"\usepackage{amssymb}" r"\usepackage{bm}" 

21 

22 

23# Module-level aliases — enables the jcap.set_mpl() / jcap.fig() API 

24set_mpl = JCAP.set_mpl 

25fig = JCAP.fig 

26fig_grid = JCAP.fig_grid 

27fig_size = JCAP.fig_size 

28textwidth = JCAP.textwidth