Latex Typing on Mac: Tips & How-To's

  • Context: LaTeX 
  • Thread starter Thread starter pierce15
  • Start date Start date
  • Tags Tags
    Latex Mac
Click For Summary

Discussion Overview

The discussion revolves around using LaTeX on Mac computers, including installation, typesetting, and formatting equations. Participants share tips, examples, and address specific questions related to LaTeX functionality and usage.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant inquires whether Macs come with a LaTeX typesetter pre-installed and seeks guidance on its usage.
  • Another participant asserts that no computers come with TeX pre-installed and suggests installing "TeX Live" from the TeX User Group.
  • Several participants provide examples of LaTeX code for typesetting mathematical equations, emphasizing the need for specific commands like \documentclass and \begin/end{document}.
  • There is a discussion about the differences between LaTeX and PlainTeX, with some participants noting that LaTeX requires more framework code for document formatting.
  • One participant shares a proof related to a mathematical equation and asks if there are alternative methods that avoid negative solutions.
  • Participants discuss the use of dollar signs for inline LaTeX and clarify the distinction between inline and display-style math.
  • There are mentions of formatting requirements, such as using braces around subscripts and superscripts for proper rendering.
  • Some participants express confusion about the inline usage of LaTeX and seek clarification on terminology.

Areas of Agreement / Disagreement

Participants generally share tips and examples, but there are varying opinions on the installation of LaTeX on Macs and the specifics of using inline versus display-style math. The discussion includes both agreement on certain LaTeX functionalities and differing interpretations of how to use them effectively.

Contextual Notes

Some participants express uncertainty about specific LaTeX commands and formatting, indicating that there may be limitations in their understanding or experience with the software.

Who May Find This Useful

This discussion may be useful for Mac users who are new to LaTeX and seek practical tips for typesetting mathematical documents, as well as those interested in understanding the differences between LaTeX and PlainTeX.

pierce15
Messages
313
Reaction score
2
Hello everyone,

In the past few days, I have learned quite a bit of basic Latex. Thank you all for the tips. Now for the question: do macs automatically come with a latex typesetter (I think that this is the case), and if so, how do I use it? Right now, I'm just going to use this post to copy and paste something into an email- I'll delete when I'm done.

P.S. Is there a shortcut so I don't have to keep writing tex before and after everything I write?
 
Last edited:
Physics news on Phys.org
I've never heard of any computer coming aith TeX pre-installed when you buy it, and I just realize that I've been TeXing for nearly 30 years. But you can get a simple-to-install TeX system called "TeX Live" from TUG (TeX User Group) here: http://www.tug.org/texlive/
 
Michael Redei said:
I've never heard of any computer coming aith TeX pre-installed when you buy it, and I just realize that I've been TeXing for nearly 30 years. But you can get a simple-to-install TeX system called "TeX Live" from TUG (TeX User Group) here: http://www.tug.org/texlive/

I just downloaded something and it looks like this. Do you know how I can do some math in this? I tried entering some commands that I learned and pressed "typeset", but here's what came up:
 

Attachments

  • Screen shot 2012-11-26 at 6.42.47 PM.png
    Screen shot 2012-11-26 at 6.42.47 PM.png
    29.7 KB · Views: 591
  • Screen shot 2012-11-26 at 6.44.03 PM.png
    Screen shot 2012-11-26 at 6.44.03 PM.png
    48 KB · Views: 620
You can try this small example:


\documentclass{article}
\begin{document}
What's the difference between
$E=mc^2$ and $c=\sqrt{\frac{E}{m}}$?
\end{document}


and then press the "Typeset" button just underneath your "traffic lights". You'll find lots of information on how to use TeX from TUG (www.tug.org).

P.S.: The "documentclass" line is part of this example. I don't know how to get it to stay in that box though.
 
Michael Redei said:
You can try this small example:


\documentclass{article}
\begin{document}
What's the difference between
$E=mc^2$ and $c=\sqrt{\frac{E}{m}}$?
\end{document}


and then press the "Typeset" button just underneath your "traffic lights". You'll find lots of information on how to use TeX from TUG (www.tug.org).

P.S.: The "documentclass" line is part of this example. I don't know how to get it to stay in that box though.


OK, that worked. Can you explain to me why it didn't work until I added the \documentclass{article} and the \begin/end{document}? Also, is there a preferred document class for writing math equations?
 
