LaTeX Introducing LaTeX Math Typesetting

Click For Summary
Physics Forums has integrated LaTeX mathematical typesetting into its platform, allowing users to create visually appealing mathematical expressions using markup similar to HTML. Users can include LaTeX graphics in posts by wrapping their code in [tex] or [itex] tags for display or inline formatting, respectively. A PDF guide with essential LaTeX commands and symbols is available, along with links to additional resources. The community is encouraged to experiment with the system and share examples, while also being mindful of server load when generating graphics. This addition aims to enhance the clarity and professionalism of mathematical discussions on the forum.
  • #181
textogif

This is my first attempt to use tex locally.
I'm trying to produce a .gif or .png image of a tex-formatted equation.

I created this file, named logic1.tex:
Code:
\documentclass{article}
\begin{document}
\begin{flushleft}
\begin{displaymath}
\pi \models \phi \Rightarrow \psi \:\textrm{iff}\:\pi \not\models \phi \:\textrm{or}\:\pi \models \psi 
\end{displaymath}
\end{flushleft}
\end{document}

When I run
>latex logic1.tex
it produces logic1.dvi which I can view with the kdvi viewer & it appears to be correct. But when I run
>textogif logic1.tex
or
>textogif -png logic1.tex
the resulting image file has the equation superimposed over a checkerboard-pattern background which makes it virtually impossible to read.

What am I doing wrong?

How about my logic1.tex file: is anything missing or extraneous?
 
Physics news on Phys.org
  • #182
The checkerboard pattern is the "standard" way to show that parts of an image are transparent. Try including the image in a web page to see how it looks.

- Warren
 
  • #183
Thanks Warren.

But then, how can I make a png or gif image with a plain white background that I can send someone, to be opened with an ordinary viewer (not on a web page)?
 
  • #184
Use one of the many utilities available for changing gif (or png) color tables.

- Warren
 
  • #185
V_e = \frac{c[v_1 - (v_1 - x)]}{v_1 + (v_1 - x)}



V_e = \frac{c[v_1 - (v_1 - x)]}{v_1 + (v_1 - x)}

V_e^2 \equiv \frac{c^2x^2}{(2v_1-x)(2v_1-x)}



\gamma \equiv \frac{1}{\sqrt{1 - v^2/c^2}}

