Okay, I'm not sure how to get the formatting quite right... but here
is a sample:
'''{{Smallcaps| Average}}''' (numbers)
# total = 0
# '''for''' number ∈ numbers '''do'''
#: total = total + number
# '''end for'''
# return numbers / {{Smallcaps | Length}}(numbers)
this isn't *too* bad to write... I want to figure out how to get
explicit spacing with the numbering... and then I'll try it on a
collection of algorithms that I need to wikify and report back the
results.
Does anyone know how to get the numbering to work better?
AJ
On Fri, Jul 2, 2010 at 2:37 PM, Adrien Guillon <[email protected]> wrote:
> Okay, I've played around a bit with my wiki and unicode. It is indeed
> the best option. Resized text looks nice, and for my purposes this
> works quite well. Inserting the unicode text is a bit of a pain,
> since right now I am copying and pasting the text... but I recently
> found that there are entity definitions, like ∉ which make this
> much easier to edit.
>
> The only thing to do now, is to check how indentation is going to
> work, along with line numbering. I'll play with it a bit more, and I
> will see about sharing an example of a typeset algorithm here.
>
> On Wed, Jun 30, 2010 at 2:37 PM, Ilmari Karonen <[email protected]> wrote:
>> On 06/30/2010 09:32 PM, Ilmari Karonen wrote:
>>> On 06/30/2010 06:14 AM, Adrien Guillon wrote:
>>>> I've perused wikipedia a
>>>> bit, and I really don't like how algorithms look there. The appeal of
>>>> the use of LaTeX, is mostly for the use of boolean algebra and set
>>>> theory symbols.... although sometimes other symbols like floor or
>>>> ceiling would be highly useful.
>>>
>>> Unicode does have those; see
>>> http://en.wikipedia.org/wiki/Unicode_mathematical_operators_and_symbols
>>
>> Actually, the floor and ceiling symbols appear to be in the
>> "miscellaneous technical" block:
>>
>> http://en.wikipedia.org/wiki/Miscellaneous_Technical_(Unicode)
>>
>> --
>> Ilmari Karonen
>>
>> _______________________________________________
>> Wikitech-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
>
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l