TransWikia.com

Remove indentation at the beginning of subsections (using amsbook)

TeX - LaTeX Asked by Oskar Henriksson on December 13, 2020

Is there a way to get rid of the indentation at the beginning of subsections when using the documentclass amsbook?

See the attached image for an example (where the problematic indentation is marked blue):

example

The example was generated using the following code:

documentclass[a4paper]{amsbook}
usepackage{lipsum}

begin{document}

chapter{This is a chapter}
section{This is a section}
subsection{This is a subsection}
lipsum[1-2]

end{document}

One Answer

Please try this code. Put the redefinition of subsection from makeatletter to makeatother in your preamble.

documentclass[a4paper]{amsbook}
usepackage{lipsum}

makeatletter
defsubsection{@startsection{subsection}{2}%
    z@{[email protected]}{-.5em}%
    {normalfontbfseries}}
makeatother

begin{document}

chapter{This is a chapter}
section{This is a section}
subsection{This is a subsection}
lipsum[1-2]

end{document}

enter image description here

Correct answer by Simon Dispa on December 13, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP