Advertisement
Guest User

Chinese character

a guest
Jul 8th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.21 KB | None | 0 0
  1. % !TeX encoding = UTF-8
  2. % !TeX program  = XeLaTeX
  3.  
  4.  
  5. %
  6. % https://zhuanlan.zhihu.com/p/68609133
  7. %
  8.  
  9.  
  10. \documentclass[10pt, a4paper]{article}
  11.  
  12. \usepackage{xeCJK}
  13.  
  14. \usepackage{xpinyin}
  15. \xpinyinsetup{ratio = 0.7}
  16.  
  17. \usepackage{tikz}
  18. % \usetikzlibrary{calc}
  19.  
  20.  
  21. \begin{document}
  22.  
  23. \section{识字}
  24.  
  25. \subsection*{1 春夏秋冬}
  26.  
  27. \begin{center}
  28.  
  29. \begin{tikzpicture}
  30.    \coordinate (A) at (   0, 0);
  31.    \coordinate (B) at ( 1.4, 0);
  32.    \coordinate (C) at ( 2.8 + 0.49, 0);
  33.    \coordinate (D) at ( 4.2 + 0.49, 0);
  34.    \coordinate (E) at ( 5.6 + 0.98, 0);
  35.    \coordinate (F) at ( 7.0 + 0.98, 0);
  36.    \coordinate (G) at ( 8.4 + 1.47, 0);
  37.    \coordinate (H) at ( 9.8 + 1.47, 0);
  38.    \coordinate (I) at (11.2 + 1.96, 0);
  39.    \coordinate (J) at (12.6 + 1.96, 0);
  40.  
  41.    \draw (A) node{\Huge};
  42.    \draw (B) node{\Huge};
  43.    \draw (C) node{\Huge};
  44.    \draw (D) node{\Huge};
  45.    \draw (E) node{\Huge};
  46.    \draw (F) node{\Huge};
  47.    \draw (G) node{\Huge};
  48.    \draw (H) node{\Huge};
  49.    \draw (I) node{\Huge};
  50.    \draw (J) node{\Huge};
  51.  
  52.    \draw (A) ++ (0, 1) node{\large\pinyin{chun1}};
  53.    \draw (B) ++ (0, 1) node{\large\pinyin{yu3}};
  54.    \draw (C) ++ (0, 1) node{\large\pinyin{chun1}};
  55.    \draw (D) ++ (0, 1) node{\large\pinyin{feng1}};
  56.    \draw (E) ++ (0, 1) node{\large\pinyin{chun1}};
  57.    \draw (F) ++ (0, 1) node{\large\pinyin{tian1}};
  58.    \draw (G) ++ (0, 1) node{\large\pinyin{chun1}};
  59.    \draw (H) ++ (0, 1) node{\large\pinyin{ri4}};
  60.    \draw (I) ++ (0, 1) node{\large\pinyin{dong1}};
  61.    \draw (J) ++ (0, 1) node{\large\pinyin{tian1}};
  62.  
  63.    \foreach \i in {A, B, C, D, E, F, G, H, I, J} {
  64.        \draw (\i) ++ (-0.7, -0.7) rectangle ++ (1.4, 1.4);
  65.        \draw[dashed, gray](\i) -- +(-0.7, 0);
  66.        \draw[dashed, gray](\i) -- +(+0.7, 0);
  67.        \draw[dashed, gray](\i) -- +(0, -0.7);
  68.        \draw[dashed, gray](\i) -- +(0, +0.7);
  69.    }
  70. \end{tikzpicture}
  71.  
  72. \begin{tikzpicture}
  73.    \coordinate (A) at (0, 0);
  74.    \coordinate (B) at (1.4,0);
  75.    \coordinate (C) at (2.8 + 0.49, 0);
  76.    \coordinate (D) at (4.2 + 0.49, 0);
  77.    \coordinate (E) at (5.6 + 0.98, 0);
  78.    \coordinate (F) at (7.0 + 0.98, 0);
  79.    \coordinate (G) at (8.4 + 1.47, 0);
  80.    \coordinate (H) at (9.8 + 1.47, 0);
  81.    \coordinate (I) at (11.2 + 1.96, 0);
  82.    \coordinate (J) at (12.6 + 1.96, 0);
  83.  
  84.    \draw (A) ++ (0, 1) node{\large\pinyin{li4}};
  85.    \draw (B) ++ (0, 1) node{\large\pinyin{dong1}};
  86.    \draw (C) ++ (0, 1) node{\large\pinyin{dong1}};
  87.    \draw (D) ++ (0, 1) node{\large\pinyin{ri4}};
  88.    \draw (E) ++ (0, 1) node{\large\pinyin{dong1}};
  89.    \draw (F) ++ (0, 1) node{\large\pinyin{xue3}};
  90.    \draw (G) ++ (0, 1) node{\large\pinyin{da4}};
  91.    \draw (H) ++ (0, 1) node{\large\pinyin{xue3}};
  92.    \draw (I) ++ (0, 1) node{\large\pinyin{feng1}};
  93.    \draw (J) ++ (0, 1) node{\large\pinyin{xue3}};
  94.  
  95.    \foreach \i in {A, B, C, D, E, F, G, H, I, J} {
  96.        \draw (\i) ++ (-0.7,-0.7) rectangle ++ (1.4,1.4);
  97.        \draw[dashed, gray] (\i) -- +(-0.7,0 );
  98.        \draw[dashed, gray] (\i) -- +(+0.7,0 );
  99.        \draw[dashed, gray] (\i) -- +( 0,-0.7);
  100.        \draw[dashed, gray] (\i) -- +( 0,+0.7);
  101.    }
  102. \end{tikzpicture}
  103.  
  104. \end{center}
  105.  
  106.  
  107. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement