Latex Drupal

Опубликовано Ksenia-Polo - пн, 06/10/2019 - 22:14

1)Друпал 7

https://www.drupal.org/project/drutex

https://ftp.drupal.org/files/projects/drutex-7.x-1.0-alpha1.tar.gz

2)Друпал 8

https://www.drupal.org/project/latex

https://ftp.drupal.org/files/projects/latex-8.x-1.x-dev.tar.gz

Но  команда drush en latex выдает такую ошибку:

Module latex cannot be enabled because it depends on system (>= 8.5) but 8.2.7 is available
Т.е. для модуля latex требуется версия Друпал 8.5 или выше.

Обновление например  

drush up

3)Чтобы добавить mathjax.org

 https://www.mathjax.org/#gettingstarted

нужно в режиме источника ввести предварительно 

<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>

Модуль позволяет только генерировать файл latex на основании содержимого страницы, readme:
"Go to admin/config/latex/settings or Configuration > Latex > Latex form. In the Node Title field, type few characters of the desired node, select from the desired node from the dropdown menu and click on "Load" button.
This will give you the preview of tex file which you can edit according to your own need (must have knowledge of tex script).
To add tokens, click on "Browse available tokens." link provided above "Node Title" text field to browse list of all available tokens and enter the tokens of "Node" type in the preview textarea at your desired location to resolve tokens.

After compeleting the edits, click on "Submit" button to download the final tex file."

4)latex2html или tex4ht.

при помощи скрипта выдернуть все формулы из исходника и преобразовать в png

нлайн построитель формул на примате, а воспользоваться можно (сделать картинку) с помощью запроса http://chart.apis.google.com/chart?cht=tx&chl=formula

 Tex4ht http://johnhawks.net/weblog/site/drupal-latex-2008.html

https://www.quicklatex.com/

 WP-QuickLaTeX plugin for Wordpress.