美文网首页
Ubuntu16.04 Texlive TeXstudio Ti

Ubuntu16.04 Texlive TeXstudio Ti

作者: 王贼臣 | 来源:发表于2021-03-30 20:35 被阅读0次

参考:

https://blog.csdn.net/williamyi96/article/details/90732304

下载地址:

texlive

https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive.iso

texstudio

http://download.opensuse.org/repositories/home:/jsundermeyer/xUbuntu_16.04/amd64/texstudio_3.0.1-1+2.1_amd64.deb

https://github.com/texstudio-org/texstudio/releases/download/3.0.1/texstudio-3.0.1-x86_64.AppImage

Tikz

https://sourceforge.net/projects/pgf/files/pgf/version%203.1.1/pgf_3.1.1.tds.zip/download

http://mirrors.ctan.org/graphics/pgf/base.zip

xcolor

http://mirrors.ctan.org/macros/latex/contrib/xcolor.zip

everyshi

http://mirrors.ctan.org/macros/latex/contrib/ms.zip

pgfplots

https://www.ctan.org/pkg/pgfplots

http://mirrors.ctan.org/graphics/pgf/contrib/pgfplots.zip

Tikz样例集下载--Martin Thoma

https://www.latexstudio.net/archives/2276.html

http://pgfplots.net/和http://texample.net/

Ubuntu Texlive TeXstudio Tikz 安装与环境配置

https://blog.csdn.net/williamyi96/article/details/90732304
中文文档:

https://mirrors.ustc.edu.cn/CTAN/info/lshort/chinese/lshort-zh-cn.pdf
Latex 安装tikz(tikz.sty not found 引发的学习)

https://blog.csdn.net/myriad_dreamin/article/details/83384110
TeX系列: tikz & pgf 宏包安装步骤

https://blog.csdn.net/mathsoperator/article/details/6747170
在 Debian GNU Linux 中安装 TeXLive

https://www.bilibili.com/video/BV1vx411P7JM?from=search&seid=13827856952040857618
[LaTeX 绘图指南 - 001] TikZ 的简介、资源以及学习方法

https://www.latexstudio.net/archives/51577.html
Ubuntu中如何安装LaTeX宏包

https://blog.51cto.com/lavenliu/1537368
ubuntu 下安装 texlive 并设置 ctex 中文套装

https://blog.csdn.net/weixin_34390996/article/details/85621215
klatexformular输出tikz & pgfplots绘图

https://blog.csdn.net/ouening/article/details/102758849
pgf笔记1-简介、安装和问题

https://blog.csdn.net/hecssy/article/details/3201067

Texlive下载地址

https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/

https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive.iso

http://www.latexstudio.net/

开始:

1.安装图形化用户界面

sudo apt-get install perl-tk

2.挂载 .iso 镜像文件

sudo mount -o loop texlive.iso /mnt

3.启动图形化安装配置

cd /mnt/

sudo ./install-tl -gui

4.卸载镜像文件

cd /; sudo umount /mnt

5.字体配置

sudo cp /usr/local/texlive/2020/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
sudo fc-cache -fsv
6.添加环境变量
在 ~/.bashrc 和 ~/.profile 中均添加如下变量:

export MANPATH=${MANPATH}:/usr/local/texlive/2020/texmf-dist/doc/man
export INFOPATH=${INFOPATH}:/usr/local/texlive/2020/texmf-dist/doc/info
export PATH=${PATH}:/usr/local/texlive/2020/bin/x86_64-linux

export PATH=/usr/local/texlive/2020/bin/x86_64-linux:PATH export MANPATH=/usr/local/texlive/2020/texmf-dist/doc/man:MANPATH
export INFOPATH=/usr/local/texlive/2020/texmf-dist/doc/info:$INFOPATH

7.使添加变量立即生效

source ~/.bashrc

source ~/.profile

8.全局变量配置 /etc/manpath.config 下添加:

MANPATH_MAP /usr/local/texlive/2020/bin/x86_64-linux /usr/local/texlive/2020/texmf-dist/doc/man
9.测试latex是否成功:

/usr/local/texlive/2020/bin/x86_64-linux/tex --version

echo $PATH

source ~/.bashrc

echo $PATH

which latex

10.安装texstudio

texstudio_3.0.1-1+2.1_amd64.deb

sudo dpkg -i texstudio_3.0.1-1+2.1_amd64.deb

然后通过打开终端, ./texstudio

启动texstudio,否则在我这里会有一些问题,应该是因为latex默认在root用户路径下,访问权限问题

简单的测试

11.安装Tikz

解压下载的

base.zip

cd base

将文件夹中的tex重命名tikz

sudo cp -r tikz /usr/local/texlive/2020/texmf-dist/tex/latex/

sudo /usr/local/texlive/2020/bin/x86_64-linux/texhash

上面这一块操作,在texlive中不需要,默认安装了pgf,也就是tikz

/usr/local/texlive/2020/bin/x86_64-linux/tlmgr info pgf

ms.zip

cd ms

/usr/local/texlive/2020/bin/x86_64-linux/latex everysel.ins

sudo cp -r everysel.sty /usr/local/texlive/2020/texmf-dist/tex/latex/

sudo /usr/local/texlive/2020/bin/x86_64-linux/texhash

xcolor.zip

cd xcolor

/usr/local/texlive/2020/bin/x86_64-linux/latex xcolor/xcolor.ins

sudo cp -r ../xcolor/xcolor.sty /usr/local/texlive/2020/texmf-dist/tex/latex/

sudo /usr/local/texlive/2020/bin/x86_64-linux/texhash

pgfplots.zip

cd pgfplots

将文件夹中的tex重命名tikz

sudo cp -r pgfplots /usr/local/texlive/2020/texmf-dist/tex/latex/

sudo /usr/local/texlive/2020/bin/x86_64-linux/texhash

查看版本信息:

/usr/local/texlive/2020/bin/x86_64-linux/tlmgr info pgfplots

例子:

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{amsmath}
\usepackage{xcolor}
\begin{document}
    \pgfplotscreateplotcyclelist{mylist}{%
        {yellow},
        {neongreen, densely dashed},
        {turquoise, dashed},
        {blue,densely dotted},
        {lila,dotted},
        {red,loosely dotted},
        {black}}
    \begin{tikzpicture}
        \begin{axis}
            \addplot3[
            surf,
            ]
            {exp(-x^2-y^2)*x};
        \end{axis}
    \end{tikzpicture}
\end{document}

————————————————
版权声明:本文为CSDN博主「知识在于分享」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/baidu_40840693/article/details/109565585

相关文章

网友评论

      本文标题:Ubuntu16.04 Texlive TeXstudio Ti

      本文链接:https://www.haomeiwen.com/subject/mizghltx.html