Introducing LaTeX Math 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 · 751K views
Physics news on Phys.org
[tex]\Theta=15 \cdot \frac {\pi}{180}=\frac {3\pi}{16}[/tex]
 
Last edited:
[tex] \setlength{\unitlength}{1mm}<br /> \begin{picture}(60, 40)<br /> {\color{red}\put(30, 20){\vector(1, 0){30}}}<br /> {\color{orange}\put(30, 20){\vector(4, 1){20}}}<br /> {\color{yellow}\put(30, 20){\vector(3, 1){25}}}<br /> {\color{green}\put(30, 20){\vector(2, 1){30}}}<br /> {\color{blue}\put(30, 20){\vector(1, 2){10}}}<br /> \thicklines<br /> \put(30, 20){\vector(-4, 1){30}}<br /> \put(30, 20){\vector(-1, 4){5}}<br /> \thinlines<br /> \put(30, 20){\vector(-1, -1){5}}<br /> \put(30, 20){\vector(-1, -4){5}}<br /> \end{picture}[/tex]
 
Last edited:
As you probably have realized by now, LaTeX's \vector and \line in the picture environment have a limited number of available slopes.

http://www.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-43.html
http://www.ursoswald.ch/LaTeXGraphics/picture/picture.html [nice examples]

jpicedt for LaTeX, a drawing application in java, makes clever use of \multiput to emulate lines and vectors of any slope. Unfortunately, the resulting \multiput commands are [for me] not intuitively easy to modify. However, you can use jpicedt in eepic mode, which expresses a line in terms of endpoints, rather than "[some measure of] magnitude" and direction. Then, you have to edit those lines to use the \qbezier statement (since eepic is not available on PF).

simple examples:
https://www.physicsforums.com/showpost.php?p=996129&postcount=720
https://www.physicsforums.com/showpost.php?p=969925&postcount=695

fancy examples:
https://www.physicsforums.com/showpost.php?p=968227&postcount=689 [my first example with \qbezier]
https://www.physicsforums.com/showpost.php?p=968788&postcount=692

By the way, i would be nice if something like jpicedt (possibly modified for use at PF) were available here. A picture is worth a thousand words. [It need not be LaTeX-related... it could be another web-standard like SVG.]
 
Last edited by a moderator:
[tex] \dot{h} \hspace{.5 in} \dot{\theta}[/tex]

[tex] \large<br /> \dot{h} \hspace{.5 in} \dot{\theta}[/tex]

[tex] \mathbf<br /> \dot{h} \hspace{.5 in} \dot{\theta}[/tex]

[tex] \mathtt<br /> \dot{h} \hspace{.5 in} \dot{\theta}[/tex]

[tex] \huge<br /> \dot{h} \hspace{.5 in} \dot{\theta}[/tex]

[tex] \.{h} \hspace{.5 in} \.{\theta}[/tex]

Is there anyway to make over-dots with the dot being more visible than a flyspeck?
 
Last edited:
[tex]\stackrel{\centerdot}{\theta}\dot\theta[/tex]

[tex]\def\DOT#1{\stackrel{\centerdot}{#1}}<br /> \DOT{\theta}[/tex]

[tex]\def\DOT#1{\stackrel{\mathbf\centerdot}{#1}}<br /> \DOT{\theta}[/tex]


[tex]\def\DOT#1{\stackrel{\tiny\bullet}{#1}}<br /> \DOT{\theta}[/tex]
 
