Text FormattingTitle of the abstract placed just before the text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Domingues
Posts: 6
Joined: Sat Apr 17, 2010 4:05 am

Title of the abstract placed just before the text

Post by Domingues »

Hi everyone.

I'm trying to write one article, and i want the title of the abstract placed just before the text, in the following fashion:

Abstract: Once upon a time...zzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzzzzzs ssssssssssssssssssss
sssssssss ssssssssss s sssssssssssss so on.

Actually i've already reached to a solution, but it gets centered and not justified as i want, because i must center the authors and the emails.

Thanks
Last edited by Domingues on Sun Apr 18, 2010 9:11 pm, edited 4 times in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Abstract

Post by gmedina »

Hi,

the answer might vary depending on the document class (crucial information that you forgot to mention), so... which document class are you using?.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Domingues
Posts: 6
Joined: Sat Apr 17, 2010 4:05 am

Title of the abstract placed just before the text

Post by Domingues »

Hi again, thanks for helping me.
As you can see, i'm using article class, and i have been trying some hypoteses.
I tried to renew the abstract command, and actually it works, however the abstract gets centered, 'cause i'm centering the authors and e-mails.

i'd aprecciate If you give me some hint, to change the way i'm writting the authors or to change the renewcommand.

Thanks

Code: Select all

Code, edit and compile here:
\documentclass[10pt,a4paper]{article}
\usepackage[portuges]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage{aeguill}
\renewcommand{\abstract}[1]{{ \footnotesize \noident {\bf\\Resumo:} #1 }}
\begin{document}
\title{Arquitecturas de Software 2009/2010 \\ Relatorio Final sobre sistema KWIC}
\date{}
\maketitle
\center{\author{Jose Correia \and{e} Rui Domingues }}
\center{\texttt {\{javcorreia,rui.domingues\}@gmail.com}}
\linebreak
\abstract{
O meu abstract bla bla bla asl siaiak ikskakmspkasmpaskmaspkakijnoasiknj onas
asasas abshia hsijhsaohsahj apljapjp aij psa j
ijaskuih kahs ohsa ojhasp okja sp j as
asjhbol ai poaisjos ak}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Title of the abstract placed just before the text

Post by Montag »

Honest to God, I had no idea there was a \center-command! :o :)
Here's what the title page of this document (guide) consists of:

Code: Select all

Code, edit and compile here:
\thispagestyle{empty}
\begin{center}\huge
Minion Pro {\footnotesize and} \textsf{Myriad Pro} {\footnotesize for MikTeX 2}\\\large
on a PC with Windows XP and higher
\end{center}
\begin{center}\small
Version: \today~at~\thistime~h
\end{center}
\begin{abstract}\footnotesize
\noindent \textbf{Preamble:}\\
This is a simple guide for installing Minion Pro for the use with MikTeX. This document is intended for entry-level users. If you know how to install a font for MikTeX, you can close this document. There may be other ways to correctly install a font; consider this more of a log of the steps that I (successfully) took. This guide is solely based on the advice I got and the steps I took and of all the steps I took especially the steps that worked. If you want to work through this guide, I suggest you print it.
\end{abstract}
\tableofcontents
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Domingues
Posts: 6
Joined: Sat Apr 17, 2010 4:05 am

Title of the abstract placed just before the text

Post by Domingues »

Thanks a lot.
Actually it almost works, but still there is a problem.
Now with:

Code: Select all

Code, edit and compile here:
\documentclass[10pt,a4paper]{article}
\usepackage[portuges]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage{aeguill}
...
\begin{abstract}\footnotesize
\noindent \textbf{Resumo:}
This is...
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The text is aligned the way I desire, but it puts Abstract as Title, and in the next line it starts as I want. Something like:

...........................Abstract(centered)
Resumo: This is....

Is it possible to delete the "Abstract" word as title.

Thanks
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Abstract

Post by Montag »

I am sorry, but I do not understand what exactly it is you wish to get as a result. :/
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Title of the abstract placed just before the text

Post by localghost »

The easiest way would be to renew the abstract environment and introduce the abstract with a simple \paragraph command as shown below.

Code: Select all

Code, edit and compile here:
\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[portuges]{babel}
\makeatletter
\if@titlepage
\renewenvironment{abstract}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\paragraph{\abstractname:}
\@endparpenalty\@M
}%
{\par\vfil\null\endtitlepage}
\else
\renewenvironment{abstract}{%
\if@twocolumn
\section*{\abstractname}%
\else
\small
\paragraph{\abstractname:}
\fi}
{\if@twocolumn\else\par\bigskip\fi}
\fi
\makeatother
\title{Arquitecturas de Software 2009/2010 \\ Relatorio Final sobre sistema KWIC}
\author{Jose Correia \\ \texttt{javcorreia@gmail.com} \and Rui Domingues \\ \texttt{rui.domingues@gmail.com}}
\date{}
\begin{document}
\maketitle
\begin{abstract}
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
\end{abstract}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Drop the aeguill and t1enc package. They are obsolete.


Best regards and welcome to the board
Thorsten
Domingues
Posts: 6
Joined: Sat Apr 17, 2010 4:05 am

Re: Abstract

Post by Domingues »

Thanks a lot. That is exactly what I want.
Domingues
Posts: 6
Joined: Sat Apr 17, 2010 4:05 am

Re: Abstract

Post by Domingues »

Actually, it is one thing missing yet. The margins in the abstract section must be larger than the all rest of the document margins.

I really do not know how to shrink the abstract text width.


Thanks again for your support.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Title of the abstract placed just before the text

Post by gmedina »

Hi,

try this:

Code: Select all

Code, edit and compile here:
\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[portuges]{babel}
\makeatletter
\if@titlepage
\renewenvironment{abstract}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\par\medskip\noindent{\bfseries\abstractname:}
\@endparpenalty\@M
}%
{\par\vfil\null\endtitlepage}
\else
\renewenvironment{abstract}{%
\if@twocolumn
{\bfseries\abstractname:}%
\else
\quotation
\small\noindent{\bfseries\abstractname:}
\@endparpenalty\@M
\fi}
{\if@twocolumn\par\medskip\else\endquotation\fi}
\fi
\makeatother
\title{Arquitecturas de Software 2009/2010 \\ Relatorio Final sobre sistema KWIC}
\author{Jose Correia \\ \texttt{javcorreia@gmail.com} \and Rui Domingues \\ \texttt{rui.domingues@gmail.com}}
\date{}
\begin{document}
\maketitle
\begin{abstract}
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
\end{abstract}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply