Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for...

18
Organisation Computing Extras Tips and Tricks for DPhil life DH56 October 10, 2011 DH56 Tips and Tricks for DPhil life

Transcript of Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for...

Page 1: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

OrganisationComputing

Extras

Tips and Tricks for DPhil life

DH56

October 10, 2011

DH56 Tips and Tricks for DPhil life

Page 2: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

OrganisationComputing

Extras

Organisation

• Date and number your pages or use a notebook

• Write in meetings / write up meetings

• Use referencing software• Bibtex• Mendeley / Refworks / Citeulike / Referencer

• Keep track of the research skills things you’ve done

• Keep a record of ideas you have about future directions

• Backup your work! The university / maths institute has goodback-up systems

• Write up work as you go

• Throw away work that is wrong

DH56 Tips and Tricks for DPhil life

Page 3: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

OrganisationComputing

Extras

Computing

• Scratch drive / Networked scratch drives (/mi/share/scratch)

• Subversioning (RabbitSVN is installed on the MI computers)

• Dropbox (check the terms of use!)

• Call your files sensible things

• In matlab:• Ask around if you’re trying to do something - often other

people will know how!• Use sensible names for your variables• Comment your code• Mex functions

• You can ssh into the maths institute computers(http://www.maths.ox.ac.uk/help/remote-access)

• http://www.maths.ox.ac.uk/help for useful computinginformation

DH56 Tips and Tricks for DPhil life

Page 4: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

OrganisationComputing

Extras

Extras

• Conferences

• Study Groups

• Teaching / TAing

• Bionumbers

• SMB / ESMTB can give conference money if you join

• Socials

DH56 Tips and Tricks for DPhil life

Page 5: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Annotating figures by trial and error

Henry Shum

10 October 2011

Page 6: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Figures made in MATLAB:

I Ugly font

I Limited TEX options for special symbols/typesetting

I Pixellated text if rasterised

I May need to be rescaled for your article – font sizes willchange

My solution (not optimised):

I Create plots without annotations using MATLAB

I Add annotations using overpic package in a LATEX editor

I (Some fiddling will be needed to put things in the right place)

Page 7: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Figures made in MATLAB:

I Ugly font

I Limited TEX options for special symbols/typesetting

I Pixellated text if rasterised

I May need to be rescaled for your article – font sizes willchange

My solution (not optimised):

I Create plots without annotations using MATLAB

I Add annotations using overpic package in a LATEX editor

I (Some fiddling will be needed to put things in the right place)

Page 8: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

MATLAB output with no annotations:

Page 9: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

\documentclass[a4paper,11pt]{report}

\special{papersize=120mm,40mm} % Figure size

\usepackage{graphicx}

\usepackage{fullpage}

\usepackage{psfragx}

\usepackage{overpic}

\setlength{\hoffset}{-1.33in} % Adjust image position

\setlength{\voffset}{-1.85in} %

\begin{document}

\begin{overpic}[trim = 24mm 0mm 0mm 0mm,clip]{bactmodelbare}

%% Our annotations

\put(48.5,7.7){$x$}

\put(48.1,18.1){$y$}

\put(41.1,21.6){$z$}

.

.

.

\end{overpic}

\end{document}

Page 10: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Final, correctly sized, annotated figure:

x

yz

ξ2aB1

2aB2

2aB3

∼ 2/kE

λ

a 2aTφT

1

Page 11: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Tips and Tricks�DH57 �

Oct. 19th 2011���

Page 12: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

TEXlipse�

!   Plugin that adds Latex support to the Eclipse IDE (Free Integrated Development Environment, originally created for Java) �

!   First version: late 2004. Current version: 1.4.2 �

!   Free�

Page 13: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Why TEXlipse�!   Automatic Building �

!   Automatic completion of references�

!   Syntax highlighting �

!   User defined templates�

!   Synchronised Previewing�

!   Editor actions (code commenting, etc.) �

Page 14: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Why TEXlipse�!   Outline view �

!   Error reporting (links errors to source) �

!   Easy to use version control �

!   Easy to install �

!   BibTEX editor functionality�

!   Many more functionalities: word counter, line wrap, spell checker (Aspell), math mode, jump to matching bracket ...�

Page 15: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled
Page 16: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled
Page 17: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Final comments�

!   Definitely worth to try it if you already use Eclipse or if you use an archaic Latex editor �

!   Saving time Latex editor /compiling �

!   Great to write a large document �

Page 18: Tips and Tricks for DPhil life · Figures made in MATLAB: I Ugly font I Limited TEX options for special symbols/typesetting I Pixellated text if rasterised I May need to be rescaled

Urgent / important matrix

Pomodoro technique

TMUX (terminal multiplexer): ● tmux.sourceforge.net

● Cheat sheet:

www.dayid.org/os/notes/tm.html

}→TMUX

ssh