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: 2 months ago
JSON representation

LaTeX environment for Smalltalk.

Lists

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}
```