latex

Inserting a pdf file in latex

I am trying to insert a PDF or doc file as an appendix in my latex file. Do you know how I can do this? ...

Changing style of latex description lists.

This should be an easy question for someone out there. I have a description list \begin{description} \item[Name:] Halpo \item[Email Address:] [email protected] \item[Address:] 1234 Ivy Ln \\ Springfield, USA \end{description} It comes back as Name: Halpo Email Address: [email protected] Address: 1234 Ivy Ln...

Need help with fonts in latex: output too dim

I have a problem where all fonts come out too dim. Is there any thing I can do to get a different look and feel from the pdfs? My tex file looks like \documentclass[a4paper,twoside]{article}` \usepackage{graphics} \usepackage{color} \usepackage{hyperref} \usepackage{multirow} \usepackage{longtable} \usepackage{fullpage} \usepackage...

LaTeX hyperref link goes to wrong page

I am trying to create a reference to a float that doesn't use a caption. If I include \label{foo} within the float and reference it using \pageref{foo}, the correct page number is displayed in my pdf document but the hyperlink created by the hyperref package links to a different page (the first page of the section). If I include a capt...

LaTeX Document eror: too many }'s

Hello, I have a latex document, which works fine but when ever I try to add in an image with a figure caption it gives me an error saying there are to many }'s. \begin{figure}[h!] \caption{A picture of a gull.} \includegraphics[width=0.5\textwidth]{uml-usecase/overview.png} \end{figure} My current packages are: \usepackage{amsf...

How to create a \newenvironment in latex for a scaled table

Hi, I try to define a table as a new environment. \newenvironment{scaledtable}[1]{% \begin{table}[h] \caption{xxx} \label{tab:xxx} \begin{center} \begin{tabular}{rcrrrrrrrrrrrrcc} }{ \hline \end{tabular} \end{center} \end{table}} The problem I have is that I can't use scalebox{}. If I put the closing bracket into the end definition o...

In Emacs, how do you change Latex mode to treat <% ... %> as a comment?

In Emacs, is there some short code that you can write (in .emacs, latex.el, or some other file) so that Latex mode treats code of form <% ... %> as a comment? ...

How do i make custom page numbering in latex?

Hi! I have a report, where i also have appendixes. What i want is to use a different style on the page numbering when the appendixes start. i use arabic until i reach the appendixes. Then i would want to do something like this: I want the custom page numbering to be: Chapter: A Section: {Chapter}{1} (A-1) \newpage \pagenumb...

In AucTeX, new item in itemized list after comment results in commented next item

In AucTeX, when editing an itemized list: \begin{itemize} \item My item % note to self \end{itemize} when I do C-c C-j after 'self' I get: \begin{itemize} \item My item % note to self % \item \end{itemize} when I want: \begin{itemize} \item My item % note to self \item \end{itemize} Is there a setting a can modify to make t...

LaTeX lstlisting underlined

Hi, Is there an easy way to have the complete code in a lstlisting environment underlined? My current solution looks like this, but I'm not really happy with it. \begin{lstlisting}[mathescape] $\ul{if(gt(x1, 0)) then} $ ... \end{lstlisting} Thanks for any tips. ...

Change page layout in the middle of a LaTeX document

I'm looking for a way to change some page layout dimensions in the middle of a LaTeX document. The reason is, I'd like to have smaller margins and longer lines in the "References" section of my report document (basically because short lines aren't so important there and I can save space). In my preamble I have (works fine): \setlength\...

How to remove extra space between two tables in latex

Hi, I wanted to remove extra space between the two tables. \begin{table}[h]\small \begin{tabular}{|c|c|c|c|c|}\hline \end{tabular} \end{table} \begin{table}[h]\small \begin{tabular}{|p{9.9cm}|p{2cm}|p{2.3cm}|p{2.3cm}|} \end{tabular} \end{table} between these two tables I am getting too much spaces. I wont to reduce the space and star...

"Missing number, treated as zero." in LaTex

Hi, I want to get the Roman number of 2. So I use $\Roman{2}$ inside text. But then I got an error ! Missing number, treated as zero. How can I fix it? Thanks and regards! ...

MikTeX 2.8 doesn't add hyphenation support for pdfLaTeX

I'm using MikTeX 2.8 edition, and installed the hungarian language support and hyphenation files. Using the standard LaTeX command they work fine, but when I try to use pdfLaTeX, they don't get loaded and I get the (C:\stuff\miktex\tex\generic\babel\magyar.ldf (C:\stuff\miktex\tex\generic\babel\babel.def) Package babel /b/c12/cWarning:...

Creating ODT and PDF files as end result

Hello, I've been working on an app to create various document formats for a while now, and I've had limited success. Ideally, I'd like to dynamically create a fairly simple ODT/PDF/DOC file. I've been focusing my efforts on ODT, because it is editable, and open enough that there are several tools which will convert it to any of the oth...

LaTeX: bibliography per chapter.

Hello all, I am helping a colleague with his PhD thesis and we need to present the bibliography at the end of each chapter. The question is: does anyone have a minimal working example for this case using latex+bibtex? The current document structure that we use is the following: main.tex chap1.tex chap2.tex ... chapn.tex biblio.bib ...

LaTeX not compiling properly

I'm using TeXshop, Natbib, Hyperef and two-column layout, and I am getting the following message: \pdfendlink ended up in different nesting level than \pdfstartlink \AtBegShi@Output ...ipout \box \AtBeginShipoutBox \fi \fi which prevents LaTeX from compiling. This documen...

Positioning of hyperlinked shapes with matrix in tikz

I can draw a hyperlinked shape in tikz using the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{hyperref} \begin{document} \begin{tikzpicture} \node {% \href{http://www.stackoverflow.com}{% \begin{tikzpicture} \filldraw[blue] circle(1cm) node [white] {Click}; \end{tikzpicture}}}; \end{...

How do I change the caption for a figure in Latex?

I would like to change the caption from being: Figure 1: ... to From left to right: ... If I try and renewcommand the figurename, they still get numbered. This is unecessary as there is only a single image in the document. Any suggestions? ...

Referencing a theorem-like environment by its [name]

I am using ntheorem to typeset a set of conditions. In my preamble I have: \theoremstyle{empty} \newtheorem{Condtion}{Condtion} When I want to typeset a condition, I write: \begin{Condtion}[name] \label{cnd:nm} foo foo foo \end{Condition} The name appears boldface on the same line as the start of the text of the condition, with no ...