Last edited:
[tex] <br /> \]<br /> \begin{picture}(375,225)(0,0)<br /> <br /> \put(100.0,82.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(80,82){\makebox(0,0)[r]{ 0}}<br /> \put(294.0,82.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(100.0,103.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(80,103){\makebox(0,0)[r]{ 1}}<br /> \put(294.0,103.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(100.0,123.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(80,123){\makebox(0,0)[r]{ 2}}<br /> \put(294.0,123.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(100.0,144.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(80,144){\makebox(0,0)[r]{ 3}}<br /> \put(294.0,144.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(100.0,164.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(80,164){\makebox(0,0)[r]{ 4}}<br /> \put(294.0,164.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(100.0,185.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(80,185){\makebox(0,0)[r]{ 5}}<br /> \put(294.0,185.0){\rule[-0.200pt]{4.818pt}{0.400pt}}<br /> \put(100.0,82.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(100,41){\makebox(0,0){ 0}}<br /> \put(100.0,165.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(143.0,82.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(143,41){\makebox(0,0){ 1}}<br /> \put(143.0,165.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(186.0,82.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(186,41){\makebox(0,0){ 2}}<br /> \put(186.0,165.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(228.0,82.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(228,41){\makebox(0,0){ 3}}<br /> \put(228.0,165.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(271.0,82.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(271,41){\makebox(0,0){ 4}}<br /> \put(271.0,165.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(314.0,82.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(314,41){\makebox(0,0){ 5}}<br /> \put(314.0,165.0){\rule[-0.200pt]{0.400pt}{4.818pt}}<br /> \put(100.0,82.0){\rule[-0.200pt]{51.553pt}{0.400pt}}<br /> \put(314.0,82.0){\rule[-0.200pt]{0.400pt}{24.813pt}}<br /> \put(100.0,185.0){\rule[-0.200pt]{51.553pt}{0.400pt}}<br /> \put(100.0,82.0){\rule[-0.200pt]{0.400pt}{24.813pt}}<br /> \put(-566,145){\makebox(0,0)[r]{sqrt(x*x-1)}}<br /> \put(-546.0,145.0){\rule[-0.200pt]{24.090pt}{0.400pt}}<br /> \put(145,88){\usebox{\plotpoint}}<br /> \multiput(145.59,88.00)(0.488,0.560){13}{\rule{0.117pt}{0.550pt}}<br /> \multiput(144.17,88.00)(8.000,7.858){2}{\rule{0.400pt}{0.275pt}}<br /> \multiput(153.00,97.59)(0.645,0.485){11}{\rule{0.614pt}{0.117pt}}<br /> \multiput(153.00,96.17)(7.725,7.000){2}{\rule{0.307pt}{0.400pt}}<br /> \multiput(162.00,104.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(162.00,103.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(171.00,109.59)(0.762,0.482){9}{\rule{0.700pt}{0.116pt}}<br /> \multiput(171.00,108.17)(7.547,6.000){2}{\rule{0.350pt}{0.400pt}}<br /> \multiput(180.00,115.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(180.00,114.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(189.00,120.60)(1.212,0.468){5}{\rule{1.000pt}{0.113pt}}<br /> \multiput(189.00,119.17)(6.924,4.000){2}{\rule{0.500pt}{0.400pt}}<br /> \multiput(198.00,124.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(198.00,123.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(207.00,129.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(207.00,128.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(216.00,134.60)(1.212,0.468){5}{\rule{1.000pt}{0.113pt}}<br /> \multiput(216.00,133.17)(6.924,4.000){2}{\rule{0.500pt}{0.400pt}}<br /> \multiput(225.00,138.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(225.00,137.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(234.00,143.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(234.00,142.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(243.00,148.60)(1.212,0.468){5}{\rule{1.000pt}{0.113pt}}<br /> \multiput(243.00,147.17)(6.924,4.000){2}{\rule{0.500pt}{0.400pt}}<br /> \multiput(252.00,152.60)(1.066,0.468){5}{\rule{0.900pt}{0.113pt}}<br /> \multiput(252.00,151.17)(6.132,4.000){2}{\rule{0.450pt}{0.400pt}}<br /> \multiput(260.00,156.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(260.00,155.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(269.00,161.60)(1.212,0.468){5}{\rule{1.000pt}{0.113pt}}<br /> \multiput(269.00,160.17)(6.924,4.000){2}{\rule{0.500pt}{0.400pt}}<br /> \multiput(278.00,165.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(278.00,164.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(287.00,170.60)(1.212,0.468){5}{\rule{1.000pt}{0.113pt}}<br /> \multiput(287.00,169.17)(6.924,4.000){2}{\rule{0.500pt}{0.400pt}}<br /> \multiput(296.00,174.59)(0.933,0.477){7}{\rule{0.820pt}{0.115pt}}<br /> \multiput(296.00,173.17)(7.298,5.000){2}{\rule{0.410pt}{0.400pt}}<br /> \multiput(305.00,179.60)(1.212,0.468){5}{\rule{1.000pt}{0.113pt}}<br /> \multiput(305.00,178.17)(6.924,4.000){2}{\rule{0.500pt}{0.400pt}}<br /> \put(-206,145){\makebox(0,0)[r]{.866*x}}<br /> <br /> \<br /> \end{picture}<br /> \[[/tex]
 
Last edited:
[tex] \]<br /> \\begin{picture}(750,450)(0,0)<br /> \footnotesize<br /> \qb(205,166)(246,166)<br /> \qb(626,166)(585,166)<br /> \put(164,166){\makebox(0,0)[r]{ 0}}<br /> \qb(205,206)(246,206)<br /> \qb(626,206)(585,206)<br /> \put(164,206){\makebox(0,0)[r]{ 1}}<br /> \qb(205,247)(246,247)<br /> \qb(626,247)(585,247)<br /> \put(164,247){\makebox(0,0)[r]{ 2}}<br /> \qb(205,287)(246,287)<br /> \qb(626,287)(585,287)<br /> \put(164,287){\makebox(0,0)[r]{ 3}}<br /> \qb(205,328)(246,328)<br /> \qb(626,328)(585,328)<br /> \put(164,328){\makebox(0,0)[r]{ 4}}<br /> \qb(205,368)(246,368)<br /> \qb(626,368)(585,368)<br /> \put(164,368){\makebox(0,0)[r]{ 5}}<br /> \qb(205,166)(205,207)<br /> \qb(205,368)(205,327)<br /> \put(205,83){\makebox(0,0){ 0}}<br /> \qb(289,166)(289,207)<br /> \qb(289,368)(289,327)<br /> \put(289,83){\makebox(0,0){ 1}}<br /> \qb(373,166)(373,207)<br /> \qb(373,368)(373,327)<br /> \put(373,83){\makebox(0,0){ 2}}<br /> \qb(458,166)(458,207)<br /> \qb(458,368)(458,327)<br /> \put(458,83){\makebox(0,0){ 3}}<br /> \qb(542,166)(542,207)<br /> \qb(542,368)(542,327)<br /> \put(542,83){\makebox(0,0){ 4}}<br /> \qb(626,166)(626,207)<br /> \qb(626,368)(626,327)<br /> \put(626,83){\makebox(0,0){ 5}}<br /> \qb(205,166)(626,166)(626,368)(205,368)(205,166)<br /> \put(-1178,286){\makebox(0,0)[r]{sqrt(x*x-1)}}<br /> \thinlines \path(4294966159,286)(4294966364,286)<br /> \thinlines \path(293,178)(293,178)(310,196)(328,209)(345,220)(363,230)(380,240)(398,249)(416,259)(433,268)(451,277)(468,286)(486,294)(503,303)(521,312)(538,321)(556,329)(573,338)(591,347)(608,355)(626,364)<br /> \put(-440,286){\makebox(0,0)[r]{.866*x}}<br /> \qb(4294966897,286)(4294967102,286)<br /> \qb(205,166)(205,166)(223,173)(240,181)(258,188)(275,195)(293,202)(310,210)(328,217)(345,224)(363,232)(380,239)(398,246)(416,253)(433,261)(451,268)(468,275)(486,283)(503,290)(521,297)(538,304)(556,312)(573,319)(591,326)(608,334)(626,341)<br /> \put(298,286){\makebox(0,0)[r]{.866}}<br /> \qb(339,286)(544,286)<br /> \qb(205,201)(205,201)(223,201)(240,201)(258,201)(275,201)(293,201)(310,201)(328,201)(345,201)(363,201)(380,201)(398,201)(416,201)(433,201)(451,201)(468,201)(486,201)(503,201)(521,201)(538,201)(556,201)(573,201)(591,201)(608,201)(626,201)<br /> \qb(205,166)(626,166)(626,368)(205,368)(205,166)<br /> \end{picture}<br /> <br /> \[[/tex]
 
Last edited:
Could someone please help me draw a digraph of 5 nodes with weights and loops included ? I just couldn't find out any articles out there in ctan that could help me accomplish this.
 
latex help

friends, i have an equation which is to be typeset in latex. will anyone of you be kind enough to let me know how to do it in latex.
the equation is x=A.y where x and y are 3x1 vectors each (i.e. a column vector with 3 rows), A is a 3x3 square matrix (i.e., 3 rows and 3 columns). Can anyone help me
 
How do I get daggers for foonotes?

I have no idea how to make the dagger appear for the footnote..I've been looking online and all I come across are sites that say nothing how to do this. Any help would be appreciated.
 
buddyholly9999 said:
I have no idea how to make the dagger appear for the footnote
footnote[itex]^\dagger[/itex]

[itex]^\dagger[/itex]Do you mean like this?
 
figured it out...

I guess that's one way to do it...but I would rather not cheat and just let Latex automatically format my text...instead what I did was download the footmisc package and then use the 'symbol*' argument and when i typed \footnote...i had to do \footnote[2] since 1 = * and 2 = \dagger...
 
test:

[tex](-\frac{1}{2}\ln{\sin{x}}+C)[/tex]

[tex]x^2\sqrt{x}[/tex]


NOTE:

the crash course has a major typo (if I'm not mistaken)

look at the 2 things I've encircled
 

Attachments

  • LaTeX.jpg
    LaTeX.jpg
    6.5 KB · Views: 598
Last edited:
Does anyone know the fancy cursive way to denote a powerset.

I'm not talking about [tex]\mathcal{P} = \{A_j : j \in J \}[/tex]
 
buddyholly9999 said:
Does anyone know the fancy cursive way to denote a powerset.

I'm not talking about [tex]\mathcal{P} = \{A_j : j \in J \}[/tex]

There is [tex]\mathfrak{P}[/tex]. if that is not it i think you will need another font package like fourier, and i do not think the forum supports those (does it?)

See page 6 in http://www.tex.ac.uk/tex-archive/fonts/fourier-GUT/doc/latex/fourier/fourier-doc-en.pdf to see how the fouier--calligraphic P looks like
 
Last edited by a moderator:
I am under the impression that typesetting software, like troff, predated both TeX and the internet. A quick survey of Google supports this clearly.

TeX was born in 1982, which was in the infancy of "The Internet" http://www.tug.org/ftp/historic/systems/unix/TeX2.9/tex82/TeXdoc/history.txt

For the early days of UNIX: The AT&T Man pages are typeset in nroff for terminals and troff for publishing. An additional utility, eqn, was a nroff preprocessor specific for equations. These have been around since the early 1970s.

http://ezine.daemonnews.org/199903/history.html

Prior to UNIX, in the 1960s, was CTSS which had RUNOFF which was an ancestor of VAX/VMS RUNOFF and UNIX troff, and GNU gtroff
http://mit.edu/Saltzer/www/publications/AH.9.01.html
http://www.multicians.org/thvv/7094.html

Prior to RUNOFF, there may have been a variety of custom (proprietrary) typesetting solutions used by published in the 1960's.
 
Last edited by a moderator:
For the powerset fancy lettering I used calligra..found on this website
http://www.tug.dk/FontCatalogue/"

as for ultima9999...it might be just me...but did you mean to use 5^{10}
??
 
Last edited by a moderator:
Excuse me, I just want to try it a bit.

[tex]t=\frac{t_0}{\sqrt{1-\frac{v^2}{c^2}}}[/tex]
 
can anyone tell me how to use binomial in laTeX bcoz when i use \binom it doesn't comes up with anything except = mn
can anyone explain this to me ??
 
Pakistani_Shikra said:
can anyone tell me how to use binomial in laTeX bcoz when i use \binom it doesn't comes up with anything except = mn
can anyone explain this to me ??
\binom{}{} requires the amsmath package.
 
Pakistani_Shikra said:
can anyone tell me how to use binomial in laTeX bcoz when i use \binom it doesn't comes up with anything except = mn
can anyone explain this to me ??
You mean this:
[tex]\left( \begin{array}{c} n \\ k \end{array} \right)[/tex]?
 
Testing:
[tex] \setlength{\unitlength}{6cm}<br /> \begin{picture}(1, 1)<br /> \put(0, 0){\line(0, 1){1}}<br /> \put(0, 0){\line(1, 0){1}}<br /> \put(0, 0){\line(1, 1){1}}<br /> \put(0, 0){\line(1, 2){.5}}<br /> \put(0, 0){\line(1, 3){.33333}}<br /> \put(0, 0){\line(1, 4){.25}}<br /> \put(0, 0){\line(1, 5){.2}}<br /> \put(0, 0){\line(1, 6){.16667}}<br /> \put(0, 0){\line(2, 1){1}}<br /> \put(0, 0){\line(2, 3){.6667}}<br /> \put(0, 0){\line(2, 5){.4}}<br /> \put(0, 0){\line(3, 1){1}}<br /> \put(0, 0){\line(3, 2){1}}<br /> \put(0, 0){\line(3, 4){.75}}<br /> \put(0, 0){\line(3, 5){.6}}<br /> \put(0, 0){\line(4, 1){1}}<br /> \put(0, 0){\line(4, 3){1}}<br /> \put(0, 0){\line(4, 5){.8}}<br /> \put(0, 0){\line(5, 1){1}}<br /> \put(0, 0){\line(5, 2){1}}<br /> \put(0, 0){\line(5, 3){1}}<br /> \put(0, 0){\line(5, 4){1}}<br /> \put(0, 0){\line(5, 6){.8333}}<br /> \put(0, 0){\line(6, 1){1}}<br /> \put(0, 0){\line(6, 5){1}}<br /> \end{picture}[/tex]
[tex] \definecolor{hellgrau}{gray}{.8}<br /> \definecolor{dunkelblau}{rgb}{0, 0, .7}<br /> \definecolor{roetlich}{rgb}{1, .7, .7}<br /> \definecolor{dunkelmagenta}{rgb}{.3, 0, .3}<br /> <br /> \setlength{\unitlength}{1cm}<br /> \begin{picture}(6, 8)<br /> \linethickness{0.075mm}<br /> \multiput(0, 0)(6, 0){2}{\line(0, 1){8}}<br /> \multiput(0, 0)(0, 8){2}{\line(1, 0){6}}<br /> \thicklines<br /> \color{dunkelmagenta}<br /> \put(1, .5){\line(2, 1){3}}<br /> \put(4, 2){\line(-2, 1){2}}<br /> \put(2, 3){\line(-2, -5){1}}<br /> \put(.7, .3){\makebox(0,0)[cc]{B}} <br /> \put(4.05, 1.9){\makebox(0,0)[cc]{B}}<br /> \put(1.7, 2.95){\makebox(0,0)[cc]{C}}<br /> \put(3.1, 2.5){\makebox(0,0)[cc]{a}}<br /> \put(1.3, 1.7){\makebox(0,0)[cc]{b}}<br /> \put(2.5, 1.05){\makebox(0,0)[cc]{c}}<br /> \color{dunkelblau}<br /> \put(0.3, 4){\makebox(0,0)[cc]{F=\sqrt{s(s-a)(s-b)(s-c)}}}<br /> \end{picture}[/tex]
[tex] \definecolor{cred}{rgb}{1, 0, 0}<br /> \definecolor{cgreen}{rgb}{0, 1, 0}<br /> \definecolor{cblue}{rgb}{0, 0, 1}<br /> \setlength{\unitlength}{1mm}<br /> \begin{picture}{60, 60}<br /> \put(30, 30){\circle{14}}<br /> \put(23, 23){\line(1, 0){14}}<br /> \put(23, 23){\line(0, 1){14}}<br /> \put(37, 37){\line(0, -1){14}}<br /> \put(37, 37){\line(-1, 0){14}}<br /> \color{cred}<br /> \put(30, 23){\line(0, 1){14}}<br /> \put(23, 30){\line(1, 0){14}}<br /> \end{picture}[/tex]
This is driving me crazy... :cry: Does anyone know why there's a text 0, 60 in the third picture? I didn't put any text there, it just appeared mysteriously... :frown:
The circle command is too small, since the diameter can only be 14 mm. I just wonder if there is a way to magnify the picture? Or to draw a larger circle?
 
Last edited: