diff --git a/doc/src/Errors.txt b/doc/src/Errors.txt
index 8e10cb6ae4adf05c38b358583b2548a6e561c766..7bc520c19dbacc86aaa7a1bd4083f884bde53752 100644
--- a/doc/src/Errors.txt
+++ b/doc/src/Errors.txt
@@ -8,7 +8,7 @@ Section"_Section_history.html :c
 
 :line
 
-Errors :h3
+Errors :h2
 
 These doc pages describe the errors you can encounter when using
 LAMMPS.  The common problems include conceptual issues.  The messages
diff --git a/doc/src/Python.txt b/doc/src/Python.txt
index 94a2e88f5e48dfb27dad7031b4e10d66ed16793f..169670d669da6bbfcbdcb9adb491276819685f9f 100644
--- a/doc/src/Python.txt
+++ b/doc/src/Python.txt
@@ -8,7 +8,7 @@ Section"_Errors.html :c
 
 :line
 
-Use Python with LAMMPS :h3
+Use Python with LAMMPS :h2
 
 These doc pages describe various ways that LAMMPS and Python can be
 used together.