1

I have a report which is structured part just look like this:

\documentclass{report}  
\usepackage[compact,explicit]{titlesec}  
\begin{document}  
\titleformat{\section}[runin]{\large\bfseries}{}{0pt}{#1\quad\thesection}  

\section{Pasal}  
\section{Pasal}  
\section{Pasal}  
\section{Pasal}  
\section{Pasal}  

\end{document} 

All the \section{Pasal} generate title section Pasal 0.1, Pasal 0.2, etc. Please help, I don't have any idea to erase the 0.

  • 3
    Why are you using report, that has chapters, and not article? – egreg Dec 12 '17 at 11:28
1

enter image description here

\documentclass{report}  
\usepackage[compact,explicit]{titlesec}
\renewcommand{\thesection}{\arabic{section}} 
\begin{document}  
\titleformat{\section}[runin]{\large\bfseries}{}{0pt}{#1\quad\thesection}  

\section{Pasal}  
\section{Pasal}  
\section{Pasal}  
\section{Pasal}  
\section{Pasal}  

\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.