Sunday, February 27, 2011

Latex Blogs - other blogs

1. this one is great
http://texblog.wordpress.com/

2. this is not a blog but a list of very specific tricks. Jakob's Latex Tricks
http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html

Saturday, February 26, 2011

Latex: Commenting out a Figure (comment out)

Latex: Commenting out a Figure

Comment out a figure


Note: I'm reposting some of blog posts now that the blog is searchable. It does not seem that the old posts show up in the search...

Sometimes it is helpful to typeset your documents without including the figures. For instance,
1. You want to share your .tex with someone but don't want to send them all of your eps figures.
2. You have one million figures in your document and this will allow you to compile it faster.

One solution is the following. You can use the ifthen package to comment out figures, by setting a global boolean at the head of your document.

Here are some latex details.

%Document Preamble
\usepackage{epsfig,graphicx, ifthen}

\newboolean{includefigs}
\setboolean{includefigs}{false} %true = show graphs or false = don't
\newcommand{\condcomment}[2]{\ifthenelse{#1}{#2}{}}

%Usage Example
\condcomment{\boolean{includefigs}}{
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.4]{Fig.eps}
\end{center}
\vskip -0.2in
\caption{Fun with graphics}
\end{figure}

Wednesday, February 23, 2011

bst styles. Bibtex different styles

This website is pretty comprehensive (see the pdf file). You can see which styles produce what type of bibliography, e..g maybe you want references sorted by the order they appear in your paper.

http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibstyles.html

CV with latex and bibtex (vitae). Curriculum Vitae

One issue is creating CV's with bibtex, there is an easy hack which is simply to use the .bbl file and then paste this into your latex file. Also you want to use the multbib package to allow multiple styles.

I think this is the best:
http://phaselockfel.blogspot.com/2009/03/prepare-resume-using-latex-and-bibtex.html

There is some good advice here:

http://tex.stackexchange.com/questions/4485/how-should-one-use-write18-with-bibtex

http://linux.dsplabs.com.au/resume-writing-example-latex-template-linux-curriculum-vitae-professional-cv-layout-format-text-p54/

http://www.matthewjmiller.net/howtos/create-a-curriculum-vitae-using-latex/

http://www.matthewjmiller.net/howtos/create-a-curriculum-vitae-using-latex/

Friday, February 18, 2011

Latex. Comment out

Multiline comment in latex. There are many options for this (instead of using "%" at each line).

A simple solution is to define a command in the header.
\newcommand{\comment}[1]{}

Usage.
\comment{
This is all crap that I don't want to actually appear in the paper, so I will comment it out
}

Tuesday, February 15, 2011

Links Latex

1.Really nice for R and latex

http://www.wekaleamstudios.co.uk/

R: lme and lmer Basic Functionality

R: lme and lmer Basic Functionality

This is just a quick reference to someone else's work. First of all the basics:
1. lme
http://stat.ethz.ch/R-manual/R-patched/library/nlme/html/lme.html
2. lmer
http://cran.r-project.org/web/packages/lme4/index.html

Professor Vardeman (Iowa State) has posted a very nice summary for the basic functionality of these functions. It is important to heed is warning that these functions are constantly under development (which is generally applicable to R).
http://www.public.iastate.edu/~vardeman/stat511/stat511.html
search for: lme() and lmer() Functionality (4/17/09)

Latex Indicator Function

$$
1{\hskip -2.5 pt}\hbox{I} \qquad \qquad
$$

Great Latex Page

http://www.statslab.cam.ac.uk/~elie/ext/tex/

LaTeX Lecture Notes and Summaries

1. MPhil (and Part III) LaTeX Lecture Notes (PDF),
2. LaTeX Summary "Cheat" Sheet (PDF) and Maths Summary (PDF),
3. LaTeX "Not So Short Introduction" (PDF) and Wikipedia Book (PDF).

Diagam and Picture Templates

1. Diagram Templates in TeX, LaTeX,
2. Grid (with Coordinates) Template in TeX,
3. Encapsulated Postscript (EPS) to plain Postscript LaTeX Template.

Tex and LaTeX Tabulation Templates

1. Table Templates in TeX, LaTeX,
2. Two pages per side in Landscape Mode LaTeX Template.

Example Code with Overlaps

1. TeX Code example to produce Indicator Function Symbol,
and elongated Minus Signs (also valid in LaTeX).