0

Hi when I try to change the size of sections, the dot which must be stand near the section number is disappear.

  1. SECTION >TURN> 1 SECTION

    \documentclass{article}
    \usepackage{titlesec}
    \titleformat{\section}
      {\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{}
    \titlelabel{\thetitle.\quad}
    \begin{document}
    
    \section{Test Section}
     test
    
    \end{document}
    
  • and I don't know to format code in a question. – ömer koçhan Jun 30 '18 at 14:14
  • 2
    \thesection. ? – samcarter_is_at_topanswers.xyz Jun 30 '18 at 14:18
  • @samcarter Would you please write your comment as an answer and be more specific? – Ruixi Zhang Jun 30 '18 at 20:06
  • @RuixiZhang Thanks for the suggestion. I see that you already have a deleted answer with the same suggestion - please undelete it! I'll upvote it! – samcarter_is_at_topanswers.xyz Jun 30 '18 at 20:34
3

As @samcarter pointed out, the dot you desired is missing in \titleformat{\section}{...}:

\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}
  {\normalfont\fontsize{12}{15}\bfseries}{\thesection.}{1em}{}% The missing dot
\titlelabel{\thetitle.\quad}
\begin{document}

\section{Test Section}
 test

\end{document}
| improve this answer | |

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.