GeneralAppendix problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Appendix problem

Post by Kaspars »

Hello,

I'm new in Latex, so maybe my question is very simple, but I couldn't find any answear ir google...

When I add at the end of the document:
\appendix

It appears in table of contents(TOC) but I don't like how it is numbered:

A First Appendix
A.1. Appendix
and so on.

I want to change it, so I could add appendix with numbering in TOC like this:

1. First appendix
2. Second appendix

and so on.

Please help me solve this problem.

Thanks a lot.
Last edited by Kaspars on Thu Feb 24, 2011 10:57 am, edited 1 time in total.

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Appendix problem

Post by frabjous »

This cannot be answered without knowing what documentclass, packages, etc., you're using. Please provide a minimal working example (emphasis on minimal) showing us your basic document structure, and which reproduces the numbering problem you want to avoid.
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Re: Appendix problem

Post by Kaspars »

Oh, sorry, here is my document:

\documentclass[12pt,a4paper,flqno]{article}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{color}
\usepackage{url}
\usepackage{appendix}
\setdefaultlanguage{latvian}
\setotherlanguages{english}
\usepackage{graphicx}
\usepackage{amsmath}

\begin{document}
\tableofcontents
\begin{abstract}
\end{abstract}
text with few sections and subscetions...
\bibliographystyle{unsrt}
\bibliography{Master_1}
\appendix
\section{First appendix}
\section{Second appendix}
\end{document}

So I don't like that in TOC there is:
A First Appendix
B Second Appendix

I want:

1. First appendix
2. Second appendix

Thanks for help :)
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Appendix problem

Post by frabjous »

You need only put:

Code: Select all

\renewcommand{\thesection}{\arabic{section}.}
right after \appendix.

(You can leave out the period at the end if you don't want a period there -- the regular sections don't, after all.)
User avatar
Kaspars
Posts: 37
Joined: Mon Feb 14, 2011 11:51 am

Appendix problem

Post by Kaspars »

frabjous wrote:You need only put:

Code: Select all

\renewcommand{\thesection}{\arabic{section}.}
right after \appendix.

(You can leave out the period at the end if you don't want a period there -- the regular sections don't, after all.)
It works :)
Thanks, you are the best :)
Post Reply