Forgot password
 Register account
original poster: kuing

原来 KaTeX 已提供 Copy-tex 扩展

[Copy link]

3204

Threads

7842

Posts

48

Reputation

Show all posts

hbghlyj posted 2025-4-7 18:08
abababa 发表于 2025-4-7 05:45
其实只要在那个svg里面加上一个text,就能复制出text中的文本了。
如何避免复制的公式代码前后的换行

414

Threads

1642

Posts

15

Reputation

Show all posts

abababa posted 2025-4-7 21:00
hbghlyj 发表于 2025-4-7 18:08
如何避免复制的公式代码前后的换行
是块级元素的问题吗?要不换成span试试行不行,比如
  1. <svg>
  2. <span style="position: absolute;left: -9999px;opacity: 0;pointer-events: none;">`1\ne2`</span>
  3. ...
  4. </svg>
Copy the Code

3204

Threads

7842

Posts

48

Reputation

Show all posts

hbghlyj posted 2025-4-7 21:58
abababa posted at 2025-4-7 14:00
要不换成span试试行不行
加上了👌

414

Threads

1642

Posts

15

Reputation

Show all posts

abababa posted 2025-4-8 09:17
其实眼睛那个查看的就挺好的,可以在点的时候不但显示源代码,并且一同把源代码复制进剪贴板,这样就行了,不用的话不粘贴就好了。

3204

Threads

7842

Posts

48

Reputation

Show all posts

hbghlyj posted 2025-4-8 09:29
abababa 发表于 2025-4-8 02:17
并且一同把源代码复制进剪贴板 ...
显示后可以选取需要的区域复制,很少需要复制全部吧。

3204

Threads

7842

Posts

48

Reputation

Show all posts

hbghlyj posted 2025-4-8 09:42
默认青色模板在CSS中设定了选取区域中的文字的背景色
  1. ::selection {
  2.     background-color: #429296;
  3.     color: #FFF;
  4. }
Copy the Code
但选取区域中的MathJax没有背景色,看起来不连续
如何把被选取的MathJax SVG添加相同的背景色

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-6 10:38 GMT+8

Powered by Discuz!

Processed in 0.012307 seconds, 20 queries