Introducing LaTeX Math Typesetting
- Context: LaTeX
- Thread starter chroot
- Start date
-
- Tags
- Introducing Latex Typesetting
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
766 replies · 750K views
Physics news on Phys.org
- 7,460
- 2,985
re-test of an old example
Transparency broken?robphy said:[tex]\begin{align}<br /> x& = y && \text{def}\\<br /> & = y+\textcolor{blue}{(y-y)} && \text{add \textcolor{blue}{zero}}\\<br /> & = 2y-y && \text {\textcolor{red}{algebra}}<br /> \end{align}[/tex]
very plain text, slightlyfanciertext, loud text
[itex] \]<br /> <br /> \begin{picture}(200,200)(0,0)\multiput(0,0)(40,10){5}{\line(1,4){40}}\multiput( 0,0)(10,40){5}{\line(4,1){160}}<br /> \put(0,0){\vector(1,4){170}}<br /> \put(50,50){\circle*{10}} <br /> \put(160,40){\framebox(80,40)[r]{ \textcolor{blue}{\bf \[ x_{Bob} \] } } }<br /> \put(40,160){\textcolor{yellow}{\dashbox(80,40)[t]{ \textcolor{red}{ \[ t_{Bob} \] } } }}<br /> <br /> \qbezier(100,100)(200,100)(200,200)<br /> \linethickness{8pt} <br /> \textcolor{green}{\qbezier(0,0)(0,100)(100,100)}<br /> \linethickness{1pt} <br /> \qbezier(0,0)(0,100)(100,100)<br /> <br /> \end{picture}<br /> \[[/itex]
[tex] \newcommand{\VARTEXT}[2][\scriptsize]{\left(\mbox{#1\begin{tabular}{c}#2\end{tabular}}\right)}<br /> \VARTEXT[\large]{net-work done \\ on the object }<br /> =<br /> \VARTEXT[\large]{change in \\ the kinetic energy \\ of the object }[/tex]
- 1,424
- 3
I am not familiar with drawing in LaTeX, and I just wonder where I can find a short tutorial on this topic.
I think it should also be added to the first page of this thread, so that someone new to LaTeX can learn how to draw.
It's just my $0.02.
I think it should also be added to the first page of this thread, so that someone new to LaTeX can learn how to draw.
It's just my $0.02.
- 7,460
- 2,985
I don't know of anyone else who uses this \picture environment here at PF. For general (i.e. not-necessarily PF) LaTeX, you might look at http://www.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-43.html
Here what I use sometimes http://jpicedt.sourceforge.net/
With some effort (see example below [click on image for source]) and some manual tweaks, you can get its output into a PF post.
[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]
Here what I use sometimes http://jpicedt.sourceforge.net/
With some effort (see example below [click on image for source]) and some manual tweaks, you can get its output into a PF post.
[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]
Last edited by a moderator:
- 10,270
- 45
robphy said:[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]
Testing transparency.. 13
- Warren
Last edited:
- 10,270
- 45
robphy said:[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]
[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]
Testing transparency.. 53
- Warren
Last edited:
- 7,460
- 2,985
Are you setting a transparency flag?
Or are you trying to explicitly match the current skin background (for Prime, apparently, RGB: 233,233,233), which is different from the quote background (for Prime, apparently, RGB 216,233,228)?
Or are you trying to explicitly match the current skin background (for Prime, apparently, RGB: 233,233,233), which is different from the quote background (for Prime, apparently, RGB 216,233,228)?
Last edited:
- 10,270
- 45
I'm calling pnmtopng with -transparency =rgb:ff/ff/ff, which should turn all the white pixels transparent (and the latex itself forces an #black background). It works if I don't use antialiasing when calling ghostscript, but, for some reason, turning antialiasing on screws pnmtopng up. It didn't do this in previous versions, so it's likely a bug in the newest versions. (We're on a brand new server now). I'm working on finding a workaround.
- Warren
- Warren
- 10,270
- 45
AKG said:[tex]0 < k \leq m < n,\ \ \gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) > 1[/tex]
[tex]{{n}\choose{k}}{{n-k}\choose{m-k}} = {{n}\choose{m}}{{m}\choose{k}}[/tex]
[tex]{{n}\choose{k}} \left| {{n}\choose{m}}{{m}\choose{k}}[/tex]
[tex]\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) = 1[/tex]
[tex]{{n}\choose{k}} \left| {{m}\choose{k}}[/tex]
[tex]{{n}\choose{k}} > {{m}\choose{k}}[/tex]
[tex]\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) > 1[/tex]
Another test...
- Warren
- 10,270
- 45
Another test of aliasing... 8
[tex] e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n[/tex]
- Warren
[tex] e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n[/tex]
- Warren
Last edited:
- 10,270
- 45
Transparency's fixed (found a workaround) but the antialiasing routine used by ghostscript is different now, and, in my opinion, not as nice looking. I'm going to have to keep playing with that.
- Warren
- Warren
- 7,460
- 2,985
Looks better. Thanks.
http://www.theiling.de/projects/transparency.html useful?
(By the way, when this gets fixed, can the http://tug.org/PSTricks/" package be included?)
http://www.theiling.de/projects/transparency.html useful?
(By the way, when this gets fixed, can the http://tug.org/PSTricks/" package be included?)
Last edited by a moderator:
dav2008
Gold Member
- 589
- 1
Why doesn't the old tex work?chroot said:Transparency's fixed (found a workaround) but the antialiasing routine used by ghostscript is different now, and, in my opinion, not as nice looking. I'm going to have to keep playing with that.
- Warren
- 10,270
- 45
We're on a new server with an entirely different Linux distribution. Apparently, people have made a lot of (annoying) changes to some of the basic image-manipulation programs in the last year or so, and I'm having to figure out how to get around them. Apparently the transparency is still not working in IE.
- Warren
- Warren
- 7,460
- 2,985
I wonder if that IE problem has anything to do with
http://entropymine.com/jason/testbed/pngtrans/ (try viewing in IE and FF)
By the way, the images "copied" off the webpage (via right-click) differ between doing that in IE and in FF.
The new images have fonts that seem a little thinner (compared to the earlier version)... as if more pixels were selected for transparency than before.
http://entropymine.com/jason/testbed/pngtrans/ (try viewing in IE and FF)
By the way, the images "copied" off the webpage (via right-click) differ between doing that in IE and in FF.
The new images have fonts that seem a little thinner (compared to the earlier version)... as if more pixels were selected for transparency than before.
- 10,270
- 45
robphy,
As I mentioned, the antialiasing done by ghostscript appears to be different now than it used to be. As I said, I prefer the old look, and am going to try to make it look a little better soon. Apparently quite a bit of stuff was changed.
- Warren
As I mentioned, the antialiasing done by ghostscript appears to be different now than it used to be. As I said, I prefer the old look, and am going to try to make it look a little better soon. Apparently quite a bit of stuff was changed.
- Warren
- 10,270
- 45
robphy said:I wonder if that IE problem has anything to do with
http://entropymine.com/jason/testbed/pngtrans/ (try viewing in IE and FF)
Yeah, that's a good page. IE certainly does have lots of problems with PNG transparency, but my images here used to work just fine under both browsers. This is going to drive me insane.
- Warren
- 10,270
- 45
chroot said:Another test of aliasing... 9
[tex] e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n[/tex]
- Warren
[tex] e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n[/tex]- Warren
Last edited:
bomba923
- 759
- 0
[tex]
\mathop {\lim }\limits_{n \to \infty } \bigcup\limits_{i = 0}^{n!} {\left\{ {\frac{i}{{n!}}} \right\}} = \mathbb{Q} \cap \left[ {0,1} \right][/tex]
Kazza_765
- 170
- 0
Testing...
[tex] E_n = /frac{n^2/pi^2}{(L+2/delta)^2}[/tex]
Hmm, does anyone know why I can view Latex graphics in other peoples posts, but I can never view them in my own. I always get the please wait the graphic is being generated message.
[tex] E_n = /frac{n^2/pi^2}{(L+2/delta)^2}[/tex]
Hmm, does anyone know why I can view Latex graphics in other peoples posts, but I can never view them in my own. I always get the please wait the graphic is being generated message.
Last edited:
- 7,460
- 2,985
[tex]
E_n = \frac{n^2\pi^2}{(L+2\delta)^2}.[/tex]
Your slashes are backwards.
And I believe the tags have to be lowercase.
Your slashes are backwards.
And I believe the tags have to be lowercase.
Kazza_765 said:Testing...
[tex] E_n = /frac{n^2/pi^2}{(L+2/delta)^2}[/tex]
Hmm, does anyone know why I can view Latex graphics in other peoples posts, but I can never view them in my own. I always get
the please wait the graphic is being generated message.
Last edited:
rbj
- 2,222
- 11
lemme try:
[tex] E_n = \frac{n^2 \pi^2}{(L + 2 \delta)^2}[/tex]
[tex] E_n = \frac{n^2 \pi^2}{(L + 2 \delta)^2}[/tex]
- 7,460
- 2,985
[tex]
E_n = \frac{n^2 \pi^2}{(L + 2 \delta)^2}[/tex]
Yes, a slight improvement. (The gamma modification?)
Yes, a slight improvement. (The gamma modification?)
- 7,460
- 2,985
Doc Al said:Testing [tex]\vec{F} = m \vec{a}[/tex]
Yikes... worse than ever.![]()
Using IE?
Transparency seems okay in Firefox (1.0.7).
- 9,621
- 9
[tex]\fbox{\LaTeX}[/tex]
- 9,621
- 9
Somethings wrong with the AA again
[tex]V = \int \pi \left[ f(x) \right]^2[/tex]
I'm using firefox.
[tex]V = \int \pi \left[ f(x) \right]^2[/tex]
I'm using firefox.
- 1,152
- 4
I've had trouble with .png transparency in IE before. The only way i got around that was by using transparent .gifs. I know http://www.forkosh.dreamhost.com/source_mimetex.html#introduction converts to .gif, but it's not my favorite converter as it doesn't use very smooth (vector?) characters but it takes in Latex at the command line directly, rather than reading from a file which i found very useful. An alternative would be to set the background color to the background color of these forums, but since you have different styles for the PF layout that might not work. Sounds like a pain. 
Actually, i just found out http://www.forkosh.dreamhost.com/source_mimetex.html#introduction can be compiled with anti-aliasing on.
Actually, i just found out http://www.forkosh.dreamhost.com/source_mimetex.html#introduction can be compiled with anti-aliasing on.
Last edited by a moderator:
Similar threads
Mathematica
How to type mathematical equations using LaTeX
- Greg Bernhardt
- · Replies 3 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 3
- Chris L T521
- · Replies 15 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 15
- 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
