Two great packages! This post is dedicated to Jens :-)
placeins
Just put
\usepackage{placeins}
at the beginning an then
\FloatBarrier
wherever floats should not float across. This really tames flots nicely! E.g. if a float should be placed before that other subsection is startet: Just put ub a float barrier, and it will not come later.
zref
This is aresome! It enhances labels with the ability to carry arbitrary metadata. I used it in my PhD for consistent requirements numbering. It works like this:
\usepackage[user,titleref,hyperref]{zref}
\newcounter{requirementcounter}%
% === requirement definition
\newcommand{\requirement}[3]{%
\refstepcounter{requirementcounter}%
\ztitlerefsetup{title=#3}%
\zlabel{#2}%
\paragraph{Requirement \therequirementcounter: #1}%
\hypertarget{#2}{}
}%
% === requirement reference
\newcommand{\reqref}[1]{%
\hyperlink{#1}{\zref{#1}}~$^{\textrm{\ztitleref{#1}}}$%
}
% === requirement reference by number
\newcommand{\reqrefno}[1]{%
\zref{#1}%
}
I used these definitions like this (6 other \requirement defs come before):
\requirement{Simultaneous use of Different Levels of Formality}%
{req:simultan}{simultaneous formality levels}
Often research notes and references are already managed digitally. Works in PIM \cite{PIM2006Proc} and Semantic Desktop research have further stressed the need for unified search and organisation of a user's personal items.
This defines three parts for the requirement: A long name, a shorter title and a keyword-like name. The macro further assigns a unique number in order of appearance.
This example renders as
Requirement 7: Simultaneous use of Di erent Levels of Formality Often
research notes and references are already managed digitally. Works in PIM Proceedings
of the Second SIGIR Workshop on Personal Information Management
(PIM) (2006) and Semantic Desktop research have further stressed the need for
uni ed search and organisation of a user's personal items.
A reference like
\reqref{req:simultan}
is then rendered as
7simultaneous formality levels
Zref seems to be able to do much more, so read the doku!
No comments:
Post a Comment