Thread: LaTeX help

  1. #1
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463

    LaTeX help

    Hi all,
    I know latex isn't exactly programming, but maybe someone here can help. For some reason I cannot figure out, my sections are being written in the table of contents as 0.1.0....0.2.0...etc. I have added a few non-numbered sections into the table of contents with
    Code:
    \addcontentsline{}
    I am using the section option when adding to the table of contents, and am otherwise only writing sections normally with
    Code:
    \section{}
    My report has no other types of structures, like \part or \chapter.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Sections default to depth 2 (with chapters being 1). You should be able to change it with something like
    Code:
    \setcounter{tocdepth}{1}.
    Have a look at this:
    http://web.image.ufl.edu/help/latex/toc.shtml
    http://web.image.ufl.edu/help/latex/intext.shtml


    Oh, and LaTeX is a declaritive programming language, it's fair game

  3. #3
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    Thanks! I have tried that in several spots, including right before and after \tableofcontents , and before my first numbered section, but nothing has changed.

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    hmm, i've never actually written a paper that uses a ToC... if that doesn't work I'm out of ideas.

  5. #5
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Do you have much of it done? Would it take long to redo it? Just copy and paste redo so more or a 'redo' really. As you do each section keep on building the PDF and seeing if it's still broken.

    I found LaTeX quite frustrating when I used it this year, I'm quite happy with MS Word or some other such program. What OS are you using? And what program, out of a matter of interest.

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    I switched to LaTeX this year as well and I'll never go back. It's simply marvelous at formatting everying, placing figures and the top/bottom of pages, references, etc...

    I use "Kile" on linux and "TeXShop" on Mac.

  7. #7
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    I have tried the cut and paste redoing procedure which didn't work. I have also tried it in two different IDE's. I have tried kile on linux, and Texmaker w/ miktek on winxp. I really like the advantages of latex in terms of formatting big technical reports, but obviously I am running through some minor issues.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LaTeX
    By master5001 in forum A Brief History of Cprogramming.com
    Replies: 49
    Last Post: 10-29-2008, 05:38 PM
  2. LaTeX Question: Displaying Text and Images
    By Reisswolf in forum Tech Board
    Replies: 0
    Last Post: 06-30-2006, 08:01 AM
  3. LaTeX Question
    By Reisswolf in forum Tech Board
    Replies: 2
    Last Post: 05-07-2006, 11:11 AM
  4. LaTeX: Accents in math mode
    By Sang-drax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 04-20-2005, 09:37 AM
  5. LaTEX help....need LaTex guru advice
    By jodders in forum Tech Board
    Replies: 2
    Last Post: 03-13-2005, 02:51 PM