latex

What's a .tpl file in LaTeX and how can i use it?

What's a .tpl file in LaTeX and how can i use it? ...

Merging cells in LaTeX tables

Hi there, I have a very simple table: \begin{table}[t] \begin{tabular}{|c||c|c|c|} \hline \multirow{2}{*}{Implementation} & Test 1 & Test2 & Test3 \\\hline & \multicolumn{3}{|c|}{results} \\\hline\hline \end{tabular} \end{table} It works almost "perfect", the only problem that I...

What is the correct way to caption a `tikzpicture`?

I have some trees drawn with tikz and I'd like to have some text associated with them. I can use \caption within figure, but not tikzpicture. UPDATE: Thanks for your advice. figure seems to put my first picture at the bottom of the page, and the second one on the second page. I would like these to be close to the paragraph like the tikz...

How to align "pages of floats" to the top margin?

If I include [p] in the placement specifier of a \begin{figure} environment, figure floats may be placed on a dedicated page. However, at least in the "book" document class, floats are centered vertically on those pages. How do I force all "pages-o-floats" to be aligned to the top margin (just like normal text pages)? ...

What is the LaTeX warning about "moved marginpar"

I repeatedly get the LaTeX warning: LaTeX Warning: Marginpar on page x moved. What does this mean? Is that a problem? How can I fix the corresponding problem? ...

how to hold together a text of a item using list enviroment in LaTeX?

With this LaTeX code: \begin{list} \item my first item title my first item content \item my second item title my second item content \end{list} at the end of the page break in two parts a "item" like: --------page 1-------- ... my first item title my first item content my second item title ---------------------- ----...

latex, documentstyle book, how page numbers always bottom centered?

I am writing a 100+ page thesis using latex, with the document style "book". Right now the page number is bottom centered on the first page of a chapter, on the top outer margin on the subsequent pages of a chapter. I want the page numbers to always be bottom centered on each page, for roman as well as arabic page numbers. How I can I ...

LaTeX \cite giving a [?]

in blah.tex , I have a \cite{blah} I have a 'blah' entry in blah.bib I run my file with : latex blah.tex && blah.tex && dvipdf blah.dvi The blah.pdf results in [?] How do I fix this? Thanks! ...

Punctuation in LaTeX formulas

It seems to be common practice, when writing mathematics, to add punctuation to displayed formulas. Is there any trick to avoid putting the punctuation mark inside the formula? I want to avoid Consider the function \[ \sin(x).\] I'd rather have something like: Consider the function \[ \sin(x)\]. But of course the full stop is dis...

How to control font sizes in pgf/tikz graphics in latex?

Hi, I'm creating graphs in pgf/tikz. When I use these in my document they are scaled, several are in minipage/subfig like environments. When this happens the font sizes are scaled with the graphics making them very small or unreadable. I've been through the manual but have so far been unsuccessful in my attempts to control this. Is the...

Control font size in graphics in LaTeX when scaling in minipage/subfig?

Hi, I am using pgf/tikz graphics and I'm wondering how one can control the scaling of font sizes in the graphics when using them in minipage/subfig environments? Is there a way to manually set a permanent font size for pgf/tikz graphics or in latex in general so as to make font sizing invariant to scaling? Ideally I'd like to be able ...

How do I disable colors in LaTeX output generated from sphinx?

When I build the LaTeX file generated from sphinx, the TOC entries, and section headers are blue. Is there an easy way to disable coloring these items? If not, is there an easy way to make them black instead? My goal is to print the document on a non-color printer, and the TOC and headings do not look as dark as the rest of the text w...

scons does not find LaTeX DVI builder

I installed MacTex-2009 (from http://www.tug.org/mactex/2009/) and scons (1.2.0) on my iMac running Snow Leopard. Then I tested the installation with a trivial SConstruct file: env = Environment() dvi = env.DVI(target="hello.dvi",source="hello.tex") and an obvious LaTeX "hello.tex" file. When I execute "scons", I get: ...

How to generate a polygon number figure using metapost?

I'm learning metapost and i want to know how to generate a figure like a polygon number http://en.wikipedia.org/wiki/Polygonal_number , i got triangular numbers but not hexagonal. Thanks for help. ...

LaTeX: dollar sign vs \( \)

Is there any reason to prefer the syntax \(myformula\) to the usual $myformula$ in LaTeX? ...

Latex: Convert "Comment" into "Marginal Note"

Hi, using LyX I'm trying to convert the "comments" into "marginal notes". I tried several things but without luck. The best shot was like this: \makeatletter \@ifundefined{comment}{}{% \renewenvironment{comment}[1]% {\begingroup\marginpar{\bgroup#1\egroup}}% {\endgroup}} \makeatother or like this: \@ifundefined{comment}{}{% \r...

Does anyone know resources for LaTex

I want to use LaTex to write equations faster and if it is possible to export the result as a png or jpg so that it can be used on a website. ...

latex: how do I change the font size of a table column?

I have a LaTeX table and would like the third column to be a different font size (smaller) than the others. I've always done this with a special-purpose macro that takes a parameter for each column and executes a font change for one of the columns. Is there an easier way to do this? ...

Blurred colors using epsfig or graphicx in LaTeX

My code is simple enough, and importing eps images is something I've done before with other matlab-generated content, but for one reason or another I end up with blurred colors in my heatmap when I use epsfig or graphicx to import it into my document. In the picture below, the right is what shows up if I compile to DVI and open up the d...

Wrong chapter number on page headers except first page

Hi, I am writing up my thesis in Latex and have a template. It works nicely for every thing else except one. Chapter numbers are correctly incremented on the first page of each chapter but for consecutive pages of each chapter, the header saying "Chapter x - This is a chapter title" have 1 always as chapter number. Following is the cod...