1

I am trying to create sections that are centered, but still with numbering. When I center the section titles (like below), the numbering disappears.

\documentclass[twocolumn,10pt,cleanfoot]{asme2ej} \usepackage[pagestyles]{titlesec} \titleformat{\section}[block]{\bfseries\filcenter}{}{1em}{}

Any ideas on how I can do this? What I want is of the format in the image below:

enter image description here

2

You're on the right track for standard classes: use

\titleformat{\section}[block]{\bfseries\filcenter}{\thesection.}{0.5em}{}

(In my opinion, 1em is too much). With asme2ej, I don't know, as it is not part of the main distributions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.