Introducing LaTeX Math Typesetting
- Context: LaTeX
- Thread starter chroot
- Start date
-
- Tags
- Introducing Latex Typesetting
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
766 replies · 754K views
Physics news on Phys.org
lethe
- 645
- 0
Originally posted by Hurkyl
All right, here's a new problem. How do I do this, but right?
i don t understand... what are you trying to do?
Science Advisor
Gold Member
- 2,113
- 13
If I want to denote the real and complex sets, using one of the below fonts which looks better?
[tex]\mathbb{RC}\mathbbmss{RC}\mathds{RC}[/tex]
edited to add: it doesn't look like we have the other two fonts. There must be someway of represintg the real and complex sets in this manner, as the first fonts don't really look right to me.
[tex]\mathbb{RC}\mathbbmss{RC}\mathds{RC}[/tex]
edited to add: it doesn't look like we have the other two fonts. There must be someway of represintg the real and complex sets in this manner, as the first fonts don't really look right to me.
Last edited:
Staff Emeritus
Science Advisor
Gold Member
- 4,229
- 61
How can LaTeX be made to look better in a Chemistry thread like this one?
https://www.physicsforums.com/showthread.php?s=&threadid=9475
I'd like the font smaller and the location more southwards.. any suggestions? Easy ones?
https://www.physicsforums.com/showthread.php?s=&threadid=9475
I'd like the font smaller and the location more southwards.. any suggestions? Easy ones?
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
Update!
The LaTeX code has been improved a bit. I know you guys have been frustrated with the ugliness of inline TeX, so I went ahead and improved that.
I have introduced a new LaTeX command, the \inline command. Whenever you want to include a graphic inline with your text, like [tex]\inline{C H_4}[/tex] or [tex]\inline{G_\textrm{diffeo}}[/tex] or [tex]\inline{y = mx + b}[/tex], you should use the \inline{...} construct. Remember: click the LaTeX images to see how they're implemented.
Of course, you can inline larger pieces of TeX too, like [tex]\inline{\frac{1}{\sqrt{1 - v^2/c^2}}}[/tex] or even [tex]\inline{e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n<br /> }[/tex]. But if makes more sense to include larger graphics set apart from your text, like this:
[tex]\frac{1}{\sqrt{1 - v^2/c^2}}[/tex]
[tex]e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n[/tex]
Note the difference in font sizing and layout between the normal and inlined graphics.
In addition, I have changed the TeX \vec command to boldface vectors. So feel free to use expressions like [tex]\inline{\vec{F} = m \vec{a}}[/tex] to denote vector quantities.
Enjoy!
- Warren
The LaTeX code has been improved a bit. I know you guys have been frustrated with the ugliness of inline TeX, so I went ahead and improved that.
I have introduced a new LaTeX command, the \inline command. Whenever you want to include a graphic inline with your text, like [tex]\inline{C H_4}[/tex] or [tex]\inline{G_\textrm{diffeo}}[/tex] or [tex]\inline{y = mx + b}[/tex], you should use the \inline{...} construct. Remember: click the LaTeX images to see how they're implemented.
Of course, you can inline larger pieces of TeX too, like [tex]\inline{\frac{1}{\sqrt{1 - v^2/c^2}}}[/tex] or even [tex]\inline{e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n<br /> }[/tex]. But if makes more sense to include larger graphics set apart from your text, like this:
[tex]\frac{1}{\sqrt{1 - v^2/c^2}}[/tex]
[tex]e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n[/tex]
Note the difference in font sizing and layout between the normal and inlined graphics.
In addition, I have changed the TeX \vec command to boldface vectors. So feel free to use expressions like [tex]\inline{\vec{F} = m \vec{a}}[/tex] to denote vector quantities.
Enjoy!
- Warren
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
Hmmm well, I thought I knew how, but now I'm not so sure. I'll have to look around. Maybe Ambitwistor knows a trick to put a command that has been \renew'd back to its default behavior.Originally posted by Hurkyl
How do I get the arrows, then, if I want them?
Also, I found this pdf of useful mathematical constructs, that goes a bit beyond what we already have:
http://amath.colorado.edu/documentation/LaTeX/Symbols.pdf
- Warren
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
Both are good ideas. Generally, boldfacing is the "proper" way to represent vectors. Unfortunately, TeX treats lowercase greek letters and uppercase greek letters differently, making it fairly complicated to just boldface any old character. I put the macro into the system so people wouldn't have to jump through hoops if they just wanted to make a boldface [tex]\inline{\vec \lambda}[/tex].Originally posted by Ambitwistor
I don't know how to get a command back to its original behavior. You could try defining a new command to act like the original \vec before you redefine it. (Or else you could leave the original alone and define a new command to act like the bold version.)
Maybe redefining \boldmath to work everywhere is the best approach here, leaving \vec alone.
- Warren
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
I also just noticed that in IE6, the inline LaTeX images are a few pixels below the baseline of the text. In my preferred browser, Mozilla, they are exactly correct. Perhaps I need to tweak the site's style sheet to get the line spacing just right in all browsers. I'll have to think about it. In the meantime, everyone should switch to Mozilla Firebird!
- Warren
- Warren
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
Also, Ambi, you LaTeX guru you,
Can you tell me why the font size is different between these two images?
[tex]\inline{<br /> \int_{a}^{b}} e^x dx<br /> }[/tex]
[tex]\inline{<br /> e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n<br /> }[/tex]
Look at the e^x... does the integral sign somehow cause the font size to change, or what?
- Warren
Can you tell me why the font size is different between these two images?
[tex]\inline{<br /> \int_{a}^{b}} e^x dx<br /> }[/tex]
[tex]\inline{<br /> e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n<br /> }[/tex]
Look at the e^x... does the integral sign somehow cause the font size to change, or what?
- Warren
lethe
- 645
- 0
Originally posted by Hurkyl
How do I get the arrows, then, if I want them?
wouldn t it just be better to follow ams guidlines, and have \vec make an overline, and \mathbf make boldface? i much prefer boldface to arrows in print, but i don t see any reason to override ams defaults to get rid of arrows... they are not that bad...
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
Yeah, I was strongly considering this from the beginning. Next time Greg let's me on the site, I'll do that.Originally posted by Hurkyl
What about making a new tag, say, [ itex ] for inline tex? It gets annoying having to type [ tex ]\inline{x}[ /tex ] 10 times in a post!
- Warren
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
And ams math environments should work now too:
[tex]a + b + c + d + e + f<br /> +g+h+i+j+k+l+m+n[/tex]
[tex] \begin{multline*}<br /> a + b + c + d + e + f\\<br /> +g+h+i+j+k+l+m+n<br /> \end{multline*}[/tex]
[tex] \begin{gather*}<br /> a_1 = b_1 + c_1\\<br /> a_2 = b_2 + c_2 - d_2 + e_2<br /> \end{gather*}[/tex]
- Warren
[tex]a + b + c + d + e + f<br /> +g+h+i+j+k+l+m+n[/tex]
[tex] \begin{multline*}<br /> a + b + c + d + e + f\\<br /> +g+h+i+j+k+l+m+n<br /> \end{multline*}[/tex]
[tex] \begin{gather*}<br /> a_1 = b_1 + c_1\\<br /> a_2 = b_2 + c_2 - d_2 + e_2<br /> \end{gather*}[/tex]
- Warren
Staff Emeritus
Science Advisor
Gold Member
- 14,922
- 28
Is there a smaller triangle that goes well here? What's the command for the floor and ceiling functions? Am I spelling the command for omicron wrong, or is omicron identical to 'o' so there isn't a command?
[tex]\Delta x \triangle x[/tex]
[itex]\Delta x \triangle x[/itex]
[tex]\Delta x \triangle x[/tex]
[itex]\Delta x \triangle x[/itex]
Last edited:
Staff Emeritus
Science Advisor
Gold Member
- 14,922
- 28
Yes, it's the letter delta; I want to use it as one notates a differential or a difference, as in [itex]\Delta x[/itex] (my previous post is the theorem I wanted to state in a post; I copped out with [itex]\delta x[/itex] but I prefer the capital delta).
When I write it by hand, I usually write the delta as the same height as a lower case letter... but now that I've checked some reference material, it seems that the full-size is the norm; ah well. I'd still like to know if I can make a half sized one should I want to in a post.
When I write it by hand, I usually write the delta as the same height as a lower case letter... but now that I've checked some reference material, it seems that the full-size is the norm; ah well. I'd still like to know if I can make a half sized one should I want to in a post.
Loren Booda
- 3,115
- 4
Similar threads
Mathematica How to type mathematical equations using LaTeX
- Greg Bernhardt
- · Replies 3 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 3
LaTeX How Do I Use LaTeX on This Site?
- Chris L T521
- · Replies 15 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 15
LaTeX Guide to Using LaTeX for Equations
- Redbelly98
- · Replies 4 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 4
Challenge Math Challenge - November 2018
- fresh_42
- · Replies 175 ·
- Math Proof Training and Practice
- Replies
- 175
Challenge Math Challenge - March 2019
- fresh_42
- · Replies 97 ·
- Math Proof Training and Practice
- Replies
- 97