Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tables and Figures immediately go to top of page? #77

Open
michelewang opened this issue Mar 24, 2021 · 1 comment
Open

Tables and Figures immediately go to top of page? #77

michelewang opened this issue Mar 24, 2021 · 1 comment

Comments

@michelewang
Copy link

Hi, first of all thank you so much for making this beautiful template! I'm using it for my undergraduate senior thesis and it has been a life saver.

As for my question -- I've been using \begin{table} and \begin{figure} to create nice tables and figures with captions. However, no matter where I put these lines of code, the table and figure always end up at the top of my next page or in a place I cannot control. Is there a way for me to specify the location of the table and figure (e.g. after a section heading)?

Thank you!

@Wollipolli
Copy link

Wollipolli commented Apr 26, 2021

Usually, you want your figures after you have referenced them in the text, right? Therefore at the beginning of a section does not seem useful to me.
This template does not include the float package, therefore I only found the only working options to be [t] (top) or [b] (bottom). latex handles the rest:
\begin{figure}[b]

If you really want manual figure placement, load the float package in the preamble:
\RequirePackage{float}

and force the location with [H], like this:
\begin{figure}[H]

Also see https://tex.stackexchange.com/questions/8625/force-figure-placement-in-text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants