Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LaTeX Beginner's Guide

You're reading from   LaTeX Beginner's Guide When there‚Äôs a scientific or technical paper to write, the versatility of LaTeX is very attractive. But where can you learn about the software? The answer is this superb beginner‚Äôs guide, packed with examples and explanations.

Arrow left icon
Product type Paperback
Published in Mar 2011
Publisher Packt
ISBN-13 9781847199867
Length 336 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (21) Chapters Close

LaTeX
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with LaTeX FREE CHAPTER 2. Formatting Words, Lines, and Paragraphs 3. Designing Pages 4. Creating Lists 5. Creating Tables and Inserting Pictures 6. Cross-Referencing 7. Listing Content and References 8. Typing Math Formulas 9. Using Fonts 10. Developing Large Documents 11. Enhancing Your Documents Further 12. Troubleshooting 13. Using Online Resources Pop Quiz Answers Index

Time for action – creating a narrow text column


We would like to explain the acronym TUG in a text column of only 3 cm width:

  1. Create a new document containing these four lines:

    \documentclass{article}
    \begin{document}
    \parbox{3cm}{TUG is an acronym. It means \TeX\ Users Group.}
    \end{document}
  2. Typeset and take a critical look at the output:

What just happened?

We used the command \parbox to create a column. We stated the width of 3 cm in the first argument and the contained text in the second argument to \parbox.

\parbox takes the argument text and formats the output to fit the specified width. We see that the text is fully justified. Our example shows an obvious problem: insisting on full justification could lead to undesirable big gaps in the text. Possible solutions are:

  • Introducing hyphenation: the word acronym could easily be divided

  • Improving justification: LaTeX could do better

  • Giving up full justification: narrow text could look better when it's only left justified

We will check out all of...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image