日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

LaTeX安装

發(fā)布時(shí)間:2023/12/9 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 LaTeX安装 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

LaTeX 安裝

對(duì)于剛?cè)腴Tlatex的新手,安裝latex就想棄坑了。
以下是在windows下安裝latex的步驟
在安裝texlive前,請(qǐng)先將殺毒軟件關(guān)閉。

step1:下載texlive

在ios鏡像文件中下載texlive2022-20220321.iso。
將其放在X:\Y目錄下

step2:環(huán)境變量

使用win+R鍵并輸入cmd,點(diǎn)擊確定,打開黑窗口。
在黑窗口中輸入echo %path:;=&echo.%,查看環(huán)境變量。
若其中沒有 C:\Windows\system32環(huán)境,則step3手動(dòng)添加。如果有則step4.

step3:添加環(huán)境變量

按win+s搜索高級(jí)系統(tǒng)設(shè)置,點(diǎn)擊打開。
點(diǎn)擊環(huán)境變量
先點(diǎn)擊path,然后點(diǎn)擊編輯,在空白處加入
C:\texlive\2022\bin\win32

然后一直點(diǎn)擊確定直至退出。

step4:安裝包檢驗(yàn)

在黑窗口中輸入
cd /d X:\Y
<回車>
certutil -hashfile texlive2021.iso md5
若顯示

1 MD5 的 texlive2021.iso 哈希: 2 2893d180f1559a7bf80dfc0740f6b889 3 CertUtil: -hashfile 命令成功完成

則表示鏡像文件正常。

step5:

在你要安裝的目錄下創(chuàng)建文件夾(注意文件夾路徑名稱為不帶空格的英文)。
然后,將下載的iso文件裝載,獲得一個(gè)虛擬磁盤,每個(gè)人的磁盤名稱不同,我的是E盤。
在該磁盤上輸入cmd,進(jìn)入該目錄的黑窗口。

在黑窗口中輸入 E:\install-tl-windows.bat --no-gui
將看到如下結(jié)果

1 =====================> TeX Live installation procedure <===================== 2 3 ======> Letters/digits in <angle brackets> indicate <======= 4 ======> menu items for actions or customizations <======= 5 = help> https://tug.org/texlive/doc/install-tl.html <======= 6 7 Detected platform: Windows 8 9 <B> set binary platforms: 1 out of 6 10 11 <S> set installation scheme: scheme-full 12 13 <C> set installation collections: 14 41 collections out of 41, disk space required: 7155 MB 15 16 <D> set directories: 17 TEXDIR (the main TeX directory): 18 C:/texlive/2021 19 TEXMFLOCAL (directory for site-wide local files): 20 C:/texlive/texmf-local 21 TEXMFSYSVAR (directory for variable and automatically generated data): 22 C:/texlive/2021/texmf-var 23 TEXMFSYSCONFIG (directory for local config): 24 C:/texlive/2021/texmf-config 25 TEXMFVAR (personal directory for variable and automatically generated data): 26 ~/.texlive2021/texmf-var 27 TEXMFCONFIG (personal directory for local config): 28 ~/.texlive2021/texmf-config 29 TEXMFHOME (directory for user-specific files): 30 ~/texmf 31 32 <O> options: 33 [ ] use letter size instead of A4 by default 34 [X] allow execution of restricted list of programs via \write18 35 [X] create all format files 36 [X] install macro/font doc tree 37 [X] install macro/font source tree 38 [X] adjust search path 39 [1] add menu items, shortcuts, etc. 40 [1] update file associations 41 [X] install TeXworks front end 42 [X] after install, set CTAN as source for package updates 43 44 <V> set up for portable installation 45 46 Actions: 47 <I> start installation to hard disk 48 <P> save installation profile to 'texlive.profile' and exit 49 <Q> quit 50 51 Enter command:

這里我們選擇I將texli安裝在默認(rèn)位置(C:\texlive\2022)。
該安裝過程比較漫長,請(qǐng)耐心等待。

step6:

待step5完成后,再次打開黑窗口輸入 tex -v,若顯示

1 TeX 3.141592653 (TeX Live 2021/W32TeX) 2 kpathsea version 6.3.3 3 Copyright 2021 D.E. Knuth. 4 There is NO warranty. Redistribution of this software is 5 covered by the terms of both the TeX copyright and 6 the Lesser GNU General Public License. 7 For more information about these matters, see the file 8 named COPYING and the TeX source. 9 Primary author of TeX: D.E. Knuth.

則說明安裝成功。

總結(jié)

以上是生活随笔為你收集整理的LaTeX安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。