Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
June 2012
- 102 participants
- 1402 messages
Re: [Pharo-project] Auto create new and initialize methods for new class?
by camille teruel
Dirty way:
You can modify
Class>>subclass:instanceVariableNames:classVariableNames:poolDictionaries:category:
like this:
subclass: t instanceVariableNames: f classVariableNames: d
poolDictionaries: s category: cat
"This is the standard initialization message for creating a new class as a
subclass of an existing class (the receiver)."
| newClass |
newClass := (ClassBuilder new)
superclass: self
subclass: t
instanceVariableNames: f
classVariableNames: d
poolDictionaries: s
category: cat.
newClass compile: 'initialize'.
^newClass.
2012/6/15 Conrad Taylor <conradwt(a)gmail.com>
> Hi, is there an automated setting which creates default new and initialize
> methods for a new class? BTW, I'm using Pharo 2.0-one-click. Well, I must
> go and thanks in advance.
>
> --
> *
> *
> *Think different and code well*,
>
> -Conrad
>
>
>
June 15, 2012
[Pharo-project] [update 2.0] #20133
by Esteban Lorenzano
20133
-----
Issue 6066: New Nautilus version
http://code.google.com/p/pharo/issues/detail?id=6066
Issue 6065: Improve BasicCodeLoader
http://code.google.com/p/pharo/issues/detail?id=6065
June 15, 2012
Re: [Pharo-project] Smalltalk syntax highlighting for Latex
by Mariano Martinez Peck
On Fri, Jun 15, 2012 at 4:05 PM, Javier Pimás <elpochodelagente(a)gmail.com>wrote:
> this is really cool!! Do you have the code for the example you posted?
>
>
yep, sorry, Luc already told me I should have done that. Pretty easy:
\begin{code}{}
testSimpleForwarder
| proxy |
proxy := TargetBasedProxy createProxyFor: (Point x: 3 y: 4) handler:
SimpleForwarderHandler new.
self assert: proxy x equals: 3.
self assert: (proxy perform: #y) equals: 4.
\end{code}
> Cheers!
>
>
> On Fri, Jun 15, 2012 at 5:37 AM, Mariano Martinez Peck <
> marianopeck(a)gmail.com> wrote:
>
>> Hi guys. I know that: a) for papers we usually write code in black and
>> white and b) even when we may want colors like books or thesis, we still
>> may not want to add colors.
>> Anyway, for my thesis, I do want to make the code a little bit nicer and
>> so I did some Smalltalk syntax highlighting with listings package. Not sure
>> if this would be helpful for someone else, but just in case, I paste at the
>> end the code.
>> Basically, I can detect (and therefore, choose a color/style):
>> globals/classes (start with uppercase), keywords, comments, strings,
>> symbols and numbers.
>> I also attach an screenshot.
>>
>> Cheers
>>
>> btw, thanks to Lukas and Luc for their help.
>>
>>
>>
>> % Source Code
>> \usepackage{color}
>> \usepackage{textcomp}
>> \usepackage{listings}
>> % \usepackage{needspace}
>> % \usepackage{ulem}
>>
>> \definecolor{source}{gray}{0.95}
>>
>> % my comment style
>> \newcommand{\myCommentStyle}[1]{{\footnotesize\ttfamily\itshape\color{gray!100!white}
>> #1}}
>>
>> % my string style
>> \newcommand{\myStringStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
>> #1}}
>>
>> % my symbol style
>> \newcommand{\mySymbolStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
>> #1}}
>>
>> % my keyword style
>> \newcommand{\myKeywordStyle}[1]{{\footnotesize\ttfamily\color{green!70!black}
>> #1}}
>>
>> % my global style
>> \newcommand{\myGlobalStyle}[1]{{\footnotesize\ttfamily\color{blue!100!black}
>> #1}}
>>
>> % my number style
>> \newcommand{\myNumberStyle}[1]{{\footnotesize\ttfamily\color{brown!100!black}
>> #1}}
>>
>> \lstset{
>> language={},
>> % characters
>> tabsize=3,
>> escapechar={!},
>> keepspaces=true,
>> breaklines=true,
>> alsoletter={\#},
>> breakautoindent=true,
>> columns=fullflexible,
>> showstringspaces=false,
>> % background
>> frame=single,
>> aboveskip=1em, % automatic space before
>> framerule=0pt,
>> basicstyle=\footnotesize\ttfamily\color{black},
>> keywordstyle=\myKeywordStyle,% keyword style
>> commentstyle=\myCommentStyle,% comment style
>> frame=single,%
>> backgroundcolor=\color{source},
>> % numbering
>> numbersep=5pt,
>> numberstyle=\myNumberStyle,
>> numberfirstline=true,
>> % caption
>> captionpos=b,
>> % formatting (html)
>> moredelim=[is][\textbf]{<b>}{</b>},
>> moredelim=[is][\textit]{<i>}{</i>},
>> moredelim=[is][\uline]{<u>}{</u>},
>> moredelim=[is][\color{red}\uwave]{<wave>}{</wave>},
>> moredelim=[is][\color{red}\sout]{<del>}{</del>},
>> moredelim=[is][\color{blue}\uline]{<ins>}{</ins>},
>> % smalltalk stuff
>> morecomment=[s][\myCommentStyle]{"}{"},
>> % morecomment=[s][\myvs]{|}{|},
>> morestring=[b][\myStringStyle]',
>> moredelim=[is][]{<sel>}{</sel>},
>> moredelim=[is][]{<rcv>}{</rcv>},
>> moredelim=[is][\itshape]{<symb>}{</symb>},
>> moredelim=[is][\scshape]{<class>}{</class>},
>> morekeywords={true,false,nil,self,super,thisContext},
>> identifierstyle=\idstyle,
>> }
>>
>>
>> \makeatletter
>> \newcommand*\idstyle[1]{%
>> \expandafter\id@style\the\lst@token{#1}\relax%
>> }
>> \def\id@style#1#2\relax{%
>> \ifnum\pdfstrcmp{#1}{\#}=0%
>> % this is a symbol
>> \mySymbolStyle{\the\lst@token}%
>> \else%
>> \edef\tempa{\uccode`#1}%
>> \edef\tempb{`#1}%
>> \ifnum\tempa=\tempb%
>> % this is a global
>> \myGlobalStyle{\the\lst@token}%
>> \else%
>> \the\lst@token%
>> \fi%
>> \fi%
>> }
>> \makeatother
>>
>>
>> \lstset{literate=%
>> *{0}{{{\myNumberStyle{0}}}}1
>> {1}{{{\myNumberStyle{1}}}}1
>> {2}{{{\myNumberStyle{2}}}}1
>> {3}{{{\myNumberStyle{3}}}}1
>> {4}{{{\myNumberStyle{4}}}}1
>> {5}{{{\myNumberStyle{5}}}}1
>> {6}{{{\myNumberStyle{6}}}}1
>> {7}{{{\myNumberStyle{7}}}}1
>> {8}{{{\myNumberStyle{8}}}}1
>> {9}{{{\myNumberStyle{9}}}}1
>> }
>>
>>
>> %\newcommand{\ct}{\lstinline[backgroundcolor=\color{white}]}
>> \newcommand{\needlines}[1]{\Needspace{#1\baselineskip}}
>> \newcommand{\lct}{\texttt}
>>
>>
>> \lstnewenvironment{code}{%
>> \lstset{%
>> % frame=lines,
>> frame=single,
>> framerule=0pt,
>> mathescape=false
>> }
>> }{}
>>
>>
>> \newenvironment{codeNonSmalltalk}
>> {\begin{alltt}\sffamily}
>> {\end{alltt}\normalsize}
>>
>>
>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>>
>
>
> --
> Lic. Javier Pimás
> Ciudad de Buenos Aires
>
--
Mariano
http://marianopeck.wordpress.com
June 15, 2012
[Pharo-project] Auto create new and initialize methods for new class?
by Conrad Taylor
Hi, is there an automated setting which creates default new and initialize
methods for a new class? BTW, I'm using Pharo 2.0-one-click. Well, I must
go and thanks in advance.
--
*
*
*Think different and code well*,
-Conrad
June 15, 2012
Re: [Pharo-project] Smalltalk syntax highlighting for Latex
by Javier Pimás
this is really cool!! Do you have the code for the example you posted?
Cheers!
On Fri, Jun 15, 2012 at 5:37 AM, Mariano Martinez Peck <
marianopeck(a)gmail.com> wrote:
> Hi guys. I know that: a) for papers we usually write code in black and
> white and b) even when we may want colors like books or thesis, we still
> may not want to add colors.
> Anyway, for my thesis, I do want to make the code a little bit nicer and
> so I did some Smalltalk syntax highlighting with listings package. Not sure
> if this would be helpful for someone else, but just in case, I paste at the
> end the code.
> Basically, I can detect (and therefore, choose a color/style):
> globals/classes (start with uppercase), keywords, comments, strings,
> symbols and numbers.
> I also attach an screenshot.
>
> Cheers
>
> btw, thanks to Lukas and Luc for their help.
>
>
>
> % Source Code
> \usepackage{color}
> \usepackage{textcomp}
> \usepackage{listings}
> % \usepackage{needspace}
> % \usepackage{ulem}
>
> \definecolor{source}{gray}{0.95}
>
> % my comment style
> \newcommand{\myCommentStyle}[1]{{\footnotesize\ttfamily\itshape\color{gray!100!white}
> #1}}
>
> % my string style
> \newcommand{\myStringStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
> #1}}
>
> % my symbol style
> \newcommand{\mySymbolStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
> #1}}
>
> % my keyword style
> \newcommand{\myKeywordStyle}[1]{{\footnotesize\ttfamily\color{green!70!black}
> #1}}
>
> % my global style
> \newcommand{\myGlobalStyle}[1]{{\footnotesize\ttfamily\color{blue!100!black}
> #1}}
>
> % my number style
> \newcommand{\myNumberStyle}[1]{{\footnotesize\ttfamily\color{brown!100!black}
> #1}}
>
> \lstset{
> language={},
> % characters
> tabsize=3,
> escapechar={!},
> keepspaces=true,
> breaklines=true,
> alsoletter={\#},
> breakautoindent=true,
> columns=fullflexible,
> showstringspaces=false,
> % background
> frame=single,
> aboveskip=1em, % automatic space before
> framerule=0pt,
> basicstyle=\footnotesize\ttfamily\color{black},
> keywordstyle=\myKeywordStyle,% keyword style
> commentstyle=\myCommentStyle,% comment style
> frame=single,%
> backgroundcolor=\color{source},
> % numbering
> numbersep=5pt,
> numberstyle=\myNumberStyle,
> numberfirstline=true,
> % caption
> captionpos=b,
> % formatting (html)
> moredelim=[is][\textbf]{<b>}{</b>},
> moredelim=[is][\textit]{<i>}{</i>},
> moredelim=[is][\uline]{<u>}{</u>},
> moredelim=[is][\color{red}\uwave]{<wave>}{</wave>},
> moredelim=[is][\color{red}\sout]{<del>}{</del>},
> moredelim=[is][\color{blue}\uline]{<ins>}{</ins>},
> % smalltalk stuff
> morecomment=[s][\myCommentStyle]{"}{"},
> % morecomment=[s][\myvs]{|}{|},
> morestring=[b][\myStringStyle]',
> moredelim=[is][]{<sel>}{</sel>},
> moredelim=[is][]{<rcv>}{</rcv>},
> moredelim=[is][\itshape]{<symb>}{</symb>},
> moredelim=[is][\scshape]{<class>}{</class>},
> morekeywords={true,false,nil,self,super,thisContext},
> identifierstyle=\idstyle,
> }
>
>
> \makeatletter
> \newcommand*\idstyle[1]{%
> \expandafter\id@style\the\lst@token{#1}\relax%
> }
> \def\id@style#1#2\relax{%
> \ifnum\pdfstrcmp{#1}{\#}=0%
> % this is a symbol
> \mySymbolStyle{\the\lst@token}%
> \else%
> \edef\tempa{\uccode`#1}%
> \edef\tempb{`#1}%
> \ifnum\tempa=\tempb%
> % this is a global
> \myGlobalStyle{\the\lst@token}%
> \else%
> \the\lst@token%
> \fi%
> \fi%
> }
> \makeatother
>
>
> \lstset{literate=%
> *{0}{{{\myNumberStyle{0}}}}1
> {1}{{{\myNumberStyle{1}}}}1
> {2}{{{\myNumberStyle{2}}}}1
> {3}{{{\myNumberStyle{3}}}}1
> {4}{{{\myNumberStyle{4}}}}1
> {5}{{{\myNumberStyle{5}}}}1
> {6}{{{\myNumberStyle{6}}}}1
> {7}{{{\myNumberStyle{7}}}}1
> {8}{{{\myNumberStyle{8}}}}1
> {9}{{{\myNumberStyle{9}}}}1
> }
>
>
> %\newcommand{\ct}{\lstinline[backgroundcolor=\color{white}]}
> \newcommand{\needlines}[1]{\Needspace{#1\baselineskip}}
> \newcommand{\lct}{\texttt}
>
>
> \lstnewenvironment{code}{%
> \lstset{%
> % frame=lines,
> frame=single,
> framerule=0pt,
> mathescape=false
> }
> }{}
>
>
> \newenvironment{codeNonSmalltalk}
> {\begin{alltt}\sffamily}
> {\end{alltt}\normalsize}
>
>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>
--
Lic. Javier Pimás
Ciudad de Buenos Aires
June 15, 2012
Re: [Pharo-project] Smalltalk syntax highlighting for Latex
by S Krish
Lyx works cross platform..
On Fri, Jun 15, 2012 at 2:26 PM, camille teruel <camille.teruel(a)gmail.com>wrote:
> +1 for lyx
>
>
> 2012/6/15 S Krish <krishnamachari.sudhakar(a)gmail.com>
>
>> Lyx on Linux helps on Latex formatting in a WYSIWYG mode..
>>
>>
>> On Fri, Jun 15, 2012 at 2:07 PM, Mariano Martinez Peck <
>> marianopeck(a)gmail.com> wrote:
>>
>>> Hi guys. I know that: a) for papers we usually write code in black and
>>> white and b) even when we may want colors like books or thesis, we still
>>> may not want to add colors.
>>> Anyway, for my thesis, I do want to make the code a little bit nicer and
>>> so I did some Smalltalk syntax highlighting with listings package. Not sure
>>> if this would be helpful for someone else, but just in case, I paste at the
>>> end the code.
>>> Basically, I can detect (and therefore, choose a color/style):
>>> globals/classes (start with uppercase), keywords, comments, strings,
>>> symbols and numbers.
>>> I also attach an screenshot.
>>>
>>> Cheers
>>>
>>> btw, thanks to Lukas and Luc for their help.
>>>
>>>
>>>
>>> % Source Code
>>> \usepackage{color}
>>> \usepackage{textcomp}
>>> \usepackage{listings}
>>> % \usepackage{needspace}
>>> % \usepackage{ulem}
>>>
>>> \definecolor{source}{gray}{0.95}
>>>
>>> % my comment style
>>> \newcommand{\myCommentStyle}[1]{{\footnotesize\ttfamily\itshape\color{gray!100!white}
>>> #1}}
>>>
>>> % my string style
>>> \newcommand{\myStringStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
>>> #1}}
>>>
>>> % my symbol style
>>> \newcommand{\mySymbolStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
>>> #1}}
>>>
>>> % my keyword style
>>> \newcommand{\myKeywordStyle}[1]{{\footnotesize\ttfamily\color{green!70!black}
>>> #1}}
>>>
>>> % my global style
>>> \newcommand{\myGlobalStyle}[1]{{\footnotesize\ttfamily\color{blue!100!black}
>>> #1}}
>>>
>>> % my number style
>>> \newcommand{\myNumberStyle}[1]{{\footnotesize\ttfamily\color{brown!100!black}
>>> #1}}
>>>
>>> \lstset{
>>> language={},
>>> % characters
>>> tabsize=3,
>>> escapechar={!},
>>> keepspaces=true,
>>> breaklines=true,
>>> alsoletter={\#},
>>> breakautoindent=true,
>>> columns=fullflexible,
>>> showstringspaces=false,
>>> % background
>>> frame=single,
>>> aboveskip=1em, % automatic space before
>>> framerule=0pt,
>>> basicstyle=\footnotesize\ttfamily\color{black},
>>> keywordstyle=\myKeywordStyle,% keyword style
>>> commentstyle=\myCommentStyle,% comment style
>>> frame=single,%
>>> backgroundcolor=\color{source},
>>> % numbering
>>> numbersep=5pt,
>>> numberstyle=\myNumberStyle,
>>> numberfirstline=true,
>>> % caption
>>> captionpos=b,
>>> % formatting (html)
>>> moredelim=[is][\textbf]{<b>}{</b>},
>>> moredelim=[is][\textit]{<i>}{</i>},
>>> moredelim=[is][\uline]{<u>}{</u>},
>>> moredelim=[is][\color{red}\uwave]{<wave>}{</wave>},
>>> moredelim=[is][\color{red}\sout]{<del>}{</del>},
>>> moredelim=[is][\color{blue}\uline]{<ins>}{</ins>},
>>> % smalltalk stuff
>>> morecomment=[s][\myCommentStyle]{"}{"},
>>> % morecomment=[s][\myvs]{|}{|},
>>> morestring=[b][\myStringStyle]',
>>> moredelim=[is][]{<sel>}{</sel>},
>>> moredelim=[is][]{<rcv>}{</rcv>},
>>> moredelim=[is][\itshape]{<symb>}{</symb>},
>>> moredelim=[is][\scshape]{<class>}{</class>},
>>> morekeywords={true,false,nil,self,super,thisContext},
>>> identifierstyle=\idstyle,
>>> }
>>>
>>>
>>> \makeatletter
>>> \newcommand*\idstyle[1]{%
>>> \expandafter\id@style\the\lst@token{#1}\relax%
>>> }
>>> \def\id@style#1#2\relax{%
>>> \ifnum\pdfstrcmp{#1}{\#}=0%
>>> % this is a symbol
>>> \mySymbolStyle{\the\lst@token}%
>>> \else%
>>> \edef\tempa{\uccode`#1}%
>>> \edef\tempb{`#1}%
>>> \ifnum\tempa=\tempb%
>>> % this is a global
>>> \myGlobalStyle{\the\lst@token}%
>>> \else%
>>> \the\lst@token%
>>> \fi%
>>> \fi%
>>> }
>>> \makeatother
>>>
>>>
>>> \lstset{literate=%
>>> *{0}{{{\myNumberStyle{0}}}}1
>>> {1}{{{\myNumberStyle{1}}}}1
>>> {2}{{{\myNumberStyle{2}}}}1
>>> {3}{{{\myNumberStyle{3}}}}1
>>> {4}{{{\myNumberStyle{4}}}}1
>>> {5}{{{\myNumberStyle{5}}}}1
>>> {6}{{{\myNumberStyle{6}}}}1
>>> {7}{{{\myNumberStyle{7}}}}1
>>> {8}{{{\myNumberStyle{8}}}}1
>>> {9}{{{\myNumberStyle{9}}}}1
>>> }
>>>
>>>
>>> %\newcommand{\ct}{\lstinline[backgroundcolor=\color{white}]}
>>> \newcommand{\needlines}[1]{\Needspace{#1\baselineskip}}
>>> \newcommand{\lct}{\texttt}
>>>
>>>
>>> \lstnewenvironment{code}{%
>>> \lstset{%
>>> % frame=lines,
>>> frame=single,
>>> framerule=0pt,
>>> mathescape=false
>>> }
>>> }{}
>>>
>>>
>>> \newenvironment{codeNonSmalltalk}
>>> {\begin{alltt}\sffamily}
>>> {\end{alltt}\normalsize}
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Mariano
>>> http://marianopeck.wordpress.com
>>>
>>>
>>
>
June 15, 2012
Re: [Pharo-project] Smalltalk syntax highlighting for Latex
by camille teruel
+1 for lyx
2012/6/15 S Krish <krishnamachari.sudhakar(a)gmail.com>
> Lyx on Linux helps on Latex formatting in a WYSIWYG mode..
>
>
> On Fri, Jun 15, 2012 at 2:07 PM, Mariano Martinez Peck <
> marianopeck(a)gmail.com> wrote:
>
>> Hi guys. I know that: a) for papers we usually write code in black and
>> white and b) even when we may want colors like books or thesis, we still
>> may not want to add colors.
>> Anyway, for my thesis, I do want to make the code a little bit nicer and
>> so I did some Smalltalk syntax highlighting with listings package. Not sure
>> if this would be helpful for someone else, but just in case, I paste at the
>> end the code.
>> Basically, I can detect (and therefore, choose a color/style):
>> globals/classes (start with uppercase), keywords, comments, strings,
>> symbols and numbers.
>> I also attach an screenshot.
>>
>> Cheers
>>
>> btw, thanks to Lukas and Luc for their help.
>>
>>
>>
>> % Source Code
>> \usepackage{color}
>> \usepackage{textcomp}
>> \usepackage{listings}
>> % \usepackage{needspace}
>> % \usepackage{ulem}
>>
>> \definecolor{source}{gray}{0.95}
>>
>> % my comment style
>> \newcommand{\myCommentStyle}[1]{{\footnotesize\ttfamily\itshape\color{gray!100!white}
>> #1}}
>>
>> % my string style
>> \newcommand{\myStringStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
>> #1}}
>>
>> % my symbol style
>> \newcommand{\mySymbolStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
>> #1}}
>>
>> % my keyword style
>> \newcommand{\myKeywordStyle}[1]{{\footnotesize\ttfamily\color{green!70!black}
>> #1}}
>>
>> % my global style
>> \newcommand{\myGlobalStyle}[1]{{\footnotesize\ttfamily\color{blue!100!black}
>> #1}}
>>
>> % my number style
>> \newcommand{\myNumberStyle}[1]{{\footnotesize\ttfamily\color{brown!100!black}
>> #1}}
>>
>> \lstset{
>> language={},
>> % characters
>> tabsize=3,
>> escapechar={!},
>> keepspaces=true,
>> breaklines=true,
>> alsoletter={\#},
>> breakautoindent=true,
>> columns=fullflexible,
>> showstringspaces=false,
>> % background
>> frame=single,
>> aboveskip=1em, % automatic space before
>> framerule=0pt,
>> basicstyle=\footnotesize\ttfamily\color{black},
>> keywordstyle=\myKeywordStyle,% keyword style
>> commentstyle=\myCommentStyle,% comment style
>> frame=single,%
>> backgroundcolor=\color{source},
>> % numbering
>> numbersep=5pt,
>> numberstyle=\myNumberStyle,
>> numberfirstline=true,
>> % caption
>> captionpos=b,
>> % formatting (html)
>> moredelim=[is][\textbf]{<b>}{</b>},
>> moredelim=[is][\textit]{<i>}{</i>},
>> moredelim=[is][\uline]{<u>}{</u>},
>> moredelim=[is][\color{red}\uwave]{<wave>}{</wave>},
>> moredelim=[is][\color{red}\sout]{<del>}{</del>},
>> moredelim=[is][\color{blue}\uline]{<ins>}{</ins>},
>> % smalltalk stuff
>> morecomment=[s][\myCommentStyle]{"}{"},
>> % morecomment=[s][\myvs]{|}{|},
>> morestring=[b][\myStringStyle]',
>> moredelim=[is][]{<sel>}{</sel>},
>> moredelim=[is][]{<rcv>}{</rcv>},
>> moredelim=[is][\itshape]{<symb>}{</symb>},
>> moredelim=[is][\scshape]{<class>}{</class>},
>> morekeywords={true,false,nil,self,super,thisContext},
>> identifierstyle=\idstyle,
>> }
>>
>>
>> \makeatletter
>> \newcommand*\idstyle[1]{%
>> \expandafter\id@style\the\lst@token{#1}\relax%
>> }
>> \def\id@style#1#2\relax{%
>> \ifnum\pdfstrcmp{#1}{\#}=0%
>> % this is a symbol
>> \mySymbolStyle{\the\lst@token}%
>> \else%
>> \edef\tempa{\uccode`#1}%
>> \edef\tempb{`#1}%
>> \ifnum\tempa=\tempb%
>> % this is a global
>> \myGlobalStyle{\the\lst@token}%
>> \else%
>> \the\lst@token%
>> \fi%
>> \fi%
>> }
>> \makeatother
>>
>>
>> \lstset{literate=%
>> *{0}{{{\myNumberStyle{0}}}}1
>> {1}{{{\myNumberStyle{1}}}}1
>> {2}{{{\myNumberStyle{2}}}}1
>> {3}{{{\myNumberStyle{3}}}}1
>> {4}{{{\myNumberStyle{4}}}}1
>> {5}{{{\myNumberStyle{5}}}}1
>> {6}{{{\myNumberStyle{6}}}}1
>> {7}{{{\myNumberStyle{7}}}}1
>> {8}{{{\myNumberStyle{8}}}}1
>> {9}{{{\myNumberStyle{9}}}}1
>> }
>>
>>
>> %\newcommand{\ct}{\lstinline[backgroundcolor=\color{white}]}
>> \newcommand{\needlines}[1]{\Needspace{#1\baselineskip}}
>> \newcommand{\lct}{\texttt}
>>
>>
>> \lstnewenvironment{code}{%
>> \lstset{%
>> % frame=lines,
>> frame=single,
>> framerule=0pt,
>> mathescape=false
>> }
>> }{}
>>
>>
>> \newenvironment{codeNonSmalltalk}
>> {\begin{alltt}\sffamily}
>> {\end{alltt}\normalsize}
>>
>>
>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>>
>
June 15, 2012
Re: [Pharo-project] Smalltalk syntax highlighting for Latex
by S Krish
Lyx on Linux helps on Latex formatting in a WYSIWYG mode..
On Fri, Jun 15, 2012 at 2:07 PM, Mariano Martinez Peck <
marianopeck(a)gmail.com> wrote:
> Hi guys. I know that: a) for papers we usually write code in black and
> white and b) even when we may want colors like books or thesis, we still
> may not want to add colors.
> Anyway, for my thesis, I do want to make the code a little bit nicer and
> so I did some Smalltalk syntax highlighting with listings package. Not sure
> if this would be helpful for someone else, but just in case, I paste at the
> end the code.
> Basically, I can detect (and therefore, choose a color/style):
> globals/classes (start with uppercase), keywords, comments, strings,
> symbols and numbers.
> I also attach an screenshot.
>
> Cheers
>
> btw, thanks to Lukas and Luc for their help.
>
>
>
> % Source Code
> \usepackage{color}
> \usepackage{textcomp}
> \usepackage{listings}
> % \usepackage{needspace}
> % \usepackage{ulem}
>
> \definecolor{source}{gray}{0.95}
>
> % my comment style
> \newcommand{\myCommentStyle}[1]{{\footnotesize\ttfamily\itshape\color{gray!100!white}
> #1}}
>
> % my string style
> \newcommand{\myStringStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
> #1}}
>
> % my symbol style
> \newcommand{\mySymbolStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
> #1}}
>
> % my keyword style
> \newcommand{\myKeywordStyle}[1]{{\footnotesize\ttfamily\color{green!70!black}
> #1}}
>
> % my global style
> \newcommand{\myGlobalStyle}[1]{{\footnotesize\ttfamily\color{blue!100!black}
> #1}}
>
> % my number style
> \newcommand{\myNumberStyle}[1]{{\footnotesize\ttfamily\color{brown!100!black}
> #1}}
>
> \lstset{
> language={},
> % characters
> tabsize=3,
> escapechar={!},
> keepspaces=true,
> breaklines=true,
> alsoletter={\#},
> breakautoindent=true,
> columns=fullflexible,
> showstringspaces=false,
> % background
> frame=single,
> aboveskip=1em, % automatic space before
> framerule=0pt,
> basicstyle=\footnotesize\ttfamily\color{black},
> keywordstyle=\myKeywordStyle,% keyword style
> commentstyle=\myCommentStyle,% comment style
> frame=single,%
> backgroundcolor=\color{source},
> % numbering
> numbersep=5pt,
> numberstyle=\myNumberStyle,
> numberfirstline=true,
> % caption
> captionpos=b,
> % formatting (html)
> moredelim=[is][\textbf]{<b>}{</b>},
> moredelim=[is][\textit]{<i>}{</i>},
> moredelim=[is][\uline]{<u>}{</u>},
> moredelim=[is][\color{red}\uwave]{<wave>}{</wave>},
> moredelim=[is][\color{red}\sout]{<del>}{</del>},
> moredelim=[is][\color{blue}\uline]{<ins>}{</ins>},
> % smalltalk stuff
> morecomment=[s][\myCommentStyle]{"}{"},
> % morecomment=[s][\myvs]{|}{|},
> morestring=[b][\myStringStyle]',
> moredelim=[is][]{<sel>}{</sel>},
> moredelim=[is][]{<rcv>}{</rcv>},
> moredelim=[is][\itshape]{<symb>}{</symb>},
> moredelim=[is][\scshape]{<class>}{</class>},
> morekeywords={true,false,nil,self,super,thisContext},
> identifierstyle=\idstyle,
> }
>
>
> \makeatletter
> \newcommand*\idstyle[1]{%
> \expandafter\id@style\the\lst@token{#1}\relax%
> }
> \def\id@style#1#2\relax{%
> \ifnum\pdfstrcmp{#1}{\#}=0%
> % this is a symbol
> \mySymbolStyle{\the\lst@token}%
> \else%
> \edef\tempa{\uccode`#1}%
> \edef\tempb{`#1}%
> \ifnum\tempa=\tempb%
> % this is a global
> \myGlobalStyle{\the\lst@token}%
> \else%
> \the\lst@token%
> \fi%
> \fi%
> }
> \makeatother
>
>
> \lstset{literate=%
> *{0}{{{\myNumberStyle{0}}}}1
> {1}{{{\myNumberStyle{1}}}}1
> {2}{{{\myNumberStyle{2}}}}1
> {3}{{{\myNumberStyle{3}}}}1
> {4}{{{\myNumberStyle{4}}}}1
> {5}{{{\myNumberStyle{5}}}}1
> {6}{{{\myNumberStyle{6}}}}1
> {7}{{{\myNumberStyle{7}}}}1
> {8}{{{\myNumberStyle{8}}}}1
> {9}{{{\myNumberStyle{9}}}}1
> }
>
>
> %\newcommand{\ct}{\lstinline[backgroundcolor=\color{white}]}
> \newcommand{\needlines}[1]{\Needspace{#1\baselineskip}}
> \newcommand{\lct}{\texttt}
>
>
> \lstnewenvironment{code}{%
> \lstset{%
> % frame=lines,
> frame=single,
> framerule=0pt,
> mathescape=false
> }
> }{}
>
>
> \newenvironment{codeNonSmalltalk}
> {\begin{alltt}\sffamily}
> {\end{alltt}\normalsize}
>
>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>
June 15, 2012
[Pharo-project] Smalltalk syntax highlighting for Latex
by Mariano Martinez Peck
Hi guys. I know that: a) for papers we usually write code in black and
white and b) even when we may want colors like books or thesis, we still
may not want to add colors.
Anyway, for my thesis, I do want to make the code a little bit nicer and so
I did some Smalltalk syntax highlighting with listings package. Not sure if
this would be helpful for someone else, but just in case, I paste at the
end the code.
Basically, I can detect (and therefore, choose a color/style):
globals/classes (start with uppercase), keywords, comments, strings,
symbols and numbers.
I also attach an screenshot.
Cheers
btw, thanks to Lukas and Luc for their help.
% Source Code
\usepackage{color}
\usepackage{textcomp}
\usepackage{listings}
% \usepackage{needspace}
% \usepackage{ulem}
\definecolor{source}{gray}{0.95}
% my comment style
\newcommand{\myCommentStyle}[1]{{\footnotesize\ttfamily\itshape\color{gray!100!white}
#1}}
% my string style
\newcommand{\myStringStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
#1}}
% my symbol style
\newcommand{\mySymbolStyle}[1]{{\footnotesize\ttfamily\color{violet!100!black}
#1}}
% my keyword style
\newcommand{\myKeywordStyle}[1]{{\footnotesize\ttfamily\color{green!70!black}
#1}}
% my global style
\newcommand{\myGlobalStyle}[1]{{\footnotesize\ttfamily\color{blue!100!black}
#1}}
% my number style
\newcommand{\myNumberStyle}[1]{{\footnotesize\ttfamily\color{brown!100!black}
#1}}
\lstset{
language={},
% characters
tabsize=3,
escapechar={!},
keepspaces=true,
breaklines=true,
alsoletter={\#},
breakautoindent=true,
columns=fullflexible,
showstringspaces=false,
% background
frame=single,
aboveskip=1em, % automatic space before
framerule=0pt,
basicstyle=\footnotesize\ttfamily\color{black},
keywordstyle=\myKeywordStyle,% keyword style
commentstyle=\myCommentStyle,% comment style
frame=single,%
backgroundcolor=\color{source},
% numbering
numbersep=5pt,
numberstyle=\myNumberStyle,
numberfirstline=true,
% caption
captionpos=b,
% formatting (html)
moredelim=[is][\textbf]{<b>}{</b>},
moredelim=[is][\textit]{<i>}{</i>},
moredelim=[is][\uline]{<u>}{</u>},
moredelim=[is][\color{red}\uwave]{<wave>}{</wave>},
moredelim=[is][\color{red}\sout]{<del>}{</del>},
moredelim=[is][\color{blue}\uline]{<ins>}{</ins>},
% smalltalk stuff
morecomment=[s][\myCommentStyle]{"}{"},
% morecomment=[s][\myvs]{|}{|},
morestring=[b][\myStringStyle]',
moredelim=[is][]{<sel>}{</sel>},
moredelim=[is][]{<rcv>}{</rcv>},
moredelim=[is][\itshape]{<symb>}{</symb>},
moredelim=[is][\scshape]{<class>}{</class>},
morekeywords={true,false,nil,self,super,thisContext},
identifierstyle=\idstyle,
}
\makeatletter
\newcommand*\idstyle[1]{%
\expandafter\id@style\the\lst@token{#1}\relax%
}
\def\id@style#1#2\relax{%
\ifnum\pdfstrcmp{#1}{\#}=0%
% this is a symbol
\mySymbolStyle{\the\lst@token}%
\else%
\edef\tempa{\uccode`#1}%
\edef\tempb{`#1}%
\ifnum\tempa=\tempb%
% this is a global
\myGlobalStyle{\the\lst@token}%
\else%
\the\lst@token%
\fi%
\fi%
}
\makeatother
\lstset{literate=%
*{0}{{{\myNumberStyle{0}}}}1
{1}{{{\myNumberStyle{1}}}}1
{2}{{{\myNumberStyle{2}}}}1
{3}{{{\myNumberStyle{3}}}}1
{4}{{{\myNumberStyle{4}}}}1
{5}{{{\myNumberStyle{5}}}}1
{6}{{{\myNumberStyle{6}}}}1
{7}{{{\myNumberStyle{7}}}}1
{8}{{{\myNumberStyle{8}}}}1
{9}{{{\myNumberStyle{9}}}}1
}
%\newcommand{\ct}{\lstinline[backgroundcolor=\color{white}]}
\newcommand{\needlines}[1]{\Needspace{#1\baselineskip}}
\newcommand{\lct}{\texttt}
\lstnewenvironment{code}{%
\lstset{%
% frame=lines,
frame=single,
framerule=0pt,
mathescape=false
}
}{}
\newenvironment{codeNonSmalltalk}
{\begin{alltt}\sffamily}
{\end{alltt}\normalsize}
--
Mariano
http://marianopeck.wordpress.com
June 15, 2012
Re: [Pharo-project] donating money
by Sven Van Caekenberghe
Stéphane,
This looks really great, we should move forward with this now that there is this positive momentum.
Here are some remarks:
- The individual levels, 40 and 99 seem right, are they yearly too ?
- I would give the individual levels more attractive names:
- Individual (Pharo Consortium) Member [ which would include students ]
- Professional (Individual) (Pharo Consortium) Member
- The bronze, silver, gold levels (1000, 2000 & 4000 yearly) without reference to company/organization size are great. I would not put in a separate line for institutions. Companies, organizations, institutions, research labs and universities should all be able to choose one of the 3 levels, depending on how important Pharo is for them or on how large their use of Pharo is. A small organization could be a gold member if they live or die with Pharo, a multinational could be a bronze member if they only have a small team using Pharo occasionally.
- The goodies/extras at the different levels seem about right.
- The license concept has a wrong, even dangerous name, maybe we could call it End User Support Contract ?
- The general day price of 800 sounds a bit high, 600 (75/h) seems a bit more acceptable (but even that is high in an international contest).
- The price for the job offering also seems quite high, it is a small community.
- Since we are talking about yearly subscriptions, we'll have to track start/stop intervals carefully since not every subscription will start/stop at the same time. It will be a challenge to properly represent this on the website.
Sven
On 14 Jun 2012, at 22:50, Stéphane Ducasse wrote:
> Hi cameron
>
> right now there is no simple way to give money to pharo but we are working on it. What is the amount that you have in mind.
> here is a sketch about what we are thinking after I gathered the ideas people mentioned during the pharo conference.
>
>
>
>
>
> Individus managed via the association
> =================
> - Supporter 40 Euros + cup/goody
> reduction at conference
>
> - Ambassador Supporter 99 Euros
> reduction at conferences + cup
>
> - Donation
>
> - Training sessions cheaper
>
> - Conference reduction
>
> managed by INRIA
> =========
>
> A company or an institution can be a consortium member:
>
> The annual fees are
> - Bronze 1000 Euros
> - Silver 2000 Euros
> - Gold 4000 Euros
>
> Institutions 1000 Euros
>
> Main advantages for members.
> ==========================
> Non individual members of the consortium get the following advantages:
> - privileged access to the core development team via a specific mailing-list
> pharo-core-team-for-members(a)lists.gforge.inria.fr
>
> - influence priorities of the next development. The member will be able to propose
> agenda point and items for the core team. They will be requested one month in
> advance before the annual committee meeting.
>
> - get access to privileged support
>
> - Bronze gets one day of support and platinum sponsor status.
>
> - Silver two days of support + one job description for job dashboard and platinum sponsor status.
>
> - Gold four days of support + 3 job description for job dashboard and platinum sponsor status.
>
> - Training special prices and possibility to become pharo trainer
> - Member can advertise themselves on the consortium web site
> - Member can also ask and pay for extra support days at 1000 Euros per day.
> - The consortium can provide access experts for certain tasks.
>
> Sponsoring
> =============
> normal 500 Euros
> platinium 1000 Euros
> - Sponsor will get their logos name exposed to the consortium web site.
> (the idea is that small companies can pay something)
>
>
> License 500 Euros
> =============
> - via a member a non member company can also ask and **pay** for extra support days at 800 Euros per day.
> - via a member a non member company can also get privileged access to core dev via a mailing-list.
> (the idea there is to make it like an insurance or a way to people to donate)
>
> Job offers dashboard
> =============
> External entities can post job offers to the consortium job offers for
> 1000 Euros for one job
> 2000 Euros for an undefined number
>
>
> Gouvernance: steering committee
>
> ⢠A steering committee is composed of one representative of each member (except individuals)
>
> ⢠The chairman of this committee will be Inria
>
> ⢠Agenda : will be established by Inria on proposals of the members (the members will be queried a month in advance)
>
> ⢠Meeting : at least once every year
>
> ⢠Role :
> -Follow the execution of the PHARO R&D Team
> -Validate and give input about the task list
> -Identify members of the executing commitee
> -Prepare, organize conferences, seminars or other animations to promote PHARO and have new members
> -Revise the annual fee
> ⢠Decisions making : after consultation and collect of representative member points of views, Inria takes the final decision.
>
>
> Technical Executing Committee (akaR&D task)
> â¢Members proposed by the steering board and RMOD Team
> â¢Study, analyse and validate external contributions for PHARO
> â¢Report to the steering commitee
> â¢Propose, schedule and implement tasks in conformance with the tasks list presented and approved the steering
> â¢Coordinate the release Pharo and its VMs
>
>
> Stef
>
>
>
>
>
>
>
> On Jun 14, 2012, at 9:34 PM, Cameron Sanders wrote:
>
>> I am under the impression that I can donate money to the Pharo group through gforge.inria.fr. Is it possible to donate with a credit card right through their website? If so, can you please share the link to that page? [My tired eyes are not seeing it today and my searches are failing too.] Thanks in advance.
>>
>> -Cam
>
>
June 15, 2012