Error: Undefined control sequence When use Latex in H5P

Hello everyone!

When I use fomula \[ \dfrac{2x^2+1}{x(x^2+1)} \] in H5P and receive a error as below. Can you give me some solutions to solve it. Thanks you

  • Undefined control sequence \dfrac
 
BV52's picture

Hi tungthan,

Can you please provide the information requested in this forum. I tested your formula and it works: https://bv-demo.h5p.com/content/1291971284537419809

-BV

Hi, i try again but it still error, and when i use \[ \frac{2x^2+1}{x(x^2+1)} \] instead of \[ \dfrac{2x^2+1}{x(x^2+1)} \], it run. Can you give me pieces of advice? 

 
BV52's picture

Hi tungthan,

Honestly I'm not sure what is happening. I requested additional information in my previous reply.

-BV

otacke's picture

Is MathJax's configuration customized potentially? 

Sorry, but what are requested additional information you need?

BV52's picture

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem
  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  11. Any recent changes to the browser you're using (new extensions, updates etc.)

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!