• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Store
  • Support
  • Theme Documentation
  • My Account
  • Cart

9seeds

Building Custom WordPress Solutions | Plugin Development

 
  • Custom Development
  • Themes
  • Plugins
  • About
  • Contact
  • Blog

plugin

Stealing math from Wikipedia

Posted on November 26, 2012

WordPress + Jetpack + LaTeX = Awesome

On my personal WordPress website I wrote about an Arduino device I built to help brew beer.  Being my first foray into electronics, I wanted to document my experiences.  One of my difficulties centered around turning electrical values (voltage, resistance) into real-world values (temperature) using math.

As part of my documentation, I wanted to re-create some equations that I had found on a Wikipedia page about thermistors.  While in the process of grabbing their images and putting them into the media library, I remembered something…

One time while on the main Jetpack screen in the WordPress dashboard, I noticed a tile that advertised “Beautiful Math.”  So I looked into it.  Jetpack has a LaTeX module that can accomplish this.  LaTeX is a rather old-school markup/typesetting language that has been very popular in academia, especially in regards to math.

So Jetpack and LaTeX can do math, but I didn’t really want to learn a new markup language, I just wanted to quickly copy & paste the equations into my post.

Good Authors Borrow, Great Authors Steal

So then I wondered how Wikipedia is storing the images or if they’re doing something similar.  Guess what?!?  They use LaTeX too!  Putting the same equation into WordPress is as easy as clicking “Edit” on the Wikipedia page and copying the text between <math> and </math> and pasting it in-between [latex] and [/latex] in WordPress.

Native vs. Shortcode formatting Tricks

Jetpack supports using the $latex $ native format instead of the shortcode, but there are a few noted (and undocumented) differences between using the two methods. For instance, if you want to increase the size of your rendered LaTeX text, you can use the s (size) parameter in your LaTeX equation as such:

$latex \LaTeX&s=4$

Where size in this example is “4.”  However if you try to do this using the shortcode as such:

[latex] \LaTeX&s=4[/latex]

it will render as: [latex] \LaTeX&s=4[/latex] – Not exactly what you’d expect 🙁 The trick is that the following LaTeX parameters need to be fed in as shortcode parameters:

  • s (size)
  • bg (background color)
  • fg (foreground / “text” color)

So if you want to have “LaTeX” rendered as:

$latex \LaTeX&bg=ffcccc&fg=cc00ff&s=4$

You can either do:

$latex \LaTeX&bg=ffcccc&fg=cc00ff&s=4$

or  move the size & color parameters into the shortcode tag like this:

[latex bg=ffcccc fg=cc00ff s=4]\LaTeX[/latex]

Continue Reading

