From d4f93ec00f1e1078b1cfcb3aacd3481eb82bb0cd Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Fri, 28 Jul 2023 21:54:16 -0400 Subject: [PATCH] Added references section --- Notes on Python.tex | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Notes on Python.tex b/Notes on Python.tex index 4682a9a..1ee15a6 100644 --- a/Notes on Python.tex +++ b/Notes on Python.tex @@ -9,6 +9,7 @@ \usepackage{microtype} \usepackage{wrapfig} % Allows us to use \wrapfigure command \usepackage{adjustbox} % Adjust padding inside \minipage environment +\usepackage{tikz} % Packages with options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -32,6 +33,8 @@ bindingoffset=0.25in } +\usepackage[nottoc,numbib]{tocbibind} % Add references to TOC + % My macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Make a nice border and box for the tops of our examples @@ -72,6 +75,12 @@ \end{multicols} } +% Add an indent to bibliography items +% This is a bit of a kludge, but it works. Look for a best practice to replace this. +\newcommand\kbib{ + \begin{tikzpicture} \draw [white, line width=6] (0,0) -- (0.1,0); \end{tikzpicture} +} + % Additional options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \raggedbottom @@ -88,6 +97,8 @@ This document consists of notes on Python. \end{abstract} +\tableofcontents + \section{Preliminaries} \begin{multicols}{2} @@ -154,7 +165,7 @@ It is a long established fact that a reader will be distracted by the readable c \lipsum[1] -It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. \kpull{This is done via a macro.}{1in} Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). +It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. The macro will go at the end of this sentence. \kpull{This is done via a macro.}{1in} Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). \lipsum[1] @@ -169,4 +180,22 @@ It is a long established fact that a reader will be distracted by the readable c \lipsum[1-5]\kpull{Oh look, this is so lovely. We have little boxes to call out important information.}{1in}\lipsum[6-10] \kcole +\newpage + +\begin{thebibliography}{XX} + +\kcolb + +\bibitem{mueller:jp23} + Mueller, John Paul. + \textit{Beginning Programming with Python for Dummies}, + John Wiley \& Sons Inc, Hoboken, New Jersey, + 3rd Edition, + 2023.\\ + \kbib{}This book \textit{heavily} emphasizes the use of Google Colab. It's basically an advertisement for $\Gamma$oogle and \textit{highly} disappointing. Python is meant to be fairly universal and this book's approach seems to work counter to that intention. + +\kcole + +\end{thebibliography} + \end{document} \ No newline at end of file