Guest User

Untitled

a guest
Aug 17th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. % !TeX TS-program = lualatex
  2. \documentclass{article}
  3. \usepackage{fontspec}
  4. \usepackage{tikz}
  5. \begin{document}
  6. \newwrite\tempfile
  7. \begin{tikzpicture}[remember picture, overlay]
  8. \setmainfont{SauceCodeProMediumNerdFontComplete}
  9. \node at ([xshift=12pt,yshift=30pt]current page.south west) {\symbol{"2615}};
  10. \node at ([xshift=19pt,yshift=30pt]current page.south west) {a};
  11. \immediate\openout\tempfile=szerokosc.txt
  12. \newlength{\foo}
  13. \settowidth{\foo}{\symbol{"2615}}
  14. \immediate\write\tempfile{char 2615 \the\foo}
  15. \settowidth{\foo}{a}
  16. \immediate\write\tempfile{char a \the\foo}
  17. \end{tikzpicture}
  18. \immediate\closeout\tempfile
  19.  
  20. \end{document}
  21.  
  22.  
  23. I get :
  24. <szerokosc.txt>
  25. char 2615 0.0pt
  26. char a 0.0pt
  27.  
Advertisement
Add Comment
Please, Sign In to add comment