\documentclass[a4paper,11pt]{report}
\usepackage[latin1]{inputenc}
\usepackage{palatino}
%\renewcommand{\familydefault}{\sfdefault}

\usepackage{float}
\floatstyle{ruled}

\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
\usepackage{xspace}
\usepackage{optional}

\input{platform/\platform.tex}

\newcommand{\playername}{\playerman\ \playertype}

\newcommand{\fname}[1]{\textbf{#1}}
\newcommand{\tabeltc}[1]{{\centering #1 \par}}
\newcommand{\tabelth}[1]{{\centering \textbf{\textit{#1}} \par}}

\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{lscape}
\usepackage{makeidx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyvrb}
\usepackage{enumerate}
\usepackage{subfigure}
\usepackage{color}
\usepackage{booktabs}
\usepackage{longtable}
%\usepackage{url}
%\urlstyle{same}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhead{}
\fancyfoot{}
\fancyhead[RO]{\iffloatpage{}{\rightmark}}
\fancyhead[LE]{\iffloatpage{}{\leftmark}}
\fancyhead[LO,RE]{\iffloatpage{}{\raisebox{-3pt}}}
\fancyfoot[RO,LE]{\iffloatpage{}{\thepage}}

\fancyfoot[CO,CE]{}
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}
\renewcommand{\footrulewidth}{\iffloatpage{0pt}{0.4pt}}
\setlength{\headheight}{18.5pt}
\newcounter{example}[chapter]
\newenvironment{example}
    {\stepcounter{example}\paragraph{Example \theexample:}}
    {\hfill$\Box$
    
    \bigskip
    \noindent}
