f



LaTex equation numbering like 2.1, 2.2, also 2.0.1, 2.0,2, 2.1.1, etc

David Roach wrote:

> Is there a simple command to have latex number
> the equations by the section numbers automatically.
>
> David

From the LaTeX Companion (what a wonderful book!)

%%%%%%%%%%%%%%%%%%%%%%

% number equations within sections
% In preamble

\makeatletter
\@addtoreset{equation}{section}
\makeatother
\renewcommand{\theequation}{\thesection.\arabic{equation}}

%%%%%%%%%%%%%%%%%%%%%%


Numbers within sections...I use this all the time in articles.  Even
works with

*******************
*******************


Brilliant. And then I got numbering within subsections
by repeating and editing (not replacing), so I now have:-

(Just after the documentClass command)

\makeatletter
\@addtoreset{equation}{section}
\makeatother
\renewcommand{\theequation}{\thesection.\arabic{equation}}

\makeatletter
\@addtoreset{equation}{subsection}
\makeatother
\renewcommand{\theequation}{\thesubsection.\arabic{equation}}



Bob
0
bobmarlow (7)
4/10/2004 12:50:44 PM
comp.text.tex 39029 articles. 3 followers. Post Follow

1 Replies
1735 Views

Similar Articles

[PageSpeed] 14

Bob Marlow schrieb:
> David Roach wrote:
> 
>> Is there a simple command to have latex number
>> the equations by the section numbers automatically.
>>
>> David
> 
> From the LaTeX Companion (what a wonderful book!)
> 
> %%%%%%%%%%%%%%%%%%%%%%
> 
> % number equations within sections
> % In preamble
> 
> \makeatletter
> \@addtoreset{equation}{section}
> \makeatother
> \renewcommand{\theequation}{\thesection.\arabic{equation}}
> 
> %%%%%%%%%%%%%%%%%%%%%%
[more code]
> 

Hi!

I think it would be easier to use amsmath and put in the preamble the
command
\numberwithin{equation}{section}

or for numbering by subsections:
\numberwithin{equation}{subsection}

Works also this way for 'table' and 'figure' instead of 'equation'

Christoph

0
4/10/2004 2:56:31 PM
Reply:

Similar Artilces:

[ANN] gettext-2.0.1, gettext_activerecord-2.0.1, gettext_rails-2.0.1
Hi, Ruby-GetText-Package-2.0.1 and the families (gettext-2.0.1, gettext_activerecord-2.0.1 and gettext_rails-2.0.1) are now available. Ruby-GetText-Package is the library/tools for message localization. * gettext - Message localization libraries and tools for all kind of apps/libs. * gettext_activerecord - ActiveRecord Localization * gettext_rails - Rails support with gettext. Changes ------- * gettext-2.0.1 * Fixed bugs * doesn't work with ruby-1.8.5. [Reported by Dan Coutu] * GetText.locale= can't keep the locale. [Reported by Adam Ilan] * Break backward c...

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Borland Guru's I need help I have a text file as follows: 1 2 1.1 1.1.1 3.3 2.3 etc I cannot use a control active x tree I need to read this file and 1 is a parent 1.1 is a child of parent 1 and 2 is a parent 2.3 is a child of parent 2 and construct in search a way using arrays or probably a recursive function No xml parsing just read a file. Does any body have a function "Mos" <lndebug@gmail.com> wrote in message news:c1aaeb20-3c1f-408d-9986-bb8d28a87509@s31g2000vbp.googlegroups.com... > I have a text file as follows: > 1 > 2 > 1.1 >...

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Folks I need help. I have a view or(Text file) as follows: '1 2.1 1.1.1 1.1.1.1 2.2.1 1.3 2 Dim Parent() As String Dim Level1() As String Dim Level2() As String Dim Level3() As String etc .. How can I construct a tree. parent, children, grand children etc... and also figure out # of children # of grand children etc Thanks "Mos" <lndebug@gmail.com> wrote in message news:875cd1df-7605-45ab-9f7b-f1edec25d47b@r34g2000vbi.googlegroups.com... > Folks I need help. I have a view or(Text file) as follows: > > '1 > 2.1 > 1.1.1 > 1....

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Folks I need help. I have a view or(Text file) as follows: '1 2.1 1.1.1 1.1.1.1 2.2.1 1.3 2 Dim Parent() As String Dim Level1() As String Dim Level2() As String Dim Level3() As String etc .. How can I construct a tree. parent, children, grand children etc... and also figure out # of children # of grand children etc Thanks "Mos" <lndebug@gmail.com> wrote in message news:875cd1df-7605-45ab-9f7b-f1edec25d47b@r34g2000vbi.googlegroups.com... > Folks I need help. I have a view or(Text file) as follows: > > '1 > 2.1 > 1.1.1 > 1....

Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms, Reports) on Fedora Core 1
I have installed Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, Reports6i) on Fedora Core 1 the 8th November 2003. All is running OK. Denis ALEXANDRE Assistant Manager, Banque Saradar France http://www.alexnet.fr/ P.S. I am using Oracle and Unix to create an Integrated Banking System since 1987. This banking system is installed in more than 25 other banks. alex@alexnet.fr wrote: > I have installed > Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, Reports6i) > on Fedora Core 1 > the 8th November 2003. All is running OK. > > Denis ALEXANDRE > Assistant Manager, Banque Saradar France > http://www.alexnet.fr/ > > P.S. I am using Oracle and Unix to create an Integrated Banking System since 1987. > This banking system is installed in more than 25 other banks. > > Great - after this coming out in the open, do you care to explain how you installed Portal Rel 1 in a 9.2 instance? -- Regards, Frank van Bortel Frank wrote: > alex@alexnet.fr wrote: > >> I have installed >> Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, >> Reports6i) >> on Fedora Core 1 >> the 8th November 2003. All is running OK. >> >> Denis ALEXANDRE >> Assistant Manager, Banque Saradar France >> http://www.alexnet.fr/ >> >> P.S. I am using Oracle and Unix to create an Integrated Banking System >> since 1987. >...

Why does '[1,2,3] EQ [2]' yield zero but '[1,2,3] EQ 2' yield [0,1,0] ?
Hi all, The post title says it all. I thought "everything" in IDL was an array, but using [2] and 2 with relational operators is not equivalent... I searched the doc and newsgroup for quite a while, but obviously I did not come up with search terms that are specific enough. It took me a while to track this down in some code I was writing. My bug is now fixed *but* I don't understand why exactly. And we all know voodoo and IDL don't mix :-) can somebody clarify please? Many thanks, Gianguido PS: I have a feeling this issue came up not too long ago, just couldn't find...

Linux: Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms, Reports) on Fedora Core 1
I have installed with Philippe ALEXANDRE on a laptop Oracle9i DB 9.2, Oracle9i DS 9.0.2, Oracle9i AS 1.0.2.2.1(Forms6i, Reports6i) on Fedora Core 1 the 8th November 2003. All is running OK. Denis ALEXANDRE Assistant Manager, Banque Saradar France http://www.alexnet.fr/ P.S. I am using Oracle and Unix to create an Integrated Banking System since 1987. This banking system is installed in more than 25 other banks. ...

Upgrade from VO 1 - 2 - 2..1 -2.2 - 2.3 -2.4 - 2.5 - 2.6 - 2.7
About upgrade 2.5 - 2.7 at $ 384.00 For most products I'm using - the updates (2.0 - 2.1 - 2.7) are free... 2.0 to 3.0 might be worth + 10-30% of the original price? VO is + full price again & again - Full program price for every minor upgrade/bug-fix? I dropped out of the money/bugs [VO] at 2.5 after starting at 1.0 more than 10 years ago. Certainly whoever is making VO have to make a living; earning moneys: - that is OK! A 10 years old VO site; - 10 years later, how much have changed? http://www.yi.com/prany/cavo/cavofront.htm Even MS is not ...

[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 3;....;n n n n n]
Hi, Anybody knows how to create this matrix but without using any loops? a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] Thank you. Hana. Hana wrote: > Hi, > Anybody knows how to create this matrix but without using any loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] HELP REPMAT - Randy Hana wrote: > > > Hi, > Anybody knows how to create this matrix but without using any > loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] > > Thank you. > Hana. Hope this isn't homework. >> repmat([1:n]'...

