AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[latex](ubuntu)

Martin Hope
Archisman Panigrahi
Asked: 2021-12-02 22:49:49 +0800 CST

如何在 Ubuntu 20.04 中使用 XeLaTeX 和 TeXstudio?

  • 1

我正在尝试在 Ubuntu 20.04 中编译一个 .tex 文件,它需要 XeLaTeX。

虽然我可以在命令行中使用 编译它xelatex file.tex,但它在 TeXstudio 中不起作用。

Fatal Package fontspec Error: The fontspec package requires either XeTeX or(fontspec) LuaTeX. \msg_fatal:nn {fontspec} {cannot-use-pdftex}
Emergency stop. \msg_fatal:nn {fontspec} {cannot-use-pdftex}

如何让 TeXstudio 使用 XeLaTeX?我可以在 TeXstudio 设置的命令部分看到 XeLaTeX,但它仍然不使用它。

latex
  • 1 个回答
  • 714 Views
Martin Hope
Felix B.
Asked: 2021-08-04 04:23:26 +0800 CST

在ubuntu上恢复`/usr/bin/latex` [重复]

  • 3
这个问题在这里已经有了答案:
如何恢复意外删除的 /bin/ls 二进制 2 个答案
去年关闭。

我想在 ubuntu 上卸载 texlive 并使用apt remove texlive,但仍然找到了一些程序/usr/bin/latex,所以我手动删除了它(rm)。当我重新安装 texlive 时apt install texlive,/usr/bin/latex文件没有恢复。

latex
  • 2 个回答
  • 374 Views
Martin Hope
ahmathelte
Asked: 2020-11-04 07:08:43 +0800 CST

在 Ubuntu 18.04 中安装 texlive-full

  • 1

我正在尝试安装 texlive-full 不幸的是,这里的答案无济于事!

