Graphics, Figures & Tables(HOW TO) Built text box in title page..in .sty file

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
yan
Posts: 3
Joined: Sun May 09, 2010 9:33 am

(HOW TO) Built text box in title page..in .sty file

Post by yan »

I need a title page which is contain a text box.....from .sty
I have try the \begin{tabular} but it cant work for me.

Code: Select all

\renewcommand{\maketitle}{
\null
\vfill
\thispagestyle{empty}
\begin{center}

\begin{tabular}{|p{4.7cm}|}{|c|}
\hline
{\rmfamily\large\bf\@title\\}
by\\
{\rmfamily\large\bf\@author}\\
\hline
\end{tabular}

\end{center}
\cleardoublepage
\vfill
\null
}
This the style i want:
Attachments
title_page.png
title_page.png (18.87 KiB) Viewed 3791 times
Last edited by yan on Thu May 13, 2010 5:30 am, edited 1 time 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.

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

(HOW TO) Built text box in title page..in .sty file

Post by frabjous »

You could use a combination of \framebox and \parbox... something like:

Code: Select all

\documentclass{report}
\author{LAM ZHENG YAN}
\title{ANALYSIS and CLASSIFICATION OF EEG SIGNALS using a NEURAL NETWORK}
 \makeatletter
 \renewcommand{\maketitle}{
 \null
 \vfill
 \thispagestyle{empty}
 \begin{center}
 
 \framebox{\parbox{4in}{%
    \centering%
    \textrm{\textbf{\large \@title}}\\
    by\\
    \textrm{\textbf{\large \@author}}\\
 }} 

 \end{center}
 \cleardoublepage
 \vfill
 \null
 }
 \makeatother
\begin{document}
\maketitle
\end{document}
Did you really mean those \vfill commands, though? Those will push the boxes to the bottom of the page.
yan
Posts: 3
Joined: Sun May 09, 2010 9:33 am

Re: (HOW TO) Built text box in title page....in .sty file

Post by yan »

Thks frabjous,

this is the thing i want.
Ya, \vfill will push it to the bottom of the page. mayb i will change to \vspace or something....depends on the report format needed.
Thks again~

Yan.
Post Reply