I'm taking study notes in latex and I want to read it in my kindle. So far I was able to get very good results using:
\documentclass[ebook,oneside,openany,17pt]{memoir}
\usepackage[margin=0.3in]{geometry}
\usepackage[hidelinks]{hyperref}
But for an e-reader is really helpful the TOC with links, and as I found useless the page numbering in an e-reader, I just want to remove it (also it looks very bad with 0.3in
margin) from the the pages in the final pdf and from the TOC at the right end.
In order to remove the page numbers I've used:
\thispagestyle{empty}
But now I have several issues:
- With the command
\thispagestyle{empty}
the TOC is empty. - If I remove
\thispagestyle{empty}
, still the TOC is empty (I think is because I use the * form for chapters, sections, etc.) - When I remove
\thispagestyle{empty}
and use the numbered sectioning then the TOC have page numbers at the right side.
What I want is:
- No page numbering at all, not in pages nor in TOC.
- If it is possible no numbered sectioning.
- Hyperlinks (this part is working just fine right now).
I hope here I could find a complete solution.
Note: I've tried with this Remove dots & Page numbers from TOC with no luck, I think one big problem in my approach could be the use of
\thispagestyle{empty}
.
MWE:
\documentclass[ebook,oneside,openany,17pt]{memoir}
\usepackage[margin=0.3in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage[backref,hidelinks]{hyperref}
\begin{document}
\title{Notes about something}
\author{Me}
\maketitle
\tableofcontents
\thispagestyle{empty}
\chapter*{First thought}
\thispagestyle{empty}
\section*{Complications}
\subsection*{OK}
\end{document}
\documentclass{...}
and ending with\end{document}
.