Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using a class file to help document my thesis. I need to make some basic changes and I therefore go and edit my class file.

I save it and then in Texnic Center when I do shift+ctrl+f5 I do not get the updated information.

Is there another way to compile or something? I am not sure why changes do not get reflected.

share|improve this question
    
What exactly is your "class" file? Is it a custom .cls file that you are using through \documentclass? –  Gonzalo Medina Jun 21 '11 at 20:23
    
Why are you editing the style file directly rather than doing your modifications in the preamble to your document? –  Seamus Jun 21 '11 at 20:24
    
@Seamus : because I was asked to shift everything on my title page 1 in downward and my thesis tex file just has \maketitle command.If there is another way to do this I'd be more than glad to try. –  rty Jun 21 '11 at 20:34
1  
@rty: You could use a titlepage environment. Furthermore, you could provide a link to the class file which would make it easier to help. –  Stefan Kottwitz Jun 21 '11 at 21:29
    
@Stefan : Here is the link to the website wiki.engr.illinois.edu/display/ECEThesisReview/LaTeX+Resources .It is the first download on this page -uiucecethesis09.cls –  rty Jun 21 '11 at 22:52
show 4 more comments

1 Answer 1

up vote 4 down vote accepted

Modifying directly a .cls file is not a good practice. Instead you can make the modification(s) in your .tex file (redefining what you need, and using \makeatletter, \makeatother if necessary). Another option is to use the etoolbox package; in this case, we only have to patch the \maketitle command, so you can use

\usepackage{etoolbox}
\patchcmd{\maketitle}{\begin{center}}{\begin{center}\vspace*{1in}}{}{}

in the preamble of your .tex document. A complete example:

\documentclass{uiucecethesis09}
\usepackage{etoolbox}

\patchcmd{\maketitle}{\begin{center}}{\begin{center}\vspace*{1in}}{}{}

\msthesis

\title{Title Goes Here and Will Be Automatically Set in ALL CAPS}
\author{Your Name Goes Here}
\department{Electrical and Computer Engineering}
\degreeyear{year}

\advisor{Your Adviser Here}


\begin{document}
\maketitle

\end{document} 
share|improve this answer
    
Perfect Gonzalo! Thanks for being such a sport and going through the actual cls document :) –  rty Jun 22 '11 at 2:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.