Skip to content

Commit c540246

Browse files
authored
Merge pull request #7 from bxparks/develop
merge 0.3.3 into master
2 parents f9aa1b4 + c982909 commit c540246

File tree

5 files changed

+151
-171
lines changed

5 files changed

+151
-171
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33
- Unreleased
4+
- 0.3.3 (2023-08-14)
5+
- Add `Makefile` targets for converting GitHub markdown files to PDF files.
6+
- Update some sections in `README.md` and `USER_GUIDE.md`.
7+
- No code change.
48
- 0.3.2 (2023-08-13)
59
- Add executive summary of the app at the top of README.md.
610
- No code change.

Makefile

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Convert GitHub-flavored Markdown to PDF, including embedded images.
2+
#
3+
# Requires pandoc and pdflatex. Here are the stackoverflow articles that helped
4+
# me solve this problem:
5+
#
6+
# - https://stackoverflow.com/questions/9998337 (pandoc)
7+
# - https://stackoverflow.com/questions/29240290 (pdflatex not found)
8+
# - https://stackoverflow.com/questions/13515893 (margin size)
9+
# - https://stackoverflow.com/questions/23811002 (fontsize)
10+
#
11+
# I use '-f gfm' instead of '-f markdown' to handler embedded images better.
12+
# The `-f mardown` option separates out the images into separate Figures which
13+
# are out of context from the text. The `-f gfm` embeds the images directly
14+
# into the flow of the text.
15+
16+
TARGETS := README.pdf \
17+
USER_GUIDE.pdf \
18+
rpn83p.8xk \
19+
rpn83p-example1.gif \
20+
rpn83p-example2.gif
21+
22+
# Create a zip file suitable for third party archives, like cemetech.net and
23+
# ticalc.org.
24+
rpn83p.zip: $(TARGETS)
25+
rm -f $@
26+
zip -r $@ $^
27+
28+
# Convert markdown to PDF.
29+
README.pdf: README.md Makefile
30+
pandoc -V geometry:margin=1in -V fontsize=12pt -f gfm -s -o $@ $<
31+
32+
# Convert markdown to PDF.
33+
USER_GUIDE.pdf: USER_GUIDE.md Makefile
34+
pandoc -V geometry:margin=1in -V fontsize=12pt -f gfm -s -o $@ $<
35+
36+
# Copy to local directory to place it at top level in the zip file.
37+
rpn83p.8xk: src/rpn83p.8xk
38+
cp -f $< $@
39+
40+
# Compile the binary if needed.
41+
src/rpn83p.8xk: src/*.asm
42+
$(MAKE) -C src rpn83p.8xk
43+
44+
# Copy the animated GIF as a sample screenshot.
45+
rpn83p-example1.gif: docs/rpn83p-example1.gif
46+
cp -f $< $@
47+
48+
# Copy the animated GIF as a sample screenshot.
49+
rpn83p-example2.gif: docs/rpn83p-example2.gif
50+
cp -f $< $@
51+
52+
clean:
53+
rm -f $(TARGETS)

README.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,28 @@ Here the quick summary of its features:
4848
- `SCI` (scientific 0-9 digits)
4949
- `ENG` (engineering 0-9 digits)
5050

51-
**Version**: 0.3.2 (2023-08-13)
51+
**Version**: 0.3.3 (2023-08-14)
5252

5353
**Changelog**: [CHANGELOG.md](CHANGELOG.md)
5454

55+
**Project Home**: https://github.com/bxparks/rpn83p
56+
5557
**User Guide**: [USER_GUIDE.md](USER_GUIDE.md)
5658

5759
## Table of Contents
5860

59-
- [Installation](#Installation)
60-
- [Supported Hardware](#SupportedHardware)
61-
- [Quick Examples](#QuickExamples)
62-
- [Example 1](#Example1)
63-
- [Example 2](#Example2)
64-
- [User Guide](#UserGuide)
65-
- [Compiling from Source](#Compiling)
66-
- [Tools and Resources](#ToolsResources)
67-
- [License](#License)
68-
- [Feedback](#Feedback)
69-
- [Author](#Author)
70-
71-
<a name="Installation"></a>
61+
- [Installation](#installation)
62+
- [Supported Hardware](#supported-hardware)
63+
- [Quick Examples](#quick-examples)
64+
- [Example 1](#example-1)
65+
- [Example 2](#example-2)
66+
- [User Guide](#user-guide)
67+
- [Compiling from Source](#compiling-from-source)
68+
- [Tools and Resources](#tools-and-resources)
69+
- [License](#license)
70+
- [Feedback](#feedback)
71+
- [Author](#author)
72+
7273
## Installation
7374

7475
RPN83P is a flash application that is packaged as a single file named
@@ -97,7 +98,6 @@ Since the RPN83P is a flash app, it is preserved when the RAM is cleared. It
9798
consumes about 300 bytes of RAM space for its internal RPN and storage
9899
registers.
99100

100-
<a name="SupportedHardware"></a>
101101
### Supported Hardware
102102

103103
This app was designed for TI calculators using the Z80 processor:
@@ -110,10 +110,8 @@ This app was designed for TI calculators using the Z80 processor:
110110
I have tested it on the two Z80 TI calculators that I have (both Silver
111111
Edition). It *should* work on the others, but I have not actually tested them.
112112

113-
<a name="QuickExamples"></a>
114113
## Quick Examples
115114

116-
<a name="Example1"></a>
117115
### Example 1
118116

119117
Let's compute the volume of a sphere of radius `2.1`. Recall that the volume of
@@ -142,7 +140,6 @@ Here is an animated GIF that shows this calculation:
142140
(Note that the RPN83P provides a `X^3` menu function that could have been used
143141
for this formula, but I used the `LastX` feature to demonstrate its use.)
144142

145-
<a name="Example2"></a>
146143
### Example 2
147144

148145
Let's calculate the bitwise-and operator between the hexadecimal numbers `B6`
@@ -179,12 +176,10 @@ Press:
179176

180177
> ![ROOT MenuStrip 1](docs/rpn83p-screenshot-menu-root-1.png)
181178
182-
<a name="UserGuide"></a>
183179
## User Guide
184180

185181
See the [RPN83P User Guide](USER_GUIDE.md).
186182

187-
<a name="Compiling"></a>
188183
## Compiling from Source
189184

190185
I use Ubuntu Linux 22.04 for my development. The following instructions have
@@ -203,7 +198,6 @@ been verified only on my dev machine.
203198
- `$ make`
204199
- Should produce a file named `rpn83p.8xk`.
205200

206-
<a name="ToolsResources"></a>
207201
## Tools and Resources
208202

209203
Here is the tools and resources that I use for development on Ubuntu Linux
@@ -257,12 +251,10 @@ Here is the tools and resources that I use for development on Ubuntu Linux
257251
place that I know which explains how to generate a flash app using the
258252
`spasm-ng` assembler.
259253

260-
<a name="License"></a>
261254
## License
262255

263256
[MIT License](https://opensource.org/licenses/MIT)
264257

265-
<a name="Feedback"></a>
266258
## Feedback and Support
267259

268260
If you have any questions, comments, or feature requests for this library,
@@ -278,7 +270,6 @@ Please refrain from emailing me directly unless the content is sensitive. The
278270
problem with email is that I cannot reference the email conversation when other
279271
people ask similar questions later.
280272

281-
<a name="Author"></a>
282273
## Author
283274

284275
Created by Brian T. Park ([email protected]).

0 commit comments

Comments
 (0)