Tags:
not added yet
Configuring Math Plugin for codeBeamer: Mathematical Formulas in Wiki (pre 20.11-LTS Carmen)Table of Contents
Math plugin is capable of rendering Mathematical Formulas in Wiki. An example of this: This plugin displays latex formulas
20.11-LTS (Carmen) There is no need to install Latex on the host, rendering is done by Javascript by MathJax 2.7.7. Please install PhantomJS Windows (before 20.11-LTS Carmen)Windows requires manual installation and configuration of the following packages: Installing MiKTeX (latex for windows) (before 20.11-LTS Carmen)For downloading MiKTeX
Install the package (leaving the default settings for everything, (except Installing missing packages on-the-fly, set it to yes)), and make a note of the installation directory (a typical example of installation directory is: "C:\Program Files (x86)\MiKTeX 2.9") Installing Ghostscript (before 20.11-LTS Carmen)Ghostscript During the installation leave all settings on default, and make a note of the installation directory (for example "C:\Program Files (x86)\gs\gs9.05"). Installing ImageMagick (before 20.11-LTS Carmen)ImageMagick Currently supported version: ImageMagick-6.7.6-Q16 https://ftp.icm.edu.pl/packages/ImageMagick/binaries/![]() During the installation leave all settings on default, and make a note of the installation directory (for instance, "C:\Program Files (x86)\ImageMagick-6.7.6-Q16\"). Configuring codeBeamer (before 20.11-LTS Carmen)After these installations are done, you'll have to "tell" codeBeamer where these programs are. Unfortunately, putting these on the system classpath is not enough, because Windows may pick up wrong executables from the path. Instead you will need to edit the "C:\CB\tomcat\webapps\cb\config\path.txt" file (use your codeBeamer location instead of "C:\CB"). Edit that file, and add the paths of the just installed packages this way: C:\CB-7.0\libexec;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;C:\Program Files (x86)\gs\gs9.05\bin;C:\Program Files (x86)\ImageMagick-6.7.6-Q16\Important: add the "\bin" to the paths of MiKTeX and Ghostscript, but NOT for the ImageMagick package. After this is done, restart the codeBeamer service so that the settings can be activated. You are now all set: the Math plugin is ready to be used. See: Linux (before 20.11-LTS Carmen)On Linux, the installation is much simpler. Just use the standard installer tool for your distribution to install 3 packages: texlive-latex-base, imagemagick and ghostscript. CentOS (before 20.11-LTS Carmen)On CentOS this can be done using this commands: sudo yum -y install ImageMagick \ texlive-latex \ texlive-latex-bin \ texlive-latexconfig \ texlive-amsmath \ texlive-dvipng \ texlive-dvipng-bin \ texlive-dvips \ texlive-dvips-bin \ texlive-texconfig \ texlive-texconfig-bin \ texlive-metafont \ texlive-metafont-bin \ texlive-collection-fontsrecommended sudo yum -y groupinstall "fonts" Suse (before 20.11-LTS Carmen)On Suse this can be done using this command: sudo zypper install texlive-latex textlive-bin-latex Ubuntu (before 20.11-LTS Carmen)On Ubuntu this can be done using this command: sudo apt-get install texlive-latex-base imagemagick ghostscript Troubleshooting (before 20.11-LTS Carmen)If the Math plugin does not render the formulas correctly, check the following:
latex --version MiKTeX-pdfTeX 2.9.7029 (1.40.20) Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh TeX is a trademark of the American Mathematical Society. dvips -v This is dvips(k) 5.991 Copyright 2011 Radical Eye Software (www.radicaleye.com) convert --version Version: ImageMagick 6.7.6-1 2012-03-14 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP
Fixing ImageMagick authorization error (before 20.11-LTS Carmen)In recent Ubuntu/Linux installations the ImageMagick library which is used to convert the Latex images to viewable images got a security fix which prevents the Latex/Math plugin from rendering the images properly. This appears as either:
To fix this situation you need to enable the rendering of the PS (Postscipt) files by ImageMagick. That is typically done by editing the /etc/ImageMagick-6/policy.xml file and allow rendering the PS files here by editing this line:
So edit this file to contain this entry: <policy domain="coder" rights="read/write" pattern="PS" /> For more information see: https://imagemagick.org/script/security-policy.php |
Fast Links
codeBeamer Overview codeBeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, furthermore helps us to understand your interests and provide more personalized services to you, both on this website and through other media. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. For more information about the cookies we use, please visit our Privacy Policy.Your preferences will apply to this website only.