[texhax] refart with package float floatstyle plaintop not works

Bob Tennent rdt at cs.queensu.ca
Fri Sep 13 19:04:55 CEST 2013


 >|Well, this is why I am a programmer:
 >|finding out, by guess or by golly,
 >|How Stuff works.

If you're a programmer you should know that it helps to RTFM:

  The \floatstyle command sets a default float style. This float
  style will be used for all the floats that are subsequently
  defined using \newfloat, until another \floatstyle command
  appears.

 >|\documentclass{refart}
 >|\usepackage{float}\newfloat{program}{H}{lop}%[section]
 >|\floatstyle{plaintop}%

Put the \floatstyle call before defining the new float.

 >|\title{\jobname}\author{R.J. Fehd}\date{draft of \today}
 >|\usepackage{fancyvrb,hyperref}
 >|\begin{document}\maketitle
 >|\section*{Abstract}This document is a demonstration of the
 >|\href{http://www.ctan.org/pkg/float}{Float package} within
 >|\texttt{refart} class

Actually refart has nothing to do with the problem. Debugging
technique understood by most programmers: narrow down the possible
sources of an issue.

Bob T.


More information about the texhax mailing list