The search engine supports fuzzy search with a maximum edit distance of 3. Content: the words in the column explanation and examples.įor Wikibooks' mathematical symbols list, these symbols are only indexed by their commands as more information is not provided.Keyword: the words in the column: name, read as, category.The indexed fields of each document is then: In this example, it can be seen that one concept (multiplication or dot product in this case) may be represented by multiple symbols (\times and \cdot here). ![]() An example would be the the row representing multiplcation in Wikipedia's mathematical symbols list. ![]() IndexingĮach row in the tables of symbols is treated as one document. As stated before, these symbols only contain information about their commands and nothing else. Therefore Wikibooks' list of mathematical symbols, which lists all of the pre-defined mathematical symbols from the TeX package is also used to complement the symbol list. Also, most of these symbols are taken from different packages and I wanted to stick to the more commonly used ones. There is a comprehensive LaTeX symbols list in pdf form, but a pdf is not easy to parse. However, Wikpedia's list is not comprehensive and therefore another source is needed. ![]() Also, this was the only satisfactory way I could think of to display the source code, as displaying it besides the equations makes the whole presentation look very messy. However, I think that most of the users of this service will be using it through a computer or laptop since document writing (especially scientific documents which LaTeX is aimed at) is most commonly done with a physical keyboard and mouse. There is a growing resistance for the use of hover in an age that is more and more geared towards mobile platforms. Using this information along with the HTML parser BeautifulSoup, we can combine these so that when the user hovers over the image, the equation formula is shown. Therefore, I used Wikipedia's web page list of mathematical symbols as the main data source, as it includes the following attributes of each symbol:įortunately, each equation image also included the LaTeX command used to generate said equation, which be found in its HTML image attribute. This is not very useful for a search engine as the user can only find the symbol if the correct command is entered, and if the user already knows the command, what is the point of using a search engine? There are some comprehensive LaTeX symbol lists, but all of the ones I found only contained the symbol and its command. It indexes the tables of mathematical symbols in Wikipedia's and Wikibooks' list of mathematical symbols pages. When it is the correct answer, however, you may want to add typeMatch=>"Interval" to the cmp() call in order to get the proper type checking on the student's answers.This is a search engine for LaTeX mathematical symbols. Students can enter a string without an error message (though it will be marked incorrect). (which will be case-insensitive), and use "All real numbers" when that is the correct answer. Note, however, that this is case-sensitive, and that students could use this just as they could (-inf,inf), so could make formulas that include "All real numbers", as in This first line allows names to be anything (any string of any characters). So in order to do this, you need to change the allowed constant names first:Ĭontext()->constants-> = qr/.*/ The problem is that constant names are not allowed to contain spaces. That would beĬontext()->constants->redefine("All real numbers",from=>"Interval",using=>"R") If you want "All real numbers" to be equal to (-inf,inf), then you need to make "All real numbers" be a constant, not a string. It is an interesting idea, though, and I'll think about it. I.e., a string alias can only be for another string, not a constant. The alias directive can only be used as an alias for items of the same type. This is a nice try, but there is a problem with it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |