1 Answer
1

I browsed your profile and saw that you might be interested to write your own class or package so that whenever you use your class or package, your header will automatically be loaded. I can see where you're problem is coming from. It might be that you want to lessen the time you have to type a header like the one you posted whenever you want to make an exam or something like that (which may be your school test paper template or something like that).

You have several options to do this and I list two.

1. Put in a separate file all code that you use frequently then copy and paste as needed.

Using option 2 and the links found in the links I have posted here, I have come up with my own document class which automates the inclusion of a school header on the first page and none on the other pages for my class exams and school memos. For your specific problem, you can have a class file with the following contents.

If you want to have the header simply to appear on the first page without messing with the header, then you can do something like:

@GonzaloMedina, thanks a lot. That explains it. I have now modified my answer to alter the spacing for the code.
–
hpesoj626Sep 3 '12 at 4:41

@hpesoj626: Thank you so much. Its a really big help for beginners like me! But, can you show me a sample output of the second bullet you have posted. I can't really imagine what should it be look like.
–
KaylaSep 3 '12 at 9:13

@Kayla, you are welcome. I have modified my answer. Welcome to TeX.sx! btw. Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. You can also accept an answer if you think it is the best answer. You may wait for 24 hours to pass before accepting one so that you can see if there will be some other posts which can answer your questions better.
–
hpesoj626Sep 4 '12 at 1:12