Skip to main content

Posts

Showing posts from August, 2011

Latex: Pushing floats to the end of a document

The endfloat package is kind of fancy but the problem I faced with it is that I was renumbering figures in the middle of the document and the latex referencing algorithms were handling it fine, but when the figures appeared at the end of the document their numbering was screwed up.

There is an easy way, however, to push the figures to the end of the document as I wanted. From some hints here about how LaTeX decides whether there is enough space on a page to put in a figure


\renewcommand{\textfraction}{1.0}
\renewcommand{\floatpagefraction}{0.9}


in the preamble does the trick, by fooling LaTeX into deciding there is NEVER enough space to put figures on a page until it is all out of text and has to just dump the figures as best as it can, one to a page.

Latex + Unicode = XeTeX

Never bothered to figure out what this xetex thing was. Turns out it can handle unicode. For texmaker just replace pdflatex command with xelatex and use a unicode aware font (e.g. \usepackage{helvet}) and things should work

Updating Eclipse

From here

Help->Install New Software->Add site-> http://download.eclipse.org/releases/indigo (or whatever release you are going to)

Help->Check for updates

And eclipse should update itself with no fuss.

migrating existing svn repo to git (and use with eclipse)

Install gitsudo gem install svn2git --source http://gemcutter.org (here)svnserve -d (start readonly svnserver on local machine)mkdir new directory and cd into it svn2git svn://localhost/path/to/local/svn/repoInstall EGit and restart. (Eclipse) new pydev project ->  browse to existing folderSet up git locally (here)set up to use gitteam -> remote -> push -> (url from your project page)Notes:
git svn clone file: did not work because of a file format problem (Expected FS format '2'; found format '4' at /usr/local/git/libexec/git-core/git-svn line 1535)