Skip to content

Commit

Permalink
Fixed supression of page nos on float pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-um committed Jul 14, 2020
1 parent 25f5fe1 commit 483cdfd
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ It is always counter-productive to **not** listen to your supervisor. This is a
### For references, which is better [42] or [Ebejer et al., 2019]?

Many computational scientists are used to the IEEE referencing style with numbers, i.e. `[42]`. But there is a reason why `plannat` is superior. Your examiners (and supervisors) will be well aquainted with the research area and will know which are the main papers you should have read (and cited). If you use the numbered referencing, the examiner has to keep cross-referencing the *References* section. This is not the case when using the name of the author and year directly in the citation. Moreover, it is easier for the examiner to realize when you are mis-citing an author. Modern typsetting is moving in this direction.

### I have a huge figure which takes up all the page. I would like to switch off headers and the bottom page numbers, but ```\thispagestyle{empty}``` does nothing (or changes some other page).

The template uses the ```floatpag``` package. All you need to do is place a ```\thisfloatpagestyle{empty}``` inside the figure or table environment. Et voilà! There is an example of this [here](https://github.com/jp-um/university_of_malta_LaTeX_dissertation_template/blob/master/chap2/background_and_lit_overview_main.tex).
1 change: 0 additions & 1 deletion chap1/introduction_main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ \section{Aims and Objectives}

\section{Proposed Solution}

\blindtext
\blindtext

\begin{figure}[!ht]
Expand Down
15 changes: 15 additions & 0 deletions chap2/background_and_lit_overview_main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ \subsubsection{Some Sub-sub-technique One}

\section{Evaluation Criteria}
This section should contain information on the metrics and background used to evaluate your work.

\section{Related Work}
\textbf{In this section you need to explain (and reference) similar work in literature}. Make sure to:

Expand All @@ -33,5 +34,19 @@ \section{Related Work}

Note that this section may be sectioned based on the different aspects of your dissertation. Some referenced text, as an example \citep{Arrighi2003, WithersMartinez2012, Ebejer2016}.

\section{An Example of Suppressing Page Numbers on A Float Page}

Refer to Figure~\ref{fig:largegoku}.

\begin{figure}[!ht]
\thisfloatpagestyle{empty} %% This is the key line.
\centering
\includegraphics[width=0.9\textwidth]{goku-large}
\caption[Short Random Caption]{\blindtext}
\label{fig:largegoku}
\end{figure}

\blindtext

\section{Summary}
\blindtext
Binary file added chap2/images/goku-large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dissertation_main.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion dissertation_main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

% You should have an images directory in every chapX subdir
% NOTE: Trailing / for subdirs is required.
\graphicspath{{./images/}{./chap1/images/}} % Paths where to look for images, if defined "images" must always be there as it holds the images in-use by the template.
\graphicspath{{./images/}{./chap1/images/}{./chap2/images/}} % Paths where to look for images, if defined "images" must always be there as it holds the images in-use by the template.

\makeindex

Expand Down Expand Up @@ -93,6 +93,7 @@

%% Note: always use \input as you cannot nest \includes (amongst other things)
\pagestyle{umpage}
\floatpagestyle{umpage}
\mainmatter
\input{chap1/introduction_main}
\input{chap2/background_and_lit_overview_main}
Expand Down
Binary file added official_docs/authenticityformdoctoral.pdf
Binary file not shown.
Binary file added official_docs/authenticityformug.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion um.cls
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
\RequirePackage{amssymb} % At least, for black squares in bullet list
\RequirePackage[pdfusetitle]{hyperref} % For hyperreferences
\RequirePackage[authoryear,semicolon,sort]{natbib} % for (Ebejer, 2012; Alba, 2013) kind of references; removed 'square' option after viva examination comments

\RequirePackage{floatpag} % Used to hide page number on pages which contain only floats ... put a \thisfloatpagestyle{empty} in the float env, e.g. figure ...
\RequirePackage{longtable} % For very long tables
\RequirePackage{pdflscape} % For landscape tables (instead of portrait)

Expand Down

0 comments on commit 483cdfd

Please sign in to comment.