I need to have the following
Abstract: Texte
I used
Code: Select all
\renewcommand*\abstractname{Abstract\hfill}
Abstract
Texte
What should I add?
Thanks
Code: Select all
\renewcommand*\abstractname{Abstract\hfill}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{lmodern}
\usepackage{blindtext}
\title{Modifcation of the \texttt{abstract} environment}
\author{NELLLY}
\makeatletter
\if@titlepage
\renewenvironment{abstract}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\begin{center}%
\bfseries \abstractname
\@endparpenalty\@M
\end{center}}%
{\par\vfil\null\endtitlepage}
\else
\renewenvironment{abstract}{%
\if@twocolumn
\section*{\abstractname}%
\else
\small
\list{}{%
\settowidth{\labelwidth}{\textbf{\abstractname:}}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}
}
\item[\textbf{\abstractname:}]
\fi}
{\if@twocolumn\else\endlist\fi}
\fi
\makeatother
\begin{document}
\maketitle
\begin{abstract}
\blindtext
\end{abstract}
\blinddocument
\end{document}
This was not clear from your initial post.NELLLY wrote:[...] In fact, the ligns in the abstract should be aligned with the word abstract.
This is what I should obtain:
Abstract:texte...................
texte...................................
texte...................................
What shoud I add?
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{lmodern}
\usepackage{blindtext}
\title{Modifcation of the \texttt{abstract} environment}
\author{NELLLY}
\makeatletter
\if@titlepage
\renewenvironment{abstract}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\begin{center}%
\bfseries \abstractname
\@endparpenalty\@M
\end{center}}%
{\par\vfil\null\endtitlepage}
\else
\renewenvironment{abstract}{%
\if@twocolumn
\section*{\abstractname}%
\else
\small
\list{}{%
\settowidth{\labelwidth}{\textbf{\abstractname:}}
\setlength{\leftmargin}{0pt}
\setlength{\itemindent}{\labelwidth}
\addtolength{\itemindent}{\labelsep}
}
\item[\textbf{\abstractname:}]
\fi}
{\if@twocolumn\else\endlist\fi}
\fi
\makeatother
\begin{document}
\maketitle
\begin{abstract}
\blindtext
\end{abstract}
\blinddocument
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p