作者weiye (^__^)
看板LaTeX
标题Re: [问题] 如何划斜的箭号
时间Sun Mar 21 07:58:12 2010
对 TikZ 还没有很熟,硬做了一个丑丑的(指语法)如下。
看起来的效果像是
http://www.scribd.com/doc/28688635/Test-3
不知道是不是要这个。
\documentclass{article}
\usepackage{tikz}
% Optional PGF libraries
\usepackage{pgflibraryarrows}
\usepackage{pgflibrarysnakes}
\begin{document}
\begin{tikzpicture}
\draw (0,3) node{$\displaystyle\frac{1}{1}$};
\draw (0,2) node{$\displaystyle\frac{1}{2}$};
\draw (0,1) node{$\displaystyle\frac{1}{3}$};
\draw (0,0) node{$\vdots$};
\draw (1,3) node{$\displaystyle\frac{1}{2}$};
\draw (1,2) node{$\displaystyle\frac{1}{3}$};
\draw (1,1) node{$\displaystyle\frac{1}{4}$};
\draw (1,0) node{$\vdots$};
\draw (2,3) node{$\displaystyle\frac{1}{3}$};
\draw (2,2) node{$\displaystyle\frac{1}{4}$};
\draw (2,1) node{$\displaystyle\frac{1}{5}$};
\draw (2,0) node{$\vdots$};
\draw (3,3) node{$\cdots$};
\draw (3,2) node{$\cdots$};
\draw (3,1) node{$\cdots$};
\draw (3,0) node{$\ddots$};
\draw[->, very thick] (0,3)+(-0.5,-0.5) -- ++(0.5,0.5);
\draw[->, very thick] (0,2)+(-0.5,-0.5) -- ++(1.5,1.5);
\draw[->, very thick] (0,1)+(-0.5,-0.5) -- ++(2.5,2.5);
\draw[->, very thick] (0,0)+(-0.5,-0.5) -- ++(3.5,3.5);
\end{tikzpicture}
\end{document}
※ 引述《rogerli (我不想当好人,但...)》之铭言:
: ※ 引述《bwolf1086 (蓝狼)》之铭言:
: : 想打一个像
: : ↗ ↗ ↗ ↗
: : 1 1/2 1/3 ...
: : / / /
: : 1/2 1/3 1/4 ...
: : / / /
: : 1/3 1/4 1/5 ...
: : / /
: : .
: : .
: : .
: : 数条个从左下往右上通过每相同大小数字的箭号要怎麽画?
: : 谢谢
: \documentclass{report}
: \usepackage{amssymb}
: \begin{document}
: \begin{tabular}{ccccccccc}
: & $\nearrow$ & &$\nearrow$ & &$\nearrow$&&$\nearrow$&$\nearrow$ \\
: 1 & & 1/2 & & 1/3 & &1/4& & $\cdots$ \\
: &$\diagup$ & &$\diagup$ & &$\diagup$& &$\diagup$& \\
: \end{tabular}
: \end{document}
: 表格大小等等自己再去调整吧。
: 去搜寻symbols-a4.pdf 这个档案,特殊符号的问题大概都可以解决了。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 116.118.154.100
※ 编辑: weiye 来自: 116.118.154.100 (03/21 08:01)
※ 编辑: weiye 来自: 116.118.154.100 (03/21 08:03)
1F:→ weiye:tikz 有 for 回圈,不过不知道如何用 LaTeX 做数字+-*/运算? 03/21 08:13
2F:推 bwolf1086:嗯嗯,是想要这个样子,谢谢 03/21 23:18