...change the default fontsize (2)?

In $latex \LaTeX$ there are usually multiple ways to accomplish the same task. We've seen how to change the default fontsize and saw that we could make the font tiny by using the command {\tiny Hello world!}. It's easy to understand the basic idea: \tiny tells us how big to make the font and the text it is applied to is contained within {}.

But LaTeX also lets you change the fontsize to tiny by putting \tiny oustide the {} so \tiny{Hello world!} will make sure that everything within the {} is printed in a tiny font. They are different ways of doing the same thing. Well, not exactly the same thing. Here's the output when you convert typeset your document using the second method. This is the tex file: Fontsize2

Compare this output to the output of the first method and it's obvious that the spacing between the lines is much different. To make sure your output behaves predictably it's a good idea while you're learning to pick one method and stick to it. Now that we've seen 2 methods for making changes to the fontsize, I'm going to try to stick with one approach; with respect to fontsize I'll go for the \tiny{} model. In the future, you should be aware that I'll typically focus on 1 way to accomplish a task in the $latex \LaTeX$ document. If you don't like the way something is done, look around for another method but be aware it may lead to subtle differences in the final output. A good place to find other ways to do what you want is TeX StackExchange. The link is on the sidebar as well.

It's also worth mentioning that the different approaches won't always be as easy as putting the command inside or outside the {}. Sometimes the commands differ depending on whether you've chosen to put them inside or outside and some methods might be radically different. That freedom can complicate the learning process but you'll appreciate once you get more comfortable. Finally, notice that I've added some extra comments in the document. You'll need to know that the preamble is the space between \documentclass and \begin{document}.

Leave a Reply

Your email address will not be published. Required fields are marked *

AlphaOmega Captcha Classica  –  Enter Security Code