Formulaを使って数式の画像を生成するときに、数式のサイズを指定する場合、以下のようにするとうまくいきます。

   1  \mbox{\Huge $\displaystyle
   2  I_j=\int_\Omega f_j(\bar{x})\,d\mu(\bar{x})
   3  $}

出力結果は以下の通り。

posted by Png genki on Fri 19 Feb 2010 at 20:39

ちょっと前からGoogleDocsで数式が書けるようになりましたが、 これがGoogle Chart APIを使って実装されているようです。 しかもTeX記法。

以下のようなHTMLで、

   1  <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chf=bg,s,FFFFFF00&amp;chco=000000&amp;chl=f(x)%3D%5Cint_0%5E%7Bx%7Dg(t)%5C%2Cdt" />

こんな数式を埋め込む事ができます。

ちなみに下は拙作のFormulaによる数式。

See Also

posted by Png genki on Tue 29 Sep 2009 at 14:27
11th Sat

a=a+1

It's just a demo of Formula :-)


a & = & a + 1 \\
1 & = & 1 + \frac{1}{a} \\
0 & = & \frac{1}{a} \\
a & = & \pm\infty

このブログではデフォルトでeqnarray*環境なので、こんな感じに書けます。

   1  [math]
   2  a & = & a + 1 \\
   3  1 & = & 1 + \frac{1}{a} \\
   4  0 & = & \frac{1}{a} \\
   5  a & = & \pm\infty 
   6  [/math]

posted by Png genki on Sat 11 Jul 2009 at 08:53

Formula は、数式を簡単にブログに貼付けて共有できるサービスです。 このたび、FormulaをRails-2.3.2に対応させました。

また、対応作業の過程で、Rails用のpaginationライブラリである、 pagination_scopeのバージョン0.1.2をリリースいたしました。

:groupオプションを含むnamed scopeのpaginationに対応いたしました。

posted by Png genki on Thu 2 Apr 2009 at 01:35

Recently, the Formula had been slowing down.

The Formula is the service which provides a way to make images of mathematical expressions for embedding it into your blogs, BBSs and so on.

There was the problem in the manner of ranking the referred formulae. So I solved the issue by choosing simpler algorithm.

Now it became faster. Please try it again if you've given up once before for the slowness of the service.

Thank you for patience. I will keep appreciating any kind of feedbacks. Feel free to contact us.

posted by Png takiuchi on Wed 24 Sep 2008 at 03:48

Formula is the service for embedding and sharing images of mathematical expression on your blog easily.

Recently, the service corresponded to embedding by BBCode. For example, following BBCode is generated to be embedded.

   1  [url=http://formula.s21g.com/?f(x)%3D%5Cint_0%5E%7Bx%7Dg(t)%5C,dt][img]http://formula.s21g.com/?f(x)%3D%5Cint_0%5E%7Bx%7Dg(t)%5C,dt.png[/img][/url]

So that you can use it for bulletin boards which are capable to interpret BBCode such as phpBB.

posted by Png takiuchi on Tue 9 Sep 2008 at 18:35

Formulaは、 簡単にブログなどに数式を貼り付けて共有するサービスです。

このたび、Formulaで生成した数式画像のBBCode形式での埋め込みに対応いたしました。例えば以下のようなBBCodeが出力されます。

   1  [url=http://formula.s21g.com/?f(x)%3D%5Cint_0%5E%7Bx%7Dg(t)%5C,dt][img]http://formula.s21g.com/?f(x)%3D%5Cint_0%5E%7Bx%7Dg(t)%5C,dt.png[/img][/url]

phpBBなどのBBCodeに対応した掲示板などで、簡単に数式をお使いいただくことができます。

posted by Png genki on Tue 9 Sep 2008 at 18:17

s21g blog の次はFormula

今度はtridentを実行した結果、以下のようなWARNINGが出ました。

DEPRECATION WARNING: Inflector is deprecated! Use ActiveSupport::Inflector instead. See http://www.rubyonrails.org/deprecation for details. (called from formula/config/initializers/inflections.rb:5)

なるほど。とりあえず、いわれたとおりに修正してみます。 Globalの名前空間を掃除する方向なのかな。

とりあえず、それ以外は特に問題なく移行完了。

posted by Png genki on Sun 7 Sep 2008 at 03:34

I made an Ubiquity command in order to enable us to get images of mathematical equations from anywhere at anytime. It uses the Formula , which is the service for making images of mathematical formulae.

You can also get a preview of your input in real time, like this.

formula_u.png

INSTALL

The command is able to be installed from here.

NOTE1: You need the Ubiquity , an extension of the Firefox, to use ubiquity commands.

NOTE2: This command requires BASIC authentication via SSL at the first time in order to prevent SPAM posts. When you get the dialog box of the authentication, please enter your name and password which were used when you left a comment at the Formula. It means that you must leave at least one comment to the Formula for being authorized.

posted by Png takiuchi on Thu 4 Sep 2008 at 04:50

Formula を使って、Ubiquityから数式を投稿するUbiquityコマンドを作ってみました。 こんな感じに、Previewも実装しています。

formula_u.png

これを使えば、いつでもどこからでも、数式を投稿することができます。 コマンドを実行すると、Formula上の数式ページにジャンプするので、 埋め込みようタグを使ってブログに投稿することも簡単にできます。

インストール

formula用Ubiquityコマンドは、以下のページからインストールできます。

配布には拙作の Gist Ubiquitifier を使っています。

ご注意

スパムプログラムからの投稿などを避けるために、 SSL+Basic認証による認証をかけています。

本コマンドを最初に実行する時に、Basic認証のダイアログが出ます。 Basic認証に使うユーザ名とパスワードは、 Formula上でコメントをする時に使ったものをご利用ください。 Formula上に1つでもコメントがあれば、本コマンドが利用可能になります。

posted by Png genki on Thu 4 Sep 2008 at 02:54