# HG changeset patch # User Robert McIntyre # Date 1396157683 14400 # Node ID f639e2139ce23783538f31fb2f1432884eb846b4 # Parent 81c845a9137822b16bef1b969fad6f0f93f295ee much happier with image placement now. diff -r 81c845a91378 -r f639e2139ce2 thesis/cortex.org --- a/thesis/cortex.org Sun Mar 30 01:22:23 2014 -0400 +++ b/thesis/cortex.org Sun Mar 30 01:34:43 2014 -0400 @@ -1134,7 +1134,7 @@ #+caption: pixels is denser in the middle and falls off at the #+caption: edges and is inspired by the human retina. #+name: retina - #+ATTR_LaTeX: :width 10cm + #+ATTR_LaTeX: :width 7cm [[./images/retina-small.png]] Together, the number 0xFF0000 and the image image above describe diff -r 81c845a91378 -r f639e2139ce2 thesis/extraplaceins.sty --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thesis/extraplaceins.sty Sun Mar 30 01:34:43 2014 -0400 @@ -0,0 +1,120 @@ +% P L A C E I N S . S T Y ver 2.2 April 18, 2005 +% Donald Arseneau asnd@triumf.ca +% +% Modified on March 6, 2011 +% Lex Fridman lexfridman@gmail.com +% See: http://bit.ly/h2Se0u +% +% Keep floats `in their place'; don't let them float into another section. +% Instructions are below. +% +% placeins.sty is freely released to the public domain. + + +\def\@fb@botlist{\@botlist} +\def\@fb@topbarrier{\suppressfloats[t]} + +\catcode`\V=14 % `V' is a comment character unless [verbose] + +\@ifundefined{DeclareOption}{}% +{\DeclareOption{below}{\def\@fb@botlist{}} + \DeclareOption{above}{\def\@fb@topbarrier{}} + \DeclareOption{section}{\AtBeginDocument{% + \expandafter\renewcommand\expandafter\section\expandafter + {\expandafter\@fb@secFB\section}% + \newcommand\@fb@secFB{\FloatBarrier + \gdef\@fb@afterHHook{\@fb@topbarrier \gdef\@fb@afterHHook{}}} + \g@addto@macro\@afterheading{\@fb@afterHHook} + \gdef\@fb@afterHHook{} + }} + \DeclareOption{subsection}{\AtBeginDocument{% + \expandafter\renewcommand\expandafter\subsection\expandafter + {\expandafter\@fb@subsecFB\subsection}% + \newcommand\@fb@subsecFB{\FloatBarrier + \gdef\@fb@afterHHook{\@fb@topbarrier \gdef\@fb@afterHHook{}}} + \g@addto@macro\@afterheading{\@fb@afterHHook} + \gdef\@fb@afterHHook{} + }} + \DeclareOption{subsubsection}{\AtBeginDocument{% + \expandafter\renewcommand\expandafter\subsubsection\expandafter + {\expandafter\@fb@subsubsecFB\subsubsection}% + \newcommand\@fb@subsubsecFB{\FloatBarrier + \gdef\@fb@afterHHook{\@fb@topbarrier \gdef\@fb@afterHHook{}}} + \g@addto@macro\@afterheading{\@fb@afterHHook} + \gdef\@fb@afterHHook{} + }} + \DeclareOption{verbose}{\catcode`\V=9 }% Activate things after `V' + \ProvidesPackage{placeins}[2005/04/18 \space v 2.2] + \ProcessOptions +} % end of \@ifundefined + +\def\FloatBarrier{\par\begingroup \let\@elt\relax +V\edef\@tempa{\write\m@ne{Package placeins Info: Float barrier, from +V input line \the\inputlineno, processed on page \thepage, lands on +V page \noexpand\thepage. }}\@tempa + \edef\@tempa{\@fb@botlist\@deferlist\@dbldeferlist}% + \ifx\@tempa\@empty V\PackageInfo{placeins}{No floats held,}% + \else + \ifx\@fltovf\relax % my indicator of recursion + \if@firstcolumn V\PackageWarning{placeins}{Some floats are stuck,}% + \clearpage + \else V\PackageInfo{placeins}{Eject a column and check again:}% + \null\newpage\FloatBarrier + \fi + \else V\PackageInfo{placeins}{Must dump some floats}% + \newpage \let\@fltovf\relax V\PackageInfo{placeins}{Check again:}% + \FloatBarrier % recurse once only + \fi\fi \endgroup + \@fb@topbarrier } + +\catcode`\V=11 +\endinput + +%====================== BEGIN INSTRUCTIONS =========================== + + p l a c e i n s . s t y ver 2.2 April 18, 2005 + Donald Arseneau asnd@triumf.ca + + +Placeins.sty keeps floats `in their place', preventing them from floating +past a "\FloatBarrier" command into another section. To use it, declare +"\usepackage{placeins}" and insert "\FloatBarrier" at places that floats +should not move past, perhaps at every "\section". + +Option: [section] + +A more convenient way to stop floats at section boundaries is to change +the definition of "\section" to include "\FloatBarrier", either at the +beginning, before "\@startsection", or in the `style' specification (see +The LaTeX Companion, section 2.2.2; or 2.3 in the 1st ed). If you specify +"\usepackage[section]{placeins}", then the "\section" command will be +redefined with "\FloatBarrier" inserted at the beginning. + +Options: [above] [below] + +Something you may not like is that, by default, "\FloatBarrier" is very +strict, and will (try to) prevent a float from appearing above the start +of the current section or below the start of the next section, even +though the float is still on the same page as its intended section. +Each restriction can be relaxed separately by using the "[above]" and +"[below]" package options: "[above]" allows floats to appear above their +section, if on the same page; "[below]" allows below. + +NOTE! The original version of placeins.sty acted like it was loaded +with the option "[above]" specified. + +There is a problem with LaTeX's "\suppressfloats" being out of step with +the page breaking (see usenet msg and thread) +which sometimes allows a float to go above a "\FloatBarrier" placed near +the top of a page. Maybe placeins will fix it sometime later. + +Option: [verbose] + +There is a package option "[verbose]" that causes many messages to be +written in the log file. It might be used to answer the question: +`How did *that* get *there*?!?' + +%====================== END INSTRUCTIONS ======================== + +Test file integrity: ASCII 32-57, 58-126: !"#$%&'()*+,-./0123456789 +:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ diff -r 81c845a91378 -r f639e2139ce2 thesis/images/diagram_rendermanager2.png Binary file thesis/images/diagram_rendermanager2.png has changed diff -r 81c845a91378 -r f639e2139ce2 thesis/rlm-cortex-meng.tex --- a/thesis/rlm-cortex-meng.tex Sun Mar 30 01:22:23 2014 -0400 +++ b/thesis/rlm-cortex-meng.tex Sun Mar 30 01:34:43 2014 -0400 @@ -52,6 +52,8 @@ \usepackage{xcolor} \usepackage{minted} \usepackage[backend=bibtex,style=alphabetic]{biblatex} +%\usepackage[section]{placeins} +\usepackage[section,subsection,subsubsection]{extraplaceins} %\floatsetup[listing]{style=Plaintop}