这个只有在火狐下正常显示,在其它浏览器下可能会出现意想不到的问题。
For example `int_-1^1 sqrt(1-x^2)dx = pi/2`,
`((a,b),(c,d))^-1 = 1/(ad-bc)((d,-b),(-c,a))`
and `\sinh x=\frac{e^x-e^{-x}}{2}`.
amath
Or try ASCIIMath without delimiters: like x^2 or sin x
It can be quite convenient...
endamath
followed by a more elaborate graph (try double-clicking it, also
while holding down shift or alt)
agraph
width=300; height=200; xmin=-5; xmax=5; xscl=1;
plot((x-2)*(x-1)*x*(x+1)*(x+2)/2,-2.5,2.5);
endagraph
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
% This is a simple template for a XeLaTeX document using the "article" class,
% with the fontspec package to easily select fonts.
\documentclass[10pt]{ctexart} % use larger type; default would be 10pt
\setCJKfamilyfont{xinximingti}{PMingLiU}
\pagestyle{plain}
\usepackage{makeidx}
\usepackage{latexsym,bm,amsfonts,amssymb,mathrsfs}
\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
\usepackage{xltxtra} % Extra customizations for XeLaTeX % other LaTeX packages.....
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{xcolor}
\usepackage{indentfirst}
%\setlength{\voffset}{-15.4mm}
%\setlength{\hoffset}{-2.4mm}
\setlength{\parskip}{0pt}
%\addtolength{\hoffset}{-2.5cm}
%\addtolength{\textwidth}{2cm}
%\linespread{1}
\makeindex %激活索引命令
\title{\LaTeXe{}学习笔记}
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
% This is a simple template for a XeLaTeX document using the "article" class,
% with the fontspec package to easily select fonts.
\documentclass[10pt]{ctexart} % use larger type; default would be 10pt
\setCJKfamilyfont{xinximingti}{PMingLiU}
\pagestyle{plain}
\usepackage{makeidx}
\usepackage{latexsym,bm,amsfonts,amssymb,mathrsfs}
\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
\usepackage{xltxtra} % Extra customizations for XeLaTeX % other LaTeX packages.....
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{xcolor}
\usepackage{indentfirst}
%\setlength{\voffset}{-15.4mm}
%\setlength{\hoffset}{-2.4mm}
\setlength{\parskip}{0pt}
%\addtolength{\hoffset}{-2.5cm}
%\addtolength{\textwidth}{2cm}
%\linespread{1}
\makeindex %激活索引命令
\title{\LaTeXe{}学习笔记}
error_reporting(E_ERROR | E_WARNING | E_PARSE);
phpversion() >= '5.1.0' && date_default_timezone_set('UTC');
header("Content-Type: text/html; charset=utf-8");
$version = "v2010.04.11";
$time_start = microtime_float();
function memory_usage() {
$memory = ( ! function_exists('memory_get_usage')) ? '0' : round(memory_get_usage()/1024/1024, 2).'MB';
return $memory;
}
// 计时
function microtime_float() {
$mtime = microtime();
$mtime = explode(' ', $mtime);
return $mtime[1] + $mtime[0];
}