TransWikia.com

How to use title variable inside a class?

TeX - LaTeX Asked on January 28, 2021

I try to define a class by myself and I want to put title to top-center of page but when I use it like

chead{textcolor{blue}{textbf{ {fontfamily{phv} selectfont @title}}}}

it does not print title to its position.

I use maketitle command in document. I read it that it locks the variable.
So how could I create my class so that it will print the title to page’s top-center as a variable?

EDIT:Changed document class from article to report and it is solved.

One Answer

Changed document class from article to report and it is solved. If is there any solution for article class it is welcome.

Answered by Nabla on January 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP