latex

Customizing pdf output of dblatex

I am writing a report using Docbook and i want to customize the way that dblatex converts Docbook to Pdf. This page is supposed to document this issue but it really doesn't help me. How can i learn how the latex style package works? ...

How to make 'appendix' appear in toc in Latex?

How to make word 'appendix' appear in the table of contents? Right now toc looks like this: 1 ...... 2 ...... . . A ..... B ..... I would like it to be: 1 ...... 2 ...... . . Appendix A ..... Appendix B ..... My latex source file structure is like this: \begin{document} \tableofcontents \inclu...

What is the best way to produce a tilde in LaTeX for a website?

Following the previous questions on this topic, when you produce a website in LaTeX what is the best way to produce a url that contains a tilde? \verb produces the upper tilde that does not read well, and $\sim$ does not copy/pase well (adding a space when I do it). Solutions? It seems like this should be one of those things that has a ...

Positioning formulas in latex

I'm a mechanical engineer who's been doing her calculation reports in Word. However, ever since I knocked down my bedroom wall with my head banging on it from Word constantly driving me crazy, I've been looking at latex, and liking it. It is relatively user friendly and not too hard to get accustomed to. However, I have a problem with ...

Inserting images in LaTeX

I have a question on inserting images into a LaTeX document. I try to insert images using the keyboard short cut: Ctrl-Alt-G and I'm able to insert images. But the compiled pdf document shows all the images at the end, whereas I want to interleave images with text. Something like the following- Text1 Image1 Text2 Image2 Text3 Image3 I...

LaTeX: centering a table wider than the text column

I'm including a table in my LaTeX document and the centering works fine if the table isn't wider than the text column above it, but when the table is wider, the left side of the table sticks to the left side of the text column, and the additional width of the table is on the right side of the page, how can I center the table? ...

Is Sphinx better than LaTex in writing manuals/books?

Only a few people recommended to use Sphinx at the beginning of the year. Sphinx has developed rather fast recently. I noted today that Sage has made a change from direct editing with LaTex to Sphinx. This is evident in William Stein's answer on 2nd April about Sage's tutorial The tutorial is not a latex document anymore. It's an e...

Three columns frame in a big document and renaming stuff in latex

I'm just learning latex, so this may be trivial to some of you. I went through a few tutorials but they all seem to cover the same things. I'm writing a big report - calculation all the way (and it has to be neat, because it's part of the documentation). It consists of a frame around the page (15mm margins), and 3 columns inside it: in ...

How to I get scons to invoke an external script?

I'm trying to use scons to build a latex document. In particular, I want to get scons to invoke a python program that generates a file containing a table that is \input{} into the main document. I've looked over the scons documentation but it is not immediately clear to me what I need to do. What I wish to achieve is essentially what yo...

Error including image in Latex

I am getting the following error while compiling my Latex File : ! LaTeX Error: Cannot determine size of graphic in tree.jpg (no BoundingBox). Why do I get this error ? What has this to do with an .eps file ? Infact, I could compile it fine with MacTex on my machine. But when I submit it online to a scientific journal for publication,...

Ignoring page numbers in backup slides

I am using the beamer document class in latex to make a presentation. I will have a number of back up slides which are there for offline viewing, reference etc. Beamer has a feature that shows the progress through the presentation as {page#}/{total pages} on each slide. I would really like it if {total pages} was equivalent to my tota...

Changing Latex section numbering presentation

Hi all, I'm trying to change how section numbering is displayed in a Latex document I'm working on. What I want to do is this: Section Title     (i) Subsection title in normal weight         (a) Lorem ipsum (no subsubsection title being used)... I've come up with the following, but it's not right in terms of indenting etc. \renewcomm...

Don't make me manually abort a LaTeX compile when there's an error.

As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when you're working on a document you'll end up with errors and then latex will panic and wait for user input before continuing. That can get very annoying, especially recently when I hacked up something to compile late...

LaTeX source code listing like in professional books

How should a latex source code listing look like to produce an output like in known books, for example one for the Spring Framework? I've tried with the latex listings package but wasn't able to produce something that looked as nice as the one below. So I'm primarely interested in the formatting instructions to produce something like the...

Can I go to another frame during an itemization with LaTeX Beamer?

Basically I want to do something like this: \begin{frame}{Frame 1} \begin{itemize} \item A \pause \item B \pause \item C \pause \showsubframe % continue here \item D \pause \item E \pause \end{itemize} \end{frame} \begin{frame}{Subframe} % only show this during Frame 1, not also after % something to h...

How do I convert a document from Latex into Microsoft Word 2003?

I need to find a way to quickly convert a latex document into a Microsoft Word 2003 document. I'm using Kile to edit latex documents on Ubuntu at present. I can do it the following way: latex filename.tex tex4ht filename.tex mk4ht oolatex filename.tex then I have to open the resulting filename.odt document in OpenOffice and save as ...

LaTeX images

Hi, I'm writing a report and inserting a few raster images in (in PNG format) using: \usepackage[pdftex]{graphicx} \includegraphics[width=4in]{poker.png} My problem is that when saving as a PDF the images are look really awful, am I missing something? Cheers! ...

How can I compile first 2 pages of 24 pages in a Latex document?

My work has over 24 pages in Latex. I need only the abstract and introduction in pdf. How can you compile only the first two pages? ...

Odd Bibtex behaviour in a Latex document

I added a line "\cite{test}" as a test to my working Latex document. When I compiled the bibtex "!bibtex name_of_my_file, I got the expected error: Warning--I didn't find a database entry for "test" Then, I removed the line and compiled the bibtex again, hoping to have a working Latex file again. However, the same error occurs, eve...

How can I have an abstract and introduction on the same page of a Latex document?

I need to change the layout of my document to send my paper to a conference. My abstract is currenly on a separate page. The introduction should be straight after the abstract, not on the separate pages. How can I have an abstract and an introduction on the same page? ...