Page LayoutProblems with numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Aslund
Posts: 7
Joined: Sat Aug 15, 2009 3:12 pm

Problems with numbering

Post by Aslund »

Hey everyone

I am a bit new, but I hope my problem is not to trivial :)
My problem is that numbering of figures and listing is going 1, 2, 3, ......
I would like them to go 1.1, 1.2, 1.3 for chapter 1 and 2.1, 2.2, 2.3 for chapter 2 etc.
How is it possible to do this trick? I am using bibtex for setting up my latex document. If you need to look at it, I attached it here.

I hope you can help me finding a solution, because I am still lost after searching the internet.

Regards

Sebastian Aslund
Attachments
numbering.tex
(2.95 KiB) Downloaded 306 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Problems with numbering

Post by phi »

Probably you mean sections instead of chapters (the article class doesn't provide a chapter command). Then

Code: Select all

\numberwithin{figure}{section}
should work.
Aslund
Posts: 7
Joined: Sat Aug 15, 2009 3:12 pm

Re: Problems with numbering

Post by Aslund »

Hey phi

You nailed the problem, added the command and everything worked as a dream :)

Regards

ps.
If anyone have a book or tutorial to recommend about using latex, I would love to hear it :) thanks.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Problems with numbering

Post by Stefan Kottwitz »

Hi Sebastian,
Aslund wrote:If anyone have a book or tutorial to recommend about using latex, I would love to hear it :)
have a look at LaTeX Resources for Beginners.

Stefan
LaTeX.org admin
Aslund
Posts: 7
Joined: Sat Aug 15, 2009 3:12 pm

Re: Problems with numbering

Post by Aslund »

Thanks Stefan for you link, lots of reading :)

Actually I found another problem, which is rather problematic. I am danish and therefore I use å, æ and ø quite a bit. I have no problems when I write normal text, but when I import my sections for my article, then it refuse to load the file if I use these letters. I could change the name, but my bibtex file uses the filename as headline of the section.
The english guides I found didnt cover this and danish community is ridiculous small :(

Even though this problem might be new for many, I hope some can find an answer.
Thanks

Regards

Sebastian Aslund
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problems with numbering

Post by gmedina »

Hi Sebastian,

perhaps you are not loading the inputenc package; the following simple example works OK in my system:

Code: Select all

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[danish]{babel}

\begin{document}

\section{å æ ø}

\end{document}
If the problem persists, please post a minimal working example that allows us to reproduce the odd behaviour.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Aslund
Posts: 7
Joined: Sat Aug 15, 2009 3:12 pm

Re: Problems with numbering

Post by Aslund »

Hey gmedina

I have no problems with sections, my problem is only with \input.
Like:
\input{Chap/Projektværktøjer}

Gives following error:
! LaTeX Error: File `Chap/Projektv\T1\ae rkt\T1\o jer.tex' not found.

Regards

Sebastian Aslund
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problems with numbering

Post by Stefan Kottwitz »

Hi Sebastian,

just avoid using those special letters in file names or paths.

Stefan
LaTeX.org admin
Aslund
Posts: 7
Joined: Sat Aug 15, 2009 3:12 pm

Re: Problems with numbering

Post by Aslund »

Hey Stefan

Seems you are right, I must just accept that some function in latex have problems with our funny letters :)

Regards
Post Reply