LaTeX Introducing LaTeX Math Typesetting

AI Thread 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.
  • #301
ax^n hello just testing
 
Physics news on Phys.org
  • #303
test again...
\sqrt[3]{27}=3
 
  • #305
[ tex ] a^x_n [ /tex ]
 
  • #306
james11,

Try it without the spaces. :smile:

- Warren
 
  • #307
x_1 *<br /> x_2<br /> x_3<br />
 
  • #308
[ tex ] a^x_n [ /tex ]
 
  • #309
a^x_n[/tex ]<br /> <br /> trial 2 (w/o spaces)
 
  • #310
Eke! Oh Well..i'll Try This Later
 
  • #311
Emc2brain,

You still have a space in your trial 2.

- Warren
 
  • #312
That would be great if we could draw Feynman graphs ! Is it too difficult to handle ?
 
  • #313
A=x^_n
but
f(t)=alpha_n
 
  • #314
[ tex ]a^x_n[ /tex ]
 
  • #315
a^x_n

Trying without the spaces!
 
  • #316
test

P=2pieG/3*P^2*R^2
 
  • #317
test!

P= \frac{2 \p G}{3}p^2r^2
 
  • #318
Lets try again!

P= \frac{2 \p G}{3}p^2r^2[\tex]
 
  • #319
Lets try again!

P= \frac{2 \p G}{3}p^2r^2
 
  • #320
just testing!

<br /> <br /> P= \frac{2 {\p} G}{3}p^2r^2
 
  • #321
P= \frac{2\pG}{3}p^2r^2
 
  • #322
P= \frac{2{\pG}}{3}p^2r^2
 
  • #323
P= \frac{2{\p[G]}}{3}p^2r^2

P= \frac{2{\p[G]}}{3}p^2r^2
 
  • #324
