Beginner's Guide to Learning Latex: Tips and Tricks for Getting Started

  • LaTeX
  • Thread starter mech-eng
  • Start date
  • Tags
    Latex
In summary, LaTeX is a typesetting system that allows for complex documents to be written. LaTeX can be used with notepad or a different environment, such as browsers, to preview the results. First, practice writing basic LaTeX code in a different environment to see if it works. After that, use a LaTeX editor to write your documents.
  • #1
mech-eng
828
13
Hi. I would like to learn latex but I do not know how to start? Would you like to guide me?

First of all, before trying some simpler latex codes in the site, how can I try them in a different environment to see whether or not they work? For example I want to copy and past this [[itex, F_T, /itex] on that environement and see what happens.

Thank you.
 
Last edited:
Physics news on Phys.org
  • #3
The LaTeX code will look exactly the same regardless of what environment it's on, that's part of the point of LaTeX. It may look different in WYSIWYG editors, but rendered results should be identical to the pixel.
 
  • #4
newjerseyrunner said:
The LaTeX code will look exactly the same regardless of what environment it's on, that's part of the point of LaTeX. It may look different in WYSIWYG editors, but rendered results should be identical to the pixel.

From environment, I refer to copy and paste or write or enter the codes. When I enter them in notepad, I think notepad is also an environment, there is only bare codes. But when I put them in this sites codes becomes what they should be.

Thank you.
 
Last edited:
  • #5
I would recommend to download TeXStudio - I've found it good enough, although there are other good free integrated writing environments / tools too. In order to begin learning Latex I recommend this resource site http://www.howtotex.com/general/12-great-resources-for-getting-started-with-latex/. You can find short guides, tutorials and various other resources to begin. Latex - as most things, needs practicing, so you must devote some time to learn it well.
 
  • #6
mech-eng said:
From environment, I refer to copy and paste or write or enter the codes. When I enter them in notepad, I think notepad is also an environment, there is only bare codes. But when I put them in this sites codes becomes what they should be.

Thank you.
LaTeX won't render in Notepad -- it's not an "environment" -- it's just a text editor.

We have a tutorial here at PF -- https://www.physicsforums.com/help/latexhelp/
It's under the INFO menu, listed on the Help/How-to menu.
 
  • #7
mech-eng said:
Hi. I would like to learn latex but I do not know how to start? Would you like to guide me?
LaTeX is not restricted only to writing mathematical formulas, it includes a lot more: page layout, bibligraphy, cover design, reference management. It is a complete typesetting system which allows you to write large and complex documents.
I started learning LaTeX using a thin book of less than 150 pages, there they introduced basic aspects of page layout, font control, enviroments, basic math formulas and biblography. From this point one can easily understand or imagine solutions to almost LaTeX problems.
It is easier to learn LaTeX by using it, for instante, use LaTeX to write your lab reports or term projects. Later you may write your graduate, MSc or PhD thesis in LaTeX.
 
  • #8
soarce said:
LaTeX is not restricted only to writing mathematical formulas, it includes a lot more: page layout, bibligraphy, cover design, reference management. It is a complete typesetting system which allows you to write large and complex documents.
I started learning LaTeX using a thin book of less than 150 pages, there they introduced basic aspects of page layout, font control, enviroments, basic math formulas and biblography. From this point one can easily understand or imagine solutions to almost LaTeX problems.
It is easier to learn LaTeX by using it, for instante, use LaTeX to write your lab reports or term projects. Later you may write your graduate, MSc or PhD thesis in LaTeX.

Would you like to give the name of that book?

Thank you.
 
  • #9
mech-eng said:
First of all, before trying some simpler latex codes in the site, how can I try them in a different environment to see whether or not they work?
If by "the site" you mean "this site", i.e. Physics Forums, simply write your code (including the necessary delimiters, as described in our LaTeX primer) in the editing window for a new post or new thread, then click the "Preview" button.

If you don't click "Post Reply" or "Create Thread", nobody else will see what you're doing.
 
  • #10
mech-eng said:
Would you like to give the name of that book?
Thank you.
It is not written in English and is rather old (printed in 1994), nevertheless is based on Lamport's book. If you want I can translate the table of content. Then you can refer to Lamport and selectively read chapters and sections.
 
  • #11
You can download a LaTex editor like LyX. It is free and can help a lot.

To work at a lower level, you can put LaTex code in an HTML file and see how it looks in any browser. Use a link to a LaTex parser and it will show the result. You have to wait a couple of minutes for the parser to be called and give a result. Below is a sample of HTML code. I had to insert spaces in [ itex] and [ tex] so this website would not parse it. Omit those spaces in your work.
Code:
<html>
    <body>
        [ itex]y = a x^2 + bx + c[/itex]
        [ tex]\Delta \theta = \omega_0 t + \frac{1}{2} \alpha t^2.[/tex]
    </body>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML,https://www.physicsforums.com/mathjax/mjsettings.js"></script>

</html>

Here is how it should look:
[itex]y = a x^2 + bx + c[/itex]
[tex]\Delta \theta = \omega_0 t + \frac{1}{2} \alpha t^2.[/tex]
 
Last edited:
  • #12
Would you please explain this part: "by the way: if they are to act on multiple characters, enclose those characters in braces"

https://www.physicsforums.com/help/latexhelp/

It does not make sense to me.

Would you carry this thread under LaTeX forum.

Thank you.
 
  • #14
I quote the two sentences there, as they belong to the same context.
You can have both subscripts and superscripts on the same symbol. Normally they appear one on top of the other.
It just means that superscripts are (normally) right on top of subscripts. ##x^2_k## is also an example there.
 
  • Like
Likes mech-eng
  • #15
mech-eng said:
Would you please explain this part: "by the way: if they are to act on multiple characters, enclose those characters in braces"
If you want to write ##e^{ikx}## then you need to put braces (curly brackets {}) around all the things you want as superscripts. So e^ikx only raises the i: ##e^ikx##. e^{ikx} does what you want: ##e^{ikx}##. And e^i^k^x gives an error, which probably isn't what you want either.
 
  • Like
Likes mech-eng
  • #16
mech-eng said:
Hi. I would like to learn latex but I do not know how to start? Would you like to guide me?

You haven't really explained what you want to learn. Like @soarce says, LaTeX is a complete document preparation system. Many people (especially scientists and mathematicians) use it (instead of, say, Microsoft Word) to write entire research papers and books.

There are also some simple standalone programs and websites (like this forum) that don't support all of LaTeX but support rendering equations written using LaTeX's basic math commands.

If you want to learn LaTeX for creating documents then a good starting point is "The Not So Short Introduction to LaTeX", available as a PDF here. In order to use it you will need to install a TeX distribution. This will include programs that convert LaTeX code (written in a text file) to various formats like PDF. (I believe MikTeX is one popular one for Windows.) You will also need a text editor of some kind to write the LaTeX code in. You can use Notepad for this, though most people who use LaTeX a lot prefer to use a LaTeX-aware text editor or IDE (among other things, these will often know where the LaTeX program is installed on your system and will let you run it just by pressing a key or selecting a menu item).

If you're only interested in learning the LaTeX math commands (e.g. to write formulas here on PF) then you might like to try the tutorial for mathTeX here. It has a little practice box that you can type LaTeX code into to see what the equation will look like.
 
  • Like
Likes mech-eng
  • #17
wle said:
You haven't really explained what you want to learn. Like @soarce says, LaTeX is a complete document preparation system. Many people (especially scientists and mathematicians) use it (instead of, say, Microsoft Word) to write entire research papers and books.

At first I would like to use it in a very simple manner. I try to understand latex help released in this website. I want to discover it. Then I want to develop step by step. I want prepare simple documents for practice but this will be later. First I want to use it here.

Thank you.
 
  • #18
mech-eng said:
At first I would like to use it in a very simple manner. I try to understand latex help released in this website. I want to discover it. Then I want to develop step by step. I want prepare simple documents for practice but this will be later. First I want to use it here.

Thank you.
Have you read the LaTeX Guide in the link on the lower left corner of the post entry area? That is a good start. Also, if you see something in a post here, you can select it and right click => Show Math As => TeX Commands, to see its LaTeX code.
For large projects of your own, there are free LaTeX editors (like LyX) that you can download that are a big help. You can use it and see how it does things.
 
Last edited:
  • #19
mech-eng said:
At first I would like to use it in a very simple manner. I try to understand latex help released in this website. I want to discover it. Then I want to develop step by step. I want prepare simple documents for practice but this will be later. First I want to use it here.

If you're planning on eventually using LaTeX to create documents then my recommendation would be to just bite the bullet and install a LaTeX distribution on your computer (e.g. MikTeX for Windows) sooner rather than later. For using LaTeX I think this is the first big hurdle: spend an hour or however long it takes getting LaTeX installed and figure out how to use it it to compile a simple example LaTeX source file to PDF (even one just copied off the web somewhere). After that, I think learning LaTeX itself is not particularly difficult. If you start reading the introduction I linked to, it shouldn't take more than a day or two to learn how to typeset a simple document.

LaTeX is completely free to download and use, so I really don't see a good reason not to do this.
 
  • Like
Likes mech-eng

1. What is Latex and why should I learn it?

Latex is a typesetting language used for creating high-quality documents, particularly in the fields of mathematics, engineering, and science. It allows for precise formatting and consistent layout, making it ideal for academic writing. Learning Latex can also improve your efficiency and productivity when working with complex equations and technical content.

2. Is Latex difficult to learn for beginners?

While Latex may seem intimidating at first, it is actually quite straightforward once you understand the basics. It does require some time and effort to learn, but there are many resources available, such as tutorials, guides, and online forums, to help you get started. With practice, you can quickly become proficient in using Latex.

3. Do I need any special software to use Latex?

Yes, you will need to download and install a Latex distribution, which includes a Latex compiler and editor. Some popular options include MiKTeX, TeX Live, and MacTeX. These distributions are free and available for Windows, Mac, and Linux operating systems.

4. Can I use Latex for any type of document?

Latex is primarily used for scientific and technical documents, but it can also be used for other types of documents such as resumes, letters, and presentations. However, it may not be the best choice for simple or short documents, as the learning curve may not be worth the effort.

5. How can I get started with Latex?

The best way to get started with Latex is to first learn the basic syntax and commands. Then, practice by creating simple documents and gradually add more complex elements. Additionally, there are many online resources, such as templates, examples, and forums, where you can get help and inspiration for your Latex projects.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
16
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
2K
Back
Top