Tuesday, 26 February 2013

subfig and figure parameters.

Adjusting caption behaviour:

singlelinecheck=True : sets centre justified if a one line caption.

parskip=5pt    : Set a vertical gap when a new paragraph starts in the caption.

hangindent=10pt  : Lines other than the first line in each paragraph are indented by 10pt.

indention = 10pt :  All  lines are indented equally.   Combining this with hangindent results in lines other than the first being indented more.

The singlelinecheck results in left justified short captions; not nice to my eye.

The caption width matches that of the figure unless margin is specified,

margin=10pt  sets a gap, both sides around the caption relative to the figure.

format = hang     seems to set the subfig label (a / b / c etc) away from the caption body.  Ugly, imho.



Set with, for example,

\captionsetup[subfigure]{style=default, indention=10pt}

\captionsetup[figure]{width=0.8\textwidth, indention=5pt}

font size in pgfplots plots.

legend style = {font = \small}

Thursday, 21 February 2013

Tuesday, 12 February 2013

sorted du

$ du -h --max-depth=2 | sort -h

Thursday, 17 January 2013

PAFEC transient with WEE, 3D structure and 3D acoustic


CONTROL
c SKIP.COLLAPSE
FRONTAL.TRANSIENT
PHASE=2
 PHASE=4
 ADD.IN.CD:
 R09890 149 1 1
 END.OF.ADD.IN.CD
PHASE=7
CONTROL.END

NODES
NODE X Y Z
 1   0 0 0
 2   1 0 0
 3   0 1 0
 4   1 1 0

 5   0 0 1
 6   1 0 1
 7   0 1 1
 8   1 1 1

 9   0 0 2
10   1 0 2
11   0 1 2
12   1 1 2

13   0 0 3
14   1 0 3
15   0 1 3
16   1 1 3

ELEMENTS
NUMBER GROUP ELEMENT PROP TOPO
c 1st order
  1    1      37100   11  1 2 3 4 5 6 7 8
  2    2      29700   12  5 6 7 8 9 10 11 12
  3    3      29520   12  9 10 11 12 13 14 15 16

c 2nd order
c  1    1      37110   11  1 2 3 4 5 6 7 8
c  2    2      29620   12  5 6 7 8 9 10 11 12
c  3    3      29540   12  9 10 11 12 13 14 15 16   c corner nodes complaint
c  3    3      29520   12  9 10 11 12 13 14 15 16   c corner nodes complaint



MATERIALS
MATERIAL E NU RO
   11   100E9 0.33 1E-10
MATERIALS
MATERIAL BULK.MO RO
   12    <344> 1.18

DEFINE.RESPONSE
TIME LIST.OF.TYPES.NODES.DIRECTIONS.AND.VALUES
 0    1 1 2 0
 1    1 1 2 1

FULL.DYNAMICS.OUTPUT
TYPE   START  FINISH  STEP
  2       1    100    1

RESPONSE
TYPE TIME.STEP BETA FINISH LIST.OF.NODES.AND.DIRECTIONS
 2       4E-6   0.25 10E-3   1 2

MODES.AND.FREQUENCIES
AUTO MODES
 0   0


C separate structure and acoustic nodes
COLLAPSE
COUP GR1 GR2
 3    1   2   c new nodes on the acoustic at the interface with structure.

END.OF.DATA

Friday, 11 January 2013

numpy with pip?

sudo apt-get install python-pip
sudo apt-get install python-dev    # after prompting from the following
sudo pip install numpy
sudo pip install scipy

Seems to be working on Chaos...  Ah, numpy was ok.  Scipy fell over due to lack of BLAS.

sudo apt-get install python-scipy

got it in there; presumably without BLAS setup.

Thursday, 10 January 2013

kindle latex preamble


%{{{
% tables using \textwidth should sum to 0.84\textwidth.

\documentclass[oneside, 10pt]{scrbook}

% I spent some time establishing the bottom=2.5mm.  Change it with care.
\usepackage[verbose,paperwidth=9cm,paperheight=12.2cm,margin=0.5mm, bottom=2.5mm]{geometry}  
% do this first, as other packages use the page dims

\usepackage{microtype}  % reduces hyphenation
\usepackage{fancyhdr}   % headers and footers
\pagestyle{fancy}
\fancyhead{}            % clear page header
\fancyfoot{}            % clear page footer

% The following have not been optimised yet.
\setlength{\abovecaptionskip}{2pt} % space above captions
\setlength{\belowcaptionskip}{0pt} % space below captions
\setlength{\textfloatsep}{2pt}     % space between last top float / first bottom float text
\setlength{\floatsep}{2pt}         % space left between floats
\setlength{\intextsep}{2pt}        % space left on top and bottom of an in-text float
%
\pagestyle{empty}      % suppress page number.  Repeat after every chapter.
\usepackage{ifthen}    % logic programming
\usepackage{booktabs}  % top, mid, bottomrule in tables
\usepackage{longtable} % essential for small kindle display
\usepackage{color}     % Colour is used though this kindle is b/w
\usepackage{expdlist}  % long description items

\title{Notes}
\author{Mark St.}

% from https://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm
% this sets the default font to be the system default sans-serif font.
% I'm adopting this for kindle as the serifs are problematic for
% low resolution display.  It is computer modern sans serif.

\renewcommand{\familydefault}{\sfdefault}

\renewcommand{\small}{\fontsize{4}{6}\selectfont}

\renewcommand{\normalsize}{\fontsize{6}{8}\selectfont}

\begin{document}%}}}