Search found 5 matches

by ptha
Wed Aug 18, 2010 7:09 pm
Forum: Text Formatting
Topic: displaying xml code using listings package
Replies: 1
Views: 2652

displaying xml code using listings package

I'm trying to display a wsdl file (so XML) in an appendix. I'm using the listings package with the following code:

\lstset{
language=XML,
basicstyle=\footnotesize,
numberstyle=\footnotesize,
breaklines=true
showspaces=false,
showstringspaces=false,
showtabs=false,
frame=single,
tabsize=4,
title ...
by ptha
Tue Mar 30, 2010 10:05 pm
Forum: Graphics, Figures & Tables
Topic: Add table of contents to table of contents
Replies: 6
Views: 23237

Add table of contents to table of contents

You don't want \mainmatter to be in between this, and where you actually insert the table of contents. You'll also need a \cleardoublepage and \phantomsection before it. Depending on what kind of page numbering you want for the TOC, you want either:


\cleardoublepage
\phantomsection ...
by ptha
Tue Mar 30, 2010 2:17 pm
Forum: Graphics, Figures & Tables
Topic: Add table of contents to table of contents
Replies: 6
Views: 23237

Add table of contents to table of contents

Could you be a little more specific about your lack of joy? What happened when you tried that line?

When I tried the line above it just added an entry "Contents" to the toc, but it wasn't the actual table of contents - it listed the wrong page, and when clicking on the link it went to a blank ...
by ptha
Tue Mar 30, 2010 2:15 pm
Forum: Graphics, Figures & Tables
Topic: Add table of contents to table of contents
Replies: 6
Views: 23237

Add table of contents to table of contents

Sorry guys here's my document class it's a template for a thesis for my university:
tcd-phd-thesis.cls
The code in my main tex file is

\documentclass[twoside]{tcd-phd-thesis}
\usepackage[breaklinks]{hyperref}
\usepackage{cite}
\usepackage[style=altlist,
nonumberlist,
acronym,
toc]
{glossaries ...
by ptha
Tue Mar 30, 2010 2:45 am
Forum: Graphics, Figures & Tables
Topic: Add table of contents to table of contents
Replies: 6
Views: 23237

Add table of contents to table of contents

Hi I'm writing my thesis using Latex (Kile on Ubuntu) and
I want have the table of contents actually appear as an entry in the table of contents.

I've tried \addcontentsline{toc}{chapter}{Contents} with no joy.

I'm sorry if this is a ridiculous question, but have mercy I'm a newbie...
P