latex

Bookmark level difference when using hyperref

When creating my output with miktex in texniccenter I get the following warning Difference (2) between bookmark levels is greater than one, level fixed on input line 3 Can someone explain this warning to me and perhaps give me a hint for a solution of the problem? ...

How to underline section-headings in LaTeX?

EDIT: As I see in the first answer, underline is the wrong word. I want a line under the section heading, separating the heading from the following text. I want to separate section headings from the following text with a horizontal line. At the moment I use the following: \newcommand{\tmpsection}[1]{} \let\tmpsection=\section \renewcom...

Getting LaTeX into R Plots

I would like to add LaTeX typesetting to elements of plots in R (e.g., the title, axis labels, annotations, etc.) using either the combination of base/lattice or with ggplot2. Is there a way to get LaTeX into plots using these packages, and if so, how is it done? If not, are there additional packages needed to accomplish this. For exa...

How can be sectsty used together with \part in scrbook-documentclass in LaTeX?

In this question I asked, how to produce rules under sections. The answer provided using sectsty does what I wish, but triggers a problem: If I use the package sectsty the \part-command produces an error: ! Undefined control sequence. \NR@part ...elax \refstepcounter {part}\@maybeasf \a...

LaTeX semiverbatim and fancyvrb

Hi, I'm creating a presentation using the beamer LaTex package. Beamer comes with an environment called "semiverbatim" which is like "verbatim", but allows you to place commands inside the environment. This is useful in beamer to control how the overlays of a frame unfold. For example: \begin{frame}[fragile, shrink] \frametitle{Som...

Breaking a list into multiple columns in Latex

Hopefully this is simple: I have a relatively long list where each list item contains very little text. For example: * a * b * c * d * e * f I wish to format it like so: * a * d * b * e * c * f I would rather not create a table with 2 lists as I want to be able to easily change the list without worrying about updating...

vimrc - current working directory

I would like to be able to access the current working directory in my vimrc. For example, I can access the current file by using %. Specifically, I have the following line in my vimrc: map ,l :!latex % When it runs everything works fine, except the resulting dvi and other files are stored in my home directory instead of my current work...

Latex: Equation number and label in verbatim mode

Hi, I want to write the following equation in Latex: resting_metabolic_rate=metabolism_of_body_cells + metabolism_of_turnovers + metabolism_of_conversions + ec I tried using verbatim mode: \begin{verbatim} resting_metabolic_rate=metabolism_of_body_cells + metabolism_of_turnovers + metabolism_of_conversions...

How to add a URL to a latex bibtex file?

I'm using bibtex for my bibliography in latex. I have some URL's I need to cite in the paper. How do I add URLs into the bibtex? A typical section in my bibtex file looks like this: @conference{eigenfacepaper, title={{Face recognition using eigenfaces}}, author={Turk, M. and Pentland, A.}, booktitle={Proc. IEEE Conf. on Computer ...

How to disable indentation of LaTeX list items?

By default the "enumerate" environment is indented with respect to the current environment. How can I disable this indentation so that an enumerate environment of three items would produce the same output as the following piece of code? \documentclass{article} \begin{document} \paragraph{1.} \paragraph{2.} \paragraph{3.} \end{doc...

How to Remove Footers of LaTeX Beamer Templates?

I am using the "beamerthemesplit" template of the Beamer LaTeX package. This templates includes the author's name and the title of the presentation in the footer of all pages. Is anyone aware of any way to suppress this footer? ...

How to make a signature feld in LaTeX

When I'm writing my laboratory reports in LaTeX i recently had to make a signature feld on the form. Trondheim 4.september 2009 ______________________ ___________________________ Ivar Nesje Team mate's name The problem was that I could not find a easy way to do it so after a lot of s...

Latex Multiline Equations

Is it possible to get multline like behavior within a gather environment? I have a set of equations in a gather environment, but one of them is too long, and I'd like to split it up onto two lines where the first line is left-aligned and the second line is right-aligned (just like multline). If there is a way of aligning individual...

LaTeX force slash fraction notation

Is it possible to force latex to use the slash notation for a fraction (i.e., separating the numerator and denominator with a slash instead of stacking them on top of one another)? Just using a slash (/) instead of \frac looks bad because the slash does not size itself properly. ...

Does Texniccenter or any other tex editor auto-complete references in Latex?

I want to use a latex editor that has auto completion feature for existing references in a latex file. Do you know any good ones? I am trying to find this feature in texniccenter, but I guess it doesn't exist or I could't find it yet. Update: Ok, I found how to enable auto completion in Texniccenter. I needed first create a project. The...

LaTeX puts too much space next to integrals

Integrals with limits take up width horizontally that includes their limits. In other words, if you have an integral with large limits below (or above) the integral \int\limits_{-\infty < x < c} (c - x) \ dP(x) you are left with a large amount of space to the left and right of the integral before the integrand (c - x) starts. This i...

Call LaTeX on a named pipe (fifo)?

I'm running LaTeX on a named pipe fifo on Unix. I create the fifo like-so: $ mkfifo fifo I then run LaTeX like-so: $ latex fifo This process blocks and has no output until I write to the fifo from another shell: $ echo "\\end" > fifo Then the $ latex fifo output becomes: This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %...

Essential LaTeX Packages

Which packages do you find essential in your LaTeX environment for text typesetting? I start with: graphicx and fancyhdr. Edited: changed to community wiki. ...

Table in Header with latex?

I need to create some work instructions in latex. Is there anyway to get a table in the header of a latex page? ...

latex error: environment proof undefined

hi i am using latex... wanted to use the following: \begin{proof} ... \end{proof} it gives me the following error: !Latex error: Environment proof undefined. can you help me to solve this problem? thanks ...