用 LaTeX 排版特殊形状的文本

文本排版 2019-09-18 14:20  浏览 :415

主要用到的一个shapepar 的一个宏包,通过修改路径可以得到自己想要的结果。

文本选用的是《Yesterday once more》的歌词

效果图如下

代码如下

\\documentclass{article}
\\usepackage{tikz}
\\usepackage{calc}
\\usepackage{shapepar}

\\renewcommand\\nutshape{
{17.91}
{0.94}b{22.97}\\\\
{1.58}t{22.86}{.82}\\\\
{1.94}t{22.79}{1.50}\\\\
{2.2}t{22.84}{1.87}\\\\
{2.86}t{23.04}{2.71}\\\\
{3.15}t{23.12}{3.40}\\\\
{3.61}t{23.20}{4.81}\\\\
{3.88}t{23.27}{5.45}\\\\
{4.52}t{23.48}{6.04}\\\\
{4.96}t{23.28}{6.73}\\\\
{5.55}t{23.72}{6.57}\\\\
{6.2}t{23.58}{8.02}\\\\
{6.69}t{23.41}{9.57}\\\\
{7.12}t{23.35}{10.20}\\\\
{7.6}t{23.04}{10.08}\\\\
{7.79}t{22.83}{7.72}\\\\
{8.33}t{22.58}{7.45}\\\\
{9.02}t{22.20}{7.65}\\\\
{9.73}t{21.86}{7.23}\\\\
{10.53}t{21.52}{7.39}\\\\
{11.18}t{21.18}{7.78}\\\\
{11.88}t{20.37}{8.73}\\\\
{12.18}t{8.31}{.74} s t{19.87}{9.36}\\\\
{12.87}t{8.85}{.98} t{18.93}{10.51}\\\\
{14.01}t{9.74}{.95} t{17.61}{12.21}\\\\
{14.24}t{10.56}{.77} t{17.40}{12.57}\\\\
{16.35}t{11.86}{1.15} t{15.94}{13.88}\\\\
{17.46}t{12.82}{1.06} t{15.36}{14.25}\\\\
{18.35}t{13.62}{1.22} j t{14.85}{14.33}\\\\
{19.14}t{13.94}{14.94}\\\\
{21.05}t{12.88}{15.34}\\\\
{22.96}t{11.90}{14.92}\\\\
{23.88}t{11.51}{14.78}\\\\
{25.38}t{11.17}{13.93}\\\\
{25.94}t{10.89}{13.61}\\\\
{26.94}t{10.42}{12.81}\\\\
{28.01}t{10.03}{10.94}\\\\
{29.06}t{9.83}{9.71} s t{19.55}{2.13}\\\\
{31.44}t{8.77}{6.26} t{21.79}{2.06}\\\\
{32.4}t{8.58}{5.12} t{22.62}{2.80}\\\\
{33.59}t{7.85}{4.99}  t{23.01}{2.61}\\\\
{35.15}t{7.02}{4.98} t{23.71}{2.91}\\\\
{37.48}t{5.54}{5.71} t{25.29}{1.92}\\\\
{39.75}t{3.80}{6.47} t{26.24}{2.10}\\\\
{42.32}t{2.38}{6.52} t{27.40}{2.32}\\\\
{42.94}t{2.35}{6.06} j t{27.55}{2.27}\\\\
{43.71}t{2.26}{5.34}\\\\ 
{43.91}t{2.26}{4.36}\\\\
{44.2}t{2.26}{3.35}\\\\
{44.48}t{2.31}{2.30}\\\\
{44.95}t{2.45}{1.54}\\\\
{45.52}t{2.86}{.64}\\\\
{45.55} e{3.21}
}

\\begin{document}

\\nutpar{
When I was young I'd listen to the radio Waiting for my favorite songs When they played I'd sing along It made me smile Those were such happy times  and not so long ago How I wondered  where they'd gone But they're back again  just like a long lost friend All the songs I love so well Every shalala every wo'wo still shines Every shing-a-ling-a-ling  that they're starting to sing so fine When they get to the part where he's breaking her heart It can really make me cry just like before It's yesterday once more Shoobie do lang lang Shoobie do lang lang Looking back on  how it was in years gone by And the good times that I had makes today seem rather sad So much has changed It was songs of love  that I would sing to them And I'd memorise each word Those old melodies  still sound so good to me As they melt the years away Every shalala every wo'wo  still shines Every shing-a-ling-a-ling  that they're starting to sing so fine All my best memories come back clearly to me Some can even make me cry just like before It's yesterday once more Shoobie do lang lang Every shalala every wo'wo  still shines Every shing-a-ling-a-ling  that they're starting to sing so fine Every shalala every wo'wo still shines.}

\\end{document}
发布评论
登录后方可评论!点击登录
全部评论 (0)
暂无评论, 快来抢沙发!