\documentclass[12pt]{article}

% Adjust The page size via use of the geometry package
% Paper is set to 4in by 8in. 
\usepackage[paperwidth=288pt, paperheight=576,textwidth=248pt,textheight=512]{geometry}
\usepackage[utf8]{inputenc}

% I prefer to use Open Sans which is a sans serif font.
% Sans Serif fonts are good for digital documents in general.
% If you like some other sans serif font, then include it instead
% or if you'd like to stick with the default, just comment the next
% line.
\usepackage[default]{opensans}
\usepackage[T1]{fontenc}

% --------------------------------------
% | Add the rest of your preamble here |
% --------------------------------------
%\usepackage{amsmath}
%\usepackage{parskip}


\begin{document}
% Set all the fonts to sans serif.
% Comment the next line if you like the LaTeX default font.
\renewcommand{\familydefault}{\sfdefault}

% Handle overflowing text due to size restriction by
% hyphenating words
\sloppy

% ---------------------------
% |Start your document here.|
% ---------------------------




\end{document}

% --------------------
% | Template Details |
% --------------------
% Author: Aditya Chincholi
% Contact Me for any queries/suggestions at
% aditya.chincholi@students.iiserpune.ac.in
% In case you lost the template file, 
% you can also find this template on GitHub
% at https://github.com/adch99/latex-mobile-page-setup

% Inspired by D P Story from acrotex.
% If you want to experiment, try using 
%\usepackage[smartphone,useforms]{aeb_mobile}
% Give http://www.acrotex.net/blog/?p=766 a look.
