You might find this post helpful, which I wrote to assist someone with similar difficulties:
There’s also a demonstration project in the same thread that doesn’t do exactly what you want but is a very simple illustration of using Section Layouts to assign formatting:
There are also some other detailed explanatory posts, by both @AmberV and myself. These may or may not be useful, since they were written to address this user’s specific concerns, but they do have quite a bit of information about how to think about Compile.