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
    Commented Dec 25, 2020 at 13:37
  • @Bernard thanks, what is a runin option? Commented Dec 25, 2020 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
    Commented Dec 25, 2020 at 13:41
  • 1
    You should add \usepackage[runin]{abstract}`. This won't change your section titles.
    – Bernard
    Commented Dec 25, 2020 at 13:48
  • 1
    MWE is the acronym of Minimal Working Example.
    – Bernard
    Commented Dec 25, 2020 at 13:49

2 Answers 2

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? Commented Dec 28, 2020 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
    Commented Dec 28, 2020 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? Commented Dec 29, 2020 at 10:05
  • Yes – it was only a suggestion. Remove the corresponding code, namely \S\, in the third argument.
    – Bernard
    Commented Dec 29, 2020 at 10:13
  • Thank you so much, I really appreciate you putting so much time into helping me! Commented Dec 29, 2020 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? Commented Dec 25, 2020 at 14:03
  • Check the updated answer... I've just followed Bernard suggestion...so credit to him...
    – MadyYuvi
    Commented Dec 25, 2020 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? Commented Dec 26, 2020 at 20:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .