latex的 多行注释_Latex图形注释的实现方法
在Latex中,有時(shí)需要對(duì)pdf文檔里的圖形進(jìn)行注釋,例如添加一個(gè)箭頭,增加帶指針的文本框等等,基本上有3種實(shí)現(xiàn)的方法:
直接對(duì)插入的圖片進(jìn)行注釋,利用photoshop, GIMP等工具添加注釋涂層。缺點(diǎn):注釋好后無(wú)法在pdf中進(jìn)行修改,較死板。
利用pdf閱讀器直接添加注釋。缺點(diǎn):每次對(duì)pdf進(jìn)行修改后都必須重新添加注釋,較繁瑣。
利用Latex代碼生成對(duì)圖的注釋。缺點(diǎn):注釋的語(yǔ)法比較復(fù)雜,上手不易。優(yōu)點(diǎn):代碼調(diào)整好后圖是圖,注釋是注釋,后面.tex文檔再做其它修改并不影響pdf注釋,所謂一勞永逸之法。
這里重點(diǎn)介紹一下第三種方法,參考的一個(gè)例子來(lái)自國(guó)外的網(wǎng)站[1]:
documentclass{article}
%usepackage{showframe}
usepackage{tikz}
begin{document}
noindent
begin{tikzpicture}
node [anchor=west] (note) at (-1,3) {Large Note};
node [anchor=west] (water) at (-1,1) {Large Water};
begin{scope}[xshift=1.5cm]
node[anchor=south west,inner sep=0] (image) at (0,0) {includegraphics[width=0.7textwidth]{test.jpg}};
begin{scope}[x={(image.south east)},y={(image.north west)}]
draw[red,ultra thick,rounded corners] (0.48,0.80) rectangle (0.55,0.95);
draw [-latex, ultra thick, red] (note) to[out=0, in=-120] (0.48,0.80);
draw [-stealth, line width=5pt, cyan] (water) — ++(0.4,0.0);
end{scope}
end{scope}
end{tikzpicture}%
end{document}
上面添加了兩種線形注釋,具體參數(shù)的意義還需要另加揣摩。
參考:[1]stackexchange
本文永久更新鏈接地址:https://www.linuxidc.com/Linux/2018-04/151694.htm
舉個(gè)栗子 , 版權(quán)所有丨如未注明 , 均為原創(chuàng)丨本網(wǎng)站采用BY-NC-SA協(xié)議進(jìn)行授權(quán)
轉(zhuǎn)載請(qǐng)注明原文鏈接:Latex圖形注釋的實(shí)現(xiàn)方法
總結(jié)
以上是生活随笔為你收集整理的latex的 多行注释_Latex图形注释的实现方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 华为FreeBuds 5水滴耳机正式发布
- 下一篇: 微信和腾讯地图上线“小修小补”便民小店地