[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 40 KB, 374x480, 1359810213430.jpg [View same] [iqdb] [saucenao] [google]
5703211 No.5703211 [Reply] [Original]

LaTeX practice thread?
LaTeX practice thread.

>> No.5703217

How do I get a right arrow?

If <span class="math">A \rightarrow B, <span class="math">, then ~B \rightarrow ~A[/spoiler][/spoiler]

>> No.5703218

<span class="math">ura^{fag}[/spoiler]

amidoinitrite

>> No.5703221

>>5703217
Can I use \newline?

<span class="math">A\newline B\newline C[/spoiler]

>> No.5703222

>>5703211
<div class="math">\frac{f}{g}</div>

>> No.5703235

>>5703218
ohcool
how about this?
<div class="math">e^{i\cdot\pi}=-1</div>

>> No.5703243

why does mathjax always have to put fucking spaces in my code for no reason
<span class="math">\displaystyle \int_{\partial \Omega} \omega=\int_\Omega \mathrm{d} \omega[/spoiler]

>> No.5703257

<span class="math">|x|<span class="math">

\overbrace{ 1+2+\cdots+100 }^{5050}[/spoiler][/spoiler]

>> No.5703258

>>5703257
how the fuck do I absolute value

>> No.5703260

>>5703243
<span class="math">i \hbar \frac{\partial}{\partial t} \Psi = \hat{H} \Psi[/spoiler]

>> No.5703263

>>5703235
<span class="math">e^{i\cdot\pi}=sin{\pi}+i\cdot\cos{\pi}[/spoiler]
let's see how much of a failire this is.

>> No.5703264

>>5703260
<span class="math">\displaystyle i \hbar \frac{\partial}{\partial t} \Psi = \hat{H} \Psi[/spoiler]
by the way if anybody didn't know put \displaystyle in front of your text to make it render in display math mode rather than inline

>> No.5703266

>>5703235
<span class="math">e^{i\cdot\pi}=sin(\pi)+i\cdot\cos(\pi)[/spoiler]
let's see how much of a success this is.

>> No.5703295

>>5703258
with the absolute value signs on your keyboard.....they are the ones on the same key as the backslash...... | |

>> No.5703298

>>5703266
But that's wrong

>> No.5703300

http://www.codecogs.com/latex/eqneditor.php

might be helpful for anyone who doesn't want to have to bother with the posting nonsense.

>> No.5703317
File: 20 KB, 321x336, 1366152752677.jpg [View same] [iqdb] [saucenao] [google]
5703317

<span class="math">f^n(z) = \frac{n!}{2\pi i}\int_{\gamma}^{ }\frac{f(s)}{(s - z)^{n+1}}ds[/spoiler]
Feels good to be a gangster...

>> No.5703318

someone post the huge latex image

>> No.5703337

$\langle plsword \rangle$

>> No.5703344

$latex \sqrt{\pi e i} $

>> No.5703369 [DELETED] 

>>5703317
Use <div class="math"> instead of <span class="math">. That looks too small, nigger.[/spoiler]</div>

>> No.5703373
File: 243 KB, 3600x1300, joseflatex.png [View same] [iqdb] [saucenao] [google]
5703373

>>5703318

>> No.5703374

>>5703317
Use [ eqn ] instead of [ math ]. That looks too small, nigger.

>> No.5703375

>>5703211
<span class="math">\text{nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger}[/spoiler]

>> No.5703376

>>5703375
<span class="math">\mbox{nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger nigger}[/spoiler]

>> No.5703384

>>5703298
s-sorry
<span class="math">e^{i\cdot\x}=i\cdot\sin(x)+cos(x)[\math][/spoiler]

>> No.5703388

>>5703298
s-sorry
<span class="math">e^{i\cdot x}=i\cdot\sin(x)+cos(x)[\math][/spoiler]

>> No.5703389

<div class="math">i \Delta_F (x-y) = \langle 0| T \{ \phi (x) \phi^{\dagger} (y) \} |0 \rangle = \frac{i}{(2 \pi )^4} \int d^4k~ \frac{e^{-k (x-y)}}{k^2 - m^2 + i \varepsilon }</div>

>> No.5703391

>>5703235
<div class="math">e^{i\cdot{x}}=sin(\pi)+i\cdot\cos(\pi)[\eqn]
ffs</div>

>> No.5703403

<span class="math">\int_{here}^{there}holomorphicfunction = 0[/spoiler]

>> No.5703404

>>5703391
<div class="math">close \quad tags \quad with \quad forward \quad slash \quad not \quad back</div>

>> No.5703406

<span class="math">\fbox{lel}[/spoiler]
<div class="math">\def\int{\bf{OP~is~a~fag}}</div>

>> No.5703412

>>5703373
<div class="math">(i \not \! \partial -m)u(x)=0</div>

this one has always eluded me

>> No.5703418

<span class="math">e^{i\cdot\{x}}=sin(x)+i\cdot\cos(x)[/spoiler]
shit

>> No.5703424

>>5703418
FUCK
<span class="math">e^{i\cdot\x}=i\cdot\sin(x)+cos(x)[/spoiler]

>> No.5703426

>>5703424
i'm seriously considering suicide
<span class="math">e^{i\cdot\ x}=i\cdot\ sin(x)+cos(x)[/spoiler]

>> No.5703430

<div class="math"> e^{i\pi} = \cos{\pi} + i\sin{\pi} [\eqn]</div>

>> No.5703432

>>5703412
The \! has the effect of shifting the character on the left side to the right, and the character on the right side to the left. For example:

ab
<span class="math">ab[/spoiler]

a \! b
<span class="math">a \! b[/spoiler]

a \! \! b
<span class="math">a \! \! b[/spoiler]

a \! \! \! b
<span class="math">a \! \! \! b[/spoiler]

etc.

<span class="math">a \! \! \! \! b[/spoiler]

<span class="math">a \! \! \! \! \! b[/spoiler]

<span class="math">a \! \! \! \! \! \! b[/spoiler]

>> No.5703434 [DELETED] 

>>5703426
Pedro, save yourself the trouble. Form your equations here:

http://www.codecogs.com/latex/eqneditor.php

then copy and paste them in between <div class="math">[/eqn*] brackets (without the *, obviously).</div>

>> No.5703436

>>5703426
e^{i\cdot x}=i\cdot sin(x)+cos(x)

>> No.5703437

Pedro, save yourself the trouble. Form your equations here:

http://www.codecogs.com/latex/eqneditor.php

then copy and paste them in between [eqn*][/eqn*] brackets (without the * obviously).

>> No.5703438 [DELETED] 

<div class="math">\def \f {\f \f} \f</div>

>> No.5703441

>>5703426
Correct form is
<span class="math">e^{i\cdot x}=i\cdot \sin(x)+\cos(x)[/spoiler]
with a backslash before sin and cos, which are operators.

<span class="math">sin[/spoiler] means <span class="math">i\cdot s\cdot n[/spoiler].

Basically, variables are italicized, operators are not.

>> No.5703443

>>5703434
My PC is broken, been using a cell phone for the last few months for everything, that site seems pretty shitty to use on a phone.

I'm not the type of person who relys on software to do work for me, thanks anyway though.

>> No.5703444

<span class="math">\sum_{n=0}{\infty} (-1)^n[/spoiler]

>> No.5703446

>>5703443
Honestly it's not like it does the work for you. You can use its graphical interface to make your equations, sure, but you can also just type the equation and use it to "WYSIWYG" the result below and check that you didn't do any mistake before posting on /sci/.

>> No.5703447

>>5703441
functions, not operators.

>> No.5703448

>>5703443
\sum_{n=0}^\infty (-1)^n

>> No.5703449

>>5703444
<span class="math">\displaystyle\sum_{n=0}^{\infty}(-1)^n[/spoiler]

>> No.5703451

>>5703444
<span class="math">\sum_{n=0}\infty (-1)^n[/spoiler]

>> No.5703455

>>5703432
yeah, i used the negative space because
<div class="math">\not \partial</div>
is less than ideal.
<div class="math">\not \! \partial</div>
looks better but it seemed to space the i farther as well.

>> No.5703456

>>5703443
>I'm not the type of person who relys on software to do work for me
I'm confused by this. The site exists to make your life easier, and you've been having a hard time formatting your equations correctly. Is it some sort of "pride" thing about being able to type it without help?

>> No.5703457

>>5703447
It's actually called an operator in LaTeX and in many contexts, e.g. programming:

> http://en.wikipedia.org/wiki/Common_operator_notation
> Unary prefix operators such as − (negation) or sin (trigonometric function) are typically associative prefix operators.

> http://en.wikibooks.org/wiki/LaTeX/Mathematics#Operators
> An operator is a function that is written as a word: e.g. trigonometric functions (sin, cos, tan), logarithms and exponentials (log, exp)

In this context, I am perfectly correct.

>> No.5703463

>>5703455
You can put \! \! between "i" and "\not" to get it in the right place:

<div class="math">(i \! \! \not \! \partial -m)u(x)=0</div>

>> No.5703645

>>5703456
I just tried using LaTeX today, if I've been trying for a week and still can't even do anything basic then I'm fucked, if I'm not fluent in a week I'll use that, but it's not even that difficult stuff.

>> No.5703662

>>5703389
>i isn't centered in the numberator
>maximum ocd

>> No.5703696

<span class="math">\exists y \forall x (x \in y \Leftrightarrow x \in a \land ϕ(x))[/spoiler]

>> No.5703731

>>5703317
dat Cauchy

>> No.5703860

>>5703300
yes, unless it's something simple, it's better to make a gif

>> No.5703997

/int

>> No.5704050

\lim _{x\rightarrow 0 } {\frac {\sin {x}}{x}}

>> No.5704073

a^{b}

\int_{-\infty}^{\infty} e^{x^{2}/2} dx = \sqrt{2\pi}

>> No.5704074

>>5704073
[Math]
>a^{b}
>\int_{-\infty}^{\infty} e^{x^{2}/2} dx = \sqrt{2\pi}
[/math]

I dun goofed

>> No.5704079

>>5704073
>>5704074
<span class="math">
\int_{-\infty}^{\infty} e^{\frac{x^{2}}/{2}} dx = \sqrt{2\pi}
[/spoiler]

>> No.5704081

<span class="math">
\int_{-\infty}^{\infty} e^{\frac{x^2}{2}} = \sqrt{2\pi}
[/spoiler]

>> No.5704095

>>5704081
[Math]
<div class="math">
\int_{-\infty}^{\infty} e^{\frac{x^2}{2}} = \sqrt{2\pi}
</div>
[/math]

>> No.5704097

>>5704095
>>5704081
>>5704079
>>5704074
>>5704073
can someone help me i keep getting OP is a fag instead of the integral

<span class="math">
\int_{help}^{me}
[/spoiler]

>> No.5704100

<div class="math">
\nu\iota\gamma\gamma\epsilon\rho\sigma
</div>

>> No.5704102

>>5704100
<div class="math">
\nu\iota\gamma\gamma\epsilon\rho\sigma
</div>

>> No.5704104

>>5704097
<div class="math">
\int_{a}^{b}</div>

>> No.5704115

it's called saging page 10 threads

>> No.5704425

>>5704115
<div class="math">no</div>

>> No.5704784

Holy fuck, does \renewcommand have a global effect or something?

Testing.

<span class="math">\renewcommand{\int}{S}[/spoiler]
<span class="math">\int_a^b[/spoiler]

>> No.5704806 [DELETED] 

>>5704803
Testing that shit: <span class="math">\int_a^b[/spoiler].

>> No.5704803 [DELETED] 

>>5703406
wp, >>5703406

<span class="math">\def\int{\text{wp, >>5703406}}[/spoiler]

>> No.5704814

>>5703406
Well played anon.
<span class="math">\def\int{Well~played,~anon.}[/spoiler]
<span class="math">\int[/spoiler]

>> No.5704823

What would you change about LaTeX if it were being made now rather than way back when?

Better font management would be nice to see in full blown LaTeX, rather than just the offshoots like XeLaTeX/LuaLaTeX.

>> No.5704852

>>5704823
I don't think font management is such an issue.

What I think would change would be:
- The syntax. LaTeX is based on TeX, which induces a lot of issues. The symbols used in variable names are restricted (can't use numbers for instance). Overall TeX is extremely ugly and LaTeX partially inherits from that.
- Too many things require a double-compilation using the .aux file. Some "tricks" to balance the height of two objects that are created in parallel require you to more or less double-compile these objects by macroing them and reading the macro twice, once to check their height and once to actually output them (with the proper height). Compilation should be done in a different way to avoid that, for instance you could have it first output something in between LaTeX's abstraction and pdf/dvi's concreteness in which some things can be edited by future actions (like the height of some objects, when the height of nearby objects are computed, or references when they become available), and then that abstraction should fast-compile to dvi/pdf.

>> No.5704877

<span class="math"> \sqrt{ \pi e } i [/spoiler]

>> No.5704908

<span class="math"> Lol Nigretto. Can't into LateX btw. [/spoiler]

>> No.5704915

<div class="math">i\hbar\partial_t\phi=\hat H\phi[\eqn]</div>

>> No.5704921

<span class="math">i\hbar\partial_t\phi=\hat H\phi[\math][/spoiler]

>> No.5704920

What about tiny <span class="math">\tiny{d/dx}[/spoiler] ???

>> No.5704919

>>5704784
>>5704104
>>5704097
>>5704095
how the fuck is this happening lol

>> No.5704924

>>5704920
Can we nest tiny? <span class="math">\tiny{\tiny{d/dx}}[/spoiler]

>> No.5704925

>>5704920
try again <span class="math">\tiny{\tiny{d/dx}}[/spoiler]

>> No.5704928

<span class="math">i\hbar\partial_t\phi=\hat H\phi[/spoiler]

>> No.5704951

I never actually used these, let me try.

<span class="math">\int_{\infty}^{Beyond}[/spoiler]

>> No.5704952

>>5704951
What? Thats not how integral is suppose to look like.

>> No.5704956

<span class="math"> \int_{hello thar}^{muthafucka} + \sum_{a}^{b} [/spoiler]

>> No.5704963

y=\frac {1} {x}

>> No.5704967

>>5704963
lets try this again
y=\frac{1}{x}

>> No.5704968

>>5703406
This guy made \int do "OP is a fag".

>>5704814
That guy made \int do "Well played anon".

Now \int is going to be "I love sandwiches"<span class="math">\def\int{I~love~sandwiches}[/spoiler]

Have fun, anons. I've given too many clues already.

>> No.5704970

>>5704968
Testing:
<span class="math">\int_{x=0}^{\infty}e^{-x^2}dx[/spoiler]

>> No.5704973

<span class="math"> \maltese [/spoiler]

>> No.5704976

>>5703258

double click on anything to see the source

>> No.5704981

<span class="math"> \mathfrak{Hello Anons! I welcome thee from Germanee!} [/spoiler]

>> No.5704978

>>5704967
y =
\frac{1}{x}

>> No.5704979

<div class="math">
\frac {asdf}{fdsa}
[\eqn]</div>

>> No.5704982

>>5704978
i can do this
y=\int_\frac{1}{x}

>> No.5704984

\frac {asd}{\inf}

>> No.5704985

<span class="math"> \frac {a}{b}[/spoiler]

>> No.5704986

>>5704976
Doesn't always work. For instance, I can be an ass and do that:
<span class="math">\def\a{\displaystyle \sum_{k=0}^n \frac{x^n}{n!}}[/spoiler]<span class="math">\a[/spoiler]<span class="math">\def\a{a}[/spoiler]

You can double-click it but you won't learn much.

>> No.5704998

[amssymb] \mathfrak{Does this work?} [\amssymb]