From 961f0d1df526285b3a08b8a75af7197b5e6f86b7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 2 Feb 2020 22:42:01 +0000 Subject: l2e (2feb20) git-svn-id: svn://tug.org/texlive/trunk@53640 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/base/sample2e.tex | 80 +++++++++++++-------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'Master/texmf-dist/tex/latex/base/sample2e.tex') diff --git a/Master/texmf-dist/tex/latex/base/sample2e.tex b/Master/texmf-dist/tex/latex/base/sample2e.tex index 715e46d2d0d..117c9b9bcd9 100644 --- a/Master/texmf-dist/tex/latex/base/sample2e.tex +++ b/Master/texmf-dist/tex/latex/base/sample2e.tex @@ -27,26 +27,26 @@ the output it generates can show you how to produce a simple document of your own. \section{Ordinary Text} % Produces section heading. Lower-level - % sections are begun with similar + % sections are begun with similar % \subsection and \subsubsection commands. -The ends of words and sentences are marked - by spaces. It doesn't matter how many +The ends of words and sentences are marked + by spaces. It doesn't matter how many spaces you type; one is as good as 100. The end of a line counts as a space. -One or more blank lines denote the end -of a paragraph. +One or more blank lines denote the end +of a paragraph. Since any number of consecutive spaces are treated like a single one, the formatting of the input file makes no difference to \LaTeX, % The \LaTeX command generates the LaTeX logo. but it makes a difference to you. When you use -\LaTeX, making your input file as easy to read -as possible will be a great help as you write -your document and when you change it. This sample -file shows how you can add comments to your own input +\LaTeX, making your input file as easy to read +as possible will be a great help as you write +your document and when you change it. This sample +file shows how you can add comments to your own input file. Because printing is different from typewriting, @@ -54,19 +54,19 @@ there are a number of things that you have to do differently when preparing an input file than if you were just typing the document directly. Quotation marks like - ``this'' + ``this'' have to be handled specially, as do quotes within quotes: ``\,`this' % \, separates the double and single quote. - is what I just - wrote, not `that'\,''. - -Dashes come in three sizes: an - intra-word -dash, a medium dash for number ranges like - 1--2, -and a punctuation - dash---like + is what I just + wrote, not `that'\,''. + +Dashes come in three sizes: an + intra-word +dash, a medium dash for number ranges like + 1--2, +and a punctuation + dash---like this. A sentence-ending space should be larger than the @@ -80,12 +80,12 @@ You should check the spaces after periods when reading your output to make sure you haven't forgotten any special cases. Generating an ellipsis - \ldots\ % `\ ' is needed after `\ldots' because TeX - % ignores spaces after command names like \ldots + \ldots\ % `\ ' is needed after `\ldots' because TeX + % ignores spaces after command names like \ldots % made from \ + letters. % - % Note how a `%' character causes TeX to ignore - % the end of the input line, so these blank lines + % Note how a `%' character causes TeX to ignore + % the end of the input line, so these blank lines % do not start a new paragraph. % with the right spacing around the periods requires @@ -98,12 +98,12 @@ following: \$ \& \% \# \{ and \}. In printing, text is usually emphasized with an - \emph{italic} -type style. + \emph{italic} +type style. \begin{em} - A long segment of text can also be emphasized - in this way. Text within such a segment can be + A long segment of text can also be emphasized + in this way. Text within such a segment can be given \emph{additional} emphasis. \end{em} @@ -114,7 +114,7 @@ This may be at a space, as between the ``Mr.''\ and ``Mr.~Jones'', % ~ produces an unbreakable interword space. or within a word---especially when the word is a symbol like - \mbox{\emph{itemnum}} + \mbox{\emph{itemnum}} that makes little sense when hyphenated across lines. @@ -123,12 +123,12 @@ pose no problem. \LaTeX\ is good at typesetting mathematical formulas like - \( x-3y + z = 7 \) + \( x-3y + z = 7 \) or \( a_{1} > x^{2n} + y^{2n} > x' \) -or +or \( \ip{A}{B} = \sum_{i} a_{i} b_{i} \). -The spaces you type in a formula are +The spaces you type in a formula are ignored. Remember that a letter like $x$ % $ ... $ and \( ... \) are equivalent is a formula when it denotes a mathematical @@ -140,7 +140,7 @@ Text is displayed by indenting it from the left margin. Quotations are commonly displayed. There are short quotations \begin{quote} - This is a short quotation. It consists of a + This is a short quotation. It consists of a single paragraph of text. See how it is formatted. \end{quote} and longer ones. @@ -165,11 +165,11 @@ list. contains another list nested inside it. The inner list is an \emph{enumerated} list. \begin{enumerate} - \item This is the first item of an enumerated + \item This is the first item of an enumerated list that is nested within the itemized list. - \item This is the second item of the inner list. - \LaTeX\ allows you to nest lists deeper than + \item This is the second item of the inner list. + \LaTeX\ allows you to nest lists deeper than you really should. \end{enumerate} This is the rest of the second item of the outer @@ -179,22 +179,22 @@ list. \end{itemize} You can even display poetry. \begin{verse} - There is an environment + There is an environment for verse \\ % The \\ command separates lines Whose features some poets % within a stanza. - will curse. + will curse. % One or more blank lines separate stanzas. For instead of making\\ Them do \emph{all} line breaking, \\ - It allows them to put too many words on a line when they'd rather be + It allows them to put too many words on a line when they'd rather be forced to be terse. \end{verse} Mathematical formulas may also be displayed. A -displayed formula -is +displayed formula +is one-line long; multiline formulas require special formatting instructions. \[ \ip{\Gamma}{\psi'} = x'' + y^{2} + z_{i}^{n}\] -- cgit v1.2.3