Skip to content

Commit

Permalink
update page layout to 16:9 ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoshanliang committed Nov 24, 2024
1 parent 12f8910 commit befec6e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
Binary file modified document.pdf
Binary file not shown.
11 changes: 6 additions & 5 deletions document.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\documentclass{libs/XJTLU_format}
% Inserting the preamble file with the packages
\documentclass[aspectratio=169]{libs/XJTLU_format}
\usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter}
\input{libs/preamble.tex}
% Inserting the references file
\bibliography{references.bib}
Expand All @@ -19,7 +19,7 @@
\department{School of Advanced Technology}
\newline
% University name
\university{Xi'an Jiaotong-Liverpool University}
\university{Xian Jiaotong-Liverpool University}
}
% date of the presentation
\date{\today}
Expand Down Expand Up @@ -203,6 +203,7 @@ \subsection{Figures}
\centering
\includegraphics[scale=0.5]{libs/XJTLU_logo.png}
\caption{Logo of XJTLU.}
% \source{Description of XJTLU}
\label{fig:XJTLU_logo}
\end{figure}
\end{frame}
Expand All @@ -216,7 +217,7 @@ \subsection{Tables}
3& 4& \\
5& 6&
\end{tabular}
\caption{}
\caption{This is a table}
\end{table}

\end{frame}
Expand Down Expand Up @@ -264,4 +265,4 @@ \subsection{Multi-columns}

\end{frame}

\end{document}
\end{document}
38 changes: 24 additions & 14 deletions libs/XJTLU_format.cls
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
\LoadClass[compress, 10pt]{beamer}

%% Putting the background image in the frames
\usebackgroundtemplate{\hspace{10cm} \vspace{2.2cm}\transparent{0.9}\includegraphics[width=0.18\paperwidth]{libs/XJTLU_name.png} }
\usebackgroundtemplate{\hspace{13cm}\vspace{-2cm}\transparent{0.6}\includegraphics[width=0.145\paperwidth]{libs/XJTLU_name.png} }
%\logo{\includegraphics[scale=0.3]{libs/XJTLU_logo.png} \hspace{9cm} \vspace{-0.2cm}}


Expand All @@ -24,22 +24,28 @@
\RequirePackage{colortbl}
\RequirePackage{graphicx}
\RequirePackage{fancybox}
\RequirePackage[footnotesize,hang]{caption}
%\RequirePackage[footnotesize,hang]{caption}
% Option management
\RequirePackage{beamerbaseoptions}
\RequirePackage{bbm}


% colors
\definecolor{navy_theme}{RGB}{1, 5, 68}
\definecolor{middle}{RGB}{95, 39, 114}
\definecolor{purple}{RGB}{206, 87, 193}
\definecolor{purple}{RGB}{160, 67, 163}

%\definecolor{navy_theme}{RGB}{1, 5, 68}
%\definecolor{middle}{RGB}{95, 39, 114}
%\definecolor{purple}{RGB}{206, 87, 193}

\definecolor{black}{RGB}{0, 0, 0}
\definecolor{white}{RGB}{255, 255, 255}
\definecolor{red}{RGB}{215, 0, 0}
\definecolor{yellow}{RGB}{255, 242, 0}
\definecolor{aqua}{RGB}{34, 189, 173}

% style of the blocks XJTLU
% style of the blocks ufc
\beamerboxesdeclarecolorscheme{blockXJTLU}{navy_theme}{white}
\beamer@autopdfinfotrue
\beamer@notesnormalstrue
Expand All @@ -55,7 +61,7 @@
\setbeamercolor{section in head/foot}{bg=navy_theme, fg=white}
\setbeamercolor{subsection in head/foot}{bg=middle, fg=white}
\setbeamercolor{institute in head/foot}{bg=purple, fg=white}
\setbeamerfont{block title}{size={}}
\setbeamerfont{block title}{size=\small}


%% ---------- bottom fields ---------------------
Expand Down Expand Up @@ -96,7 +102,8 @@

%% draw the blocks
\setbeamertemplate{blocks}[rounded][shadow=true]
% \setbeamercolor{separation line}{use=structure,bg=structure.fg!50!bg} % color on the top
%\setbeamertemplate{blocks}[shadow=true]
\setbeamercolor{separation line}{use=structure,bg=structure.fg!50!bg} % color on the top

% block
\setbeamercolor*{block title}{fg=white, bg=navy_theme}
Expand Down Expand Up @@ -134,7 +141,7 @@
\newcommand{\alertbox}[1]{
\begin{flushleft}
\fcolorbox{red}{white}{
\begin{minipage}{0.9\textwidth}
\begin{minipage}{0.97\textwidth}
#1
\end{minipage}
}
Expand All @@ -145,7 +152,7 @@
\newcommand{\simplebox}[1]{
\begin{flushleft}
\fcolorbox{navy_theme}{white}{
\begin{minipage}{0.9\textwidth}
\begin{minipage}{0.97\textwidth}
#1
\end{minipage}
}
Expand All @@ -156,17 +163,17 @@
\newcommand{\successbox}[1]{
\begin{flushleft}
\fcolorbox{aqua}{white}{
\begin{minipage}{0.9\textwidth}
\begin{minipage}{0.97\textwidth}
#1
\end{minipage}
}
\end{flushleft}
}

% create the source of the image
\newcommand{\source}[1]{
\caption*{\textcolor{navy_theme}{Figure:} {#1}}
}
%\newcommand{\source}[1]{
% \caption*{\textcolor{navy_theme}{Figure:} {#1}}
%}

% university command
\newcommand{\university}[1]{
Expand All @@ -189,5 +196,8 @@
}
}

% Show number of figures
\setbeamertemplate{caption}[numbered]
\newcommand{\supervisor}[1]{
\textmd{
\normalsize{#1}
}
}

0 comments on commit befec6e

Please sign in to comment.