-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversion to Markdown #5
Comments
+1 for using Jupyter notebooks. Further, Jupyter will also give us access to There are similar initiatives like Python Textbook Companion Project, which uses Jupyter notebooks to put popular textbooks on the web (see [1] for example). [1] Jupyter notebook for "Programming in C by Stephen G. Kochan", http://tbc-python.fossee.in/book-details/36/ |
Use of Jupyter notebooks is a good idea. I tried pandoc and the results were not very good. Please correct me if I am wrong, the aim of the project is to transfer the exercises to an online platform so why not make a website for this which contains all the exercises. This way we will be able to achieve the functionality of ranking the exercises, portals for the teachers and students. |
I just used a script to convert all the files to Markdown. You can see the files at: |
This is a great start @sambitdash |
@Nalinc your expectation is understandable. My attempt was to provide a first cut starting point and not to say the output is production quality. I had the following reasons for writing the script and not depend on pandoc or pandoc template building.
My intent is not to generate production quality MD from Latex. That will be significant effort. It may be useful to focus on pandoc in that case. It may be easier to fix the MD files manually from this point. Hence, I have no further intent to spend additional cycles on the script. But if the MD files are useful to be edited to better output, I can send a PR. @norvig If you think these MD files can be useful let me know. |
@sambitdash I didn't mean you missed any LaTeX file while running your script. What I meant was there seem to be some files missing in current folder which if present, would give better results(like bibliography and some .sty files like 'customized theapa.sty' which has been mentioned aima3e.sty). Once they are available, you might want to re-run your script or even tweak something. |
@Nalinc the missing files will not improve my script performance or quality in anyway. The script just extracts the relevant document structure and not style information. It's always hard to convert styles when both systems are not equivalent in capability. I am not sure but never have seen very complex documents written in Markdown while LaTeX can generate as complex documents as PostScript can generate. |
Using jupyter notebook is a great area as .ipynb files are easy to handle over over extensions. I think we can use pandoc and do remaining stuff manually... |
I tried using pandoc and jupyter notebook for agents-exercise. |
I'm not sure yet. There are many issues.
|
@norvig I generated github pages using a single command Following are the results: Here's the example exercises in HTML+MathJax https://nalinc.github.io/aima-exercises/ |
@norvig How about we have all answers in a single file as well? All answers will share the same identifier as the question they belong to. Clicking on a specific question will pop up the answer only for that specific question. OR, we can have a flashcard mode where students will see only one question at a time, but all questions will be fetched together initially. I loved the idea of hashtagging questions. |
@Nalinc github pages are looking good... |
@norvig shall i continue to convert .tex files to .ipynb? or shall I try to explore more options as per requirements? |
@heisenbuug I think after recent merges, we already have Jupyter notebooks for all the chapters. I believe we should look at other options before deciding to settle on one. Another reason why @norvig is hesitant about Jupyter Notebooks is that they are harder to review and edit within Github. |
@Nalinc ohk then, I will try to find some other solution... |
@heisenbuug WordPress can handle these exercises perfectly but the problem is that it will loose the idea of opensource I guess. When someone creates a word press blog, only he can edit the blog. If some other person wants to make changes to the exercises he straight away cannot make a PR which can be viewed by the admin of the blog. The admin has to add him into the list of people who can manage the blog, only then he will be able to make changes(removing these changes if they are not appropriate will be a problem too). I think this will be an unavoidable problem. Please correct me if I'am wrong. |
@nvinayvarma189 I agree with you...but considering all our requirements I think Wordpress will be a considerable option coz we need indexing which can be best done there... |
Yes, but my personal opinion is that this will be comfortable in the initial stage,but as we progress and add the exercises, ranking system and such features, we may not feel WordPress as flexible place to implement these type of things as we have to follow the template given to us(we cannot customise it completely). I think |
Why we don't use Jekyll? I think it is the best solution; It support markdown very well and has a lot of features plus fast development cycle. I use LaTex and graphs in my site and I can only generate them using MathJax and mermaid. here is an example of some exercise I have put in my Jekyll site (of course we can change the theme as we like). |
@heisenbuug I think we should stick with Github pages for hosting
|
Those Jekyll pages look good, @yakout I didn't see any MathJax, but I understand it will work. |
@norvig @Nalinc I made github pages but there are some issues. |
Looks good @heisenbuug . However, I don't see mathematical equations rendering correctly in these pages (refer the image below).
That's probably because Jekyll is throwing a page build failure. It usually happens when tags in markdown are not terminated properly. Can you post the exact error message you're getting? |
@norvig yes, they work perfect! here is nlp-english-exercises. @heisenbuug to know the errors you need to run jekyll locally
also note that MathJax syntax is different a little bit from LaTeX Syntax and you need to change any single Check this useful link for some working examples. |
@yakout where do I have to add that script exactly? |
@heisenbuug you need to add it everywhere you expect to have a mathematical equation. The safest way to ensure this is to add it in
|
@heisenbuug I like your layout too. I noticed that in https://heisenbuug.github.io/minimal-mistakes-jekyll/game-playing-exercises/ there is some MathJax that didn't get converted -- do you know what's up with that? Are you using the Medium layout? Whatever it is, it looks good. |
…30-a37d-11e9-9e5a-db49bdb8d58e New Answer by Sachin Chopra for chapter 1 Exercise 2
A few ideas:
pandoc
can be used to convert to markdown. Perhaps it won't be perfect and there will need to be some hand-editing.There's mathTex for rendering images. Or this:
-Or we could put exercises in Jupyter notebooks (see here).
-Each exercise will need a persistent name/number. We'll need a convention for this.
The text was updated successfully, but these errors were encountered: