Forgot password?
 Create new account
View 129|Reply 1

\pgflowlevelsynccm 無效?

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2024-2-25 23:17:07 |Read mode
pgf手冊base-transformations介紹了\pgflowlevelsynccm
作用是把transform matrix同步到canvas transform matrix
下面的代碼中把\pgftransformscale{5}同步到canvas transform matrix,所以線寬也變成5倍:TeXLive.net
Untitled.png
  1. \documentclass{article}
  2. \usepackage{tikz}
  3. \begin{document}
  4. \begin{tikzpicture}
  5.   \draw[help lines] (0,0) grid (3,2);
  6.   \pgfsetlinewidth{1pt}
  7.   \pgftransformscale{5}
  8.   \draw      (0,0) -- (0.4,.2);
  9.   \pgftransformxshift{0.2cm}
  10.   \pgflowlevelsynccm
  11.   \draw[red] (0,0) -- (0.4,.2);
  12. \end{tikzpicture}
  13. \end{document}
Copy the Code

但在i.upmath.me生成的圖片是:

紅線卻不是5倍粗的!和直接編譯的LaTeX不同。為什麼?

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2024-2-25 23:28:29
手冊後面的例子,在i.upmath.me也有同樣的問題:
  1. \begin{tikzpicture}
  2.   \draw[help lines] (0,0) grid (3,2);
  3.   \pgfsetlinewidth{1pt}
  4.   \pgflowlevel{\pgftransformscale{5}}
  5.   \draw      (0,0) -- (0.4,.2);
  6. \end{tikzpicture}
Copy the Code

在LaTeX編譯的結果是而在i.upmath.me的結果是

手机版Mobile version|Leisure Math Forum

2025-4-20 22:20 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list