Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Default value of Section in Latex

  1. Jul 24, 2004 #1
    Hello People!!

    Im new to this forums and didnt really found a specific thread on Latex help.
    Im trying to convert word documents into Latex format.

    Im a novice in this topic.. was wondering if anyone can help me out.

    I have a problem in changing the default value of Section in Latex.
    By default it assigns 1 to the first section defined in Latex. How do I change the default value, say from 1 to 1.3.

    I would appreciate any help in this regard.

    Thanks Much,
    Last edited by a moderator: Oct 18, 2011
  2. jcsd
  3. Jul 24, 2004 #2

    the 1 comes from the section tag

    the .3 comes from the subsection tag

    if you set the subsection couter to 2 then then next time you use the subsection tag it will display as three. I'm sure there's another way to do it, but I've always used the above.

    Good luck.
    Last edited: Jul 24, 2004
  4. Jul 24, 2004 #3
  5. Jul 24, 2004 #4
    Hey Thanks..
    Those links really help...
    Still not able to fix that problem Im trying :confused:
  6. Jul 24, 2004 #5
    If I'm reading your question correctly then this should have worked:

    Code (Text):


    \section{Some Section}
    \subsection{Some subsection starting at 1.3}

    Are you using subsections?
  7. Jul 25, 2004 #6
    No no...
    Im not using any subsections...
    Its the section no. which I want to name it is 1.3


    \section{some section title which is 1.3}

    after it compile it should print as

    " 1.3 Multi dimensional arays"

    there are no subsections involved.

    Actually this is kinda heading...

    I could have just coded as bold font and using :
    \textbf{1.3\qquad Multiplication of Vectors by Numbers}

    But I dont wanna do it that way. If I come across many such headings numbered in similar way in one page... say 1.3, 1.4, 1.5... How do I chage the default section number from 1 to 1.3 and for subsequent sections it can increment as 1.4... 1.5
    Those are not subsections!!!! Im using them as sections!!

    Last edited: Jul 25, 2004
  8. Jul 25, 2004 #7
    You can't. You can surpress sections and use subsections to number 1.3, 1.4, ... 1.n like this:

    \subsection{Label this}

    You need to use subsections to append the numbering after the initial chapter section.

    Here, this is a section from my dynamics notes:

    Code (Text):

    %Chapter 13
    \section{Kinetics of a Particle: Force and acceleration}
    \subsection{Newton's Law of Motion}
    \subsection{The Equation of Motion}
    \subsection{Equation of Motion for a System of Particles}
    \subsection{Equation of Motion: Rectangular Coordinates}
    \subsection{Equation of Motion: Normal-Tangential Coordinates}
    \subsection{Equation of Motion: Cylindrical Coordinates}
    \subsection{Central-Force Motion and Space Mechanics}
    If you compile the above you will see the output is:

    13 Kinetics of a Particle: Force and acceleration
    13.1 Newton's Law of Motion
    13.2 The Equation of Motion


    Trust me, use the subsections because the compiler knows how to handle them already and it will format everything for you. Compile my dynamics notes (minuse the notes that is) and see what I mean. If you want to surpress the "13 Kinetics of a Particle: Force and acceleration" then use this:

  9. Jul 25, 2004 #8
    Awesome!! Got it now!! Looks like you have worked a lot in Latex...

    More Im into it.. the more intresting it becomes.

    Next Im having some issues labelling equations ..
    I have used \begin{eqnarray}
    But the compiler is giving some wiered errors..
    will try for some more time.. elz you will
    have to come for rescue again!! :wink:

    Anyways thanks a lot..
    going to bed now...its 3:00am now.. Im in Tampa FL
    how abt you??
  10. Jul 26, 2004 #9
    Im trying to label these equations as 1.1 and 1.2 When I compile the code I get this error mssg:

    ! Extra Alignment tab has been changed to\cr
    <template> \egroup\endtemplate

    what does this mean and how do i fix it??

    (s + t)A = sA + tA​
    s(A + B) = sA + sB ​
  11. Jul 26, 2004 #10
    Ohhh, linear algebra notes huh?

    Add this line somewhere before your \begin{document}:
    Code (Text):
    You probably have a two or three line block below the page layout section and prior to the title section if you're using a latex template (that's where I've seen it with most LaTeX templates).

    You can actually place it immediately before the first call of it but try not to do that because you'll be forced to scan the entire doc if you decide to change it.

    To get rid of the word "Equation" simply use this:
    Code (Text):
    Ok, to actually use the above do this:
    Code (Text):

    $(s + t)A = sA + tA$
    $s(A + B) = sA + sB$
    Viola numbered equations.

    Good luck.
    Last edited: Jul 26, 2004
  12. Jul 26, 2004 #11
    I've used LaTeX a bit more than the average person I'd say. I'm not a professional typesetter by any means but I can put some good looking stuff together with the help of LaTeX. If you can type fast the LaTeX is definetly the fastest way to put together a good report. Typing {\bf yadda yadda yadda} is much faster than than using the mouse to select bold font but not quite as fast as ctrl-B. LaTeX typesetting shows its worth when presenting a document with a lot of equations and graphs. Yyping an equation into LaTeX is about 40x faster than using equation editor. Add GNUPlot and use EMACS as your environment then you'll be cruising along. I prepared a physics experiment report for my physics class a few semesters back in the time it took the other students and mine was more than twice as long. LaTeX does most the work for ya so you save time instead of fighting with word trying to get data into a table in the correct location. Oh, and if you really want to impress your professor, just drop
    Code (Text):

    \begin{abstract}The following document was typeset using the \LaTeX\ typesetting evironment.\end{abstract}
    below the \begin{document} tag.

    Detroit BTW.

    Well, good luck. Keep practicing the latex.
  13. Aug 10, 2004 #12
    Im trying to enumerate starting from say.. 9 till 15, instead starting from 1 which is default.
    I used \usepackage{enumerate} in the declerations and
    while enumerating..

    Insteading of numbering 9 10 11 it either numbers all the points as 9 or at times increments 10 in no. as.. 9 19 29..

    where am I going wrong??? :confused:
  14. Aug 11, 2004 #13
    \item[9.]some stuff here
    \item[10.]some more stuff here
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Default value of Section in Latex