latex

How can I centre the title of the table of contents in LaTeX?

Qucik question, I'm trying to centre the title of the table of contents in LaTeX with the following command \usepackage{tocloft} \renewcommand{\contentsname}{\centering Table of Contents} As I'm asking I'm sure you've all realised that didn't work, any suggestions on what I can try? [edit]I got it working with \renewcommand{\cfttoc...

LaTeX adjusting space in toc items

I am struggling with custom toc items added via: \addcontentsline{toc}{section}{Some text here} Actually my problem is that I need to add some items which contain chronological date periods like: 12/1/2005 - 3/3/2006 Some event.........................................1 10/10/2005 - 11/30/2005 Some other event............................

Different colors for links when displayed on screen vs. in print?

Is it possible to have different colors for on screen and hardcopy display of hyperref links in the same file? In my thesis, I like the functionality of linking reference numbers to the reference entry in the bibliography and I like having the pubmed links in the bibliography work. Having the links be blue or red helps indicate that the...

LaTeX math symbol macro

Hi there, I've long had a dream of creating a "consistent comparison" operator to use in my homework (in LaTeX). That is, in some long derivation, we might want to know how $a$ compares to $b$, and although this is totally contrived, an example might read \begin{align*} a &? b \\ f(a) &? f(b) \\ f(a) &= f(b) \text{by assump...

Operating system independent image adressing

Due to using both Windows and Ubuntu on my computer I'd like to be able to create documents independently. I have one directory for logos and I want to use them in any documents everywhere. The problem with different file adressing I solved with those commands: \newcommand{\winlogo}{D:/logo/} \newcommand{\linlogo}{/media/DATA/logo/} ...

Enumerating sections to start with §-sign

Is it possible to enumerate sections in latex not just to show 1/2/3 but rather §1/§2/§3 at the beginning? ...

What is the correct way to center \tikzpicture?

What is the correct way to cause a \tikzpicture to be centered, using LaTeX? By default it appears to be aligned with the left margin. ...

Problem with LaTeX hyperref

i have an url with cyrilic characters: http://www.pravoslavie.bg/Възпитание/Духовно-и-светско-образование when i compile the document, i get following as url: http://www.pravoslavie.bg/%5CT2A%5CCYRV%20%5CT2A%5Ccyrhrdsn%20%5CT2A%5Ccyrz%20%5CT2A%5Ccyrp%20%5CT2A%5Ccyri%20%5CT2A%5Ccyrt%20%5CT2A%5Ccyra%20%5CT2A%5Ccyrn%20%5CT2A%5Ccyri%20%5...

Fullpage picture in two column layout

I'd like to insert a picture (figure) into a document which is using a two-column layout. However, I want it to take one whole page and not be centered on one of the columns. Currently if I add a [p] modifier to the figure, the whole image lands on the last page, instead in the middle of the document. How can I force one page to switch ...

dvi2rtf - who can convert DVI files to RTF files?

Consider a *NIX executable, dvi2rtf, whose contents are: #!/bin/sh TMPX=`mktemp /tmp/dvi2rtf.XXXXXX` dvitty $1 $TMPX # CTAN txt2rtf $TMPX $2 # CTAN, in rtfutils If my head is working this morning and the right executables are on the PATH, this clobbers the second argument with an rtf file whose text contents will roughl...

How can you safely use Perforce $Revision$ in LaTeX document?

I'd like to include Perforce's $Revision$ keyword in my LaTeX document. However, the presence of # seems to mess thing up. For example, if you have something like this: \cfoot{$Revision: #8 $} you end up with an error like "Illegal parameter number in definition of \temp@a". I did some searching and found packages (such as the L...

LaTeX: Group chapters into book sections

I'm writing a book using LaTeX. I have a bunch of chapters that are going to be sectioned into three main parts of the book. How can I markup this kinda thing with LaTeX? Specifically: I'd like to make a table of contents which looks kinda like PART I Chapter 1 - Some heading - Some heading 2 Chapter 2 - ... Chapter 3 Part...

How to generate application forms/documents programmatically?

At the moment, we use MS WORD and MS EXCEL to mail merge documents that needs to be sent to multiple recepients. For example, say there is a complaint form where the complainant needs to fill in his/her name, address, etc. So we have a .doc file set up with the content and the dynamic entities set up for mail merging, with the name and ...

TeX edef macro blues

I spent some time trying to write a 'helper' macro to test a parameter for a new value, else use the existing value -- default values exist for all parameter positions. I wanted to be able to write: \foo{left}{nil}{}{20pt} so that the second parameter would used its current value but the third value would be the value empty string. I...

LaTeX blank after number and before text

Hello, how could i make a blank after the number in my footnotes? In a general way, means for ALL footnotes! Thanks for helping! Example: good: 1 Hello World bad : 1Hello World ...

Writing text on LaTeX \part page

Hi all, I was wondering if it is possible to write an introductory text on the page generated by \part{...} in LaTeX? I have tried to insert text on it, but it will just generate a blank page before the text. Regards, Kenneth ...

wrap LaTeX command in environment

How can I wrap a LaTeX command in an environment? In essence, how can I turn \somecommand{contents} into \begin{somecommand} contents \end{somecommand}? I have tried the obvious in creating a new environment as such: \newenvironment{somecommand}[0]{ \somecommand{ } { } } but this causes problems with the curly brackets. Let me giv...

Draft not working in ucthesis package.

The following should single space my document: \documentclass[11pt,draft]{ucthesis} and the following should double space it: \documentclass[11pt, final]{ucthesis} when in fact they both result in a double spaced document. Does anyone know how to fix this? (I am running auctex - emacs - livetex - ubuntu.) ...

Is there a quick way to get titlesec "simple mode" functionality in memoir class?

Hi there. Memoir class doesn't play nice with the titlesec package. Memoir has all the functionality of titlesec, but it doesn't seem to have a nice "simple mode" analogue. So in titlesec (with the article document class) I could just use \usepackage[small,compact]{titlesec} and that was that. If I wanted to do the same thing with memoir...

What are some good BibTeX key conventions?

A common BibTeX key convention is last name of lead author followed by year (e.g. Knuth1972). Sometimes this choice is problematic: It could lead to key collisions due to authors with same last name or several publications by the same author in one year. It is hard to tell the subject of the publication from its BibTeX key when editing...