Tuesday, May 29, 2012
Googlesites: filecabinet = folder with files
From a tip here, creating a new page with the File Cabinet template is equivalent to creating a folder on the site with whatever files you upload. You can link to these files from other pages on the site.
Wednesday, May 23, 2012
Change document font (latex)
\usepackage{helvet} %Use Arial
\renewcommand{\familydefault}{\sfdefault}
Labels:
latex tricks
Change page margins (latex)
\usepackage[top=.5in, bottom=.5in, left=.5in, right=.5in]{geometry}
Labels:
latex tricks
Change section heading size (latex)
(http://www.latex-community.org/forum/viewtopic.php?f=4&t=3245)
\usepackage{titlesec}
\titleformat{\section}{\large\bfseries}{\thesection}{1em}{}
Labels:
latex tricks
Sunday, May 20, 2012
Bolding author name in CV (latex)
If you use latex and bibtex to create your CV then you can use this trick to bold your name in the author list of the bibliography. There are several other methods shown here.:
- Use
plain.bst, copy it over to the location where your cv tex file is. Rename it (eg. tocvplain.bst) - Find the format.names function and change the line
{ s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
to
{ "\FormatName{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't := - In your cv tex file add the following lines:
\def\FormatName#1{%
\def\myname{My Name}%
\edef\name{#1}%
\ifx\name\myname
\textbf{#1}%
\else
#1%
\fi
}
Labels:
latex tricks
Tuesday, May 15, 2012
ffmpeg on openSUSE
From the opensuse docs we see that ffmeg is found in the packman repository.
From the instructions here we can see how to use yast2 from the commandline to add the repo (I used ftp://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_12.1/) and then install the package.
From the instructions here we can see how to use yast2 from the commandline to add the repo (I used ftp://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_12.1/) and then install the package.
Labels:
commandline,
linux
Shooting yourself down
From this story on futility closet I came to know about Thomas W. Attridge's F11F 'Tiger' flight where, after firing off two volleys of 20mm cannon he put his aircraft into a supersonic dive and ran into the shells damaging his aircraft enough that he had to ditch it. The full story is here.
Monday, May 14, 2012
ffmpeg to create a movie from images
I've switched over to ffmpeg from mencoder. ffmpeg can be obtained from here for mac.
The command to compile images into a movie is:
ffmpeg -i test%06d.png -vcodec libx264 -x264opts keyint=123:min-keyint=20 -an sudoku.mkv
Subscribe to:
Posts (Atom)