Introducing LaTeX Math Typesetting

Click For Summary

Discussion Overview

The discussion centers around the introduction of LaTeX mathematical typesetting on Physics Forums, focusing on its implementation, usage, and examples. Participants explore how to effectively use LaTeX for mathematical expressions and share examples of LaTeX code.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • Warren introduces LaTeX typesetting, explaining its markup style and how to include LaTeX graphics in posts.
  • Some participants share additional examples of LaTeX code, demonstrating various mathematical expressions.
  • Warren invites suggestions for LaTeX packages to include, expressing concern about performance impacts from too many packages.
  • One participant inquires about using the LaTeX generator for personal web pages, prompting a discussion about server load and intended use.
  • Another participant expresses enthusiasm for practicing LaTeX by writing equations related to particle interactions.
  • A question arises about formatting subscripts in LaTeX, specifically how to create multi-line subscripts.
  • Participants provide tips on learning LaTeX, including quoting existing code to see how it is written and encouraging practice.
  • Warren reminds participants that clicking on LaTeX images reveals the source code, which can aid in learning.

Areas of Agreement / Disagreement

Participants generally agree on the usefulness of LaTeX for typesetting mathematics, but there are differing views on its application for personal use outside the forum, with some cautioning against it due to resource concerns.

Contextual Notes

Some participants express uncertainty about specific LaTeX formatting techniques and the potential performance implications of adding more packages to the forum's LaTeX capabilities.

  • #661
iv'e recently downaloaded Miktex and TeXnicCenter.

and I am trying to learn how to write.
thus far i didn't get very far (-:.

i hope someone can correct me here, here's my code:
Code:
\begin{normalsize}
\begin{document}
\begin{eqnarray}
>>\Pi+\A
\end{eqnarray}
\end{document}
\end{normalsize}
[\code]
 
Physics news on Phys.org
  • #662
Im using miktex also. You don't need the [ code ] tages and you don't need the { } around the normalsize. In addition the final normalsize tag should go before your end document tag.

~H
 
  • #663
so you mean it should be this way:
\begin{document}
\begin{eqnarray}
>>\Pi+\A
\normalsize
\end{eqnarray}
\end{document}


btw, the
Code:
 and [\code] were just for fun, i didn't actually typed them in the editor. (-:
 
  • #664
Yes, but you don't need the normalsize operator unless you specified a difference size. The normalsize should come before whatever you want to be 'normal sized'.

~H
 
  • #665
Hootenanny said:
Yes, but you don't need the normalsize operator unless you specified a difference size. The normalsize should come before whatever you want to be 'normal sized'.

~H
if the bottom box of the compiler states that the \normalsize is undefined it means i should download a package which contain it or something went wrong in the configuration of the tex editor and miktex?

btw, which packages did you downaload, iv'e downloaded the linear logic and astrnomical symbols.
 
Last edited:
  • #666
I'm not sure I didn't have to download any additional packages 4 normal size to work.

I've downloaded IOP Article style settings, amssymb (math) package and the fancy headings package.

~H
 
  • #667
Hootenanny said:
I'm not sure I didn't have to download any additional packages 4 normal size to work.

I've downloaded IOP Article style settings, amssymb (math) package and the fancy headings package.

~H
what an editor do you use with miktex?
 
  • #668
loop quantum gravity said:
what an editor do you use with miktex?

Texnic Center
 
  • #669
Any text editor is fine (emacs, vim, nano, pico...)

What is your full preamble? preamble=all the things that appear before the command \begin{document}

Here for example is a latex document of mine (for reasons that can only be described as idiotic the upload services chooses to think that the final three letters of a file name determine what it is, and that .tex is not allowed, so if you download it change it back to a a .tex file) with lots of usepackages and extra 'prettification' settings. If you try to compile it it might complain about what isn't installed in miktex (all packages are currently in a default installation of TeTeX and whatever my Mac version is called).