V_e=v[\tex]<br /> <br /> \gamma \equiv \frac{1}{\sqrt{1- \frac{c^2x^2}{(2v_1-x)(2v_1-x}}/c^2 <br /> <br /> \gamma \equiv \frac{1}{\sqrt{1- \frac{x^2}{(2v_1-x)(2v_1-x)}}}<br /> <br /> \gamma \equiv \frac{1}{\sqrt{1- \frac{x^2}{(2v_1-x)(2v_1-x)}}}
 
Last edited:
  • #187
V_e = \frac{c[v_1 - (v_1 - x)]}{v_1 + (v_1 - x)}



V_e = \frac{c[v_1 - (v_1 - x)]}{v_1 + (v_1 - x)}

V_e^2 \equiv \frac{c^2x^2}{(2v_1-x)(2v_1-x)}



\gamma \equiv \frac{1}{\sqrt{1 - v^2/c^2}}

V_e=v[\tex]<br /> <br /> \gamma \equiv \frac{1}{\sqrt{1- \frac{c^2x^2}{(2v_1-x)(2v_1-x}}/c^2 <br /> <br /> \gamma \equiv \frac{1}{\sqrt{1- \frac{x^2}{(2v_1-x)(2v_1-x)}}}<br /> <br /> \gamma \equiv \frac{1}{\sqrt{1- \frac{x^2}{(2v_1-x)(2v_1-x)}}}
 
  • #188
tell me what I should have done to make the line spacing and font size more consistent.

Believe it or not, the font size is consistent.

If you want better spacing, maybe you could put all of the equations in a single tex tag. Check the first page for an example.
 
  • #189
Edwin,

Since you seem to be addicted to nesting pieces of TeX inside other pieces of TeX, I will advise you that you can use whitespace inside the [ tex ] tags to make your code easier to write (and read). In other words, code like this is fine (click the image to see the code):

\frac{<br /> \frac{3}{4}<br /> }{<br /> \frac{1}{2}<br /> }

- Warren
 
  • #190
Thanks Warren! That was a helpful bit of information :)


Best Regards,

Edwin
 
  • #191
If you're still working on your TeX identifier for the newsgroups, here's a good one to tweak it on:

https://www.physicsforums.com/showthread.php?t=24389
 
  • #192
let me have a try!
a=b^3
 
  • #193
We'll give it a try (doesn't look to promising in preview mode) But it almost works once posted.


\ddot\lambda + \omega^2_E \left(\frac{R_E}{a}\right)^2

Now, that's what we're looking for. Takes a little time to get the feel for the order and size, etc.
 
Last edited:
  • #194
Bob:

It should work just fine in preview mode. Some browsers may cache images, and you may have to force them not to.

- Warren
 
  • #195
Hi, I have a question concerning the following Latex/(Tex?) commands:
I tried to make a listing with the following command structure (within the environment delimited by the tex-brackets):
\begin{enumerate}
\item ...
\item ...
\end{enumerate}
This has for me always produced a numbered list for each \item included,
but when I tried it on PF, the numbers failed to appear, and the items did not appear on separate lines
(A similar result was with "itemize" rather than "enumerate", which usually have produced dots rather than numbers in front of the items included)

So, what's the listing commands I should use here?
 
Last edited:
  • #196
\ddot\lambda + \omega^2_E \left(\frac{R_E}{a}\right)^2
 
  • #197
Copy and paste works fine
 
  • #198
I would like to make a question:
I know of Latex when using Linux system of my school, but there isnot Latex for Windows, right ? If I would like to practise learning Latex but in Windows, that is impossible right ?

Please help me, please forgive my newie question because I am actually a newie...Please...
:)
Thanks in advance
 
  • #199
Look into a package called MikTeX for windows.

- Warren
 
  • #200
chroot said:
Look into a package called MikTeX for windows.

- Warren
Thanks Warren a lot...

lol...
Regards
 
  • #201
With MikTeX installed, look at a Windows gui called TeXnic Center, which may indeed have MikTeX along with it. The link on tug.org was broken when I looked last, but I have been extrememly happy with it. I have also used WinEdit.
 
  • #202
Testing:

<br /> \mathcal{L}\{y\}=Y<br />
<br /> \mathcal{L}\{y&#039;\}=sY-y(0)<br />
<br /> \mathcal{L}\{y&#039;&#039;\}=s^2Y-sy(0) -y&#039;(0)<br />
 
Last edited:
  • #203
Just testing

\int f(x)dx , x^2+y^2+z^2=1
 
Last edited:
  • #204
Te sientas entre la gente
Cierras tu ojos
Y suenas que soy tuyo
Pero yo no siquiera se que estas ahi
Me gustaria tenerte entre mis brazos amor​
 
  • #205
Oh it can be centered...:sm:
 
  • #206
Testing

\tau/=E/m
 
  • #207
How can I do a VECTOR?

Hi,

I need a BIG VECTOR. Something like that

------->
<a,b,c,d>

How can I do this? I tried \vec but does not fires. Tnx for any help
 
  • #208
undersun said:
Hi,

I need a BIG VECTOR. Something like that

------->
<a,b,c,d>

How can I do this? I tried \vec but does not fires. Tnx for any help

Use \overrightarrow{ ... vector goes here ... }
 
  • #209
\omega=\sqrt\frac{GM}{r^3}

x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

f(x)=f(0)+f&#039;(0)x+\frac{f&#039;&#039;(0)x^2}{2!}+\frac{f&#039;&#039;&#039;(o)x^3}{3!}

\int{u\frac{dv}{dx}}=uv-\int{\frac{du}{dx}v}

\int{\frac{2x+1}{x^2-x-6}}=\int{\frac{A}{x+2}+\frac{B}{x-3}}=\frac{1}{2}A\ln{(x+2)} - \frac{1}{3}B\ln{(x-3)}

\frac{dy}{dx}=\lambda y\Rightarrow\frac{dx}{dy}=\frac{1}{\lambda y}\Rightarrow x=\frac{1}{\lambda}\int{\frac{1}{y}dy}\Rightarrow x=\frac{1}{\lambda}\ln{(y)}+C

\Rightarrow\lambda x-C=\ln{y}\Rightarrow e^{\lambda x}\times e^{-C}=y\Rightarrow y=Ae^{\lambda x}

y=\sin^{-1}\frac{1}{6}x\Rightarrow \sin y=\frac{1}{6}x\Rightarrow 6\sin y=x\Rightarrow \frac{dx}{dy}=6\cos y

\Rightarrow \frac{dy}{dx} = \frac{1}{6 \cos y}

\Rightarrow = \frac{1}{6 \sqrt{1-\sin^{2}y}}

\Rightarrow = \frac{1}{6\sqrt{1-\frac{1}{36}x^2}}

\Rightarrow = \frac{1}{ \sqrt { 36 - x^2 }}

\int{x^3 \sqrt{3x^{4}-2} dx}
 
Last edited:
  • #210
\overrightarrow{(S,U,N,N,I,E)}
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K