Answered By: Julie Shen Last Updated: Mar 22, 2016 Views: 389
The 8th edition of A Manual for Writers of Term Papers, Theses, and Dissertations, by Kate Turabian (2013) does not offer examples of citing source code.
To fill this gap, I've created a few examples to show some possible ways to cite source code by adapting from existing formats. Keep in mind the following examples are for the author-date format.
Source Code from Print
These examples follow the same format for citing a chapter or other parts of a book (sections 19.1.9 and 220.127.116.11), with the addition of the words "source code" at the end.
Milette, Greg, and Adam Stroud. 2012. "Chapter 11: Near Field Communication (NFC)." In
Professional Android Sensor Programming, 219-254. Somerset, NJ: Wiley. Source code.
Sakr, Sherif, and Anna Liu. 2012. "Chapter 5: Large-Scale Data Management Techniques in
Cloud Computing Platforms." In Data-Intensive Computing: Architectures, Algorithms,
and Applications, edited by Ian Gorton and Deborah K. Gracio, 85-123. West Nyack, NY:
Cambridge University Press. Source Code.
Source Code on Media
These examples follow the format for a CD-ROM or DVD-ROM (section 19.5.8), with the words "source code on CD-ROM" replacing "CD-ROM" or "DVD-ROM."
NetBSD 6.1.2. 2013. Source code on CD-ROM. The NetBSD Foundation.
Press, William, Saul Teukolsky, William Vetterling, and Brian Flannery. 2002. Numerical
Recipes Multi-Language Code. Source code on CD-ROM. New York, NY: Cambridge
Source Code Online
This example follows the format for a website (section 19.7.1), with the addition of the words "source code" at the end.
Apache OpenOffice. 2013. "Apache OpenOffice: The Free and Open Productivity Suite."
Accessed November 14, 2013. http://www.openoffice.org. Source code.
Questions? Please contact
Computer Science Librarian
- Hi Julie: I was wondering if you have any advice for how to get Microsoft Words Citation Editor to output the reference in the format you specified. I'm getting the following output using Turabian 6th Ed. for a website: "OpenCV KeyPoint". 2013. http://opencv.willowgarage.com/documentation/cpp/features2d_common_interfaces_of_feature_detectors.html#keypoint. Source Code. (accessed August 16th, 2013). Thanks for any help!
- Hi James,
Your output looks fine. Another alternative is to include the words in parenthesis in the title of the webpage, such as "OpenCV KeyPoint (Source Code)".
I looked at Microsoft Word's Reference Manager and wasn't able to locate a field where you could type in "Source code" and have it show up in the same sequence as my example, which I hope everyone understands is just a suggestion, and not official style guidance.
The important thing is to let your readers know you are referring to the source code, and you're definitely doing that.
Hope this helps,
Computer Science Librarian
Cal Poly Pomona
Call the Research Help Desk @
Visit the Research Help Desk for in-person help
Find a Subject Librarian
Subject Librarians can help with in-depth research
Text a Librarian
Text quick questions to email@example.com
Chat with a Librarian
Need more help? Chat in real-time with a librarian!