Recent Posts

Subscribe to Recent Posts 462 posts found

posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Feature Requests

Here’s another random idea: to make it easier for people to contribute to a wiki (thinking particularly of the nLab), howabout a javascript annotation system? Some people might find it a bit daunting to edit a whole page just to correct a minor spelling mistake, but could leave a quick note so that the next person who does edit the page can see what outstanding notes there are.

Just a random idea - I haven’t thought it through very much. (But I did a little search to see that it was, at least, technically possible via javascript.)

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Bugs

To be honest, I find the whole indentation system for preserving environments a nightmare! Particularly, with regard to cut-and-pasting. It’d be great if there were alternatives available, like there is for code blocks.

(I’m right about that, aren’t I: the “fences” from PHP Markdown Extra work in maruku, don’t they? Let’s try:

some code

I’ll find out when I hit “save reply”! Incidentally, I think that a preview makes a little more sense on a forum than on a wiki.)

Maybe:

>>>
a quote
>>>

for quotes, and

123
1. For lists.
123

With the assumption that everything between one M. and another N. (M,N) is in a single list item.

Can’t think of anything else that relies on indentation.

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Feature Requests

(I’m really just trying out the features of the forum, but may as well do so in a “useful” way.)

  1. I’d like a span equivalent of the +-- {: .class attributes} ... =-- syntax. At the moment, I do something like *word*{: style="text: normal"} which seems a bit daft.

  2. I’d like an easy way to add id (and other attributes) to individual list elements. So I could write 1.{: #firstitem} to get an id tag on that item.

That’s all for now!

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Feature Requests

This is a thread for feature requests for Instiki.

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Bugs

Yes, that worked. Because I modified the indentation a little, the theorem no longer got noticed. All-in-all, I find the indentation rules to be a little too strict! As can be seen, indenting one space extra made no difference between the second and third lines, but caused the fourth line to not be seen as a theorem.

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Bugs

That didn’t, show what I wanted to show so let me try again.

  1. This is a list.

    This is in the same item, indented to ensure that.

    This is also in the same item, indented one step more.

    ###### Theorem ###### This is an amazing theorem.

  2. Another list item.

 
posted 15 years ago
admin 64 posts

Forum: Instiki – Topic: Bugs

Right, I now appear to be logged in again.

The second, “mystery” user is a bit of a … mystery. Clearly, there are many parts of the code which work in inscrutable ways.

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Bugs

Right, I now appear to be logged in again.

What I was trying to demonstrate in the above was that I don’t always get the indentation right with maths in lists I’ll have to think again to get an example that demonstrates it, though.

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Bugs

Let’s see if this shows up here on the forum. It’s to do with newlines and lists.

  1. This is a list. I want to put some maths in it, so I merrily go ahead and do so.

    [a b c d]\begin{bmatrix} a & b \\ c & d \end{bmatrix}
  2. This is the next item in the list.

Let’s see if the above shows what I want it to show.

 
posted 15 years ago
Andrew Stacey 118 posts

Forum: Instiki – Topic: Shiny new forum

Looking pretty impressive so far, I must say. Not sure that “save reply” is the best text, it’s not clear whether or not it will actually post the reply or not. Still, only one way to find out.


It posted it. Now I know!

 
posted 15 years ago
admin 64 posts

Forum: Instiki – Topic: Bugs

Let’s discuss bugs in Instiki.

 
posted 15 years ago
distler 125 posts

edited 12 years ago

Forum: Instiki – Topic: Shiny new forum

We can type equations

(1)(a b c d)(x y)=0 \fghighlight{red}{\begin{pmatrix}a&b \\ c&d\end{pmatrix}} \begin{pmatrix}x\\ y\end{pmatrix}=0

or put them in SVG graphics

Layer 1 ( a b c d ) ( x y ) = 0 \begin{pmatrix}a&b \ c&d\end{pmatrix} \begin{pmatrix}x\ y\end{pmatrix}=0

or type some code

require 'chunks/chunk'

# Contains all the methods for finding and replacing wiki links.
module WikiChunk
  include Chunk

  # A wiki reference is the top-level class for anything that refers to
  # another wiki page.
  class WikiReference < Chunk::Abstract
	
    # Name of the referenced page
    attr_reader :page_name

    # Name of the referenced page
    attr_reader :web_name

    # the referenced page
    def refpage
      @content.web.page(@page_name)
    end
	
end

and so forth.

Theorem

(Distler’s Theorem). Any given programming task is easier with Rails.