Search found 37 matches

by Kaspars
Fri Jun 03, 2011 1:57 pm
Forum: Text Formatting
Topic: Dot after number in TOC
Replies: 14
Views: 13593

Dot after number in TOC

Ok. Thanks :) After some experiments with dot, hspace ect I found how to solve my problem. Here is the code:
\titlecontents{section}
[0.5em]
{\vspace{1em}}
{\hspace{-1em}.\contentslabel{0.7em}\hspace{1em}}
{\hspace*{-1.5em}}
{\titlerule*[1pc]{.}\contentspage}
[]

\titlecontents{subsection ...
by Kaspars
Fri Jun 03, 2011 10:17 am
Forum: Text Formatting
Topic: Dot after number in TOC
Replies: 14
Views: 13593

Re: Dot after number in TOC

What errors? For me everyting works fine! :shock:
by Kaspars
Thu Jun 02, 2011 7:39 am
Forum: Text Formatting
Topic: Dot after number in TOC
Replies: 14
Views: 13593

Re: Dot after number in TOC

Can't anyone help me? Really? :?
by Kaspars
Tue May 31, 2011 7:48 am
Forum: Text Formatting
Topic: TOC page number
Replies: 2
Views: 1863

Re: TOC page number

Thanks, for help! It works ;)
by Kaspars
Mon May 30, 2011 11:30 am
Forum: Text Formatting
Topic: TOC page number
Replies: 2
Views: 1863

TOC page number

Hello,

I have small problem with page numbering in TOC. Everything works just fine in sections and subsections ect, but when I use:
\bibliographystyle{unsrt}
\bibliography{Master_paper}
\addcontentsline{toc}{section}{Literature}

in TOC I get last page number of literature. I mean, I have 3 pages ...
by Kaspars
Mon May 30, 2011 9:51 am
Forum: Text Formatting
Topic: Dot after number in TOC
Replies: 14
Views: 13593

Dot after number in TOC

Hello,

Oki, here is my full text where suggested lines
\let \savenumberline \numberline
\def \numberline#1{\savenumberline{#1.}}
don't work.

My full text:
\documentclass[12pt,a4paper]{article}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage ...
by Kaspars
Tue May 24, 2011 7:51 am
Forum: Text Formatting
Topic: Appendix formating, problem with number and period
Replies: 11
Views: 7332

Appendix formating, problem with number and period

Oki, I changed my code, and now, it looks like this:


\renewcommand{\appendixname}{\arabic{section}.\arabic{equation}}
\appendix
\renewcommand{\thesection}{\arabic{section}}
\titlecontents{section}
[3.5em]%
{\vspace{0.5em}}%
{\contentslabel{1.5em}}%
{\hspace*{-1.5em}}%
{\titlerule*[1pc ...
by Kaspars
Sun May 22, 2011 4:40 pm
Forum: Text Formatting
Topic: Appendix formating, problem with number and period
Replies: 11
Views: 7332

Appendix formating, problem with number and period

Oh no, it works in appendix and in TOC, but it won't work at text. When I add label, it looks like this:
\section*{AS electrical circuit}
\addcontentsline{toc}{section}{1. Appendix. AS electrical circuit}
\label{AS}

Then, in text I see something like this:

AS electrical circuit (4.8. Appendix ...
by Kaspars
Sun May 22, 2011 12:34 pm
Forum: Text Formatting
Topic: Appendix formating, problem with number and period
Replies: 11
Views: 7332

Appendix formating, problem with number and period

Stefan_K wrote:Where's the problem?

Code: Select all

\section*{AS electrical circuit}
\addcontentsline{toc}{section}{1. Appendix. AS electrical circuit}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
It works, thanks :) :) :)
by Kaspars
Fri May 20, 2011 8:06 am
Forum: Text Formatting
Topic: Appendix formating, problem with number and period
Replies: 11
Views: 7332

Appendix formating, problem with number and period

Just use the starred version to get an unnumbered heading:

\section*{Appendix name}

If required, use \addcontentsline to get a TOC entry for it.

Stefan

Thanks Stefan for answer.

It works, but there is problem in TOC, I want that the section looks like this:
\section[Appendix. AS electrical ...