If you find the packages' homepages you'll see what things like titlesec and titletoc do, as well as xypic or other things, play around with it to your heart's content.
 

Attachments

  • #670
it now displays what iv'e typed.
apparently i needed to make a space between the second line and the third.
 
  • #671
Test...
\vec{F} = m \vec{a}

This is making me nuts. For some reason, Latex is not displaying for me. Worked from this same computer just fine yesterday. Very frustrating.
 
Last edited:
  • #672
iv'e doewnloaded the package pst-3dplot, and tried to work it out with an example from the documentation.
can you see what my mistake is, or what should i add to make it work:
<br /> \begin{pspicture}(1,2)(-1,-2)\psgrid<br /> \pstThreeDCoor<br /> \end{pspicture}<br />
 
  • #673
Is the pstricks package supported on this forum's LaTeX?
 
  • #674
test
a^2

/alpha
 
  • #675
In my experience, by far the easiest editor to use (on a pc) is WinEdt. By default, it is configured to work with MiKTeX, and it couldn't be easier. See www.winedt.com.
 
  • #676
Is there a limit on how long arrays or something can be? I seem to have had that problem today.
 
Last edited:
  • #677
<br /> \begin{align*}<br /> &lt;N!&gt;&amp; &lt;N! &gt; &lt; N!&gt; &lt; N! &gt; &lt; N ! &gt; &lt;N&gt; &lt;N &gt; &lt; N&gt; &lt; N &gt; &lt;!&gt; - \\<br /> &lt;P!&gt;&amp; &lt;P! &gt; &lt; P!&gt; &lt; P! &gt; &lt; P ! &gt; &lt;P&gt; &lt;P &gt; &lt; P&gt; &lt; P &gt; &lt;!&gt; - \\<br /> &lt;Q!&gt;&amp; &lt;Q! &gt; &lt; Q!&gt; &lt; Q! &gt; &lt; Q ! &gt; &lt;Q&gt; &lt;Q &gt; &lt; Q&gt; &lt; Q &gt; &lt;!&gt; - \\<br /> &lt;I!&gt;&amp; &lt;I! &gt; &lt; I!&gt; &lt; I! &gt; &lt; I ! &gt; &lt;I&gt; &lt;I &gt; &lt; I&gt; &lt; I &gt; &lt;!&gt; - \\<br /> &lt;U!&gt;&amp; &lt;U! &gt; &lt; U!&gt; &lt; U! &gt; &lt; U ! &gt; &lt;U&gt; &lt;U &gt; &lt; U&gt; &lt; U &gt; &lt;!&gt; - \\<br /> &lt;B!&gt;&amp; &lt;B! &gt; &lt; B!&gt; &lt; B! &gt; &lt; B ! &gt; &lt;B&gt; &lt;B &gt; &lt; B&gt; &lt; B &gt; &lt;!&gt; <br /> \end{align*}<br />

&lt;\psi&gt;

&lt;\psi | H |\psi&gt;

Code:
\begin{align*}
<N!>& <N! > < N!> < N! > < N ! > <N> <N > < N> < N > <!> - \\
<P!>& <P! > < P!> < P! > < P ! > <P> <P > < P> < P > <!> - \\
<Q!>& <Q! > < Q!> < Q! > < Q ! > <Q> <Q > < Q> < Q > <!> - \\
<I!>& <I! > < I!> < I! > < I ! > <I> <I > < I> < I > <!> - \\
<U!>& <U! > < U!> < U! > < U ! > <U> <U > < U> < U > <!> - \\
<B!>& <B! > < B!> < B! > < B ! > <B> <B > < B> < B > <!> 
\end{align*}
 
Last edited:
  • #678
\hat{I}(k) = \int_{-\infty}^{\infty}{I(x)e^{-ikx} \ dx}

Quick test
 
  • #679
It looks like \LaTeX backgrounds are clear again.

