Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattonem/SmalltalkEnv
LaTeX environment for Smalltalk.
https://github.com/mattonem/SmalltalkEnv
latex latex-environment pharo smalltalk
Last synced: about 2 months ago
JSON representation
LaTeX environment for Smalltalk.
- Host: GitHub
- URL: https://github.com/mattonem/SmalltalkEnv
- Owner: mattonem
- License: mit
- Created: 2019-09-05T12:24:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-05T12:59:39.000Z (over 5 years ago)
- Last Synced: 2024-08-03T17:10:08.429Z (5 months ago)
- Topics: latex, latex-environment, pharo, smalltalk
- Language: TeX
- Homepage:
- Size: 69.3 KB
- Stars: 7
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pharo - SmalltalkEnv - LaTeX environment for Smalltalk. (LaTeX)
README
# Smalltalk environment for listings in LaTeX
Smalltalk code highlighting in LaTeX documents
![](img/ListingExample.png)
## How to use?
Just add the following line to your file:```Latex
\input{smalltalkEnv}
```
Then you can use:```Latex
\begin{lstlisting}[language=Smalltalk]
Collection >> adaptToCollection: rcvr andSend: selector
"If I am involved in arithmetic with another Collection, return a Collection of
the results of each element combined with the scalar in that expression."(rcvr isSequenceable and: [ self isSequenceable ]) ifFalse:
[self error: 'Only sequenceable collections may be combined arithmetically'].
^ rcvr with: self collect:
[:rcvrElement :myElement | rcvrElement perform: selector with: myElement]
\end{lstlisting}
```