Skip to content

Images, audio, video, LaTeX and graphs

An EduBase question can carry more than text: images next to or inside the question, files to download, an audio clip or a video, formulas written in LaTeX, and function graphs drawn under the question. Everything here is set in the question editor and works the same in practice tests and exams.

Images

Under Add or manage images, media and attachments, upload up to 3 images per question (JPEG, WebP or PNG). The upload starts when you save the question.

  • Display settings: Next to the question in the corner (enlarged by clicking), the default, or After the question, under the text.
  • To place an image at a specific point in the text, write [[IMAGE:file name.png]] there, with the exact file name.
  • Images smaller than 512 pixels on both sides cannot be enlarged by clicking.

In the demo, the statistics question shows a chart of last year's exam scores in the corner; participants click it to see it full size.

Attachments

Attachment adds files participants can download, such as a dataset or a form to fill in: up to 3 per question. Participants see the file names. In text, Excel, Word and PowerPoint attachments, and in their file names, EduBase fills in the question's parameters at download, so every participant can get their own data. See Parameterized Excel, Word and CSV attachments.

Audio and video

Video, audio adds one media item to the question:

  • Audio content: an audio file (MP3, AAC or M4A), for example for a listening task.
  • Video content: a video from your EduBase videos, chosen by its ID or by searching. In the question text, [[MM:SS]], such as [[01:30]], refers to a point in the video.

The Add or manage images, media and attachments section with the score chart image shown next to the question in the corner, no attachment and no video or audio, and the Graph section with X view -4 to 4, Y view -0.05 to 0.45 and the function 0.3989*exp(-x^2/2)

Question editor → more options

Formulas in LaTeX

EduBase renders LaTeX with KaTeX in the question, the options, the hints and the solutions. The question's Question format must be Advanced, with LaTeX formulas (under Question, choose expand). You rarely need to set it: when you save a question whose text contains a formula, EduBase switches the format by itself.

EduBase uses its own delimiters: write $$…$$ for a formula inside the text (where LaTeX uses $…$), and $$$$…$$$$ for a formula on its own line (where LaTeX uses $$…$$). For example:

the density of the standard normal distribution, $$\varphi(x)=\frac{1}{\sqrt{2\pi}}e^{-x^2/2}$$

To check a formula before you save it, try it in the live editor on the KaTeX website.

The question text in the editor with formulas between double dollar signs, and the Adding LaTeX formulas tip below it explaining the unconventional notation

Question editor → Question

The other formats under Question format are Normal, text-based and Long, text-based, a smaller font with paragraph breaks for long texts. For bold, italic and underlined text, use the toolbar or the EduTags [[B]]…[[/B]], [[I]]…[[/I]] and [[U]]…[[/U]].

A participant's view of the question: the formulas rendered, the score chart in the corner with a magnifier, a graph button under the text and the four options

Question editor → try

Function graphs

The Graph section plots functions under the question, for example a curve to read values from. Choose Plotting custom functions under the question, then:

  • X view and Y view: the part of the axes shown at first (−20 to 20 by default). Participants can zoom in and out.
  • functions: one function per row, in terms of x; y= or f(x)= can be left out. Parameters work with curly brackets, such as {a}*x^2. Choose + for another function.
  • range: optionally, the interval on which a function is drawn; the first range belongs to the first function, and so on.

Participants open the graph with graph under the question text.

The plotted standard normal density under the answers, with zoom in and zoom out links, the x axis from -4 to 4 and the y axis from -0.05 to 0.45

try → graph

The Graph section appears for accounts with the advanced question editor, and on every question that already has a graph, for example from an upload. In an EDU file the field is GRAPH: the X view, the Y view, the functions separated by ||| and the ranges, each part separated by &&&:

GRAPH: [-4 - 4] &&& [-0.05 - 0.45] &&& 0.3989*exp(-x^2/2)

Limits

  • Up to 3 images and 3 attachments per question, and one audio file or video. The maximum file size depends on your account and is shown in the editor.
  • Graphs are not shown on phones and other small screens; the editor warns about this.
  • In graph functions, write the constant π as PI; pi in lowercase is not recognized and the graph is not shown.
  • Attachment file names are visible to participants, so do not put the answer in a file name.