P= \frac{2{\p}{G}{3}p^2r^2
 
  • #325
P= \frac{2\pieG}{3}p^2r^2
 
  • #326
P= \frac{\2pieG}{3}p^2r^2

2\pieG}{

\2pieG
 
  • #327
james11,

Use \pi to represent \pi, rather than using "pie."

- Warren
 
  • #328
Testing...

The quick brown fox jumped over the lazy dog who could not get images to upload properly.
 

Attachments

  • talus.jpg
    talus.jpg
    25.7 KB · Views: 395
  • #329
Testing...

\Vec{v}(x,y,z)=\frac{1}{x^2+y^2+z^2}(x\Vec{i}+y\Vec{j}+z\Vec{k})

\frac{\partial v_x}{\partial x} =-\frac{2x^2}{(x^2+y^2+z^2)^2}+\frac{1}{x^2+y^2+z^2}= \frac{-2x^2}{r^4} + \frac{1}{r^2}


In the same way,

\frac{\partial v_y}{\partial y} =-\frac{2y^2}{r^4}+\frac{1}{r^2}

and

\frac{\partial v_z}{\partial z} =-\frac{2z^2}{r^4}+\frac{1}{r^2}

The divergence is

\mbox{Div}(\Vec{v})=\frac{\partial v_x}{\partial x} +\frac{\partial v_y}{\partial y} +\frac{\partial v_z}{\partial z}=

=\frac{-2x^2-2y^2-2z^2}{r^4}+\frac{3}{r^2}=\frac{-2r^2}{r^4}+\frac{3}{r^2}=\frac{1}{r^2}


It is the function
\Vec{v}(\Vec{r}) = \frac{\Vec{r}}{r^3}
whose divergence is zero everywhere except at the origin.
 
  • #330
Test

\vec F = m \vec a
 
  • #331
test:
F = ma

Does anyone know of other math or physics forums similar to this forum that also uses LaTex?
Where can I purchase a comprehensive commercial LaTex CD for installing and using LaTex on a home PC?
 
  • #332
TeX and LaTeX are free software. I think what you probably want is MikTeX:

http://www.miktex.org/

Others, correct me if I'm wrong; I don't have any experience with TeX on Windows (I use Debian GNU/Linux).
 
  • #334
I have MikTex v2.4 installed, and have read the documentation.

On Windows it appears to use a DOS based command format to compile various formats for various applications.

Can anyone demonstrate how to compile my first equation using Windows MikTex similar to how Physics Forums does this?
 
  • #335
Just testing:

f(x) = \frac{ \int_{-\infty}^\infty \sin(x^2)\,dx}{\Gamma(x)}
 
  • #336
DVI sky...

I figured out how to compile equations into a DVI file.

I found the following command:
\includegraphics{filename}

Anyone know of a convertor program to convert DVI format to PNG graphics format?

There is a program called 'dvi2png', however I could not locate a download or determine the capabilities of this program.

There is a program located in the miktex bin file called 'dvipng.exe' that can convert .dvi to .png format, however despite the comprehensiveness of this program, failed to properly convert a miktex generated .dvi file. The resulting output .pdf file was not legible. Therefore, 'dvipng.exe' does not support miktex .dvi.

Reference:
http://css.ait.iastate.edu/WP/Latex/Thesis/HTML/Isuthesis/node47.html#math
 
Last edited by a moderator:
  • #337
To use \includegraphics, you probably need to put \usepackage{graphicx} in the preamble of your LaTeX document, right after the \documentclass line.

If you're compiling your documents with the latex command, you need to convert your pictures to encapsulated Postscript (eps) before including them. If you're using the pdflatex command, I think you should be able to use JPEGs and PNGs directly.
 
  • #338
\include{Universe}

TALewis said:
To use \includegraphics, you probably need to put \usepackage{graphicx} in the preamble of your LaTeX document, right after the \documentclass line.

If you're compiling your documents with the latex command, you need to convert your pictures to encapsulated Postscript (eps) before including them. If you're using the pdflatex command, I think you should be able to use JPEGs and PNGs directly.

Code:
\documentclass{}
\usepackage{graphicx}
\begin{document}
\includegraphics{filename}
\end{document}

This is absolutely correct. The MikTex DOS compiler will only accept the \usepackage{graphicx} command immediately after the \documentclass command.

I was able to include .jpg, .bmp and .png graphics directly using miktex with a .bb (bounding box) file, however the 'ebb.exe' file used to create .bb files produces incorrect file dimensions which results in the miktex equations 'eating into' the graphics box. Also, the 'ebb.exe' file does not support .bmp, however I was still able to manually create a .bb .bmp file. Note that some .bmp filters are not supported by miktex .dvi format, I suspect the same may be true for .jpg and .png also.

I was able to correct this error manually using a photoviewer that displays the correct graphics dimensions and manually editing the .bb file with the correct numbers.

'bmeps.exe' is the program that converts .jpg and .png pictures to .eps format.

'bmeps.exe' does create a .bb file with the correct graphics dimensions. However, 'bmeps.exe' does not support .bmp format.

'bmeps.exe' is able to convert .tif files into .eps format, however produces a warning of 'unknown field tag 34337 (0*8649) ignored', however still worked.

I noticed the .ps.gz and .eps examples listed in the miktex graphics folder.

I note that the .ps.gz format does appear to be impressive.

Is there any way to override the equation numbering sequencer to produce custom generated equation numbers?

Reference:
http://bmeps.sourceforge.net/faq.html#baswhich
 
Last edited by a moderator:
  • #339
.dvi/.png convertor...

There is a program located in the miktex bin file called 'dvipng.exe' that can convert .dvi to .png format.

I have tested this program and has passed testing, very impressive program, works fine.
 
  • #340
This PDF might have a solution to overriding the default equation numbering:

http://www.ee.mu.oz.au/staff/cantoni/docs/amsldoc.pdf

Section 3.1 says that with the amsmath package (\usepackage{amsmath}), you can provide your own equation number or symbol with the \tag{label} command.
 
Last edited by a moderator:
  • #341
<br /> {\lfloor}\int_{4}^{4+4} cosh (\theta + \theta + \theta){\rfloor}<br />
 
Last edited:
  • #342
Just seeing if I am doing it right...

E = 1/2mv^2
 
  • #343
\begin{Big Bang}

TALewis said:
This PDF might have a solution to overriding the default equation numbering:

http://www.ee.mu.oz.au/staff/cantoni/docs/amsldoc.pdf

Section 3.1 says that with the amsmath package (\usepackage{amsmath}), you can provide your own equation number or symbol with the \tag{label} command.
This is a solution to overriding the default equation numbering.

However, the \tag{label} command must be declared after the \begin{equation*} command within the internal equation environment. To my knowledge, the miktex compiler will not accept this command outside an equation environment. There may be other internal environments that the \tag{label} command may be accepted, this requires further research discovery.

The correct source code is:
Code:
\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{equation*}
\tag{label}
E_1 = mc^2
\end{equation*}

\end{document}
E_1 = mc^2 \; \; \; \; \; \; \tag{label}

KaneOris, your source code is:
Code:
[!tex] E = 1/2mv^2 [!/tex]
However, this can be interpreted as a reciprocal!:
E = \frac{1}{2mv^2}

It also helps to place a subscript tag on the E for mathematical proof and tracking purposes because several different types of energies can be involved, E_k for Kinetic Energy or some other subscript tag.

Try using the fraction command \frac{numerator}{denominator}:
Code:
[!tex] E_k = \frac{mv^2}{2} [!/tex]
[!tex] E_k = \frac{1}{2}mv^2 [!/tex]
E_k = \frac{mv^2}{2}
E_k = \frac{1}{2}mv^2

Reference:
http://www.emerson.emory.edu/services/latex/latex_toc.html
 
Last edited by a moderator:
  • #344
Quaternions ?
\mathbb{H}
\mathbb{R}
ok, never mind... :smile:
 
  • #345
\frac{\pi}{{3^{i\pi}}}=\gamma
 
  • #346
:cry:
I can't see the tex code when I click on the examples
 
  • #347
Excuse me , just for fun

<br /> \begin{align*}<br /> \nabla \times \vec E = -\frac{\partial \vec B}{\partial t}<br /> \\<br /> \nabla \times \vec H = \vec J +\frac{\partial \vec D}{\partial t}<br /> \end{align*}<br />
 
  • #348
lanjarote,

You might need to set your popup-blocker software to allow pf to show popups.

- Warren
 
  • #349


Here is the complete help command list for the 'dvipng.exe' file. On Windows, some of the first commands displayed are 'cut off' by the DOS window. This is the complete list displayed by the 'dvipng.exe -help' command.

dvipng.exe help data:

Code:
dvipng.exe -help

Usage: %s [OPTION]... FILENAME[.dvi]
Options are chosen to be similar to dvips' options where possible:
-D #         Output resolution
-l #         Last page to be output
--mode s     MetaFont mode (default 'cx')
-M*          Don't make PK fonts
-o f         Output file, '%%d' is pagenumber
-O c         Image offset
-p #         First page to be output
-pp #,#..    Page list to be output
-q*          Quiet operation
-r*          Reverse order of pages
-T c         Image size (also accepts '-T bbox' and '-T tight')
-v*          Verbose operation
-x #         Override dvi magnification
-            Interactive query of options

These do not correspond to dvips options:
-bd #        Transparent border width in dots
-bdpi #      Set the base (Metafont) resolution
-bg s        Background color (TeX-style color)
--depth*     Output the image depth on stdout
--dvinum*    Use TeX page numbers in output filenames
-fg s        Foreground color (TeX-style color)
--follow*    Follow mode
--height*    Output the image height on stdout
--truecolor* Truecolor output
-Q #         Quality (T1lib and PK subsampling)
-z #         PNG compression level

# = number   f = file   s = string  * = suffix, '0' to turn off

c = comma-separated dimension pair (e.g., 3.2in,-32.1cm)

Does anyone here have a hyperlink to a comprehensive file that has descriptions for each of these commands and some sourcecode examples?

[/color]
 
Last edited:
  • #350
Sorry for the easy question, but I can't find how to make an approximation symbol (the squiggly equals sign).
 

Similar threads

Replies
5
Views
3K
Replies
3
Views
2K
Replies
4
Views
3K
Replies
8
Views
3K
Replies
3
Views
2K
Back
Top