mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2009-05-16, 15:33   #1
flouran
 
flouran's Avatar
 
Dec 2008

15018 Posts
Default LaTeX Typesetting Question

In LaTeX, to say that a is congruent to 1 (mod b), I use the \equiv command as such:
a \equiv 1 \pmod b.

However, what is the LaTeX command for a is *not* congruent to 1 (mod b)? I thought it would be \nequiv, but it isn't.

Also, to show that a | b in LaTeX, I use the pipe symbol. What is the LaTeX command for a is *not* a divisor of b?
flouran is offline   Reply With Quote
Old 2009-05-16, 16:02   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10000101101102 Posts
Default

\not\equiv \not|
Code:
\not\equiv \not|
Or:
\cancel\equiv \cancel|
Code:
\cancel\equiv \cancel|
http://www.mersenneforum.org/mimetex.htm#not
I think the difference is that \cancel can be used on any arbitrary thing, while \not is only for single characters like \equiv, |, or 3. Not entirely sure about that, but it seems right from a quick test.

Last fiddled with by Mini-Geek on 2009-05-16 at 16:07
Mini-Geek is offline   Reply With Quote
Old 2009-05-16, 16:18   #3
flouran
 
flouran's Avatar
 
Dec 2008

15018 Posts
Default

Code:
\not\equiv
worked for me, but
Code:
\not|
fails. I think that there is a command for the divisor (let's call it \cmd), and thus the code would be \not\cmd. I'll look into it more. I'll post back in a few minutes (or not) when I find it.
flouran is offline   Reply With Quote
Old 2009-05-16, 16:20   #4
Zeta-Flux
 
Zeta-Flux's Avatar
 
May 2003

7·13·17 Posts
Default

I use \nmid, for not divides.
Zeta-Flux is offline   Reply With Quote
Old 2009-05-16, 16:24   #5
flouran
 
flouran's Avatar
 
Dec 2008

72·17 Posts
Default

Quote:
Originally Posted by Zeta-Flux View Post
I use \nmid, for not divides.
That works!
flouran is offline   Reply With Quote
Old 2009-05-16, 21:19   #6
flouran
 
flouran's Avatar
 
Dec 2008

83310 Posts
Default

In LaTeX, equations are autonumbered as (1), (2), (3),..., and so on. How do I make it such that every equation is labeled as such:
(a.b.c)
a = section number
b = subsection number
c = equation number within subsection

For instance, the 5th equation in the 2nd subsection of the 3rd section should be labeled as (3.2.5). I "googled" it, and it says I have to put
Code:
\numberwithin{equation}{subsection}
in the preamble, but that doesn't quite do the trick.
flouran is offline   Reply With Quote
Old 2009-05-16, 21:28   #7
flouran
 
flouran's Avatar
 
Dec 2008

72·17 Posts
Default

Also, I have an equation that is too long. For the sake of simplicity, let's say I have the equation,
x+y=5,
but that is too long.
Basically, how would I do it in LaTeX such that I have,
x+
y=5

In other words, how do I split an equation? Some of the guides I tried don't work....
flouran is offline   Reply With Quote
Old 2009-05-16, 22:02   #8
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by flouran View Post
Also, I have an equation that is too long. For the sake of simplicity, let's say I have the equation,
x+y=5,
but that is too long.
Basically, how would I do it in LaTeX such that I have,
x+
y=5

In other words, how do I split an equation? Some of the guides I tried don't work....
I use

\[
\begin{split}
x&=-b/2\pm\\
&\sqrt{(b/2)^2-c}
\end{split}
\]
CRGreathouse is offline   Reply With Quote
Old 2009-05-16, 22:23   #9
Zeta-Flux
 
Zeta-Flux's Avatar
 
May 2003

7·13·17 Posts
Default

You can also use \begin{eqnarray}\end{eqnarray}, or \begin{multline}\end{multline}, but I also like split.
Zeta-Flux is offline   Reply With Quote
Old 2009-05-16, 22:43   #10
flouran
 
flouran's Avatar
 
Dec 2008

72·17 Posts
Default

Quote:
Originally Posted by Zeta-Flux View Post
You can also use \begin{eqnarray}\end{eqnarray}, or \begin{multline}\end{multline}, but I also like split.
So using the multiline command, to produce the output,
x+
y=5,

I would run:
Code:
\begin{multiline}
x+ \\
y=5
\end{multiline}
??
flouran is offline   Reply With Quote
Old 2009-05-16, 23:31   #11
Zeta-Flux
 
Zeta-Flux's Avatar
 
May 2003

7×13×17 Posts
Default

Yep, except it is multline, not multiline. (That, and I like split better, but with multline you get equation numbers for each line.) I'll attach some of the LaTeX help files I have on my computer later tonight.
Zeta-Flux is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Latex searcher ? science_man_88 science_man_88 2 2018-07-21 17:11
being able to use a latex package wildrabbitt Software 7 2018-01-12 19:46
P.C. Poops Latex ProximaCentauri Miscellaneous Math 7 2014-12-05 22:28
LATex Documents Numbers Lounge 8 2005-12-31 09:33
Could we use LaTeX in this forum some day ? T.Rex Forum Feedback 5 2005-08-29 19:45

All times are UTC. The time now is 15:52.


Mon Aug 8 15:52:17 UTC 2022 up 32 days, 10:39, 1 user, load averages: 1.51, 1.30, 1.28

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