The updated official full text covers 29 chapters and is also available online (in Danish).
[4] However, serious violations of the rules in subject-specific laws might be independently criminalized in the Penal Code.
Offenders found to be acting irrationally due to a severe mental illness or handicap are always ineligible for punishment, while offenders with diminished responsibility may be ruled ineligible for punishment on a case-by-case basis (§ 16).
Such offenders may, however, be subject to other measures, such as monitoring, psychiatric treatment, or a "placement sentence" of indeterminate length (§ 68).
The current Penal Code is law number 126 of April 15, 1930, with later amendments.