Forgot password?
 Create new account
View 1406|Reply 3

玩制表符号

[Copy link]

700

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2018-3-27 16:15:18 |Read mode
纯属无聊……
  1. \documentclass{ctexart}
  2. \xeCJKsetcharclass{"2500}{"257F}{1}
  3. \begin{document}
  4. {
  5. \lineskip=0pt
  6. \linespread{0.8}\selectfont
  7. \obeylines
  8. ┌┬┐┌─┐
  9. ├┼┤│┼│
  10. └┴┘└─┘
  11. ┏┳┓┏━┓┎┰┒┍┯┑
  12. ┣╋┫┃╋┃┠╂┨┝┿┥
  13. ┗┻┛┗━┛┖┸┚┕┷┙
  14. ╔╦╗╔═╗╓╥╖╒╤╕
  15. ╠╬╣║╬║╟╫╢╞╪╡
  16. ╚╩╝╚═╝╙╨╜╘╧╛
  17. ┏┱┐┌┲┓┌┬┐┏┳┓
  18. ┡╃┤├╄┩┟╁┧┞╀┦
  19. └┴┘└┴┘┗┻┛└┴┘
  20. ┌┬┐┌┬┐┌┮┓┏┭┐
  21. ┢╅┤├╆┪├┾┫┣┽┤
  22. ┗┹┘└┺┛└┶┛┗┵┘
  23. ┌┮┓┏┭┐┏┳┓┌┬┐
  24. ┟╆┫┣╅┧┡╇┩┢╈┪
  25. ┗┻┛┗┻┛└┴┘┗┻┛
  26. ┏┳┓┏┳┓┏┱┐┌┲┓
  27. ┞╄┫┣╃┦┣╉┤├╊┫
  28. └┶┛┗┵┘┗┹┘└┺┛
  29. ╭─╮╲╱╭╮
  30. │╳│╱╲╰╯
  31. ╰─╯
  32. ┏━┯━┯━┳━┯━┯━┳━┯━┯━┓
  33. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  34. ┠─┼─┼─╂─┼─┼─╂─┼─┼─┨
  35. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  36. ┠─┼─┼─╂─┼─┼─╂─┼─┼─┨
  37. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  38. ┣━┿━┿━╋━┿━┿━╋━┿━┿━┫
  39. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  40. ┠─┼─┼─╂─┼─┼─╂─┼─┼─┨
  41. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  42. ┠─┼─┼─╂─┼─┼─╂─┼─┼─┨
  43. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  44. ┣━┿━┿━╋━┿━┿━╋━┿━┿━┫
  45. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  46. ┠─┼─┼─╂─┼─┼─╂─┼─┼─┨
  47. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  48. ┠─┼─┼─╂─┼─┼─╂─┼─┼─┨
  49. ┃ │ │ ┃ │ │ ┃ │ │ ┃
  50. ┗━┷━┷━┻━┷━┷━┻━┷━┷━┛
  51. }
  52. \end{document}
Copy the Code
用 XeLaTeX 编译,效果:
QQ截图20180327161419.png
QQ截图20180327161441.png

700

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

 Author| kuing Posted at 2018-3-27 16:19:55
代码解释:
一、由 "2500 至 "257F 都是制表符的编码,\xeCJKsetcharclass{"2500}{"257F}{1} 就是将它们都归类为 CJK 字符,然后就会用中文字体来输出它们;
二、\obeylines 将回车变成 \par;
三、为了让各行粘在一起,改变了行距,这些改变(包括上一条)当然应该是局部的,所以整个放了在一个 { } 中。

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

isee Posted at 2018-3-27 16:56:29
作文纸?

700

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

 Author| kuing Posted at 2018-3-27 17:49:59
回复 3# isee

看最后那图大概是玩数独的

手机版Mobile version|Leisure Math Forum

2025-4-21 01:15 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list