On Thu, Oct 7, 2010 at 15:50, Snaky Love <snakyl...@googlemail.com> wrote:
> Hi Kevin, > > > One example of that approach is a wiki I use for teaching my classes: > e.g. > > > > * Web page:http://stats4.eng.mcmaster.ca/wiki/LVM:_class_1 > > * Wiki and RST code for the same page: > http://stats4.eng.mcmaster.ca/w/index.php?title=LVM:_class_1&action=edit > > wow, very impressive!!! That is really a nice example, thank you for > the link! Also very good to see that the idea of using sphinx for > collaborative editing does not seem to be such a bad abuse! > I currently use the wiki by myself, not in collaboration with anyone, but it should work with multiple people -- in principle. There is a case where it doesn't work: I cannot cross reference between wiki pages, without writing a full hyperlink that includes the domain name. This is problematic if you move the wiki to a new host - you need to edit every link. > > > The site is an ordinary Mediawiki installation, but I've created a > Mediawiki > > extension so that any wiki text that appears between <rst> ... </rst> > tags > > is stripped out... > > ok, well, Kevin, you might guess, what I would like to ask you > now??? :))) > I was fearing this ... which I didn't volunteer the code earlier. > <scent of roses> Would you like to make your extension available to > the public? </scent of roses> > No problem. It will take a bit of work to strip out the parts of the code containing usernames and passwords, and code that is specific to my case. I will try to make it more general and aim to have it posted on BitBucket by early next week. > > > That same RST code is used to compile (LaTeX) PDF documents for the > students > > *very* nice! What about tables? I see you are using images for the > nice table data. > Would it be possible to have the tables edited with the wiki and > scaled automatically to fit on the pdf page? > What if I would like to rotate the table 90 degree for the pdf? > That image of a table was a screenshot of a software package. I usually add tables using the regular RST syntax (as much as I dislike that syntax - it's clumsy to edit a table e.g. to add a column. I would really like a Sphinx extension that does tables in the way that LaTeX code does it - but that's a small issue) Regarding the PDF: I don't currently generate the PDF from the wiki page in an automated way. Right now I just copy and paste the markup out of the wiki, generate the PDF with Sphinx and upload the PDF back to the wiki. It's tedious, I know, but for my teaching purposes I don't make frequent changes to the PDF files once I post them online - the students tend to hate that. However, I see the advantage of automating the PDF creation in many other cases - and it can be done. Perhaps we can add that to the code once I post it next week? Kevin > > Thank you very much for your attention! > Snaky > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-dev" group. > To post to this group, send email to sphinx-...@googlegroups.com. > To unsubscribe from this group, send email to > sphinx-dev+unsubscr...@googlegroups.com<sphinx-dev%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/sphinx-dev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.