0

I'm writing a paper on Overleaf, but I have a couple of issues. Firstly, when I use begin{abstract}...\end{abstract} the word 'Abstract' comes up in bold and centered above the text, with only the A in capitals, as shown below. enter image description here

How can I

  1. Make the word Abstract all in capitals
  2. Make the word Abstract not in bold
  3. Make the word Abstract next to the text, eg like in this paper

Please note; I don't necessarily want to change all these things all at once, I'd like to be able to change them one at a time preferably.

Secondly, I'd like to make similar chapters and sections titles eg to the ones in the aforementioned paper. I am currently using \begin{section]...\end{section} but the section titles come out in bold and are on the left of the page; I'd like each new section title to be like the ones in the aforementioned article; ie centered and not in bold (as well as in capitals hopefully), while still above the text.

Thank you for your help.

This is my preamble: \documentclass[12pt, letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{amssymb,amsmath,amsthm}

15
  • You might be interested in the abstract package, which has a runin option. – Bernard Dec 25 '20 at 13:37
  • @Bernard thanks, what is a runin option? – A-Level Student Dec 25 '20 at 13:38
  • For sections, it means the main text starts on the same line as the section title. I didn't test it with abstract, but I suppose it has the same meaning. – Bernard Dec 25 '20 at 13:41
  • 1
    You should add \usepackage[runin]{abstract}`. This won't change your section titles. – Bernard Dec 25 '20 at 13:48
  • 1
    MWE is the acronym of Minimal Working Example. – Bernard Dec 25 '20 at 13:49
3

Here is how to obtain what you want for section titles. I used the titlecaps package to have the first letter of each (significant) word capitalised, which looks better with small caps, in my opinion, and the § symbol before the section number. Of course, you just have to remove it from the code if you don't like it.

 \documentclass[12pt, letterpaper]{article}
 \usepackage{erewhon}
 \usepackage{amssymb,amsmath,amsthm}
 \usepackage[runin]{abstract}
 \usepackage{titlesec}
 \usepackage{titlecaps}
\usepackage{lipsum}
\renewcommand{\abstractname}{\normalfont\scshape{Abstract}.}

 \begin{document}

 \title{A Paper} \author{Me } \date{Today} \maketitle
 \titleformat{\section}[block]{\filcenter\scshape}{\S\,\thesection.}{0.5em}{\titlecap}
 \section{First Section}
 \lipsum[11]

\end{document} 

enter image description here

5
  • Thanks so much, that's great! Is there any way to make the font the same as in my screenshot and the other answer? – A-Level Student Dec 28 '20 at 13:48
  • I suppose you used the default.Just remove \usepackage{erewhon} (erewhon is a Adobe Utopia clone, with true smallcaps, superior figures, &c.) – Bernard Dec 28 '20 at 13:54
  • Brilliant, thanks. Is there any way I can just remove the § symbol while keeping the first letter of each signifiacnt word capitalised? – A-Level Student Dec 29 '20 at 10:05
  • Yes – it was only a suggestion. Remove the corresponding code, namely \S\, in the third argument. – Bernard Dec 29 '20 at 10:13
  • Thank you so much, I really appreciate you putting so much time into helping me! – A-Level Student Dec 29 '20 at 11:16
2

Hope this may helps you:

\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc} 
\usepackage{amssymb,amsmath,amsthm} 
\usepackage[runin]{abstract}
\begin{document}

\renewcommand{\abstractname}{\normalfont\scshape{Abstract}.}

\title{Title}

\author{Author}

\maketitle

\begin{abstract}
This is for test
\end{abstract}

\end{document}

Output

enter image description here

3
  • I;m sorry to be annying, but that still isn't next the text , although it is an improvement, thanks:( I really like the setout of the paper I provided a link for; do you know how I could make an abstract format like that? – A-Level Student Dec 25 '20 at 14:03
  • Check the updated answer... I've just followed Bernard suggestion...so credit to him... – MadyYuvi Dec 25 '20 at 14:18
  • Thanks so much, that works brilliantly! Have you any idea how I can change the section titles as I've detailed above? – A-Level Student Dec 26 '20 at 20:41

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.