LaTeX

Getting LaTeX and Lyx to use ACM SIG class file

Installing the ACM SIG LaTeX class file on Ubuntu using tex-live2011 and using it in Lyx.

First, download the ACM class file and let LaTeX know about it (modified from Ubuntu wiki):

E-readers for academic papers & converting LaTeX to EPUB

I currently read academic papers by downloading the PDF and printing; and the tiny collection of LaTeX documents I've authored are output as PDFs. It feels like I should embrace e-readers for academic reading and writing. I have a Kindle Keyboard which does handle PDFs but reading PDFs is not especially pleasant on the Kindle because of its small screen, relatively sluggish refresh rate and clunky note-taking feature.

Notes for producing clean plots in Matlab for LaTeX

Remarkably, MATLAB does not have in-built support for exporting figures as EPS files with placeholders plus a TEX file (hence allowing LaTeX to do the typesetting).  But there are some user-submitted scripts.  The most promising looks to be matlabfrag.

After producing a figure in MATLAB, output an  .eps and a .tex file like this:

% FORMAT TICK MARKS
set(gca, 'TickDir', 'out', 'XColor', [0.25 0.25 0.25], 'YColor', [0.25 0.25 0.25]);
set(gca, 'YLim', [0 200], 'YTick', [0 100 200], 'YTickLabel', []);
box off; % remove axes on right and top
 
% SET SIZE OF FIGURE
set(gcf,'units','centimeters');
pos = get(gcf, 'position');
set(gcf, 'position', [pos(1:2),5 ,5]); % make figure 5cm x 5cm
 
% OUTPUT
matlabfrag('filename'); % export a .tex and a .eps file using matlabfrag
                        % do not specify a suffix

And then in the LaTeX document use \psfragfig{filename} (no suffix; just the base of the filename) to insert the figure. You'll also need to add \usepackage{graphicx} and \usepackage{pstool} to the LaTeX file's preamble.

Links

 

LaTeX, Lyx, MetaUML & Zotero on Ubuntu

Lyx is an open-source word processor built on top of LaTeX and Zotero is modern, open-source bibliography management package with "cloud" features. MetaUML is a system for creating UML diagrams in LaTeX (it's frankly pretty painful to use but it does produce professional looking results). This post is where I keep my notes about installing and configuring LaTeX, Lyx and Zotero on my Ubuntu system at Imperial (where I do not have root access).

Doxygen

Notes on using Doxygen

LaTeX output

First produce the latex header (source): doxygen -w latex latex/header.tex latex/doxygen.sty Doxyfile

Then make a simple latex/wrapper.tex file:

GNUplot

Notes on using GNUplot

Outputting from GNUplot to PDFLaTeX

In gnuplot:
set format "$%g$";

Using LaTeX with Emacs

Makefile

FILENAME = MyFile
 
Subscribe to RSS - LaTeX