First, the MathJax module needs to be installed. Since Drupal is built on the PHP ecosystem, its modules are managed as Composer packages. The latest version of the Drupal MathJax module is 4.1, which uses MathJax v2.7. Although this version is significantly behind the latest MathJax release, v4.1.3, it provides sufficient functionality for rendering LaTeX. The module can be installed as follows:
composer require 'drupal/mathjax:^4.1'
Once the Composer package has been downloaded, the module must be enabled through the Extend panel, as shown below.

Once the module is enabled, it can be configured through the Configuration panel. Global settings can be managed under the MathJax menu. Additionally, the appropriate text formats and editors must be configured to ensure that LaTeX content is rendered correctly using MathJax, as shown below.



Now you are ready to use LaTeX in your Drupal site.
