Document Classesabstract | Abstract Heading Font Size

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
nenu28
Posts: 28
Joined: Mon Jun 27, 2011 11:24 am

abstract | Abstract Heading Font Size

Post by nenu28 »

Hi,
I am writing a scientific document in report class. In this section:

Code: Select all

\begin{abstract}
This is the paper's abstract \ldots
\end{abstract}
How can i make so that the Abstract text (before the text This is the paper's...) appear in \Large or \large size? What should i change?

I have tried this

Code: Select all

\newcommand{\abstractnamefont}{\normalfont\small\bfseries}
\newcommand{\abstracttextfont}{\normalfont\small}
as it said in the abstract package book and I have replace \small by \Huge to see if it can change but nothing has changed ! Could you please help me ?

Thanks !

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

abstract | Abstract Heading Font Size

Post by localghost »

By now you should know that a minimal example is essential for an adequate problem description, thus for obtaining specific help. Otherwise we stumble in the dark here. And concrete error messages will also be helpful.
nenu28 wrote:[…] I have tried this

Code: Select all

\newcommand{\abstractnamefont}{\normalfont\small\bfseries}
\newcommand{\abstracttextfont}{\normalfont\small}
as it said in the abstract package book […]
It goes without saying that you have to use \renewcommand(*) if you want to redefine the appearance of the abstract heading.


Thorsten
nenu28
Posts: 28
Joined: Mon Jun 27, 2011 11:24 am

abstract | Abstract Heading Font Size

Post by nenu28 »

thanks, it works ! I just do as you advised me :

Code: Select all

\documentclass{report}
\usepackage{abstract}
\renewcommand{\abstractnamefont}{\normalfont\Large\bfseries}
\renewcommand{\abstracttextfont}{\normalfont\Huge}

\begin{document}
blah blah
\begin{abstract}
blah blah
\end{abstract}

\end{document} 
By the same way, how to insert the header from the top of the " abstract" and put the number page on this abstract page ?
Once again thanks !
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

abstract | Abstract Heading Font Size

Post by localghost »

nenu28 wrote:[…] By the same way, how to insert the header from the top of the " abstract" and put the number page on this abstract page ? […]
Since the {abstract} environment relies on the {titlepage} environment, it would need a modification of the latter one. The side effect would be that page numbers and headers also appear on the title page, which is usually not wanted.
Post Reply