i like to use the lineno package to numbering my document. For numbering the caption I use the fix from 'https://tex.stackexchange.com/questions/579040/figure-caption-line-numbers-with-achemso-package?rq=1'
\usepackage{lineno}
\DeclareCaptionFont{linenumbers}{\internallinenumbers}
\captionsetup[figure]{font+=linenumbers} % use \internallinenumbers inside figure caption
This works also well, but to enable the line numbering i use the switch '\linenumbers'. With this fix the caption are always numbered w/ and w/o the line numbering enabling.
Does anyone has an idea, how i can number the caption with honoring the '\linenumbers' switch?
Thanks in advance.
Best Regards.