在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):SquareBracketAssociates/PharoByExample-english开源软件地址(OpenSource Url):https://github.com/SquareBracketAssociates/PharoByExample-english开源编程语言(OpenSource Language):TeX 87.1%开源软件介绍(OpenSource Introduction):Pharo by ExampleNote: This book is currently being revised and updated for Pharo 4 at Updated Pharo By Example (latest PDF). Pharo by Example (vol 1) is a practical introduction for Pharo, a Smalltalk-inspired programming language, IDE and live coding enviroment. This is the original LaTeX source repository of the Pharo by Example book, created for Pharo 1.4, and inspired by Squeak By Example (source code). TranslationsThere are translations PBE for the following languages (in various stages of completeness):
Deep Into Pharo (Pharo By Example vol 2)Deep into Pharo (source code) is the second volume of a series of books covering Pharo. Whereas the first volume is intended for newcomers, this second volume covers deeper topics. Contributing to Pharo by ExampleNote: This book is no longer under active development. Please consider contributing to Updated Pharo By Example, instead. To contribute to the book or to a translation project, please:
To start a new translation project:
See PBE-TO-DO.txt for status of tasks for PBE 1. Contributing to Deep Into Pharo (Pharo by Example vol 2)The source code for Deep Into Pharo is currently managed by SVN, and can be found at the Inria Forge Pharo By Example Two repository. To contribute to the book or to a translation project (we should finish it first), please:
See PBE-TO-DO.txt for status of tasks for PBE 2. File structureThe main file is PBE1.tex. Chapters are in subdirectories. You can latex either the entire book, or each individual chapter. Each chapter file starts and ends with the same incantation which will optionally include macros or end the document if it is latexed individually. Use the If you add a new chapter:
IMPORTANT: Please check out a fresh copy of the book and compile the book to verify that you have added all the dependent files (e.g., figures). MakefileTo build the PDF of the book, simply run PrintingThe book has been reformatted to 6"x9" (for Lulu). If you want to print any part of the book, you will find that printing 2 up at 140% works well. TestingTests are automatically generated from the LaTeX sources. Grab a recent Pharo image and move it to the folder Pharo book folder. Do not use a 1-click image, since the actual image should be located at the same level as the PBE1.tex file. To run the tests, load the package PBE-Testing from the following SqueakSource project:
Then evaluate the following expression in a workspace:
For PBE2, instead run:
This will automatically extract and run the tests in the LaTeX sources of the Pharo by Example book. It will also load the hands-on exercises, and check that they are working. (Some tests may also be included from the dependent hands-on packages.) This will parse (using Regex) the PBE1.tex (resp. PBE2.tex) to locate the included chapter files, parse each chapter file to search for @TEST annotations, generate test case classes for each chapter with tests in a new category PBE-GeneratedTests, and generate a test method (numbered by the line number in the chapter) for each test found. (NB: Any old generated tests are removed before new ones are generated.) Finally, by sending "runTests", a TestRunner is opened on the new category, and all those tests are run. How to write tests in LaTeXA sample test in the BasicClasses looks like this:
The "print it" invocation (-->) will generate an assertion. The generated source code looks like this:
You may also silently declare or initialize variables immediately after @TEST, and you may now place comments after the test string:
The generated testCase subclass is PBEBasicClassesTestCase. The generated tests can be removed by evaluating "PBEmain removeOldTestCategory". This is done automatically whenever you do "PBEmain new runTests". LaTeX versionPlease use at least texlive 2005. http://www.tug.org/texlive/ If you are using TeXshop or another GUI, be sure to set the path to the tex executables. E.g., in TeXShop>Preferences>Engine set the path to: /usr/local/texlive/2005/bin/powerpc-darwin For intel macs you will need texlive 2007. The path should be /usr/local/texlive/2007/bin/i386-darwin OmniGraffle filesPlease be sure to use Lucida Sans, not Helvetica, or you may have problems uploading the PDF to Lulu. See the font embedding FAQ on lulu.com See more detailed instructions in Cover/README.txt Style filesTo inform latex about the location of local style files, set the following environment variable (tcsh):
If you are using a GUI like TeXshop, you must set the environment variable in ~/.MacOSX/environment.plist :
NB: You may need to logout and login again after creating or modifying this file. Note colon at end of TEXINPUTS that means "append current value here" (eg local has higher priority). Double slash means search recursively. BibliographyThe bibliography file scg.bib is available from a separate git repository:
Alternatively, you can check out a read-only version as follows:
You should separately check out this file and link it in wherever it is needed. LicenseThis work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported http://creativecommons.org/licenses/by-sa/3.0/ You are free:
Under the following conditions: Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page. Any of the above conditions can be waived if you get permission from the copyright holder. Nothing in this license impairs or restricts the author's moral rights. DisclaimerYour fair dealing and other rights are in no way affected by the above. This is a human-readable summary of the Legal Code (the full license). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论