This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Mathematica Toolbox

Description

Mathematica Toolbox adds a set of shortcodes that can do Mathematica code highlighting, CDF embedding, and more. For detailed information about all the shortcodes please visit the documentation:
http://cekdahl.github.io/MathematicaToolbox

If you would like to control WordPress programmatically from a Mathematica notebook, check out the Wolfram Language WordPress XML-RPC client:
http://github.com/cekdahl/wl-wordpress-xmlrpc-client

Syntax highlighting and formatting

  • Uses the same highlighting script that is used on Mathematica.StackExchange.com and on Wolfram Community.
  • Preserves code indentation and prevents WordPress from inserting <br> and <p> into code.
  • Replaces Wolfram Language character codes such as \[Alpha], \[Gamma] etc. with their corresponding characters.

Embed Wolfram technologies

  • Easily embed CDFs in any post or page.
  • Retrieve and display an image from a Wolfram Cloud API.
  • Retrieve and display raw data from a Wolfram Cloud API.
  • Display a link to the documentation of a Wolfram Language function.

Retrieve Mathematica.StackExchange data

  • Show a box with profile information
  • Create links to questions and answers based on their IDs
  • Make arbitrary requests to the Mathematica.StackExchange API

Screenshots

  • CDFs can be included in WordPress posts, as well as data and images from Wolfram Cloud APIs.
  • There are two different ways to include highlighted code blocks, but they produce the same result. Character codes such as \[Alpha] get replaced automatically with their corresponding characters.
  • Handy shortcodes can render usernames and links to the online documentation.
  • Shortcodes that interface with the Stackexchange API can retrieve information about a user. [mma_se_profile_box user_id="731"] creates the profile box seen in the image.
  • Answers specified by IDs, retrieved from the Stackexchange API.
  • The top metabox is the "toolbox" which the plugin is named after. A click on one of those buttons inserts the corresponding shortcode into the editor. Below the toolbox there is an example of code in custom post fields, which can be included in the post using [wlcode field="example"] and [wlcode field="glyphs"] respectively.

Installation

  1. Upload the folder Mathematica-Toolbox to the /wp-content/plugins/ directory
  2. Activate the plugin through the \’Plugins\’ menu in WordPress

You should now be able to use any of the shortcodes. If you forget what they are you can use the buttons that should have appeared in boxes underneath the text editor to insert shortcode templates into the text. Either box can be hidden using the screen options pane. For more information, read the documentation:
http://cekdahl.github.io/MathematicaToolbox

FAQ

Where can I find more information about how to use this plugin?

Detailed information about all features is in the documentation:
http://cekdahl.github.io/MathematicaToolbox

Something is not working, what should I do?

If the problem cannot be solved with the information in the documentation I will be happy to try to help you if you post a message under the support tab here in the plugin directory.

Reviews

September 3, 2016
Works as advertised. Simply upload you .cdf to your media library, copy the link to it, paste link in the template. CDFs can be finicky to get displayed properly but thats on the mathematica side. Link to my first example here Edit: Forgot to mention: It should be noted that the 2 star review was based on a problem that turned out to be unrelated to this plugin.
September 3, 2016 7 replies
I followed the StackExchange posting to use <code>[WolframCDF attributes]</code> around Mathematica statements after upgrading to WordPress version 4.0 and 4.0.1. This worked using the WolframCDF plugin (see http://mathematica.stackexchange.com/questions/66311/wolfram-cdf-player-not-working-anymore-in-wordpress-v-4-0-1 ). The CDFs do not display correctly with Wordpress version 4.3.1 so I switched to the Mathematica Toolbox plugin. The cdf still does not display properly and the font still do not match the font family and size defined in the CDF.
Read all 2 reviews

Contributors & Developers

“Mathematica Toolbox” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Mathematica Toolbox” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

Version 1.0.4

Release date: 2nd July, 2016

  • Fixed a CDF embedding problem.
  • Split the meta box into two.
  • Syntax highlighting update for Mathematica version 10.3
  • New documentation.

Version 1.0.3

Release date: 21st Mars, 2016

  • Fixed a code highlighting problem.

Version 1.0.2

Release date: 13th September, 2015

  • Fixed a problem with the WolframCloudAPI shortcode with custom parameters.

Version 1.0.1

Release date: 17th July, 2015

  • Inline code shortcode. Used to get special markup for inline code.
  • Fixed incorrect title attributes of some of the shortcode buttons.