mersenneforum.org LaTeX Typesetting Question
 Register FAQ Search Today's Posts Mark Forums Read

 2009-05-16, 15:33 #1 flouran     Dec 2008 72·17 Posts 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?
 2009-05-16, 16:02 #2 Mini-Geek Account Deleted     "Tim Sorbera" Aug 2006 San Antonio, TX USA 2·3·23·31 Posts $\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
 2009-05-16, 16:18 #3 flouran     Dec 2008 83310 Posts 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.
 2009-05-16, 16:20 #4 Zeta-Flux     May 2003 7·13·17 Posts I use \nmid, for not divides.
2009-05-16, 16:24   #5
flouran

Dec 2008

72·17 Posts

Quote:
 Originally Posted by Zeta-Flux I use \nmid, for not divides.
That works!

 2009-05-16, 21:19 #6 flouran     Dec 2008 83310 Posts 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.
 2009-05-16, 21:28 #7 flouran     Dec 2008 72·17 Posts 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....
2009-05-16, 22:02   #8
CRGreathouse

Aug 2006

598710 Posts

Quote:
 Originally Posted by flouran 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}$

 2009-05-16, 22:23 #9 Zeta-Flux     May 2003 7×13×17 Posts You can also use \begin{eqnarray}\end{eqnarray}, or \begin{multline}\end{multline}, but I also like split.
2009-05-16, 22:43   #10
flouran

Dec 2008

72×17 Posts

Quote:
 Originally Posted by Zeta-Flux 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}
??

 2009-05-16, 23:31 #11 Zeta-Flux     May 2003 7×13×17 Posts 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.

 Similar Threads Thread Thread Starter Forum Replies Last Post science_man_88 science_man_88 2 2018-07-21 17:11 wildrabbitt Software 7 2018-01-12 19:46 ProximaCentauri Miscellaneous Math 7 2014-12-05 22:28 Numbers Lounge 8 2005-12-31 09:33 T.Rex Forum Feedback 5 2005-08-29 19:45

All times are UTC. The time now is 08:55.

Mon Nov 28 08:55:10 UTC 2022 up 102 days, 6:23, 0 users, load averages: 0.88, 0.85, 0.84