justin

    More by justin

    New plugin: WP Event Ticketing

    Posted on November 3, 2010

    As we were gearing up to organize WordCamp Las Vegas 2010, we wanted to move the management of the ticket ordering process in-house. One of the main reasons being we didn’t want to pay a third party site to handle the ticket sales for the event since they charge per ticket. Sure, we could have passed the cost on to the ticket buyer, but that’s just not how we roll! Instead, we got to work building a WordPress plugin; WP Event Ticketing.

    If you are the impatient type, you can download WP Event Ticketing and try it out, or read on for a list of features and screenshots.

    WP Event Ticketing Features

    • Real-time payments via Papal
    • Multiple ticket types. (For example, basic ticket includes entry only, gold ticket includes entry plus a shirt.)
    • Ticket packages that can include multiple tickets. (Useful for offering registration to sponsors.)
    • Set your event’s maximum attendance
    • Choose what data you want to collect from attendees
    • Limit quantity of each type of ticket packages to sell
    • Display/hide # of tickets remaining on registration page
    • Create single or multiple use coupons
    • Create flat-rate or percentage based coupons
    • Send email notification to all registered attendees
    • Export attendee list to CSV
    • Manually create a ticket for an attendee
    • Ticket and revenue reporting
    • Summary reports show counts by data collected. (for example, display a list of t-shirt sizes and how many of each you need to order)

    Screenshots

    Looking for more features?
    We are currently hard at work on Event Ticketing Pro. We have a ton of features planned for the pro version! You aren’t going to want to miss it. Sign up for our newsletter to be notified when the pro version is released.

    Continue Reading

    john

      More by john

      Affiliate plugin for WP-ecommerce

      Posted on July 25, 2010

      Since Shayne has spent so much time helping people out in the WP e-Commerce user’s forum, it’s no surprise that we receive a steady stream of requests for people looking to enhance their online store. One of the requests we get the most is from people who would like to pay affiliates to drive traffic to their site. With no real solution available, we did what any enthusiastic development team would do; we built it!

      Introducing the Affiliate Plugin for WP e-Commerce

      The Affiliate Plugin makes it simple to sign up and manage affiliates for your online store. You can easily set the payout amount (flat rate or % of sale) per affiliate, add custom banners and text links with unique tracking codes, view stats and more.

      We didn’t forget about your affiliates. They will have the ability to get their unique tracking links and see their traffic and earnings stats.

      Screenshots (click to enlarge)

      Display a list of your affiliates

      Easily create and edit your creatives.

      See which sales your affiliates drive.

      The Affiliate plugin is available now. Purchase your copy today.

      If you need assistance with the plugin or have a feature request, please let us know!

      Continue Reading

      john

        More by john

        New WordPress plugin: ComparePress

        Posted on March 23, 2010

        It’s always exciting to see a project you work on take flight. Such is the case with a new plugin in the WordPress repository called ComparePress.

        We recently had the opportunity to work with Andy Symonds from The Blog House. He was in the final stages of development on his plugin and was looking for some colaboration to finish things up. While he did the lion’s share of the work, we were happy to step in and offer some assistance along the way.

        Andy explains the plugin best: “ComparePress allows any WordPress based site or blog to replace their existing text based ads with an affiliate marketing based, SEO, price comparison system which adds 1000s of intelligent price comparison pages to their blog. By having this detailed and relevant comparison data, users will stay on the site for longer and the system also gives the site owners the potential to earn a greater share of the true worth of their traffic.”

        The plugin was launched with 1 module that offers content for UK based sales. They are working on additional modules and are hoping to have US based solutions in place real soon.

        Congratulations on your plugin, Andy! We wish you all the best!

        Continue Reading

        john

          More by john

          I can has plugin?

          Posted on November 11, 2009

          Last month at Blog World Expo I ran in to Ben Huh. For those who may not know, Ben is the CEO of Pet Holdings, Inc., the company behind the wildly popular blogs I Can Has Cheezeburger?, Fail Blog and dozens more. I told Ben about our new WordPress plugin development company and he said, “We need a WordPress Plugin!” How great is our timing?

          I present to you, LOLPress!

          LOLPress is a free WordPress plugin that adds a tooltip pop-up to images in your WordPress blog pages and posts giving you the option to add a caption to the photo and submit it to the cheezburger network. You can also click to see previous captions created by others using the same photo.

          You can see a demo of the plugin in action on 606diaries.com

          Download the plugin and let us know what you think!

          Happy LOLing!

          Continue Reading

          john

            More by john
            • Prev
            • Page 1
            • Page 2

            Footer

            Get in Touch

            • New Project Inquiry
            • Product Support and General Inquiry
            • Store Purchase Terms and Conditions
            • Store FAQ
            • Cookie Policy
            • Privacy Policy

            Our Services

            • Custom WP Development
            • Theme Store
            • Plugin Store

            WordPress Plugins for Sale

            • Time Tracker
            • Authorize.net SIM Gateway

            WordPress Plugins for Free

            • Simple Calendar
            • WP Chargify
            • Facebook
            • Twitter
            • LinkedIn
            • WordPress
            • GitHub

            Copyright 2025 | 9seeds, LLC

            Like nearly all websites this one uses cookies too. Like most users we think consent banners like these are a dumb solution, but it's what we've got until new laws are passed. We use cookies on our website for remembering your preferences, for example if you're logged in or what is in your cart. We also use 3rd party cookies for analytics so we know what pages on the site are most popular. By clicking “Accept”, you consent to the use of ALL the cookies.
            Do not sell my personal information.
            Cookie SettingsAccept
            Manage consent

            Privacy Overview

            This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience and may even preclude you being able to login to the website.
            Necessary
            Always Enabled
            Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
            CookieDurationDescription
            __stripe_mid1 yearThis cookie is set by Stripe payment gateway. This cookie is used to enable payment on the website without storing any patment information on a server.
            __stripe_sid30 minutesThis cookie is set by Stripe payment gateway. This cookie is used to enable payment on the website without storing any patment information on a server.
            cookielawinfo-checkbox-advertisement1 yearSet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
            cookielawinfo-checkbox-analytics1 yearSet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Analytics" category .
            cookielawinfo-checkbox-necessary1 yearSet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Necessary" category .
            cookielawinfo-checkbox-others1 yearSet by the GDPR Cookie Consent plugin, this cookie is used to store the user consent for cookies in the category "Others".
            cookielawinfo-checkbox-performance1 yearSet by the GDPR Cookie Consent plugin, this cookie is used to store the user consent for cookies in the category "Performance".
            Functional
            Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
            Performance
            Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
            Analytics
            Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
            CookieDurationDescription
            _ga2 yearsThe _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
            _gid1 dayInstalled by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
            CONSENT2 yearsYouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
            Advertisement
            Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
            CookieDurationDescription
            VISITOR_INFO1_LIVE5 months 27 daysA cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
            YSCsessionYSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
            yt-remote-connected-devicesneverYouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
            yt-remote-device-idneverYouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
            Others
            Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
            CookieDurationDescription
            cookielawinfo-checkbox-functional1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
            SAVE & ACCEPT
            Powered by CookieYes Logo