Introducing LaTeX Math Typesetting

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
766 replies · 754K views
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
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)?
 
[tex]V_e = \frac{c[v_1 - (v_1 - x)]}{v_1 + (v_1 - x)}[/tex]



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

[tex]V_e^2 \equiv \frac{c^2x^2}{(2v_1-x)(2v_1-x)}[/tex]



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

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



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

[tex]V_e^2 \equiv \frac{c^2x^2}{(2v_1-x)(2v_1-x)}[/tex]



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

[tex]V_e=v[\tex]<br /> <br /> [tex]\gamma \equiv \frac{1}{\sqrt{1- \frac{c^2x^2}{(2v_1-x)(2v_1-x}}/c^2[/tex] <br /> <br /> [tex]\gamma \equiv \frac{1}{\sqrt{1- \frac{x^2}{(2v_1-x)(2v_1-x)}}}[/tex]<br /> <br /> [tex]\gamma \equiv \frac{1}{\sqrt{1- \frac{x^2}{(2v_1-x)(2v_1-x)}}}[/tex][/tex]
 
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.
 
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):

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

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


Best Regards,

Edwin
 
We'll give it a try (doesn't look to promising in preview mode) But it almost works once posted.


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

Now, that's what we're looking for. Takes a little time to get the feel for the order and size, etc.
 
Last edited:
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:
[tex]\ddot\lambda + \omega^2_E \left(\frac{R_E}{a}\right)^2[/tex]
 
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
 
chroot said:
Look into a package called MikTeX for windows.

- Warren
Thanks Warren a lot...

lol...
Regards
 
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.
 
Testing:

[tex] \mathcal{L}\{y\}=Y[/tex]
[tex] \mathcal{L}\{y'\}=sY-y(0)[/tex]
[tex] \mathcal{L}\{y''\}=s^2Y-sy(0) -y'(0)[/tex]
 
Last edited:
Just testing

[tex]\int f(x)dx , x^2+y^2+z^2=1[/tex]
 
Last edited:
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​
 
Oh it can be centered...:sm:
 
Testing

[tex]\tau/=E/m[/tex]
 
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
 
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 ... }
 
[tex]\omega=\sqrt\frac{GM}{r^3}[/tex]

[tex]x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}[/tex]

[tex]f(x)=f(0)+f'(0)x+\frac{f''(0)x^2}{2!}+\frac{f'''(o)x^3}{3!}[/tex]

[tex]\int{u\frac{dv}{dx}}=uv-\int{\frac{du}{dx}v}[/tex]

[tex]\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)}[/tex]

[tex]\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[/tex]

[tex]\Rightarrow\lambda x-C=\ln{y}\Rightarrow e^{\lambda x}\times e^{-C}=y\Rightarrow y=Ae^{\lambda x}[/tex]

[tex]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[/tex]

[tex]\Rightarrow \frac{dy}{dx} = \frac{1}{6 \cos y}[/tex]

[tex]\Rightarrow = \frac{1}{6 \sqrt{1-\sin^{2}y}}[/tex]

[tex]\Rightarrow = \frac{1}{6\sqrt{1-\frac{1}{36}x^2}}[/tex]

[tex]\Rightarrow = \frac{1}{ \sqrt { 36 - x^2 }}[/tex]

[tex]\int{x^3 \sqrt{3x^{4}-2} dx}[/tex]
 
Last edited:
[tex]\overrightarrow{(S,U,N,N,I,E)}[/tex]