\mathbb{T}\mathbf{E}\mathcal{S}\mathfrak{T}^{ing}
 
Last edited:
  • #680
AKG said:
It looks like \LaTeX backgrounds are clear again.

\mathbb{T}\mathbf{E}\mathcal{S}\mathfrak{T}^{ing}

for me...
in firefox, yes
in ie6, no
 
  • #681
<br /> \frac{\partial^3 f}{\partial x \partial y^2}<br />
 
  • #682
\]<br /> <br /> \unitlength 1mm<br /> \begin{picture}(87.5,85)(0,0)<br /> \qbezier(46.88,14.38)(71.88,59.38)(71.88,59.38)<br /> \qbezier(60,15)(85,60)(85,60)<br /> \qbezier(37.5,20)(87.5,45)(87.5,45)<br /> \qbezier(60,60)(85,15)(85,15)<br /> \qbezier(60,6)(60,85)(60,85)<br /> \qbezier(72.5,37.5)(60.12,37.5)(60.12,37.5)<br /> <br /> \put(61.25,22.5){\makebox(0,0)[cc]{$\theta$}}<br /> \put(65.62,40.62){\makebox(0,0)[cc]{5}}<br /> \put(64.38,31.88){\makebox(0,0)[cc]{L}}<br /> \put(64.38,31.88){\makebox(0,0)[cc]{}}<br /> \put(57.5,13.75){\makebox(0,0)[cc]{A}}<br /> \put(76.25,38.12){\makebox(0,0)[cc]{B}}<br /> \put(55.62,38.75){\makebox(0,0)[cc]{D}}<br /> <br /> \end{picture}<br /> \]
 
  • #683
Testing:
<br /> \frac{180}{\pi}<br />
<br /> \mbox{thank you robphy}<br />

http://www.equationsheet.com/entertex.php?SID=XXXXXBOT

Does this site work for you? I was hoping to generate some png files, but I can't. I've consulted the howtolatex pdf file. Thanks in advance.
 
Last edited:
  • #684
Use the other slash for closing the tex tag
<br /> x^2 <br />

[ tex]
x^2
[ /tex] with spaces added to show the tag

The above site gave an error message that some feature was turned off for security reasons (it said "shell_exec() has been disabled for security reasons...").

Instead try:
http://hausheer.osola.com/latex2png
and
http://www.sciencesoft.at/index.jsp?link=latex&ochem=false#pic (here you have include the whole \documentclass... \begin{document}... \end{document} thing)
 
Last edited:
  • #685
a \\ b

\ a \\ b \

\] a \\ b \[
 
  • #686

robphy, would it be possible to install this 'latex2png' editor on physicsforums?

I noticed that the sourcecode was available:
http://hausheer.osola.com/software/latex2png.phps
http://hausheer.osola.com/latex2png

And I also noticed that 'ImageMagick' software was freeware:
http://www.imagemagick.org/script/index.php

I noticed that the 'preview changes' button regarding latex source code is still non-functional.

An editor similar to this on physicsforums would seem advantageous for testing latex sourcecode for posting on forums such as General Math, Calculus & Analysis, Differential Equations.
[/Color]
 
Last edited:
  • #687
Orion1,

I don't maintain this site... I am merely an active user in this \LaTeX forum.

Your question should be directed to the
PF Lounge / Forum Feedback & Announcements section:
https://www.physicsforums.com/forumdisplay.php?f=19

I believe the entire ability to use \LaTeX in a forum is a clever non-trivial hack of the forum software. Unfortunately, when changes are made somewhere [software upgrades], it's possible that something else (like the \LaTeX preview) can be broken.
 
  • #688
x^3-2x^2-5x+6
 
  • #689
Is is possible to change the colour of latex formulae?

~H
 
  • #690
x=\frac{-b \pm \sqrt{ {\color{red}b^2-4ac} }}{2a}
 

Similar threads

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