I want to add a box to a repeated section of a textbook, which provides question discussions. Is it possible to do it by adding "tex style setting" command(s) to the preamble? I am using the memoir class.
(I require it because I am generating the principal content in my LaTeX file, via Scrivener and Multimarkdown, rather than writing it manually.)
I used tex from here to generate some nice Section headings. What I would like to do is to apply similar styling to 2 sections at the end of the chapter—Summary and Discussions—but because these are not sections, as such, I want their headings without the section numbering.
This is the critical tex:
\newcommand\titlebar{% \tikz[baseline,trim left=3.1cm,trim right=3cm] { \fill [black!10] (2.5cm,-1ex) rectangle (\textwidth+3.8cm,2.5ex); \node [ fill=cyan!60!white, fill=black!90!white, anchor= base east, rounded rectangle, minimum height=3.75ex] at (2.9cm,0) { \textbf{\arabic{chapter}.\thesection.} \color{white}\textbf{T\thesection} }; }% } \titleformat{\section}{\large}{\titlebar}{0.1cm}{} \renewcommand*{\thesection}{\arabic{section}} This applies a nice styling to my section headings, including the section number. Now I want to apply a similar styling to two sections, Summary and Discussion, which appear at the end of the chapter. But I want those two sections to NOT have section numbers.

\fboxcommand, but you are probably looking for something more stylish. Could you provide us details of your layout ideas?\section*and manually adding it to the TOC if desired?