Your program is switched to "LaTeX" mode (as you can see next to the "Typeset" button). LaTeX provides easier formatting of documents, things like tables of contents, inserting figures etc. than PlainTeX. But LaTeX also demands some framework code, the "documentclass" and a "begin-end{document}" pair.

If you just want to typeset a formula, switch to "TeX" a.k.a. "PlainTeX" (next to the "Typeset" button) and try this:

Here is a nice equation:
$\sqrt{12+\sqrt{12+\sqrt{12+\ldots}}} = 4$.
Care to prove this?
\bye

and click "Typeset".
 
Last edited:
Michael Redei said:
Your program is switched to "LaTeX" mode (as you can see next to the "Typeset" button). LaTeX provides easier formatting of documents, things like tables of contents, inserting figures etc. than PlainTeX. But LaTeX also demands some framework code, the "documentclass" and a "begin-end{document}" pair.

If you just want to typeset a formula, switch to "TeX" a.k.a. "PlainTeX" (next to the "Typeset" button) and try this:

Here is a nice equation:
$\sqrt{12+\sqrt{12+\sqrt{12+\ldots}}} = 4$.
Care to prove this?
\bye

and click "Typeset".

Thanks a lot! If I need any help I know who to ask :)
 
Last edited:
By the way, I think I figured out a proof to your problem:

\sqrt{12+\sqrt{12+\sqrt{12+\ldots}}} = x
12+\sqrt{12+\sqrt{12+\sqrt{12+\ldots}}}=x^2
x^2-x-12=0
(x+3)(x-4)=0
x=4 \space or \space x=-3

Is there another way of going about this that does not accumulate a negative solution?

P.S. How do you use the $ instead of ? It didn't work for me.
 
piercebeatz said:
P.S. How do you use the $ instead of ? It didn't work for me.
<br /> I used two dollar signs without a space between them, i.e.<br /> <br /> $ (no space here) $<br /> Lots of mathematics<br /> $ (no space again) $<br /> <br /> Test:<br /> <br /> $$<br /> Lots of mathematics<br /> $$<br /> <br /> Okay, let&#039;s say that was a list of variables, since they&#039;re often put in italics :-)<br /> <br /> Your solution to the square-root problem is fine, except that x=-3 must be excluded (a root f anything , no matter how complicated, can&#039;t be negative and real). I don&#039;t know of any direct way of solving that equation, but you did the only thing possible: assume there is some solution x and try to find it.
 
  • #10
Michael Redei said:
I used two dollar signs without a space between them, i.e.

$ (no space here) $
Lots of mathematics
$ (no space again) $

Test:

$$
Lots of mathematics
$$

Okay, let's say that was a list of variables, since they're often put in italics :-)

Your solution to the square-root problem is fine, except that x=-3 must be excluded (a root f anything , no matter how complicated, can't be negative and real). I don't know of any direct way of solving that equation, but you did the only thing possible: assume there is some solution x and try to find it.

OK, so if you put a $ $ w/o a space at the top and bottom of a bunch of lines of equations, you don't have to keep inserting the and [ /tex]?<br /> <br /> Test: <br /> <br /> $$<br /> \lim_x\to\infty e^(-x)<br /> e^{-\infty}<br /> 0<br /> $$
 
  • #11
Works perfectly for me:
$$
\lim_x\to\infty e^(-x)
e^{-\infty}
0
$$
You need braces around subscripts and superscripts though, and an = or two:

Code:
$$
\lim_{x\to\infty} e^{(-x)} =
e^{-\infty} =
0
$$
gives you
$$
\lim_{x\to\infty} e^{(-x)} =
e^{-\infty} =
0
$$

Hmmm... I've been using the preview first before submitting these things. Maybe you should try that too.
 
  • #12
Does this work inline with just one dollar at each end? Like $a+b=c$ this?

No :-(
 
  • #14
Sorry, but what does inline mean?
 
  • #15
piercebeatz said:
Sorry, but what does inline mean?

Inline maths is set "in the line", like ##\tan\alpha = (\sin\alpha)/(\cos\alpha)##, whereas "display-style" maths is set between paragraphs, like
$$
\tan\alpha = \frac{\sin\alpha}{\cos\alpha}.
$$
This can be easier to read, bit it needs more space.
 
  • #16
piercebeatz said:
what does inline mean?

"in the middle of a line"
 
  • #17
$$
Testing Inline
$$

Awesome, it worked. Thanks for the advice, guys
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
Replies
3
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
12K
  • · Replies 1 ·
Replies
1
Views
2K