Here is my code:
Code: Select all
\documentclass[12pt,a4paper,fleqn]{article}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{appendix}
\setotherlanguages{english}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{titlesec,titletoc}
%%% Changing sectioning units in main text
\titleformat{\section}
{\Large\bfseries\filcenter}% Title and number text formatting
{\thesection}% Number formatting
{1em}% Spacing between the number and the title
{}% Command/text between the number and the title
[]% Command/text after the title
\titleformat{\subsection}
{\large\bfseries\filcenter}% Title and number text formatting
{\thesubsection}% Number formatting
{1em}% Spacing between the number and the title
{}% Command/text between the number and the title
[]% Command/text after the title
%%% Changing sectioning units in TOC
\titlecontents{section}
[1.5em]% Left margin
{\bfseries\vspace{1em}}% Text and number formatting
{\contentslabel{1.5em}}% Number formatting
{\hspace*{-1.5em}}% Formatting when there’s no number
{\titlerule*[1pc]{.}\contentspage}% Filler and page number
[]% Command/text after the title
\titlecontents{subsection}
[2.3em]% Left margin
{}% Text and number formatting
{\hspace{1.5em}\contentslabel{2.3em}}% Number formatting
{\hspace*{-2.3em}}% Formatting when there’s no number
{\titlerule*[1pc]{.}\contentspage}% Filler and page number
[]% Command/text after the title
\begin{document}
\clearpage% or \cleardoublepage if you want TOC to be on the right page
%%% TOC
\tableofcontents
%%% Main text
\begin{abstract}
Abstract\ldots
\end{abstract}
\section{first section}
\begin{figure}[!h]
\includegraphics[width=1.00\textwidth]{pic_name}\hfill
\caption{picture descriprion}
\end{figure}
\section{second section}
TEXT
\subsection{Subsection}
TEXT
\section*{\large{APPENDIX}}
\addcontentsline{toc}{section}{APPENDIX}
\appendix
\renewcommand{\thesection}{\arabic{section}.} %Noradu, ka tiks lietota numeracija 1,2,3 nevis A,B,C kaa tas ir defaltaa
\begin{flushright}
1.appendix
\end{flushright}
\section[Appendix. ASDM using trigger]{ASDM using trigger}
\label{a:ASDM}
\end{document}
My problem.
1.question. Like you can see in my file, in TOC there is:
1 first section............1
2 second section...........1
2.1 Subsection............1
But I want dots after section and subsection numbers, so it looks like this:
1. first section............1
2. second section...........1
__2.1. Subsection...........1
Also these dots appier in text.
2.question. You can see in my latex document, that there are appendix. Every thing is ok, except one thing, you can see, that there is something like this:
APPENDIX..........................1
1.Appendix. ASDM using trigger....2
But I want that the 1.appendix is in the same level like subsection, and it would look like this:
1. first section............1
2. second section...........1
__2.1. Subsection...........1
APPENDIX..........................1
__1.Appendix. ASDM using trigger...2
Also, in text I don't want this 1.Appendix. I want just name of it, for example:
___________________________1.Appendix
________ASDM using trigger
3.question. Like you can see, the picture name is represented like this:
Figure 1: picture description
But I want to make this:
1. Figure. picture description
Thanks for your help.
