diff options
author | Harish Badrinath | 2012-03-06 12:04:01 +0530 |
---|---|---|
committer | Harish Badrinath | 2012-03-06 12:04:01 +0530 |
commit | 0f73a1ddad07d654cb9b0f068ea2b4c2a109b79f (patch) | |
tree | 1c50d65d9d3fad229f7793e04cb907540cd98e34 | |
parent | 9aa3dead6022749ef41f97bfb0d4cec2dd6ab9f5 (diff) | |
download | sdes-stscripts-0f73a1ddad07d654cb9b0f068ea2b4c2a109b79f.tar.gz sdes-stscripts-0f73a1ddad07d654cb9b0f068ea2b4c2a109b79f.tar.bz2 sdes-stscripts-0f73a1ddad07d654cb9b0f068ea2b4c2a109b79f.zip |
Fixed various errors in the Latex2,Latex3 and Latex6 scripts.
-rw-r--r-- | Latex/Latex2/latex_intro_script.rst | 21 | ||||
-rw-r--r-- | Latex/Latex3/latex_basics_and_structure_script.rst | 67 | ||||
-rw-r--r-- | Latex/Latex6/latex_math_biblo_beamer_script.rst | 67 |
3 files changed, 77 insertions, 78 deletions
diff --git a/Latex/Latex2/latex_intro_script.rst b/Latex/Latex2/latex_intro_script.rst index 67a4eaf..964a7b6 100644 --- a/Latex/Latex2/latex_intro_script.rst +++ b/Latex/Latex2/latex_intro_script.rst @@ -136,7 +136,7 @@ of the document. .. R8 -Some of the disadvantages of using LaTeX approach to typesetting is +Some of the disadvantages of using LaTeX approach to typesetting are (1) Designing a whole new layout is difficult. (2) LaTeX is not a word processor, that is the document author is not expected to worry about presentation details like the size of font, for example. @@ -181,9 +181,7 @@ command and ends with an end command. So, as expected LaTeX ignores anything that is written after the \end{document} command. Essentially, anything written after the \end{document} command turns -out to be a comment. But, how do we write comments with in the document. % is -the character to indicate comments. Anything written after a % symbol in a -line, is ignored. +out to be a comment. .. L11 @@ -191,11 +189,14 @@ line, is ignored. .. R11 +But, how do we write comments with in the document. % is +the character to indicate comments. Anything written after a % symbol in a +line, is ignored. But what if we wanted to insert the % symbol in the document? We can do so by escaping it with a \ (backslash). % is one of the many special characters in -LaTeX. The others are, ~ # $ ^ & _ { } \. All of them, except the \ itself, can -be inserted by escaping it with a \. To insert a \ in our document, we use the -command \textbackslash. +LaTeX. The others are shown on the screen. All of them, except the \ itself, +can be inserted by escaping it with a \. To insert a \ in our document, we use +the command \textbackslash. What would happen if we escape a \ with a \? A double backslash is actually another command. It inserts a new line in the @@ -234,8 +235,7 @@ file temp.tex into a DVI file, we use the following command latex temp.tex. -The output file would be temp.dvi.On Gnu/Linux use a program like xdvi to view -the output file. +The output file would be temp.dvi. .. L14 @@ -249,9 +249,6 @@ file temp.tex into a PDF file, we use the following command pdflatex temp.tex -The output file would be temp.pdf.On Gnu/Linux use a program like evince to -view the output file. - Please note that, throughout this course we shall be using pdflatex to compile our documents. diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst index 9d8f6c6..90067c7 100644 --- a/Latex/Latex3/latex_basics_and_structure_script.rst +++ b/Latex/Latex3/latex_basics_and_structure_script.rst @@ -117,7 +117,7 @@ The supported classes have a few differences, in how the content of the document We now look at a hypothetical documentclass command. The command being shown on the screen, instructs LaTeX to Create a new document of class report. The available classes are article, proc, -report, book, slides, letter. +report, book, slides and letter. 12 pt: sets the font size of main font. Other are relatively adjusted. 10pt is the default. a4paper: specifies the paper size @@ -144,7 +144,7 @@ the texdoc command for accessing package documentation. We add the title, the author and the date to the document before the \begin{document} directive. We compile the document to see if the details -appear in the document, but they donot. +appear in the document, but they do not. .. L10 @@ -153,8 +153,10 @@ appear in the document, but they donot. .. R10 The command \maketitle adds title, authors name and date to the output file. -Of these only the date is optional. If date command is specified, then the given -date is used else today's date is used. +Of these only the date is optional. The date command can be called with an +optional parameter. If the optional parameter is not provided, the date of +compilation of the LaTeX document is used. The parameter, if specified is used +to override this value. .. L11 @@ -162,10 +164,10 @@ date is used else today's date is used. .. R11 -The abstract command is used to insert abstract of a document, into the output -file.Place it in the location, where you want your abstract to present in -the document. It is available for the document classes article and report, but -not book +The abstract command is used to insert the abstract of a document, into the +output file.Place it in the location, where you want your abstract to present +in the document. It is available for the document classes article and report, +but not for the book class. .. L12 @@ -176,9 +178,9 @@ not book Titles chapters and sections are used to help the user find his or her way through your work. The following commands are available in the article class: section, subsection, subsubsection, paragraph and sub paragraph. The default -behavior is to use numbered sections. We can use un-numbered sections appending -* to section command. If you want to split your document without influencing the -section or chapter numbering use the part command. +behavior is to use numbered sections. We can use un-numbered sections by +appending * to section command. If you want to split your document without +influencing the section or chapter numbering, use the part command. .. L13 @@ -196,8 +198,8 @@ file shown in the slide we notice that subsections are not numbered. .. R14 -We can change this behavior with the command setcounter , calling it as shown -in the slide. +We can change this behavior with the setcounter command, calling it with +parameters shown on the slide. .. L15 @@ -205,12 +207,13 @@ in the slide. .. R15 -Appendix can be added to the document using \appendix command. any content after -\appendix will be added to the appendix. In the report or book class, we have to -use \chapter to indicate that the chapters are to be numbered as appendices. +Appendix can be added to the document using \appendix command. Any content +after the \appendix command will be added to the appendix. In the report or +book class, we have to use \chapter command to indicate that the chapters are +to be numbered as appendices. -similarly for the article class we have to use the section command to indicate -that sections are to be numbered as appendices. +Similarly for the article class, we have to use the \section command to indicate +the sections that are to be numbered as appendices. .. L16 @@ -218,19 +221,15 @@ that sections are to be numbered as appendices. .. R16 -Lets add a Table of content to the document. The LaTeX command to add a TOC to a -document is using \tableofcontents command and is placed at the point at which -the table of content is to be placed. - -Now, compile the document and look at the output document. It does not have the table of contents! - -We compile our LaTeX file as usual. On the first compilation only the "Contents" -heading appears in the document, but the actual table does not appear. You will -need to compile your document once more, for the actual table to appear in your -document. On the first run, LaTeX has gone through your document and generated -a temporary file (.toc), with the entries that should go into the table of -contents. These entries are made, when you compile your document for the second -time. +We use the \tableofcontents command to add a TOC to a document is and is placed +at the point at which the table of content is to be placed. It must be noted +that \tableofcontents command requires the LaTeX input file to be compiled +twice. On the first compilation only the "Contents" heading appears in the +document, but the actual table does not appear. LaTeX has now gone through +the input document and generated a temporary file (.toc), with the entries that +should go into the table of contents. When the input document is compiled for +the second time, these entries are made and the actual table will appear in +your output document. Note that any section/block that has been numbered automatically appears in the table of contents. It is possible to get un-numbered sections, for instance a @@ -243,9 +242,9 @@ Preface or a Foreword section to appear in the Table of Contents. .. R17 Un-numbered sections are added to TOC using \addcontentsline command. -For example we use the command -\addcontentsline{toc}{section}{Intro} -where "Intro" is the text that you want to appear in the Table of contents. +For example we use the addcontentsline command called with the parameters +"{toc}{section}{Intro}", for the text "Intro" to appear in the Table of +contents. .. L18 diff --git a/Latex/Latex6/latex_math_biblo_beamer_script.rst b/Latex/Latex6/latex_math_biblo_beamer_script.rst index de88c6a..cedf88d 100644 --- a/Latex/Latex6/latex_math_biblo_beamer_script.rst +++ b/Latex/Latex6/latex_math_biblo_beamer_script.rst @@ -67,19 +67,20 @@ In general, it is advisable to use the AMS-LaTeX bundle to typeset mathematics in LaTeX. AMS-LaTeX is a collection of packages and classes for mathematical typesetting. -We can load amsmath by issuing the \usepackage{amsmath} in the preamble.It must +We can load amsmath by issuing the \usepackage{amsmath} in the preamble.It must be noted that amsmath is included in the base distribution of LaTex, in atleast the most recent versions. -Math formulae can be embedded in two ways, - “inline” or “text style ” method, which is done by enclosing the - required command and text within two dollar signs or between an backslash - opening bracket and backslash closing bracket. +Math formulae can be embedded in one of two ways. The first is, “inline” or +“text style ” method, which is done by enclosing the required commands and +text within two dollar signs or between an backslash opening bracket and +backslash closing bracket. - By enclosing them in a dedicated environment respectively/displayed style. +The second method is by enclosing them in a dedicated environment respectively, +this is also called displayed style. The most common LaTeX environment used to typeset mathematical formulae is -from equation family. +from the equation family. .. L5 @@ -89,8 +90,8 @@ from equation family. .. R5 An environment like bmatrix for example, is used to render a matrix. The syntax -for specifying a matrix is similar to that used in the tabular environment. The -& symbol is used for demarcating columns and \\ is used to demarcate rows. +for specifying a matrix is similar to that used for the tabular environment. +The & symbol is used for demarcating columns and \\ is used to demarcate rows. There are 5 other matrix environments and each have different/no type of delimiters. A table showing the data is being shown on the screen. The matrix @@ -102,7 +103,7 @@ and its allied environments are defined by the amsmath package. .. R6 -The screen shows the an example, that renders different types of matrices using +The screen shows the example, that renders different types of matrices using LaTeX. It also shows the two ways in which mathmatical formulae can be embedded into @@ -118,11 +119,11 @@ Please pause the tutorial and go through the example shown on the screen. .. R7 To typeset superscripts in LaTeX, the carat character is used. The carat -operator just acts on the next character. +operator just acts on the immediate next character. To typeset subscripts in LaTeX, the underscore character is used. The carat -operator just acts on the next character. -Multiple characters and ambiguity is resolved by grouping them using opening -and closing curly brackets. +operator just acts on the immediate next character. +Multi character grouping and ambiguity is resolved by grouping them using +opening and closing curly brackets. .. L8 @@ -130,10 +131,10 @@ and closing curly brackets. .. R8 -To typeset the summation symbol, use the sum command. Similarly, the integral -symbol is obtained using the int command. The upper and lower limits, for both -the sum and int command are specified using the carat and underscore characters -, respectively. +To typeset the summation symbol, we use the sum command. Similarly, the +integral symbol is obtained using the int command. +The upper and lower limits, for both the sum and int command are specified +using the carat and underscore characters, respectively. .. L9 @@ -141,12 +142,12 @@ the sum and int command are specified using the carat and underscore characters .. R9 -We now move onto using the equation environment to render mathematical formulae, -which are numbered. Another environment called equation star environment renders +We now move onto using the equation environment to render mathematical formulae +which are numbered. Another allied environment called equation star renders unnumbered equations. -Backslash and opening square bracket and its counterpart the backslash -closing square bracket is a short hand for equation star environment. +Backslash opening square bracket and its counterpart the backslash closing +square bracket is a short hand for equation star environment. There is no similar shorthand for equation environment (i.e, the numbered equation environment). @@ -174,11 +175,12 @@ ampersand symbol. .. R11 -To typeset fractions use the frac command. To typeset surds, we use the sqrt -command with the optional paramter of [n]. +To typeset fractions we use the frac command and to typeset surds, we use the +sqrt command with the optional paramter of [n]. The optional parameter for the +sqrt command is used to render roots not equal to 2. -Please note that there is a special command dfrac, that can be used to render -fractions as if its placed in display mode and is meant to be used even in +Please note that there is a special command dfrac that can be used to render +fractions, as if its placed in display mode and is meant to be used even in inline mode. .. L12 @@ -210,13 +212,13 @@ Each entry of the bibliography begins with the command bibitem. It takes an optional parameter called label and a name for the entry.The label option replaces the numbers from the auto enumeration with the labels given. -The to cite the bibliography item within the document, we use the cite command, +Then to cite the bibliography item within the document we use the cite command, containing name as a parameter. We start the bibliography environment with a numerical parameter. This defines how much space is to be reserved for all the labels. If for example, we have less than 10 items in the Bibliography we would begin -the bibliography environment with an parameter, whose value is 9. +the bibliography environment with a parameter, whose value is 9. .. L14 @@ -226,9 +228,9 @@ the bibliography environment with an parameter, whose value is 9. .. R14 It is highly recommended to use beamer to create presentations, especially when -you are using LaTeX typesetting your report. This is mainly because, it would be -really easy to reuse the LaTeX that you have used for the report/document for -the presentation as well. +you are using LaTeX typesetting your report. This is mainly because it would be +really easy to reuse the LaTeX content that you have already used for the +report/document for, the presentation as well. We begin a beamer document with the documentclass being set to beamer. @@ -253,7 +255,8 @@ We must also note that the title page of the presentation can be set like any other LaTeX document. If we have to use fragile environemts like verbatim or lstlisting inside a -slide, then we have to pass an additional parameter to begin frame, fragile. +slide, then we have to pass an additional parameter to begin frame, namely +fragile. Overlays and simple animation can be achieved using the pause command. |