错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 texlive-full : Depends: asymptote but it is not going to be installed
            Depends: biber but it is not going to be installed
            Depends: cm-super (>= 0.3.3-3) but it is not going to be installed
            Depends: context but it is not going to be installed
            Depends: dvipng but it is not going to be installed
            Depends: feynmf but it is not going to be installed
            Depends: fragmaster but it is not going to be installed
            Depends: latex-cjk-all (>= 4.6.0+cvs20060714-2) but it is not going to be installed
            Depends: latexmk but it is not going to be installed
            Depends: lmodern (>= 0.93.3) but it is not installable
            Depends: prerex (> 6.5.3-1) but it is not going to be installed
            Depends: purifyeps but it is not going to be installed
            Depends: texlive-base (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-bibtex-extra (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-binaries (>= 2019.20190605)
            Depends: texlive-extra-utils (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-font-utils (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-fonts-extra (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-fonts-extra-doc (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-fonts-extra-links (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-fonts-recommended (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-fonts-recommended-doc (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-formats-extra (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-games (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-humanities (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-humanities-doc (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-lang-arabic (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-chinese (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-cjk (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-cyrillic (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-czechslovak (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-english (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-european (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-french (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-german (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-greek (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-italian (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-japanese (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-korean (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-other (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-polish (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-portuguese (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-lang-spanish (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-latex-base (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-latex-base-doc (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-latex-extra (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-latex-extra-doc (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-latex-recommended (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-latex-recommended-doc (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-luatex (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-metapost (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-metapost-doc (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-music (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-pictures (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-pictures-doc (>= 2019.20200218) but it is not going to be installed
            Depends: texlive-plain-generic (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-pstricks (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-pstricks-doc (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-publishers (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-publishers-doc (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-science (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-science-doc (>= 2019.202000218) but it is not going to be installed
            Depends: texlive-xetex (>= 2019.20200218) but it is not going to be installed
            Depends: tipa (>= 2:1.2-2.1) but it is not going to be installed
            Depends: vprerex (> 6.5.3-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

另外我运行命令sudo apt-cache policy texlive-full,输出是:

texlive-full:
Installed: (none)
Candidate: 2019.20200302-1~18.04.york0
Version table:
 2019.20200302-1~18.04.york0 500
    500 http://ppa.launchpad.net/jonathonf/texlive/ubuntu bionic/main amd64 Packages
    500 http://ppa.launchpad.net/jonathonf/texlive/ubuntu bionic/main i386 Packages
 2019.20190311-1~18.04.york0 500
    500 http://ppa.launchpad.net/jonathonf/texlive-2019/ubuntu bionic/main amd64 Packages
    500 http://ppa.launchpad.net/jonathonf/texlive-2019/ubuntu bionic/main i386 Packages
 2017.20180305-1 500
    500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
    500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages

从上面的解决方案中,我尝试删除 libkpathsea6 但未安装:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libkpathsea6' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
package-management apt latex 18.04
  • 1 个回答
  • 3714 Views
Martin Hope
Rubi Shnol
Asked: 2020-09-28 04:58:56 +0800 CST

让 snap 应用程序访问 LaTeX

  • 2

有没有人找到解决快照应用程序无法访问外部内容的问题?例如,Inkscape的著名 LaTeX 插件TeXText将不再工作,因为:

TexText for Inkscape 1.0 will not function if you installed Inkscape 1.0 via SNAP or 
FLATPACK. The reason is that Inkscape 1.0 will run in sandboxed mode in these environments and, 
hence, cannot access you LaTeX distribution to compile your snippets! This is a conceptional 
problem of snap/ flatpack, not of TexText for Inkscape 1.0

同时,恢复到以前版本的 Inkscape 似乎不是一个解决方案,因为旧版本的 TeXText 使用过时的版本gtk,在新版本的 Ubuntu (>=18) 下无法正常工作。我的版本是 20.04。

它还会影响xournal++等中的 LaTeX 功能。

通过 snap 安装的应用程序根本无法访问 LaTeX。

该怎么办?

permissions latex paths snap
  • 1 个回答
  • 135 Views
Martin Hope
Asqiir
Asked: 2020-07-10 05:52:00 +0800 CST

无法使用 gscan2pdf 打开用乳胶创建的简单 pdf

  • 1

所以,我想从多个中制作一个 pdf。为此,我决定使用 gscan2pdf。我有一堆打开得很好的“图像-pdf”。

我必须插入一个只有几行文本的页面。我在乳胶中创建了一个简单的pdf:

\documentclass{article}
\title{Titel}
\begin{document}
\maketitle
test
\end{document}

而已。它编译得很好。我可以用我的普通 pdf 阅读器打开它。但是,当我尝试使用 gscan2pdf 打开它时,每次都会出现以下错误:

警告:gscan2pdf 需要每页一张图片,但这并不令人满意。PDF 可能没有正确导入。

如果您希望将扫描添加到现有 PDF,请使用“保存”对话框中的前置/附加到 PDF 选项。


会发生什么以及如何打开 pdf?

pdf latex
  • 1 个回答
  • 162 Views
Martin Hope
BowPark
Asked: 2020-06-26 05:11:47 +0800 CST

LaTeX TexStudio 安装后缺少 letltxmacro.sty

  • 29

我正在运行 Ubuntu 20.04。我通过aptitude. 但是当我尝试构建文档时,我在 TexStudio 中得到以下错误:

File `letltxmacro.sty' not found. \RequirePackage{letltxmacro}[2008/06/13]

经过一番谷歌搜索,我发现它可能属于包gl2ps或libgl2ps*. 但是,它们在我的存储库中都不可用:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gl2ps

有可能解决这个问题吗?如果是,如何?

package-management compiling apt latex
  • 1 个回答
  • 14412 Views
Martin Hope
rob
Asked: 2020-04-30 03:15:48 +0800 CST

MiKTeX 安装问题

  • 3

我正在尝试修复 Ubuntu 18.04 上的 MiKTeX 安装,或者至少我想删除它及其所有软件包以安装 TexLive。

几周前我尝试按照https://miktex.org/howto/install-miktex-unx安装它,我得到了

N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu bionic InRelease' doesn't support architecture 'i386'

我没有太多时间来解决这个问题,所以我什么也没做。今天早上龚回到它,我在最后一步尝试了这个解决方案:

存储库“http://miktex.org/download/ubuntu xenial InRelease”不支持架构“i386”

然后我运行:

 rob@rob-Ubuntu:~$ sudo apt install miktex
 Reading package lists... Done
 Building dependency tree       
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:

 The following packages have unmet dependencies.
 miktex : Depends: libhunspell-1.3-0 (>= 1.3.3) but it is not installable
          Depends: libicu55 (>= 55.1-1~) but it is not installable
          Depends: libmpfr4 (>= 3.1.3) but it is not installable
          Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
 E: Unable to correct problems, you have held broken packages.

而且,最后

 rob@rob-Ubuntu:~$ sudo aptitude install libhunspell-1.3-0
 No candidate version found for libhunspell-1.3-0
 Unable to apply some actions, aborting

似乎没有任何效果。

有什么建议么?

我想 1- 正确安装 Miktex 或 2- 取消与之相关的任何内容,然后安装 TexLive。

package-management aptitude latex 18.04
  • 1 个回答
  • 2521 Views
Martin Hope
GunJack
Asked: 2020-04-19 09:46:53 +0800 CST

快速直播乳胶展示

  • 1

我是一名数学老师,必须在这次封锁中通过视频教我的学生。现在我想要的只是查看表达式和方程式。我的目标是通过共享我的屏幕并使用某种能够在旅途中显示结果的 LaTex 编辑器来实现这一点。我知道有一些在线工具。但是有没有这样的应用程序原生于 linux。我不希望使用此编辑器构建复杂的文档。只是某种拆分视图,我的乳胶将在我键入时或在每个语句之后变成表达式。

latex desktop-apps
  • 1 个回答
  • 91 Views
Martin Hope
user1237300
Asked: 2019-12-22 18:54:33 +0800 CST

在 /usr/local/bin 中找不到 gnuplot

  • 0

我正在运行一个我发现的 bash 脚本,它负责使用 gnuplot 生成乳胶。

该脚本包括以下行:

gnuplot_cmd="/usr/local/bin/gnuplot";

和

if [ ! -e $gnuplot_cmd ];
then
  echo "# Error: gnuplot not found";

bash 脚本在我的计算机中引发错误。我已经gnuplot安装并且可以正常工作。但是,在/usr/local/bin/gnuplot.

关于如何解决此问题的任何建议?

谢谢!

software-installation bash latex gnuplot
  • 2 个回答
  • 1708 Views
Martin Hope
user1237300
Asked: 2019-12-14 09:47:25 +0800 CST

日志文件中的texlive问题

  • 3

我在 ubuntu 中的日志文件有问题。日志文件变得如此之大~8gb,以至于它减慢了我的机器速度。

该日志抱怨以下内容:

警告:未找到字体“cmr10”,尝试使用公制文件

页面:错误:/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr10.tfm:文件损坏,或者不是 TFM 文件

我能够在cmr10.tfm网上找到一个文件并将其替换为我拥有的文件。然而,问题仍然存在。

谁能指导我解决这个问题?我正在考虑重新安装texlive。帮助表示赞赏。

log latex disk-usage
  • 1 个回答
  • 710 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve