LaTeX

From JonWiki

jontse.com > LaTeX
Jump to: navigation, search

Contents

LaTeX in IM Clients

Adium

It was super easy in Adium: http://www.adiumxtras.com/index.php?a=xtras&xtra_id=5577

Note that I've already installed a LaTeX environment in OSX, so that may be part of why it was so easy.

Pidgin

You'll need PidginTeX and mimeTeX, available here:

Stick the PidginTeX dll into Pidgin's plugin directory, and mimetex.exe into your windows root directory, restart pidgin, and enable the plugin.

This obviously works for Linux too, but I don't think I need to tell you how to do it.

LaTeX is delimited by double dollar-signs '$'.

You'll probably want to turn off the expression echoing in the plugin settings, it's kinda annoying.

OSX Installation

You're going to need MacTex, available here: http://www.tug.org/mactex/

To fix the latex program not being smart enough problem (as described above), you'll want to use the following, for MacTex-2007 (csh syntax)

setenv TEXINPUTS ${TEXINPUTS}:/usr/local/texlive/2007/texmf//

Grabbing fink (http://www.finkproject.org/) for gv, xfig, and graphviz is highly recommended. fink uses the debian apt-get system, so Ubuntu/Debian users should be right at home (don't forget to apt-get update).

LyX

LyX is a fantastic WYSIWYM (what you see is what you mean) LaTeX editor.

A bunch of binary installers are available here: http://www.lyx.org/

Styles

Cornell Dissertation/Thesis Style

Some helpful people have written up a Cornell stylesheet for thesis LaTeX2E documents.

Here's where I found it: http://cf.ccmr.cornell.edu/cf_newsite/mirrors/www.tam.cornell.edu/Computer/cuthesis/

Here's a snapshot of version 2.6: Template:Designtools:cu thesis2.6.tar.gz

To generate the cornell.cls file from the cornell.ins file, just run

latex cornell.ins

Copy the resulting cornell.cls into the tex/latex/base/ directory (wherever that is for your TeX distribution). Then run texhash (as root) to refresh the LaTeX tree.

LyX Installation

Now you just need to set up the the layout file. Find your LyX user directory, which for OSX is

~/Library/Application Support/LyX-1.6/

Add the following to a layout/cornell.layout file:

  1. %Don't delete this or the next line!
  2. \DeclareLaTeXClass [cornell,report]{cornell}

Input report.layout

Then, run a Reconfigure in LyX and restart it. The cornell layout file should be in the dropdown menu after you do all that.

Make sure that you add an author to your paper, or it'll freak out.


IEEEtran Style Citations

I use LyX to do IEEEtran style papers, but for some reason it would always do something dumb with citations. Some searching got me this page: http://davyd.livejournal.com/228536.html

From the page:

For those who need IEEE style bibliographies in LaTeX, the IEEEtran BibTeX stylesheet is well known. What is less well known is how to fix up LaTeX's default format for citation grouping.
The IEEE style guide says that multiple citations should be written like this [1], [3], [4] or like this [2]–[5], or combined [1], [3], [5]–[9]. This is simple to achieve in LaTeX by including the following in your document preamble:
\usepackage{cite}
%
% fix citations to be IEEE style
\def\citepunct{], [}
\def\citedash{]--[}
Props for this actually go out to whichever IEEE page I got this tip off.

If you're like me, and you just like the IEEE style but you're not submitting to IEEE then you can turn this off by changing the above code to this:

\usepackage{cite}
%
% fix citations to be [1,2] or [1-3] style
\def\citepunct{,}
\def\citedash{--}
Retrieved from "http://www.jontse.com/LaTeX"