latex

Wrapping a word in LaTeX

How can you wrap the word *longWord_anotherLongWord_long_again* to many lines in the tabular environment? The word should be LongWord_ anotherLongWord_ long_again ...

Refering to a table in LaTeX

How can you refer to a table number such that you get Table 7 for instance? Sample data Taulu \ref{table:kysymys} lorem lorem ipsun. \begin{table} \label{table:kysymys} \begin{tabular}{| p{5cm} | p{5cm} | p{5cm} |} -- cut -- \end{tabular} \end{table} I get Taule 2.5 lorem lorem ipsun. where 2.5 is the chapter number. ...

What is HeaderFile in Doxygen?

I run this command unsuccessufully doxygen -w latex headerFile styleSheetFile project.doxy ...

Having \"{a} in Doxygen, LaTeX

How can you make this \"{a} to present a with dots in Doxygen? My files are full of the character \"{a}. It should be universal encoding for a with dots. However, it is clearly not the case. My encoding is UTF-8 at the moment. The symbol works with the encoding in Vim. ...

Having links to an included file by LaTeX PdfPages

How can you maintain the links in your pdf fileA which contains links to itself in the fileB which includes FileA? FileA has internal links to itself. I include it to FileB by Pdfpages such that This is in FileB \usepackage[enable-survey]{pdfpages} \usepackage{hyperref} \includepdf[linktodoc=true, link=true]{fileA.pdf} I have tested...

How to center cell contents of a LaTeX table whose columns have fixed widths?

Consider the following piece of LaTeX code: \begin{tabular}{p{1in}p{1in}} A & B\\ C & D\\ \end{tabular} How can I make the contents of each cell aligned in the center of the cell rather than the left? Note that I want to make sure that the widths of my columns are fixed, so I cannot use the "c" position attribute instead of "p{.1in}...

How to box characters in latex

Hello. Maybe there is a package to do this, but I have not been able to find it. If it doesn't exist, I would appreciate ideas as to how to do ithis. Basically, I need something that would box characters. Something like this: ------- | A| L| - - - ... | 2| 3| ------- Knuth has something like this in TAOCP, when he discusses MIX's wo...

LaTeX: remove blank page after a \part or \chapter

How to remove a blank page that gets added automatically after \part{} or \chapter{} in a book document class? I need to add some short text describing the \part. Adding some text after the part command results in at least 3 pages with an empty page between the part heading and the text: Part xx (empty) some text How to get rid of t...

How to control which side a margin paragraph appears on?

I would like to force a \marginpar to appear on the "wrong" side of the page (that is, in the left margin on a single-sided document). My problem is not the slipping of \marginpars across pages addressed by marginparhack, but rather a desired to override the usual behavior at need. Nor does marginnote seem to cover my needs. What packa...

Latex: avoid that page text stretches over whole page with "twoside" option

Hi, I recently had a problem when writing a Latex document which I posted here. The solution of adding the "twoside" option worked fine for me, except that when I have a page, say the conclusion, where I have just two paragraphs, so maybe half of the page filled and I then add a "\pagebreak" for having the "reference" part on a new page...

Page numbers in LLNCS style

Hi, I'm using the LLNCS layout for a latex paper. The page numbers are suppressed by default. How can I turn them on for drafts? ...

Recommendations for developing Sweave documents

I'm looking to streamline my Sweave document creation, and I'd like to hear about people's current setups. I feel like the holy grail goes something like this: Editing Rnw code on one half of the screen Single keybinding compiles Sweave document and runs pdflatex View PDF on the other half of the screen; once compiled, PDF is refres...

Converting latex code to Images (or other displayble format) with Python

I have a function I am consuming that returns a string of latex code. I need to generate an image from this. Most of the methods I have seen for doing so suggest calling an external application via say the subprocess module which will generate the image for me. However, management is not keen on this as it will require external user...

How do I pass numeric arguments to Latex environments

I have defined an environment as \newenvironment{question}[1] {Question (#1 points):}{} I am using it as \begin{question}[10] ... \end{question} I get the following error: Missing number, treated as zero \begin{question}[ 10] ...

How to show LaTeX-code in a LaTeX document?

Hi I have a little problem where I would like to insert a svn diff of a LaTeX document into another LaTeX document, the goal is to show what has changed since revision XXX. However since the diff contains a lot of LaTeX command I can't include it right into the document since LaTeX will interpit them and not just "print" them. Today ...

How to create a selfdefined table-environment with the caption at the end of the table with LaTeX?

I have a custom table-environment defined with \newenvironment. I have a caption in this environment, but I want to have it at the end. My environment looks (a little simplified) like this: \newenvironment{mytable}[2]{\begin{table}[hbtp]\caption{#1}\label{#1}\begin{center}\begin{tabular}{#2}}{\end{tabular}\end{center}\end{table}} I w...

Error using the fancyvrb LaTeX environment

Hi I'm trying to fancyvrb environment. I'm using a fully upgraded Unbuntu 9.04. If I issue a simple Verbatim environment, for example: \begin{Verbatim} foobar \end{Verbatim} it works. However, if I try to pass in a parameter, for example, setting the font size: \begin{Verbatim}[fontsize=8] foobar \end{Verbatim} This is ignor...

How do I install a LaTeX .sty file on OSX?

I have a LaTeX project set up: tex/ - documents/ - some_file.tex - support/ - todonotes.sty where some_file.tex uses todonotes: \usepackage[colorinlistoftodos,textwidth=0.9\marginparwidth]{todonotes} But I get "LaTeX Error: File `todonotes.sty' not found" when I try to build the PDF in TextMate. How do I tell LaTex ...

How to install mimetex on PHP/apache?

So I'm trying to use the LaTeX on my server but I need mimetex. I have no idea how to do this nor have I been able to find any tutorials. Basically all I know about servers is how to ssh into my server... and thats about it. I was hoping it would be as easy as doing something like apt-get {blah}... but I have no idea. Can anyone provide ...

Custom appendix in Latex

Hi, I'm Trying to solve a little problem that I have with a book I'm writing, I was wondering if could you give me a hand with my work. I'm trying to rename the automatic captions in the appendix's tables that I have. By default Latex do this: Appendix A: Table A.1 Table A.2 . . Appendix B: Table B.1 Table B.2 . . The problem is: ...