[Tex/LaTex] titlepage with hyperref in overleaf not working

hyperlinkhyperrefoverleaf

My goal is to create a title page with links like the first page of the pdfrender package available here: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/oberdiek/pdfrender.pdf

On the side, there's a bookmark and it has color hyperref. (I want have the same front page as the pdfrender title page. On the left side, you see the bookmarks. On the front page, you see the blue hyperref. That's what I want. The codes from overleaf produce the pdf but when I upload it to google drive, it doesn't do it.)

I like to know how so I find a similar template at overleaf: https://www.overleaf.com/3739199258sncjysqnwkjh

I print out the pdf and upload it to google drive.

https://drive.google.com/file/d/1IVt-Pa8qXUuN2Ht_RMgxJX2WqYDXMxID/view

The hyperlink is not working, no bookmark.

Did I miss anything in the instruction? Please advise. I am new to Latex.

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{hyperref}

\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,      
    urlcolor=cyan,
    pdftitle={Sharelatex Example},
    bookmarks=true,
    pdfpagemode=FullScreen,
    }

\urlstyle{same}

\begin{document}

\tableofcontents

\chapter{First Chapter}

This will be an empty chapter and I will put some text here

\begin{equation}
\label{eq:1}
\sum_{i=0}^{\infty} a_i x^i
\end{equation}

The equation \ref{eq:1} shows a sum that is divergent. This formula will be latter used in the page \pageref{second}.

For further references see \href{http://www.sharelatex.com}{Something Linky} or go to the next url: \url{http://www.sharelatex.com} or open the next file \href{run:./file.txt}{File.txt}

It's also possible to link directly any word or \hyperlink{thesentence}{any sentence} in you document.

If you read this text, you will get noinformation.  Really?  Is there no information?

For instance \hypertarget{thesentence}{this sentence}.


\Blindtext

\clearpage

\section{Second section} \label{second}

\blindtext



\Blinddocument


\end{document}


Best Answer

use the article class to get such a title page. You will need to change from chapters to sections and use \maketitle

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{hyperref}

\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,      
    urlcolor=cyan,
    pdftitle={Sharelatex Example},
    bookmarks=true,
    pdfpagemode=FullScreen,
    }

\urlstyle{same}

\title{text}
\author{names}
\begin{document}

\maketitle

\tableofcontents

\section{First Chapter}

This will be an empty chapter and I will put some text here

\begin{equation}
\label{eq:1}
\sum_{i=0}^{\infty} a_i x^i
\end{equation}

The equation \ref{eq:1} shows a sum that is divergent. This formula will be latter used in the page \pageref{second}.

For further references see \href{http://www.sharelatex.com}{Something Linky} or go to the next url: \url{http://www.sharelatex.com} or open the next file \href{run:./file.txt}{File.txt}

It's also possible to link directly any word or \hyperlink{thesentence}{any sentence} in you document.

If you read this text, you will get noinformation.  Really?  Is there no information?

For instance \hypertarget{thesentence}{this sentence}.


\Blindtext

\clearpage

\section{Second section} \label{second}

\blindtext



\Blinddocument


\end{document}

enter image description here

Related Question