mysql - Best way to store equations and images in database to be displayed later as pdf and html -


I am planning to create a database to store multi-option questions. Each question will have 5 parts: first, question body and the remaining four, four options (stored in 5 different columns of the database). Each line in the table will contain information about a question. Question body and selection include:

  1. Plain Text
  2. Mathematical equation
  3. Diagram (PNG or JPEG)

Later, these questions will be brought from the database To appear in the following:

  1. Formatted PDF file
  2. web portal

I ask questions and its image paths (similarly, the option and to save their image Path of thinking) in text and equation tables as separate columns in the database, in the form of latex text Straight will be stored after being formatted form. Afterwards,

  1. For PDF files: In PDF format the documents can be created directly by bringing queries from the database and using PDFTax.
  2. For Web Portal: Using the HTLATX and rendering the equation using Mathjax and then displaying each question on the web portal.

Is this the best way to achieve it and is there any other format in which questions can be saved in database?

PS: Formatting of questions and equations is very important to me, and therefore I like latex for this job.

  1. open word document - insert a table - then in a cell Type the question (in which there are math equations and chemical compositions); In another, one of the cells in the Options table

    Save the document as a web page, filtered (by saving in this format the word Formatting can not be saved)
    Now a web page is created in a folder that contains your equation

  2. Upload web page now

    Also upload images created in folders on your web site

  3. Parsing HTML document


    & lt; Tr & gt; Nodes and all its & lt; Td> Get nodes. & lt; Td> Get internal HTML for nodes and save them in the database table field

  4. To display queries - just bring HTML content and place them in Devell Tag ( Internal HTML)


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -