Skip to content

Commit

Permalink
Add some simple fixes and better styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jestin committed Sep 3, 2024
1 parent ed01171 commit 9f52d8d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
11 changes: 9 additions & 2 deletions CommodoreBlueBook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
colback=#1,
coltext=#2,
width=0.22in,
fontupper=\bfseries,
fontupper=\fontsize{12pt}{12pt}\bfseries,
nobeforeafter,
halign=center,
box align=bottom,
Expand All @@ -330,7 +330,7 @@
colback=#1,
coltext=#2,
size=small,
fontupper=\fontsize{8pt}{8pt}\selectfont\bfseries,
fontupper=\fontsize{12pt}{12pt}\selectfont\bfseries,
width=0.50in,
height=0.35in,
box align=base,
Expand Down Expand Up @@ -532,6 +532,13 @@

%-------------------------------------------

\newcommand{\partheading}[1]{
\begin{huge}
\color{blue}
\uppercase{#1}
\end{huge}
}

\renewcommand{\thepart}{\arabic{part}}

% Command to create and output the parts pages
Expand Down
23 changes: 18 additions & 5 deletions getting_to_know_commanderx16.tex
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ \chapter*{Your First Computer Program}\index{Sectioning}
\item The \spacebar key is the large, wide key at the bottom of the
keyboard. It should be the only key with nothing printed on it.

\item The \key{"} key is simply the \doublekey{"\\'} key pressed while
holding down the \shiftkey key.
\item The \keybackgroundcolor{white}\key{"} key is simply the
\doublekey{"\\'} key pressed while holding down the
\keybackgroundcolor{gray}\shiftkey key.

\item the \keybackgroundcolor{white}\key{;} key is the \doublekey{:\\;}
pressed while \emph{not} holding down the \shiftkey key. It is
Expand All @@ -326,7 +327,7 @@ \chapter*{Your First Computer Program}\index{Sectioning}
\screenbox{2.75in}{2in}{
NEW\\\\
READY.\\
10 PRINT" X16";\\
10 PRINT "X16";\\
20 GOTO 10\\
\cursor
}
Expand All @@ -353,14 +354,14 @@ \chapter*{Your First Computer Program}\index{Sectioning}
{\ttfamily PRINT} on line 10:\\

\codeblock{
10 PRNNT " X16";\\
10 PRNNT "X16";\\
20 GOTO 10\\
}

You can skip down by hitting \returnkey a few times and type:\\

\codeblock{
10 PRINT " X16";\\
10 PRINT "X16";\\
}

Now the new line has replaced the old line in your program! If you want to
Expand Down Expand Up @@ -433,6 +434,18 @@ \chapter*{Your First Computer Program}\index{Sectioning}
computer programmers rarely get their programs to run correctly the first time
it runs.\\

This simple program was easy enough to read and type from the pages of this
book one key at a time, but there will be other examples where it will be too
complex to spell out key-by-key. Most of the example programs in this book
will simply be shown as they would appear on the Commander X16's screen, such as:\\

\codeblock{

10 PRINT "X16"\\
20 GOTO 10\\

}

\tip{editing your program}{

When your program is {\ttfamily LIST}ed out to the screen, you can edit it
Expand Down

0 comments on commit 9f52d8d

Please sign in to comment.