Latex/C2/Equations/English: Visual Cue Narration
Latex/C2/Equations/English: Visual Cue Narration
LaTeX/C2/Equations/English
From Script | Spoken-Tutorial
1. Copy equations.tex into numbers.tex
2. Both equations.tex and numbers.tex should be sized
3. Both should be opened in TeXworks
4. Both should be at the first line
5. equations.tex should be at the top, and numbers.tex should be below
Initial conditions 6. Compile numbers.tex and get numbers.pdf
7. numbers.pdf should be sized
8. numbers.pdf should be scrolled all the way to the top
9. eqn-slides.pdf should be at the first slide
10. All should be arranged, as recorded in the tutorial
11. equations.tex should be directly below the slides file
One may use any of Linux, Windows or the Mac operating system.
I will next call your attention to this standard textbook by Leslie Lamport.
Slide on Leslie Lamport’s book
I learnt my LaTeX from this book.
Web browser is opened Let me show on the web browser where one can buy it.
Let us begin this tutorial
Let us learn how to write equations using LaTeX.
I will keep the file equations.tex intact, and not change it.
Whenever you want to start afresh, you can make a new copy
of equations.tex
I recommend this method whenever a code file is given with ANY spoken
tutorial.
Let us compile this file by pressing the Typeset arrow at the top left hand
Press the Typeset key
corner.
Pdf file You can see the pdf file on the right.
Switch to the tex file. Let us look at the tex file, which begins with its usual commands.
I have chosen the width of the pdf file to be 8cm.
Highlight 8cm
This is the only way I can show the entire file and also use a large font.
Click u(t) line in tex On the left hand side of this equation, we have u of t.
Click u(t) in the pdf file On the right hand side, I have produced big square brackets.
How did I do this?
With back slash left square and back slash right square brackets as
Hover on \left and click \right
shown here.
Click the x_1 line On the left hand side, we have the derivative of a vector.
Click on the eqn in the pdf file We can see the pdf output here.
Click on matrix tex On the right hand side, we have a 3 by 3 matrix.
Click on matrix pdf See the corresponding output.
Delete row 1 compile Suppose we delete the first row in this matrix and compile.
We get a 2 by 3 matrix pdf output.
Click the pdf
The first line is gone.
Undo the last command in tex Let me put the row back.
Compile Let me compile.
You can also add more rows, if necessary.
Recall that we used the dollar mode to write formulae in another tutorial.
Here, align plays the role of the dollar mode.
Click on begin align in tex
In fact, one should not put the dollar sign within the align environment.
Below the line with alpha, leave a Another common mistake is leaving blank lines in the align environment.
blank line
Let me leave an empty line and compile.
https://script.spoken-tutorial.org/index.php/LaTeX/C2/Equations/English 3/6
5/16/2020 LaTeX/C2/Equations/English - Script | Spoken-Tutorial
Press Typeset symbol to compile So it is important to remember that you should not leave a blank line within
the align statement.
Remove the blank line Let me remove this line and compile.
Next, I want to align the two equations by the equal to sign.
For this, we need to put both equations inside one align star environment.
Remove \end{align*} Remove the end align* command of the first equation.
Remove \begin{align*} Remove the begin align* command of the second equation.
In the pdf file The text in between the two equations appears as a large string.
https://script.spoken-tutorial.org/index.php/LaTeX/C2/Equations/English 4/6
5/16/2020 LaTeX/C2/Equations/English - Script | Spoken-Tutorial
To do this, let us put the ampersand sign in front of the equal to sign.
Put & sign before =
Let's do it for the first equation.
Repeat in the 2nd eqn. And then let's do it for the second equation.
Compile On compiling, we see the two equations aligned by the equal to sign.
The equations are aligned even though there is text in between.
Remember to use the intertext command whether you want the equations
aligned or not.
Add \\ We solve this by putting two back slashes at the end of the first equation.
Compile Let us compile, to get the correct pdf file.
Undo Let us now undo and put the text in between two equations.
Compile Let us compile once more.
This is where we will stop.
Can you pause this video and try to produce this output?
Assignment 5
Use the hint given here.
Assignment 6 Please pause the video here, and try to produce them by yourself.
Down arrow
You will have to register on this website to ask questions.
Down arrow twice
For topics not covered in spoken tutorials, visit stack exchange at this
Where to post slide
address.
Contact us slide For any other questions, please contact us.
Acknowledgement slide Spoken Tutorial project is funded by MHRD, Government of India.
Thanks for joining.
Goodbye.
https://script.spoken-tutorial.org/index.php/LaTeX/C2/Equations/English 6/6