TeX - LaTeX Asked by Miqueas Ezequiel on March 28, 2021
I’ve been asked to use a given format for a paper and I have to use the following format for sections:
being size of the paragraph text 10pt and that of the section 11pt. I also have to reduce, respect to that of LaTeX, the spacing between the paragraph and the section title and change the enumeration to roman numbers.
I have tried to make it with titleformat command but I could not reach the desired style. I hope you can help me! Thank you!
Given the information you provide, this is what I can answer
documentclass[10pt]{article}
usepackage{lipsum}
usepackage{titlesec}
usepackage{indentfirst}
DeclareRobustCommand{makesc}[1]{textsc{#1}}
newlength{mylength}
setlength{mylength}{theparindent}
titleformat{section}[hang]
{fontsize{11}{13}selectfont}
{makebox[mylength][l]{Roman{section}.}}
{0pt}
{makesc}
titlespacing{section}{0pt}{baselineskip}{.3baselineskip}
begin{document}
section{Lorem Ipsum}
lipsum[1]
section{Lorem Ipsum}
lipsum[1]
end{document}
which gives:
Correct answer by Ivan on March 28, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP