Added «python» symbol; delted lipsum text
This commit is contained in:
parent
39e63463c9
commit
6661e5ab8b
@ -27,9 +27,9 @@
|
|||||||
|
|
||||||
\usepackage{geometry}
|
\usepackage{geometry}
|
||||||
\geometry{
|
\geometry{
|
||||||
bmargin=1in,
|
bmargin=0.75in, % bottom margin
|
||||||
tmargin=1in,
|
tmargin=1in, % top margin
|
||||||
hmargin=1in,
|
hmargin=0.75in, % horizontal margin
|
||||||
bindingoffset=0.25in
|
bindingoffset=0.25in
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,17 +48,17 @@
|
|||||||
% Make hrefs easier (must load package hyperref}
|
% Make hrefs easier (must load package hyperref}
|
||||||
\newcommand\kref[2]{\href{#1}{{\texttt{#2}}}}
|
\newcommand\kref[2]{\href{#1}{{\texttt{#2}}}}
|
||||||
|
|
||||||
% Make some pull quotes
|
% Make some call outs
|
||||||
\newcommand\kpull[2]{
|
\newcommand\kpull[2]{
|
||||||
\setlength{\intextsep}{5.0pt plus 2.0pt minus 2.0pt}%
|
\setlength{\intextsep}{5.0pt plus 2.0pt minus 2.0pt}%
|
||||||
\setlength{\columnsep}{10pt}
|
\setlength{\columnsep}{10pt}
|
||||||
\begin{wrapfigure}[]{r}[8pt]{0pt}
|
\begin{wrapfigure}[]{r}[8pt]{0pt}
|
||||||
\fbox{
|
\fbox{
|
||||||
\adjustbox{padding*=0pt 2pt 0pt 1pt}{
|
\adjustbox{padding*=0pt 2pt 0pt 1pt}{
|
||||||
\begin{minipage}{#2}
|
\begin{minipage}{#2} % This is the width of the call out
|
||||||
\begin{small}
|
\begin{small}
|
||||||
\begin{flushleft}
|
\begin{flushleft}
|
||||||
{#1}
|
{#1} % This is the contents of the call out
|
||||||
\end{flushleft}
|
\end{flushleft}
|
||||||
\end{small}
|
\end{small}
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
@ -83,12 +83,15 @@
|
|||||||
\begin{tikzpicture} \draw [white, line width=6] (0,0) -- (0.1,0); \end{tikzpicture}
|
\begin{tikzpicture} \draw [white, line width=6] (0,0) -- (0.1,0); \end{tikzpicture}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Make a Python Symbol like a LaTeX symbol
|
||||||
|
\newcommand\kpy{P{\scriptsize \raisebox{-0.4em}{\hspace{-0.16em}Y}}T{\scriptsize \raisebox{-0.2em}{h}}\hspace{-0.1em}\raisebox{0.4em}{o}\hspace{0.05em}\raisebox{-0.2em}N}
|
||||||
|
|
||||||
% Additional options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
% Additional options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\raggedbottom
|
\raggedbottom
|
||||||
|
|
||||||
% Title info %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
% Title info %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\title{\textbf{Notes on Python}}
|
\title{\textbf{Notes on Python}}
|
||||||
\author{Kenneth John Odle\\ \texttt{ken at kjodle dot net}}
|
\author{Kenneth John Odle\\ {\small \texttt{ken at kjodle dot net}}}
|
||||||
\date{2023\\ \medskip v. 0.0.1}
|
\date{2023\\ \medskip v. 0.0.1}
|
||||||
|
|
||||||
% Notes to self %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
% Notes to self %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
@ -101,99 +104,43 @@
|
|||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
\begin{abstract}
|
\begin{abstract}
|
||||||
This document consists of notes on Python.
|
This document consists of notes on Python, gleaned from various sources. A list of references (often with commentary) follows.
|
||||||
|
|
||||||
|
The latest version of this document can be found at \kref{https://git.kjodle.net/kjodle/Notes-on-Python}{https://git.kjodle.net/kjodle/Notes-\\on-Python}.
|
||||||
\end{abstract}
|
\end{abstract}
|
||||||
|
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
\section{Preliminaries}
|
\section{Preliminaries}
|
||||||
|
|
||||||
\begin{multicols}{2}
|
\kcolb
|
||||||
|
|
||||||
\subsection{What is Python?}
|
\subsection{What is Python?}
|
||||||
|
|
||||||
|
|
||||||
\subsection{Why use Python?}
|
\subsection{Why use Python?}
|
||||||
|
|
||||||
\lipsum[1]
|
Many fields depend on \kpy\footnote{This is my attempt to produce a text symbol for Python, similar to \LaTeX{}. My thought is that it looks like a snake wriggling back and forth. Your mileage, of course, may (and probably will) vary.} to process data.
|
||||||
|
|
||||||
\lipsum[1]
|
Mueller\cite{mueller:jp23} has many reasons why a knowledge of Python may be useful in a career search.
|
||||||
|
|
||||||
\lipsum[1]
|
\subsection{IDEs and Python}
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\begin{wrapfigure}[]{r}[8pt]{0pt}
|
|
||||||
\fbox{
|
|
||||||
\adjustbox{padding*=0pt 2pt 0pt 1pt}{
|
|
||||||
\begin{minipage}{1.5in}
|
|
||||||
\begin{small}
|
|
||||||
\begin{flushleft}
|
|
||||||
This is written by hand, but it's a lot of work, so we converted it to a macro.
|
|
||||||
\end{flushleft}
|
|
||||||
\end{small}
|
|
||||||
\end{minipage}
|
|
||||||
} % End adjustbox
|
|
||||||
} % End fbox
|
|
||||||
\end{wrapfigure}
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\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).
|
|
||||||
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
\end{multicols}
|
|
||||||
|
|
||||||
\newpage
|
|
||||||
\section{More Stuff}
|
|
||||||
\begin{multicols}{2}
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\subsection{This is a subsection}
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\begin{wrapfigure}[]{r}[8pt]{0pt}
|
|
||||||
\fbox{
|
|
||||||
\adjustbox{padding*=0pt 2pt 0pt 1pt}{
|
|
||||||
\begin{minipage}{1.5in}
|
|
||||||
\begin{small}
|
|
||||||
\begin{flushleft}
|
|
||||||
This is written by hand, but it's a lot of work, so we converted it to a macro.
|
|
||||||
\end{flushleft}
|
|
||||||
\end{small}
|
|
||||||
\end{minipage}
|
|
||||||
} % End adjustbox
|
|
||||||
} % End fbox
|
|
||||||
\end{wrapfigure}
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
|
|
||||||
\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. 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]
|
|
||||||
|
|
||||||
\lipsum[1]
|
|
||||||
\end{multicols}
|
|
||||||
|
|
||||||
\newpage
|
|
||||||
|
|
||||||
\section{New Stuff}
|
|
||||||
\kcolb
|
|
||||||
\lipsum[1-5]\kpull{Oh look, this is so lovely. We have little boxes to call out important information.}{1in}\lipsum[6-10]
|
|
||||||
\kcole
|
\kcole
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
\section{Python Basics}
|
||||||
|
|
||||||
|
\kcolb
|
||||||
|
|
||||||
|
\subsection{Python Data Types}
|
||||||
|
|
||||||
|
\kcole
|
||||||
|
|
||||||
|
% References page begins below %%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\newpage
|
\newpage
|
||||||
|
|
||||||
\begin{thebibliography}{XX}
|
\begin{thebibliography}{XX}
|
||||||
@ -202,17 +149,17 @@ It is a long established fact that a reader will be distracted by the readable c
|
|||||||
|
|
||||||
\bibitem{mueller:jp23}
|
\bibitem{mueller:jp23}
|
||||||
Mueller, John Paul.
|
Mueller, John Paul.
|
||||||
\textit{Beginning Programming with Python for Dummies},
|
\textit{Beginning Programming with Python for Dummies}.
|
||||||
John Wiley \& Sons Inc, Hoboken, New Jersey,
|
John Wiley \& Sons Inc. (United States: New Jersey: Hoboken).
|
||||||
3rd Edition,
|
3rd Edition,
|
||||||
2023.\\
|
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.
|
\kbib{}This book \textit{heavily} emphasizes the use of Google Colab. It's basically an advertisement for the $\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.
|
||||||
|
|
||||||
\bibitem{pythonorg:main}
|
\bibitem{pythonorg:main}
|
||||||
python.org.
|
python.org.
|
||||||
``Python for Beginners'',\\
|
``Python for Beginners'',\\
|
||||||
\kref{https://www.python.org/about/gettingstarted/}{https://www.python.org/about/gettingsta\\rted/}\\
|
\kref{https://www.python.org/about/gettingstarted/}{https://www.python.org/about/\\gettingstarted/}\\
|
||||||
\kbib The official site of the Python Software Foundation
|
\kbib The official site of the Python Software Foundation.
|
||||||
|
|
||||||
\kcole
|
\kcole
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user