- #36
- 22,183
- 3,325
OGreg Bernhardt said:Where are we putting it? Great job everyone!
I would prefer a special subforum in Forum feedback where we store all the FAQ's. Or perhaps a sticky post??
OGreg Bernhardt said:Where are we putting it? Great job everyone!
micromass said:O
I would prefer a special subforum in Forum feedback where we store all the FAQ's. Or perhaps a sticky post??
jtbell said:If we simply un-stick the old sticky thread and leave it visible, I think we should add a warning right at the beginning that it's been superseded, with a link to the new FAQ.
[itex]\lambda^2[/itex]
[tex]\Lambda^2[/tex]
Let [itex]f:\mathbb R\rightarrow\mathbb R[/itex] be the function defined by [tex]f(x)=x^2,[/tex] for all [itex]x\in\mathbb R[/itex].
[tex]
x y
z
[/tex]
[tex]
a\!b\,c\ d~e\quad f\qquad g\ \ \ \ h~~~~i\hspace{20mm}j
[/tex]
[itex]
f(x) if x>0
[/itex]
[itex]f(x)\ \text{if}\ x>0[/itex]
[itex]f(x)~\text{if}~x>0[/itex]
[itex]f(x)\text{ if }x>0[/itex]
[itex]
x_y,\ x^y
[/itex]
[tex]
\Lambda^\mu_\nu,\ \Lambda_\nu^\mu,\ \Lambda^\mu{}_\nu,\ \Lambda_\nu{}^\mu
[/tex]
[tex]
\lim_{n\rightarrow +\infty} {\frac{\sin(x)}{x}}
[/tex]
[itex]
\displaystyle\lim_{n\rightarrow +\infty} {\frac{\sin(x)}{x}}
[/itex]
[itex]
x^{10}+x^10
[/itex]
[itex]\lim_n x_n={\displaystyle\lim_n x_n}[/itex]
[itex]
\sqrt{1+\sqrt{1+\sqrt{1+x}}}
[/itex]
[tex]
xe^x = x \Big( \sum_{n=0}^\infty\frac{x^n}{n!} \Big)
[/tex]
[tex]
xe^x = x \left( \sum_{n=0}^\infty\frac{x^n}{n!} \right)
[/tex]
[tex]
\left\{
\begin{array}{l}
x=r\cos\theta\\
y=r\sin\theta
\end{array}
\right.
~~\Rightarrow~~ x^2+y^2
=r^2(\underbrace{\cos^2\theta+\sin^2\theta}_{=1})=r^2
[/tex]
[itex]\mathbb A[/itex]
[itex]\mathcal A[/itex]
[itex]\mathfrak A[/itex]
[itex]\mathsf A[/itex]
[tex]
\begin{align}
(1+x)^n &\geq 1+nx\\
&= \sqrt{(1+nx)^2}\\
&= \sqrt{1+2nx+n^2x^2}
\end{align}
[/tex]
[tex]
\begin{pmatrix}
1 & 2 & 3 & 4\\
a & b & c & d\\
x & y & z & w
\end{pmatrix}
[/tex]
[tex]
\begin{cases}
2x+y+z & = 0\\
3x+4y+5z & = 0\\
x+2y+8z & = 0
\end{cases}
[/tex]
[tex]
u(x) =
\begin{cases}
\exp{x} & \text{if } x \geq 0 \\
1 & \text{if } x < 0
\end{cases}
[/tex]
I don't know, don't you think it looks kind of weird with a couple of line breaks inserted? The point of the example is to show how you should type a sentence that contains both tex and itex tags to get the best result, and you wouldn't type these line breaks.vela said:In the punctuation section, how about breaking the code into two lines, so you don't have to scroll in the CODE box to see everything?
Let [itex]f:\mathbb R\rightarrow
\mathbb R[/itex] be the function defined by [tex]f(x)
=x^2,[/tex] for all [itex]x\in\mathbb R[/itex].
No, it was just 35 spaces to the right. I guess 5 spaces will illustrate the point just as well as 35, so I have deleted the rest of them.vela said:In the first example in the spacing section, y is missing in the code.
I'm not familiar with the \mathrm command. A result of a google search suggests that it's like \text, but ignores spaces typed between the brackets and behaves slightly differently in other ways too. It doesn't seem to belong in the fonts section, but perhaps right after the place where I explained \text? If one of you guys would like to write a few sentences about it, I certainly wouldn't mind. Similar commands, like \operatorname and \mbox, should perhaps be mentioned too?vela said:I'd add \mathrm to the fonts section, and perhaps give an example like [itex]9.81~\mathrm{m/s}^2[/itex]. A common mistake is to have the units typeset in the italic font.
I had totally missed the "Can", and I just noticed that the sentence said "typed be the cases environment". I agree about the commas in the acknowledgments section.vela said:In the cases section, right after the first typeset example, Can shouldn't be capitalized.
In the additional-information section, commas should be used instead of parentheses to set off the two phrases, and right click should be hyphenated.
In the acknowledgments, the dashes should be commas. If you really want dashes, use the endash (—) instead of two hyphens.
I thought about removing them earlier, but decided not to do it, at least not until we have discussed it. If we don't include them, we should probably change the sentences around them somewhat. For example, instead of "if you type <code>, the result is <result>", we would have to type something like "if you type <code> between tex tags, the result is <result>", or the statement wouldn't be 100% correct.vela said:What do you think about removing the TEX and ITEX tags from all the CODE boxes other than in the How do I work with LaTeX? section? It'll make the FAQ look a bit shorter and, I think, cleaner. Or if we keep them, standardize on TEX.
I don't know. Maybe. The point of the "a very short introduction to latex" section is to introduce the reader to the most useful latex codes, so it makes sense to keep it in that section. If you would like to move it, then it's OK with me, but one of you will have to do it. I'm done with this for today.vela said:I think the table should be moved to the end of the FAQ.
I just meant one line break so you could see the whole thing in the box at once without needing to scroll horizontally:Fredrik said:I don't know, don't you think it looks kind of weird with a couple of line breaks inserted? The point of the example is to show how you should type a sentence that contains both tex and itex tags to get the best result, and you wouldn't type these line breaks.
Let [itex]f:\mathbb R\rightarrow \mathbb R[/itex] be the function defined
by [tex]f(x)=x^2,[/tex] for all [itex]x\in\mathbb R[/itex].
Ah, guess I just didn't notice it way over there.No, it was just 35 spaces to the right. I guess 5 spaces will illustrate the point just as well as 35, so I have deleted the rest of them.
It's just a different font, Roman. It's not like \text because you're still in math mode.I'm not familiar with the \mathrm command. A result of a google search suggests that it's like \text, but ignores spaces typed between the brackets and behaves slightly differently in other ways too. It doesn't seem to belong in the fonts section, but perhaps right after the place where I explained \text? If one of you guys would like to write a few sentences about it, I certainly wouldn't mind. Similar commands, like \operatorname and \mbox, should perhaps be mentioned too.
I meant "(for example)" and "(the LaTeX processor)". If you're setting off a complete sentence, then yeah, parentheses or endashes would be appropriate.I assume that you meant "are in Advanced Edit mode (click on "Go Advanced" to get there)"?
I think people will understand, if they read the first section, that the LaTeX mark-up is understood to be sandwiched between the appropriate tags. To me, the tags seemed to be distracting by cluttering up and obscuring the actual LaTeX. But I can see the case for leaving them in there as well.I thought about removing them earlier, but decided not to do it, at least not until we have discussed it. If we don't include them, we should probably change the sentences around them somewhat. For example, instead of "if you type <code>, the result is <result>", we would have to type something like "if you type <code> between tex tags, the result is <result>", or the statement wouldn't be 100% correct.
I did mean only in the CODE boxes if the tags were going to be left in. I don't see how that will add length to the post as it currently stands. If anything, it removes characters by replacing ITEX with TEX.To standardize on tex would add more length to the post than we can remove by deleting the tags from the code boxes, so I vote against this, but I'm OK with it if you guys want to do it.
The table just seems to break the flow of the FAQ explaining the various features of LaTeX. It's not really an explanation; it's more like a reference guide. I'd move it to right before the sandbox section.I don't know. Maybe. The point of the "a very short introduction to latex" section is to introduce the reader to the most useful latex codes, so it makes sense to keep it in that section. If you would like to move it, then it's OK with me, but one of you will have to do it. I'm done with this for today.
If you put a line break there, it changes the output.vela said:I just meant one line break so you could see the whole thing in the box at once without needing to scroll horizontally:
Code:Let [itex]f:\mathbb R\rightarrow \mathbb R[/itex] be the function defined by [tex]f(x)=x^2,[/tex] for all [itex]x\in\mathbb R[/itex].
Yes, both possibilities are OK with me.vela said:I think people will understand, if they read the first section, that the LaTeX mark-up is understood to be sandwiched between the appropriate tags. To me, the tags seemed to be distracting by cluttering up and obscuring the actual LaTeX. But I can see the case for leaving them in there as well.
You would use "tex" in the code box, even where we use "itex" to produce the output that we say is produced by what's in the code box? That would be misleading.vela said:I did mean only in the CODE boxes if the tags were going to be left in. I don't see how that will add length to the post as it currently stands. If anything, it removes characters by replacing ITEX with TEX.
If you can improve the flow, then go ahead. I'm going to watch some TV now and then go to bed early. If micromass shows up at night again, maybe you can discuss it with him (if you're still here). If you want to delay the publication until tomorrow so you can change a few things first, then make sure that Redbelly98 is aware of it, since he was going to publish it around...right now. (It's certainly OK with me).vela said:The table just seems to break the flow of the FAQ explaining the various features of LaTeX. It's not really an explanation; it's more like a reference guide. I'd move it to right before the sandbox section.
vela said:What do you think about removing the TEX and ITEX tags from all the CODE boxes other than in the How do I work with LaTeX? section? It'll make the FAQ look a bit shorter and, I think, cleaner. Or if we keep them, standardize on TEX.
I think the table should be moved to the end of the FAQ.
Yes, you're right. I was thinking it would be inside the LaTeX so it wouldn't matter, but it's not. You could put the break right before the TEX tag instead, and it won't change the output.Fredrik said:If you put a line break there, it changes the output.
Let [itex]f:\mathbb R\rightarrow\mathbb R[/itex] be the function defined by
[tex]f(x)=x^2,[/tex] for all [itex]x\in\mathbb R[/itex].
Yeah, that was my other thought. Leaving them in is fine with me.micromass said:I think the TEX and ITEX tags in the code boxes add for clarity. People who are new and still confused about the matter see the code exactly how it should be typed. Moreover, people can just copy-paste the code if they want to test things.
Leaving the tags out is a little bit confusing for newcomers (although not much).
OK, sounds good.I feel that the flow of the FAQ should go from important topics to unimportant topics. So the important stuff should be typed first, where most people will see it. I feel that the table is quite important and thus should be in the beginning of the FAQ.
[itex]\lambda^2[/itex]
[tex]\Lambda^2[/tex]
Let [itex]f:\mathbb R\rightarrow\mathbb R[/itex] be the function defined by
[tex]f(x)=x^2,[/tex] for all [itex]x\in\mathbb R[/itex].
[tex]
x y
z
[/tex]
[tex]
a\!b\,c\ d~e\quad f\qquad g\ \ \ \ h~~~~i\hspace{20mm}j
[/tex]
[itex]
f(x) if x>0
[/itex]
[itex]f(x)\ \text{if}\ x>0[/itex]
[itex]f(x)~\text{if}~x>0[/itex]
[itex]f(x)\text{ if }x>0[/itex]
[itex]
x_y,\ x^y
[/itex]
[tex]
\Lambda^\mu_\nu,\ \Lambda_\nu^\mu,\ \Lambda^\mu{}_\nu,\ \Lambda_\nu{}^\mu
[/tex]
[tex]
\lim_{n\rightarrow +\infty} {\frac{\sin(x)}{x}}
[/tex]
[itex]
\displaystyle\lim_{n\rightarrow +\infty} {\frac{\sin(x)}{x}}
[/itex]
[itex]
x^{10}+x^10
[/itex]
[itex]\lim_n x_n={\displaystyle\lim_n x_n}[/itex]
[itex]
\sqrt{1+\sqrt{1+\sqrt{1+x}}}
[/itex]
[tex]
xe^x = x \Big( \sum_{n=0}^\infty\frac{x^n}{n!} \Big)
[/tex]
[tex]
xe^x = x \left( \sum_{n=0}^\infty\frac{x^n}{n!} \right)
[/tex]
[tex]
\left\{
\begin{array}{l}
x=r\cos\theta\\
y=r\sin\theta
\end{array}
\right.
~~\Rightarrow~~ x^2+y^2
=r^2(\underbrace{\cos^2\theta+\sin^2\theta}_{=1})=r^2
[/tex]
[itex]\mathbb A[/itex]
[itex]\mathcal A[/itex]
[itex]\mathfrak A[/itex]
[itex]\mathsf A[/itex]
[itex]\mathrm A [/itex]
[itex]\mathbf A [/itex]
[tex]
\begin{align}
(1+x)^n &\geq 1+nx\\
&= \sqrt{(1+nx)^2}\\
&= \sqrt{1+2nx+n^2x^2}
\end{align}
[/tex]
[tex]
\begin{pmatrix}
1 & 2 & 3 & 4\\
a & b & c & d\\
x & y & z & w
\end{pmatrix}
[/tex]
[tex]
\begin{cases}
2x+y+z & = 0\\
3x+4y+5z & = 0\\
x+2y+8z & = 0
\end{cases}
[/tex]
[tex]
u(x) =
\begin{cases}
\exp{x} & \text{if } x \geq 0 \\
1 & \text{if } x < 0
\end{cases}
[/tex]
Question mark at the end?micromass said:Acknowledgements
We are indebted to member and former admin chroot, whose efforts brought LaTeX to Physics Forums in the first place, and forum admin and owner Greg Bernhardt for updating to the currently-used MathJax processor. Numerous other members have provided valuable feedback and helped with the debugging process?
You misspelled Fredrik's name.The authors of this FAQ are
[/INDENT]
- Borek
- Frederik
- micromass
- Redbelly98
- vela
Wow. I had no idea. This is really surprising to me. OK, then I don't mind inserting that extra line break, but if we do, I want insert an extra sentence that explains it. So I want to changevela said:Yes, you're right. I was thinking it would be inside the LaTeX so it wouldn't matter, but it's not. You could put the break right before the TEX tag instead, and it won't change the output.
I have seen that too. I don't think that these people are typing their LaTeX. They're probably using the LaTeX menu in advanced edit mode. (Not available in this forum, but open a thread in the Quantum Physics forum for example, and click "Go Advanced". Then click the Ʃ symbol above the input field).Ben Niehoff said:The reason is that the most common LaTeX error I see is that people try to use it for individual symbols, one at a time (and then often using sup/sub tags to attempt to position exponents and subscripts!). I can't imagine how many hours it must take them to compose posts this way, but it always makes the formulas completely unreadable, and frankly, I won't bother answering a question that isn't presented clearly.
I think the main cause is that people who are new to LaTeX simply do not realize that you can put an entire formula into a set of tex tags rather than just putting one symbol.
[itex]Ax=\lambda x[/itex]
[tex]\Lambda^T\eta\Lambda=\eta.[/tex]
Let [itex]f:\mathbb R\rightarrow\mathbb R[/itex] be the function defined by
[tex]f(x)=x^2,[/tex] for all [itex]x\in\mathbb R[/itex].
[tex]
x y
z
[/tex]
[tex]
a\!b\,c\ d~e\quad f\qquad g\ \ \ \ h~~~~i\hspace{20mm}j
[/tex]
[itex]
f(x) if x>0
[/itex]
[itex]f(x)\ \text{if}\ x>0[/itex]
[itex]f(x)~\text{if}~x>0[/itex]
[itex]f(x)\text{ if }x>0[/itex]
[itex]
x_y,\ x^y
[/itex]
[tex]
\Lambda^\mu_\nu,\ \Lambda_\nu^\mu,\ \Lambda^\mu{}_\nu,\ \Lambda_\nu{}^\mu
[/tex]
[tex]
\lim_{n\rightarrow +\infty} {\frac{\sin(x)}{x}}
[/tex]
[itex]
\displaystyle\lim_{n\rightarrow +\infty} {\frac{\sin(x)}{x}}
[/itex]
[itex]
x^{10}+x^10
[/itex]
[itex]
\lim_n x_n={\displaystyle\lim_n x_n}=\lim_n x_n
[/itex]
[itex]
\sqrt{1+\sqrt{1+\sqrt{1+x}}}
[/itex]
[tex]
xe^x = x \Big( \sum_{n=0}^\infty\frac{x^n}{n!} \Big)
[/tex]
[tex]
xe^x = x \left( \sum_{n=0}^\infty\frac{x^n}{n!} \right)
[/tex]
[tex]
\left\{
\begin{array}{l}
x=r\cos\theta\\
y=r\sin\theta
\end{array}
\right.
~~\Rightarrow~~ x^2+y^2
=r^2(\underbrace{\cos^2\theta+\sin^2\theta}_{=1})=r^2
[/tex]
[itex]\mathbb A[/itex]
[itex]\mathcal A[/itex]
[itex]\mathfrak A[/itex]
[itex]\mathsf A[/itex]
[itex]\mathrm A[/itex]
[itex]\mathbf A[/itex]
[itex]\mathtt A[/itex]
[tex]
\begin{align}
(1+x)^n &\geq 1+nx\\
&= \sqrt{(1+nx)^2}\\
&= \sqrt{1+2nx+n^2x^2}
\end{align}
[/tex]
[tex]
\begin{pmatrix}
1 & 2 & 3 & 4\\
a & b & c & d\\
x & y & z & w
\end{pmatrix}
[/tex]
[tex]
\begin{cases}
2x+y+z & = 0\\
3x+4y+5z & = 0\\
x+2y+8z & = 0
\end{cases}
[/tex]
[tex]
u(x) =
\begin{cases}
\exp{x} & \text{if } x \geq 0 \\
1 & \text{if } x < 0
\end{cases}
[/tex]
That would have to be the table. However, I'm also using Firefox, and when I change the window size to one that's just large enough to get rid of the horizontal scrollbar, the window is a bit smaller than I usually keep it. It's too small to display the right edge of the box with greek letters and other symbols that you see in advanced edit mode.marcusl said:Something in the post is setting the window size wider than usual (at least when I view it in Firefox). It looks fine until the Latex compiler renders the actual symbols, at which point the post jumps out to a wide stance.
I still want to make that change. But there's obviously no hurry.Fredrik said:I want to change
So you don't have to type any line breaks before the opening tex tag or after the closing tex tag. The following example illustrates these ideas.to
So you don't have to type any line breaks before the opening tex tag or after the closing tex tag. However, you can type a single line break before a tex tag without changing the output. The following example illustrates these ideas.
No; also, other threads looked fine.Fredrik said:That would have to be the table. However, I'm also using Firefox, and when I change the window size to one that's just large enough to get rid of the horizontal scrollbar, the window is a bit smaller than I usually keep it. It's too small to display the right edge of the box with greek letters and other symbols that you see in advanced edit mode.
Are you using some special feature, like "scale all math to 150%"?
Done.Fredrik said:[Suggested a couple of changes]
Agreed!marcusl said:Thanks for putting this together. It is well done and very useful!