Text FormattingHow to change the format of nomenclature.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
adou89
Posts: 5
Joined: Tue Feb 03, 2015 10:40 pm

How to change the format of nomenclature.

Post by adou89 »

I am writing my thesis and trying to change the nomenclature title itself to center and a smaller font to match the format of the rest of the thesis.
Thanks a lot :)

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How to change the format of nomenclature.

Post by Johannes_B »

Hin and welcome,

i have absolutely no idea how to change it. There are about 5 commonly used packages out there to generate a nomenclature.
Please provide a minimal working example to show us what you are using and how you are using it.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
adou89
Posts: 5
Joined: Tue Feb 03, 2015 10:40 pm

Re: How to change the format of nomenclature.

Post by adou89 »

Hello, thanks so much for the quick reply.
I am currently using the package nomencl and I read the document and have no idea how to change the format.
I am new to Latex but I have to use latex for thesis.
I have a latex template which is very complicated to me to read and there is no nomenclature included so I have to write my own. I guess the problem is that the .sty doc did not give the proper format for nomenclature. Here I attaches the .sty doc.
Thanks again for your time. :)
Attachments
asudis.sty
(10.74 KiB) Downloaded 288 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to change the format of nomenclature.

Post by Johannes_B »

Can you make a compilable small test case for the helpers? The package should use a standard heading which seems to be ok if you load nomencl after asuthesis.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
adou89
Posts: 5
Joined: Tue Feb 03, 2015 10:40 pm

Re: How to change the format of nomenclature.

Post by adou89 »

I attaches the compiled file here.
Clearly the nomenclature title itself is not following the format. But the contents do follow the format.
Attachments
This is how list of table looks like in the template
This is how list of table looks like in the template
LOT.png (28.11 KiB) Viewed 6194 times
This is how the nomenclature I add looks like
This is how the nomenclature I add looks like
Nom.png (31.61 KiB) Viewed 6194 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How to change the format of nomenclature.

Post by Johannes_B »

Can you please provide some code (follow the link in my last post) so i can actually reproduce the behaviour and provide a solution?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
adou89
Posts: 5
Joined: Tue Feb 03, 2015 10:40 pm

Re: How to change the format of nomenclature.

Post by adou89 »

Sure.
This is the whole sample file and I add one nomenclature entry and print it at the beginning of the doc.
The main doc is dis.tex
Thanks very much for your time and sorry for the trouble I made :oops:
Attachments
dis.7z
(65.34 KiB) Downloaded 186 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

How to change the format of nomenclature.

Post by Stefan Kottwitz »

Welcome to the forum!

You could insert this in your preamble:

Code: Select all

\makeatletter
\renewcommand{\@makeschapterhead}[1]{%
  \begin{center}
    \uppercase\expandafter{#1}\vspace{\baselineskip}
  \end{center}
}
\makeatother
It produces a centered uppercased chapter heading for unnumbered chapters, which applies to the nomenclature heading and to further \chapter* headings. The code is made similar to the chapter code. The style file does make the contents headings in a different way but I think with the same intention.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How to change the format of nomenclature.

Post by Johannes_B »

Stefan was faster here, but while i was looking at it, i noticed that the package of your university requires the user to load packages. This is bad style, the package should take care that the packages it needs are loaded, hence less headache for the users.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
adou89
Posts: 5
Joined: Tue Feb 03, 2015 10:40 pm

Re: How to change the format of nomenclature.

Post by adou89 »

Thanks very much Johannes_B~! You rely me so many times! :D
And Stefan_K, your code works well~ Thanks a lot!
Post Reply