Latex learning help

  • #1
763
11
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:

Answers and Replies

  • #3
1,524
624
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
763
11
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
QuantumQuest
Science Advisor
Insights Author
Gold Member
926
485
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
34,688
6,394
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
155
24
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
763
11
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
jtbell
Mentor
15,735
3,892
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
155
24
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
FactChecker
Science Advisor
Gold Member
6,056
2,340
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 web site 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
763
11
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
QuantumQuest
Science Advisor
Insights Author
Gold Member
926
485
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
Ibix
Science Advisor
Insights Author
2020 Award
7,404
6,495
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
wle
324
148
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
763
11
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
FactChecker
Science Advisor
Gold Member
6,056
2,340
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
wle
324
148
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

Related Threads on Latex learning help

  • Last Post
Replies
8
Views
3K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
6
Views
1K
  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
8
Views
3K
Replies
3
Views
2K
  • Last Post
Replies
3
Views
862
Replies
3
Views
3K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
4
Views
2K
Top