how to "(1-3*x^2)/(1-3*x+x^2+2*x^3) => 1/(1-2*x) + x/(1-x-x^2)"?
hi normal(1/(1-2*x) + x/ (1-x-x^2),expanded); 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) how to do the reverse? dillogimp@gmail.com writes: > normal(1/(1-2*x) + x/ (1-x-x^2),expanded); > 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) > how to do the reverse? convert(%,parfrac,x); -- Joe Riel ...

Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4
I don't have matlab and I am trying to translate some simple matlab code. Does 4/2/2 = (4/2)/2 = 1 or 4/2/2 = 4/(2/2) = 4 On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote: > I don't have matlab and I am trying to translate some simple matlab code. > > Does 4/2/2 = (4/2)/2 = 1 yes. At a given precedence level (and obviously two of the same operators are the same level) evaluation proceeds from LtoR. ....snip... <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155> -- dpb <none@non.net> wrote in message <...

Printing 2^1, 2^2, 2^3, 2^4 and 2^5
Hi, When I use a while loop, the output is: 2 4 8 16 32, as desired: <?php $c=1; while($c<=5) { $d = newpow(2, $c); print "$d "; $c++; } function newpow($base, $power) { // statements... } ?> The But when I use a for loop, the output is: 64: <?php for($c=1; $c<=5; $c++); { $d = newpow(2, $c); print "$d "; } function newpow($base, $power) { // statements... } ?> Why is this?? Many thanks, Michael mejpark wrote: > When I use a while loop, the output is: 2 4 8 16 32, as desired: [...] > The But when I use a for loop, the output is: 64...

Re: Product {for p=2 to infinity} (p^2+1)/(p^2-1) version=3.0.2
Product[(p^2+1)/(p^2-1), {p, 2,Infinity}]//FullSimplify Sinh[Pi]/Pi %//N 3.67608 Verify result: ListPlot[Table[{m,Product[(p^2+1)/(p^2-1), {p, 2,m}]},{m,5,150,5}], PlotJoined->True]; Table[Product[(p^2+1)/(p^2-1), {p, 2,m}],{m,5,200,5}] == Table[Times@@Table[(p^2+1)/(p^2-1), {p, 2,m}],{m,5,200,5}] True Bob Hanlon > > From: seidovzf@yahoo.com (Zak Seidov) > Date: 2005/02/04 Fri AM 04:12:17 EST > To: mathgroup@smc.vnet.net > Subject: Product {for p=2 to infinity} (p^2+1)/(p^2-1) > > Dear Mat...

Assume X; Y and Z are jointly Gaussian mean-zero random variables with the (joint) variance given by K := Var(X; Y;Z) =[2 1 0;1 2 1;0 1 2 ]
Assume X; Y and Z are jointly Gaussian mean-zero random variables with the (joint) variance given by K := Var(X; Y;Z) =[2 1 0;1 2 1;0 1 2 ] (a) Determine the distribution of U = X + Y + Z. (b)Let W = X + Y and V = X + Y . Compute the joint distribution of W and V . after assiging the values to k matrix how can i find u "pramod kumar" <pramod.kilu@gmail.com> wrote in message news:jpbdev$hqh$1@newscl01ah.mathworks.com... > Assume X; Y and Z are jointly Gaussian mean-zero random variables with the > (joint) variance given > by > K := Var(X; Y;Z) =[2 1 0;1...

[ANN] Unicorn 2.0.0, 1.1.5, 1.0.2 released!
Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients. * http://unicorn.bogomips.org/ * mongrel-unicorn@rubyforge.org * git://git.bogomips.org/unicorn.git tldr change summaries: 2.0.0 - cleanups for Rainbows!, but should be ready for general use barring portability issues 1.1.5 - bug f...

Oracle server 9.2.0.1.0, Client 9.2.0.4.0, Red Hat Linux enterprise advanced server 2.1
Hi Everybody, My Database server is running on Red Hat Linux enterprise advanced server 2.1, And my Oracle version is 9.2.0.1.0. My Client mechine also Red Hat Linux enterprise advanced server 2.1 , Oracle client version is 9.2.0.4.0. I am running a web application. Our application is in Magic edeveloper. I connect to Oracle using oracle gateway to my application. My Problem is my application is is becoming slow. I am not able to trace where the problem is. Before our application was running fine. recently i upgraded Oracle client version to 9.2.0.4.0. My Oracle client & server versi...

Porting BSP/Tornado 2.1.2 MIPS to Tornado 2.2.1
Dear all, I've just installed Tornado 2.2.1 for MIPS. To my horror, the VxWork project file I received from my customer is written on Tornado 2.1.2. My questions: 1. How to migrate from 2.1.2 to 2.2.1 without previously installing 2.1.2 ? 2. What's the fastest way to do the migration without prjMigrate tools ? Thank you in advance. ...

2 counters, show numbering 1.2., print only 1. instead of 1.0.?
I've set up the counters & co, but how can it actually be done that the trailing zeros get omitted (also with 3 counters)? (somehow failed with ifthen package and just ran away from plain TeX..) K?rlis Repsons <karlis.repsons@gmail.com> wrote: > I've set up the counters & co, but how can it actually be done that > the trailing zeros get omitted (also with 3 counters)? > (somehow failed with ifthen package and just ran away from plain > TeX..) Replace "A" and "B" with the counter names: \renewcommand*{\theB}{% \arabic{A}% \ifnum\value{B}>0 % .\arabic{B}% \fi .% or without final dot } -- Heiko Oberdiek On May 3, 2:16=A0pm, Heiko Oberdiek <heiko.oberd...@googlemail.com> wrote: > K?rlis Repsons <karlis.reps...@gmail.com> wrote: > > I've set up the counters & co, but how can it actually be done that > > the trailing zeros get omitted (also with 3 counters)? > > (somehow failed with ifthen package and just ran away from plain > > TeX..) > > Replace "A" and "B" with the counter names: > > \renewcommand*{\theB}{% > =A0 \arabic{A}% > =A0 \ifnum\value{B}>0 % > =A0 =A0 .\arabic{B}% > =A0 \fi > =A0 .% or without final dot > > } > > -- > Heiko Oberdiek Thanks... ...

Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2
I've been tasked with upgrading the JVM from 1.3 to 1.4, and the third party libraries used by my company on our existing Java framework. I'm most worried about any problems that may occur due to upgrading Xalan and Xerces as our framework performs much XML transformation and processing. Does anyone have a link to known issues with such an upgrade (besides the Xalan / Xerces sites) ? Or has anyone done such an upgrade and can share their pearls of wisdom? Thanks Chris ...

#1 #n+1 #2n+1 #2 #n+2 #2n+2 #3 #n+3 #2n+3 #n #2n #3n #1 #2 #3 #n #n+1 #n+2 #n+3 #2n #2n+1 100 Gbps aggregate stream of 64/66b words virtual lane markers virtual lane 1 virtual lane 2 virtual lan
#1 #n+1 #2n+1 #2 #n+2 #2n+2 #3 #n+3 #2n+3 #n #2n #3n #1 #2 #3 #n #n+1 #n+2 #n+3 #2n #2n+1 100 Gbps aggregate stream of 64/66b words virtual lane markers virtual lane 1 virtual lane 2 virtual lane 3 virtual lane n Simple 66-bit word level round robin distribution Transmit PM Transmit PM Receive PM Receive PM Transmit PC Receive PC 1 0.0 1.0 0.1 0.2 0.3 1.2 1.2 1.1 0.0 1.0 0.1 1.1 2.0 3.0 4.0 6.0 7.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 17.0 18.0 19.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 1...

[ANN] gettext-2.0.2, gettext_activerecord-2.0.2, gettext_rails-2.0.2
Hi, Ruby-GetText-Package-2.0.2 and the families (gettext-2.0.2, gettext_activerecord-2.0.2 and gettext_rails-2.0.2) are now available. Ruby-GetText-Package is the library/tools for message localization. * gettext - Message localization libraries and tools for all kind of apps/libs. * gettext_activerecord - ActiveRecord Localization * gettext_rails - Rails support with gettext. Changes ------- == gettext-2.0.2 * Support ruby-1.9.1 style format string such as %<foo>d. * Apply new Locale.set_app_language_tags and Locale.candidates. [Suggested by Vladimir Dobriakov] * Enhance...

after upgrade 10.2.0.1 to 10.2.0.2
I had 10.2.0.1 RAC installation in Redhat EL4. Everything run fine. I did upgrade from 10.2.0.1 to 10.2.0.2 today. I did clusterware first and RAC second. Both are successful. After that, I run catupgrd.sql in my database. Afterward, my database won't start. If I used srvctl start database -d name, then I got CRS-0215: Could not start resource 'ora.....inst' error. If I use sqlplus, I can do startup mount, but not open. Please help! Happy On Mar 22, 1:32 pm, "Happy" <Haibin.T...@gmail.com> wrote: > I had 10.2.0.1 RAC installation in Redhat EL4. Everything run ...

moving from 1.6.2 and 2.0.2 to 3.0
Are there any known dangers in migrating from 1.6.2 and 2.0.2 to 3.0 (i386 is my platform)? I have been caught out by the removal of support (e.g. packages) for 1.6.2, and have several serious production machines to upgrade. In particular, two of these are colocated on an ISP's site. If upgrades there go wrong it's costly in all sorts of ways. I'd be grateful for people with experience to mention any snags they found. I imagine /etc is sensitive in particular, but there's an alarming sentence or two in the installation documentation about PAM and possibly ending up una...

cPickle from 2.2 to 2.1
hi list, I use cPickle in a small .cgi to save data. It run's fine on python 2.2.3 (used for development) but fails on 2.1.1 (webserver) with: File "spyblog.py", line 543, in __init__ self.entry = cPickle.load(open(log + self.filename, 'r+')) SystemError: Failed to import class _reconstructor from module copy_reg If I create the file on the webserver everything works, so apparently the 2.1.1 version of cPickle can't read files generated with the newer one. Does it mean the cPickle format is not compatible across versions? thx Paul [paul] > I use cPickle in a small .cgi to save data. It run's fine on python > 2.2.3 (used for development) but fails on 2.1.1 (webserver) with: > > File "spyblog.py", line 543, in __init__ > self.entry = cPickle.load(open(log + self.filename, 'r+')) > SystemError: Failed to import class _reconstructor from module > copy_reg > > > If I create the file on the webserver everything works, so apparently > the 2.1.1 version of cPickle can't read files generated with the newer > one. Does it mean the cPickle format is not compatible across > versions? Sorry, not enough information to say for sure. The specific error you're seeing *can* occur when trying to unpickle a pickle of a new-style class instance under a version of Python before new-style classes were introduced. Since new-style classes were introduced in 2.2, a pickle made u...

Web resources about - LaTex equation numbering like 2.1, 2.2, also 2.0.1, 2.0,2, 2.1.1, etc - comp.text.tex

House numbering - Wikipedia, the free encyclopedia
House numbering is the system of giving a unique number to each building in a street or area , with the intention of making it easier to locate ...

Telephone numbering plan - Wikipedia, the free encyclopedia
A telephone numbering plan is a type of numbering scheme used in telecommunications to allocate telephone numbers to subscribers and to route ...

numbering mechanism - Flickr - Photo Sharing!
My letterpress has a numbering mechanism so you can keep track of how many sheets you pull

Android 6-point-huh? Analyzing the Marshmallow numbering madness
It may seem strange that Google's Android Marshmallow release brings such a big jump in version number, but those of us obsessing over digits ...

Has software version numbering spiralled out of control?
... users and introduced year based versioning. Windows 95 was a big change for the OS so this was as good a time as any to introduce a new numbering ...

Crows numbering in thousands rankle residents of Springfield, Ohio
Birds' overwhelming presence in western Ohio city's downtown have some residents comparing landscape with Hitchcock movie

Report: iPad preorders numbering in 'hundreds of thousands'
The Wall Street Journal says sales of Apple's newest device on pace to beat original iPhone in first three months. Read this article by Erica ...

Android 6-point-huh? Analyzing the Marshmallow numbering madness
Damn it, Google. Every time you announce a new major Android release, I end up throwing away hours of hard gym work and stuffing pounds of sugary ...

FCC Modernizes Numbering Rules To Spur Competitive VoIP Options for Consumers - FierceTelecom
Washington, D.C. (June 18, 2015) – The Federal Communications Commission today modernized and streamlined its rules governing the distribution ...

Microsoft doing an Apple in numbering Windows releases?
After surprising observers by skipping Windows 9 and going straight to Windows 10, could Microsoft be doing an Apple in numbering its Windows ...

Resources last updated: 3/11/2016 6:19:48 PM