I am using newflm class to prepare a letter. The class, surprisingly, does not provide a Subject field. Stealing idea from this thread, I somehow managed to insert a subject, though it was not at all a nice hack. But how to centre-align the subject now? Is there any solution without editing the class file itself? Below is an MWE.












It produces a letter like this.

enter image description here

1 Answer 1


If you prefer not to redefine macros set in the class, you could simply do

 \regarding{{\centering CENTER\_ALIGN\_SUBJECT\_HERE \\}}

Otherwise you could patch the \regarding macro:

\def\regarding#1{\setboolean{@pt@regard}{true}\protect\def\@regard@line{{\centering #1\\}}}%

in your preamble.

The extra group {} around the subject limits the effect of \centering to that portion of the text and \\ explicitly terminates the line inside the group, which is necessary because \centering modifies the behaviour of \\ so that the right spacing is generated at the end of the line to center it.

  • \regarding{\centering CENTER\_ALIGN\_SUBJECT\_HERE} centre-aligns the LETTER_BODY_HERE text, too.
    – sherlock
    Commented Apr 21, 2015 at 8:41
  • Same happens if I patch the macro.
    – sherlock
    Commented Apr 21, 2015 at 8:43
  • @Holmes.Sherlock you are right, solved, see edit
    – Bordaigorl
    Commented Apr 21, 2015 at 9:58
  • Works perfectly. Out of curiosity, what is the need of two extra `\\` at the end? Also, why did you enclose `\centering CENTER_ALIGN_SUBJECT_HERE\\` within two curly braces?
    – sherlock
    Commented Apr 21, 2015 at 12:56
  • see edit for a brief explanation
    – Bordaigorl
    Commented Apr 21, 2015 at 13:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .