このページは2007年 10月 22日, 22:43に更新されました by BrigetteK

Math

From $1

This library contains functions for rendering and computing mathematical expressions.  関連リンク: Extension Overview, DekiScript Overview, Extension Demos.

Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2007/06/math

Configuration:

Config Key Description
latex-path Path to latex application
dvips-path Path to dvips application
imagemagick-path Path to convert application

Microsoft Windows Setup
Install the following applications before using the Math service under Microsoft Windows XP and Windows Server 2003.

  1. Install MiKTeX
  2. Install ImageMagick
  3. Install Ghostscript
  4. Set 'latex-path' to point to latex.exe installed by MiKTex (e.g. C:\Program Files\MiKTeX 2.5\miktex\bin\latex.exe)
  5. Set 'dvips-path' to ponit to dvips.exe installed by MiKTex (e.g. C:\Program Files\MiKTeX 2.5\miktex\bin\dvips.exe)
  6. Set 'imagemagick-path' to convert.exe installed by ImageMagick (e.g. C:\Program Files\ImageMagick\convert.exe)

Debian Setup
Install the following before using the Math service under Debian Linux

  1. Execute:
    apt-get install tetex-extra gs-gpl imagemagick

  2. Set 'latex-path' to /usr/bin/latex
  3. Set 'dvips-path' to /usr/bin/dvips
  4. Set 'imagemagick-path' to /usr/bin/convert

Functions:

  1. math.formula
  2. math.sheet

math.formula(formula : str) : uri

Render math formula.

Parameters:

Name Type Description
formula
str
Formula in Latex-AMS notation

Remarks:   Refer here for a math guide for Latex.

Samples:


Output

To embed a simple equation:

{{ math.formula("\\alpha^2+\\beta^2*\\gamma^3=1") }} 

./MathFormula1.JPG

To embed a more complicated equation:

{{ math.formula("\\Re{z} =\\frac{n\\pi \\dfrac{\\theta +\\psi}{2} } {\\left(\\dfrac{\\theta +\\psi}{2}\\right)^2 + \\left( \\dfrac{1}{2} \\log \\left\\lvert\\dfrac{B}{A}\\right\\rvert\\right)^2}") }}


./MathFormula2.JPG


math.sheet(sheet : uri, width : num, height : num) : xml

Embed an InstaCalc sheet.

Parameters:

Name Type Description
sheet
uri
URI to InstaCalc sheet.
width
num
Optional.  Width of sheet (default: 425)
height
num
Optional.  Height of sheet (default: 300)

Remarks:  Refer here for more information on InstaCalc.

Samples:


Output

To embed an InstaCalc sheet:

{{ math.sheet("http://instacalc.com/?d=&c=MTAwICogNTB8MioyICsgMy80fHxzYWxlcyA9IDMwMCBtaWxsaW9uICsgMTAlfDEwIGluY2hlcyB0byBjbXwxNTAgbGJzIGluIGtnfDUgTUIvc2VjIGluIEdCL2hvdXI&s=sssssss&v=0.9") }} 

./MathSheet1.JPG
ファイルサイズ日付添付したユーザ 
 MathFormula1.JPG
説明なし
1563 バイト2007年 10月 19日, 18:59BrigetteKアクション
 MathFormula2.JPG
説明なし
3.87 kB2007年 10月 19日, 18:59BrigetteKアクション
 MathSheet1.JPG
説明なし
18.47 kB2007年 10月 19日, 19:04BrigetteKアクション
 short-math-guide.pdf
Latex AMS guide
531.67 kB2007年 8月 8日, 06:48SteveBアクション
コメント(0)
あなたはコメントを投稿するには ログイン しなければなりません。