Skip to content

Instantly share code, notes, and snippets.

@btbytes
Last active September 19, 2024 01:08
Show Gist options
  • Save btbytes/658d44f007481eb2e61abe5b39a8a265 to your computer and use it in GitHub Desktop.
Save btbytes/658d44f007481eb2e61abe5b39a8a265 to your computer and use it in GitHub Desktop.
moby dick in postscript using claude

Asked Claude to:

write a one page pamphlet about moby dick using postscript.

Convert the PS to PDF using:

ps2pdf mobydick.ps
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
%!PS-Adobe-3.0
%%BoundingBox: 0 0 612 792
%%Title: Moby Dick Pamphlet
%%Pages: 1
%%EndComments
/Helvetica findfont
12 scalefont
setfont
/centertext { % stack: string
dup stringwidth pop
612 exch sub 2 div
exch show
} def
/paragraph { % stack: x y string
3 dict begin
/str exch def
/y exch def
/x exch def
x y moveto
str show
end
} def
% Title
/Helvetica-Bold findfont
24 scalefont
setfont
306 700 moveto
(Moby Dick) centertext
% Author
/Helvetica findfont
14 scalefont
setfont
306 670 moveto
(by Herman Melville) centertext
% Content
/Helvetica findfont
12 scalefont
setfont
50 620 (Moby Dick, published in 1851, is Herman Melville's masterpiece of American) paragraph
50 600 (literature. This epic tale follows the obsessive quest of Captain Ahab to) paragraph
50 580 (hunt down a giant white sperm whale known as Moby Dick, which bit off) paragraph
50 560 (Ahab's leg in a previous encounter.) paragraph
50 520 (Narrated by the sailor Ishmael, the novel explores themes of good and) paragraph
50 500 (evil, obsession, and man's relationship with nature. The story is set in) paragraph
50 480 (the 1830s and provides a detailed and realistic portrayal of the whaling) paragraph
50 460 (industry of that time.) paragraph
50 420 (The book is renowned for its vivid characters, symbolic imagery, and) paragraph
50 400 (philosophical discussions. It combines adventure narrative with) paragraph
50 380 (detailed descriptions of the whaling process and reflections on) paragraph
50 360 (American society, human nature, and the existence of God.) paragraph
50 320 (Despite its initial commercial failure, Moby Dick is now considered a) paragraph
50 300 (Great American Novel and a significant work of the American Renaissance.) paragraph
50 280 (Its influence extends far beyond literature, permeating popular culture) paragraph
50 260 (and inspiring countless adaptations in various media.) paragraph
showpage
%%EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment