C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 04-17-2007, 10:42 PM   #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.
Draco is offline   Reply With Quote
Old 04-18-2007, 10:21 AM   #2
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,596
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
Perspective is offline   Reply With Quote
Old 04-18-2007, 12:13 PM   #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.
Draco is offline   Reply With Quote
Old 04-18-2007, 12:58 PM   #4
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,596
hmm, i've never actually written a paper that uses a ToC... if that doesn't work I'm out of ideas.
Perspective is offline   Reply With Quote
Old 04-18-2007, 01:15 PM   #5
The superheterodyne.
 
twomers's Avatar
 
Join Date: Dec 2005
Location: Ireland
Posts: 2,215
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.
__________________
I blag!
twomers is offline   Reply With Quote
Old 04-18-2007, 03:23 PM   #6
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,596
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.
Perspective is offline   Reply With Quote
Old 04-18-2007, 03:59 PM   #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.
Draco is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LaTeX master5001 General Discussions 49 10-29-2008 05:38 PM
LaTeX Question: Displaying Text and Images Reisswolf Tech Board 0 06-30-2006 08:01 AM
LaTeX Question Reisswolf Tech Board 2 05-07-2006 11:11 AM
LaTeX: Accents in math mode Sang-drax General Discussions 1 04-20-2005 09:37 AM
LaTEX help....need LaTex guru advice jodders Tech Board 2 03-13-2005 02:51 PM


All times are GMT -6. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22