Skip to content

Instantly share code, notes, and snippets.

@Mondonno
Created January 22, 2026 08:40
Show Gist options
  • Select an option

  • Save Mondonno/b6fbc5b5d550047c68534e2b4e1b4297 to your computer and use it in GitHub Desktop.

Select an option

Save Mondonno/b6fbc5b5d550047c68534e2b4e1b4297 to your computer and use it in GitHub Desktop.
LaTeX Cover for Mathematica Successus Source Code
% Made by Mikołaj Mocek
% Cover in LaTeX for "Mathematica Successūs".
% Full project/book details:
%
% Paperback: https://www.amazon.com/dp/8397964002
%
% Ebook: https://www.amazon.com/dp/B0FHG3SBV5
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{enumitem}
\usepackage{anyfontsize}
\usepackage{fix-cm}
% --- EXACT KDP DIMENSIONS ---
% Total Width: 12.383in
% Total Height: 9.250in
\usepackage[paperwidth=12.383in, paperheight=9.250in, margin=0in]{geometry}
\begin{document}
\pagestyle{empty}
% "remember picture, overlay" = Absolute positioning.
% This guarantees NO EXTRA PAGES because it ignores document flow.
\begin{tikzpicture}[remember picture, overlay]
% Shift coordinate system so (0,0) is the Bottom-Left corner of the paper
\begin{scope}[shift={(current page.south west)}]
% =========================================================
% 1. FRONT COVER (Image)
% =========================================================
% I anchor the image exactly at the visual center of the front cover panel.
% X = 9.25in, Y = 4.625in
\node[anchor=center, inner sep=0pt] at (9.25in, 4.625in) {
\includegraphics[width=6.125in, keepaspectratio]{cover.jpg}
};
% =========================================================
% 2. BACK COVER (Text)
% =========================================================
% I anchor this at the Top-Left corner of the back cover area
% to enable precise top-margin control.
% Anchor Point:
% X = 0.125in (Bleed) + 0.5in (Margin) = 0.625in from left edge
% Y = 9.25in (Top Edge) - 0.125in (Bleed) = 9.125in from bottom
\node[anchor=north west, inner sep=0pt] at (0.625in, 9.125in) {
% Width: 5in (Safe text area)
% Height: 9in (Full height minus bleed)
\begin{minipage}[t][9in]{5in}
\raggedright
\color{black}
% --- TOP MARGIN CONTROL ---
\vspace*{2.0cm}
% Font: TeX Gyre Pagella (Palatino-like) for readability
\fontfamily{qpl}\selectfont
\setlength{\parskip}{0.8em}
\textbf{\large ABOUT THE AUTHOR}
Mikołaj Mocek is Co-Founder, CEO, and CTO of iminti, where he builds responsible AI and practical software. A software engineer with over six years' experience across full‑stack systems, data and machine learning, he applies mathematical rigor to design resilient products and life systems. He has also developed accessibility tools used by many and focuses on translating theory into real‑world impact.
\vspace{0.8cm}
\textbf{\large DESCRIPTION}
Most self-help promises motivation; this book delivers structure. \textit{Mathematica Successūs} reframes success as a formal problem: what can you actually change, what must you protect, and what strategies reliably lead to better outcomes.
Through clear definitions, compact theorems, and actionable examples, the book shows you how to:
\begin{itemize}[leftmargin=1.5em, itemsep=2pt, topsep=4pt]
\item identify the "essential variables" $E(x)$ that must stay within bounds for you to thrive;
\item expand your effective repertoire of actions $u_t$ so you can handle complexity (the law of requisite variety);
\item design feedback-driven habits using dynamic systems given $f(x_t, u_t, w_t)$ and learning loops that improve over time.
\end{itemize}
If you like precise thinking, honest trade-offs, and tools that survive messy reality, this book gives you a toolbox — not just inspiration — to build a life that works.
\end{minipage}
};
\end{scope}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment