code: def _fit_chapter_titles(lines):
      for i, l in enumerate(lines):
          # make_appendix_math_two_lines
          if l.startswith("\\chapter{Mathematics for Deep Learning}"):
              lines[
                  i
              ] = "\\chapter[Mathematics for Deep Learning]{Mathematics for Deep\\\\Learning}"
          if l.startswith(
              "\\chapter{Linear Neural Networks for Classification}"
          ):
              lines[
                  i
              ] = "\\chapter[Linear Neural Networks for Classification]{\\raisebox{-12pt}{Linear Neural Networks for Classification}}"
  
file_path: d2l-en/static/post_latex/main.py
imports: import os
  import re
  import regex
  import sys
label_desc: Use image node_id 10 for calling a global function with example usage: _fit_chapter_titles(lines) without return types