the enemys line consisted of thirty-three ships ( of which eighteen were french and fifteen spanish ) commanded in chief by admiral villeneuve , the spanish under the direction of admiral gravina , wore with their heads to the north and formed their line of battle with great closeness and correctness , but , as the mode of attack was unusual , so the structure of their line was new .