我对 Visual Studio 代码还不熟悉,到目前为止,我所了解的基本知识是路径定义、环境设置和主机上的安装很重要。
关于在 latex 管理器中使用 .sty 文件,我不太清楚从不同目录读取文件的优先级。有三种可能性:
- sty 文件,并
moderncv
在与 .tex 文件相同的目录中进行修改 - sty 文件并
moderncv
在/home/user/texmf/tex/latex/local
目录中进行修改 - latex 管理器从主机上的 texlive 安装中读取它
/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconssymbols.sty
据我了解,这里的选项 (1) 优先,然后是 (2),然后是 (3),有人可以确认一下吗?
现在,这是我的主要问题,我得到了我的副本moderncv.cls
,我将其复制到位置(1)和(2),但是 Latex 管理器一直向我发送以下错误消息 [A],因为它从moderncv
位置 (3) 读取。
对于Latex Manager
,我texlive
按照此 [B] 部分在主机(Ubuntu 22.04)上安装并将tl;dr: Unix(ish)
设置PATH
为.profile
## For VSCode to read the path of the texLive
export PATH="/usr/local/texlive/2023/bin/x86_64-linux:$PATH"
export TEXMFHOME="/home/user/texmf"
Latex Manager项目settings.json
在这里[C],虽然我定义了.env
变量,但是并没有带来任何变化。
我已经在谷歌上搜索了足够多的信息,但都无功而返。stackexchange [D] 上有这个页面,但并没有帮助我找到其他信息。如果有人能给我指明正确的方向,那就太好了。如果需要更多信息,请告诉我。
谢谢,
[A]
[{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\xingsocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 37,
"startColumn": 1,
"endLineNumber": 37,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\gitlabsocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 40,
"startColumn": 1,
"endLineNumber": 40,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\stackoverflowsocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 41,
"startColumn": 1,
"endLineNumber": 41,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\bitbucketsocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 42,
"startColumn": 1,
"endLineNumber": 42,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\skypesocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 43,
"startColumn": 1,
"endLineNumber": 43,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\orcidsocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 44,
"startColumn": 1,
"endLineNumber": 44,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\researchgatesocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 45,
"startColumn": 1,
"endLineNumber": 45,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\telegramsocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 48,
"startColumn": 1,
"endLineNumber": 48,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\whatsappsocialsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 49,
"startColumn": 1,
"endLineNumber": 49,
"endColumn": 65536
},{
"resource": "/usr/local/texlive/2023/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty",
"owner": "LaTeX",
"severity": 8,
**"message": "Command \\bornsymbol undefined.\n",**
"source": "LaTeX",
"startLineNumber": 52,
"startColumn": 1,
"endLineNumber": 52,
"endColumn": 65536
}]--------------------
[B]https://www.tug.org/texlive/quickinstall.html
[C]
{
/* "workbench.colorTheme": "Noctis",*/
"editor.fontFamily": "'Droid Sans Fallback', 'Droid Sans Mono', 'monospace', monospace",
"editor.fontSize": 14,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 5000,
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.latex.outDir": "Pdf",
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"-aux-directory=%TMPDIR%",
"-output-directory=%OUTDIR%",
"%DOC%"
],
"env": {"TEXMFHOME": "/home/user/texmf/"}
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"--shell-escape", // if you want to have the shell-escape flag
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
//"-aux-directory=test",
"-output-directory=Misc",
"%DOC%"
],
"env": {"TEXMFHOME": "/home/user/texmf/"}
}
],
"latex-workshop.latex.recipes": [
{
"name": "latexmk",
"tools": [
"latexmk"
]
}
]
}