Skip to content

Instantly share code, notes, and snippets.

\makeatletter
\newcommand{\figcaption}[1]{\def\@captype{figure}\caption{#1}}
\newcommand{\tblcaption}[1]{\def\@captype{table}\caption{#1}}
\makeatother
@takuma7
takuma7 / gist:1061946
Created July 3, 2011 04:02
図+図+図
\begin{figure}[htbp]
\begin{tabular}{ccc}
\begin{minipage}{.33\textwidth}
\centering
\includegraphics[width=4cm]{foo.eps}
\caption{fooのキャプションだよ!}
\label{fig:foo}
\end{minipage}
\begin{minipage}{.33\textwidth}
\centering
@takuma7
takuma7 / gist:1061949
Created July 3, 2011 04:08
表+図+表
\begin{figure}[h]
\begin{tabular}{ccc}
\begin{minipage}{.30\textwidth}
\begin{tabular}{lc}
論理演算 & AND \\
論理式 & $F=A\cdot B$\\
真理値表 & 表\ref{table:and}\\
図記号 & 図\ref{fig:and}
\end{tabular}
@takuma7
takuma7 / komadai-math.pde
Created August 22, 2011 16:52
コマ大数学科2011/8/23
float ra=200;
float rb=ra/2;
float rc=ra/3;
float xa,ya,xb,yb,xc,yc;
float px, py;
float omega;
float t;
float vb, vc;
float phib, phic;
alias javac='javac -J-Dfile.encoding=UTF8'
alias less='/usr/share/vim/vim73/macros/less.sh'
alias grep='grep --color'
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
interface PlaneFigure{
public static final String TYPE="plane figure";
public float getArea(float base, float height);
}
class Figure{
String type="figure";
public String getType(){
return type;
}
abstract class Arbeit{
int kingaku=0;
abstract void calc(int hour);
void hyouji(){
System.out.println("got " + kingaku + " yen.");
}
}
class Convenience extends Arbeit{
void calc(int hour){