I suggest not using \paragraph
, but a custom made command:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{blindtext}
\newcommand{\absdiv}[1]{%
\par\addvspace{.5\baselineskip}% adjust to suit
\noindent\textbf{#1}\quad\ignorespaces
}
\begin{document}
\begin{abstract}
\absdiv{Lorem}
\blindtext[1]
\absdiv{Ipsum}
\blindtext[1]
\end{abstract}
\end{document}
![enter image description here](https://i.stack.imgur.com/48OlO.png)
You can use the titlesec
package.
MWE:
\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}{\bfseries\LARGE}{\hspace{1ex}\Huge\thesection}{2ex}{}
\begin{document}
\section{Intro}
\subsection{Motive}
\end{document}
![enter image description here](https://i.stack.imgur.com/kZzAT.png)
Edit: There is some compatibility issue between the fancyhdr
and the titlesec
package. So, to use the solution with titlesec
package, I will recommend to use the titleps
package which is an alternative to fancyhdr
package. When combined with titlesec
package, it should be loaded by using \usepackage[pagestyles]{titlesec}
.
To apply the changes in the header and the footer, the syntax of the titleps
package is:
\sethead[heven-lefti][heven-centeri][heven-righti]
{hodd-lefti}{hodd-centeri}{hodd-righti}
You may go through this page to find some examples with titleps
.
For some reason, the \thetitle
from the \titling
package didn't work with the \titlesec
package. So, I inserted the title of the article directly.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{titling}
\usepackage{float}
\usepackage{layout}
\usepackage{makecell}
\usepackage{geometry}
\usepackage[pagestyles]{titlesec} % <------ changed
% \usepackage{titleps} % <------ changed
% \usepackage{fancyhdr} % <------ changed
\usepackage{vmargin}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{lipsum}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=blue,
citecolor = black,
urlcolor=blue,
}
\title{Validation of Meteorological Data by Machine Learning}
\author{Ahmad Josef Sahebzadeh}
\date{\today}
\renewcommand\theadfont{\normalsize}
\renewcommand\theadalign{bc}
\renewcommand\theadfont{\bfseries}
\renewcommand\theadgape{\Gape[4pt]}
\renewcommand\cellgape{\Gape[4pt]}
\newcommand{\height}{6cm}
\setmarginsrb{3 cm}{1 cm}{4 cm}{2.5 cm}{1 cm}{1.5 cm}{1 cm}{1.5 cm}
% ---------------- changed -------------------
\settitlemarks{section,subsection}
\newpagestyle{myFancy}[\normalsize\bfseries]{
\setheadrule{0.4pt}%
\sethead[\ifthesection{Validation of Meteorological Data by Machine Learning}{Validation of Meteorological Data by Machine Learning}]%
[][]%
{\ifthesection{Validation of Meteorological Data by Machine Learning}{Validation of Meteorological Data by Machine Learning}}%
{}{}%
}
\titleformat{\section}{\bfseries\LARGE}{\hspace{1ex}\Huge\thesection}{2ex}{}
\pagestyle{myFancy}
% ---------------- changed -------------------
\begin{document}
\pagenumbering{gobble}
\section{Intro}
\lipsum[1-5]
\newpage
\lipsum[6-8]
\section{Section 2}
\lipsum[1-5]
\end{document}
![enter image description here](https://i.stack.imgur.com/4QH54.png)
Note: Consider reading how to write an MWE. This will help you to get help quickly and effectively from this site.
Best Answer
All personal preferences aside, a modification of
\abstractname
allows you to print anabstract
with whatever title you want:If you want more control over the closing remark layout and formatting, a copy of the existing
abstract
environment is possible, from which one can play around and make something to suit.