Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
3
votes
5
answers
663
views
removing braces statements containing nested braces inside
A typical latex problem: \SomeStyle{\otherstyle{this is the \textit{nested part} some more text...}} Now I want to remove all `\SomeStyle{...}` but not the content. Content contains nested braces. The line above should become: \otherstyle{this is the \textit{nested part} some more text...} Questions...
A typical latex problem:
\SomeStyle{\otherstyle{this is the \textit{nested part} some more text...}}
Now I want to remove all
\SomeStyle{...}
but not the content. Content contains nested braces. The line above should become:
\otherstyle{this is the \textit{nested part} some more text...}
Questions:
1. Does any latex editor offer a way to do it?
2. What editor/script does it?
3. How to do it with sed? [🤓]
My solution is a bash script using sed.
1. prepare text: mark replace string with ascii bell, add newline after each brace
2. loop: find { -> add X to hold space, find } -> remove X from hold space, hold space empty -> remove closing }
3. restore newlines and ascii bell to previous
The script works but fails with:
\badstyle{w}\badstyle{o}\badstyle{r}\badstyle{d}
Iit will become:
wo}rd}
the branching to :f seems not to work.
F=$(sed 's|\\|\\\\|g;s|{|\\{|g' <<< "$1" )
# mark all removestrings with ascii bell and newline
# add newline after each { and }
SEDpre='
s|'"$F"'|\a%\n|g
s|\{|\{\n|g
s|\}|\}\n|g
'
SEDpost='
:a;N;$!ba;
s|\a%\n||g
s|\{\n|\{|g
s|\}\n|\}|g
'
# count the brackets
SED='
/\a%/{
:a
n
:f
/\{/{x;s|$|X|;x;ba}
/\}/{x;
s|X||;
/^$/{x;bb}
x
ba
}
}
b
:b
/\}/{
s|\}||;
N;
s|\n||;
/\a%/bf
}
'
sed -r -E "$SEDpre" "$2" | sed -rE "$SED" | sed -rE "$SEDpost"
Thierry Blanc
(153 rep)
Feb 6, 2025, 10:15 AM
• Last activity: Feb 8, 2025, 07:19 PM
2
votes
1
answers
373
views
How can I install TeXLive bbm.sty without the full 3 GB install?
I have a fairly large (~ 1 GB) texlive install on Ubuntu 24 LTS: ``` $ apt list --installed | grep texlive WARNING: apt does not have a stable CLI interface. Use with caution in scripts. texlive-base/noble,now 2023.20240207-1 all [installed,automatic] texlive-binaries/noble,now 2023.20230311.66589-9...
I have a fairly large (~ 1 GB) texlive install on Ubuntu 24 LTS:
$ apt list --installed | grep texlive
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
texlive-base/noble,now 2023.20240207-1 all [installed,automatic]
texlive-binaries/noble,now 2023.20230311.66589-9build3 amd64 [installed,automatic]
texlive-fonts-recommended/noble,now 2023.20240207-1 all [installed,automatic]
texlive-lang-greek/noble,now 2023.20240207-1 all [installed,automatic]
texlive-latex-base/noble,now 2023.20240207-1 all [installed,automatic]
texlive-latex-extra/noble,now 2023.20240207-1 all [installed]
texlive-latex-recommended/noble,now 2023.20240207-1 all [installed,automatic]
texlive-pictures/noble,now 2023.20240207-1 all [installed,automatic]
texlive-plain-generic/noble,now 2023.20240207-1 all [installed,automatic]
texlive-science/noble,now 2023.20240207-1 all [installed]
texlive/noble,now 2023.20240207-1 all [installed]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
I need to compile a LaTeX file which uses the bbm.sty
file. It's provided by texlive-fonts-extra
- but that package takes another 2 GB of disk space!
$ sudo apt-get install texlive-fonts-extra | grep MB
Need to get 728 MB of archives.
After this operation, 2017 MB of additional disk space will be used.
all for one little file. I tried installing it via the TeX package manager, but couldn't:
$ sudo tlmgr install bbm
(running on Debian, switching to user mode!)
(see /usr/share/doc/texlive-base/README.tlmgr-on-Debian.md)
TLPDB: not a directory, not loading: /root/texmf
tlmgr: user mode not initialized, please read the documentation!
I don't use TeX very often, and don't want to fill my drive with GBs of files for it. In fact, the 1 GB I have for it is already too much. Is there anyway I can slim down my TeX install and still add the needed bbm.sty
file? Or is there no reliable way other than to dedicate several GBs?
I'm happy deleting the ubuntu packages and doing a native install. My only requirement is that I should be able to use LaTeX on standard math and CS papers _and_ not dedicate over a GB to it.
SRobertJames
(133 rep)
Jan 29, 2025, 06:18 AM
• Last activity: Jan 30, 2025, 08:13 AM
1
votes
1
answers
44
views
File 'darkmode.sty' not found, emergency stop
### Description When using vimtex to compile my document, I get the error: ``` File `darkmode.sty' not found. error| Emergency stop. error| Fatal error occurred, no output PDF file produced! ``` This error is coming up with several different packages such as darkmode, circuitikz, and float. When I r...
### Description
When using vimtex to compile my document, I get the error:
File `darkmode.sty' not found.
error| Emergency stop.
error| Fatal error occurred, no output PDF file produced!
This error is coming up with several different packages such as darkmode, circuitikz, and float. When I run latexmk from my command line, it compiles without an issue. Specifically, the following is the output I get on an example file:
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 31 Jan. 2024. Version 4.83.
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': Reasons for rerun
Category 'other':
Rerun of 'pdflatex' forced or previously required:
Reason or flag: 'Initial setup'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -recorder "temp.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/nixos.org) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./temp.tex
LaTeX2e patch level 1
L3 programming layer
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/base/size10.clo))
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/darkmode/darkmode.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/l3kernel/expl3.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/l3backend/l3backend-pdftex.def))
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/l3packages/l3keys2e/l3keys2e.sty)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/xcolor/xcolor.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/color.cfg)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics-def/pdftex.def)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics/mathcolor.ltx))
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/pagecolor/pagecolor.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/kvoptions/kvoptions.sty
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/graphics/keyval.sty)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/generic/ltxcmds/ltxcmds.sty)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/latex/kvsetkeys/kvsetkeys.sty)))) (./temp.aux)
(/nix/store/jq3pgdrl04wbgrsxhvkglcfv0b1dsj3q-texlive-combined-2023-texmfdist/te
x/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) [1{/nix/store/43i94gavdacv9x87kjw3d11lrh05wffn-texlive-combined-2023/share/te
xmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./temp.aux) )
Output written on temp.pdf (1 page, 16780 bytes).
Transcript written on temp.log.
Latexmk: Getting log file 'temp.log'
Latexmk: Examining 'temp.fls'
Latexmk: Examining 'temp.log'
Latexmk: Log file says output to 'temp.pdf'
Latexmk: All targets (temp.pdf) are up-to-date
The example file in question is:
\documentclass{article}
\usepackage{darkmode}
\enabledarkmode
\begin{document}
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}
### Steps to reproduce
1. Open a minimal tex document in neovim
2. Use the darkmode package (also an issue with several other packages)
3. Run :VimtexCompileSS
### Expected behavior
The document compiles with no issues as is the case one the command line
### Actual behavior
The error in question is output and the document fails to compile
### VimtexInfo
System info:
OS: Linux 6.6.63
Vim version: NVIM v0.10.2
Has clientserver: true
Servername: /run/user/1000/nvim.29353.0
VimTeX project: temp
base: temp.tex
root: /home/ea
tex: /home/ea/temp.tex
main parser: current file verified
document class: article
packages: darkmode expl3 keyval kvoptions kvsetkeys l3keys2e ltxcmds pagecolor xcolor
compiler: latexmk
engine: -pdf
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 1
executable: latexmk
viewer: Zathura
xwin id: 0
qf method: LaTeX logfile
### System Info
I run NixOS with home manager. I have latex installed according to the NixOS Wiki page on TexLive . Specifically, I've installed a combined set of the full scheme with the darkmode package specified:
let
tex = (pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-full
darkmode;
});
dependencies = with pkgs; [
tex
];
in {
and
home.packages = with pkgs; [
tex
];
ethananthony271
(31 rep)
Dec 24, 2024, 02:39 AM
• Last activity: Dec 24, 2024, 05:38 AM
4
votes
1
answers
177
views
Transform bibliographic references for use with Latex
I was given a long word document which I have to port to Latex. In the document all citations appear in the classic form with author and year. Something like Lorem ipsum dolor (Sit, 1998) amet, consectetur adipiscing (Slit 2000, Sed and So 2002, Eiusmod et al. 1976). Tempor incididunt ut labore et d...
I was given a long word document which I have to port to Latex. In the document all citations appear in the classic form with author and year. Something like
Lorem ipsum dolor (Sit, 1998) amet, consectetur adipiscing (Slit 2000, Sed and So 2002, Eiusmod et al. 1976).
Tempor incididunt ut labore et dolore magna aliqua (Ut et al. 1312)
This references need to get the proper key reference as it appears in a list of bib references. In other words the text should translate to
Lorem ipsum dolor \cite{sit1998} amet, consectetur adipiscing \cite{slit2000,sed2002,eiusmod1976}.
Tempor incididunt ut labore et dolore magna aliqua \cite{ut1312}
That means:
- extract all the strings that are composed of name(s) and year enclosed in parentheses
- strip that string of spaces, second names (everything after the first name) and capital letters
- use the resulting string to form the new \cite{string}
I understand that this may be quite a complex task. I was wondering maybe someone has written a script fo this specific task. Alternatively any partial suggestion is also welcome. I am currently working in MacOS.
Manfredo
(93 rep)
Feb 4, 2020, 04:56 PM
• Last activity: Oct 22, 2024, 10:23 AM
0
votes
0
answers
47
views
Fedora latex doc packages
There is the dnf package latex-scheme-full, which I have installed (using Fedora 40). However, running `texdoc [some installed package]` rarely yields anything useful; which I attribute to the various latex documentation packages dnf provides not being installed. There seems to be no `latex-scheme-f...
There is the dnf package latex-scheme-full, which I have installed (using Fedora 40). However, running
texdoc [some installed package]
rarely yields anything useful; which I attribute to the various latex documentation packages dnf provides not being installed. There seems to be no latex-scheme-full-doc
-package. How can I get the latex docs through dnf?
Bubaya
(141 rep)
Sep 24, 2024, 12:32 PM
0
votes
0
answers
80
views
Setting up KOMA-Script for use in Emacs org-mode
I have Linux Mint and want to use KOMA-Script in Emacs org-mode. When running a simple sample template from [here](https://ridaayed.com/posts/writing-letters-in-org-mode/#create-the-yasnippets-template) it generates a number of errors, particularly `"Unknown LaTeX Class 'default-koma-letter'"`. I ha...
I have Linux Mint and want to use KOMA-Script in Emacs org-mode. When running a
simple sample template from [here](https://ridaayed.com/posts/writing-letters-in-org-mode/#create-the-yasnippets-template) it generates a number of errors,
particularly
"Unknown LaTeX Class 'default-koma-letter'"
. I have
already posted this to the Emacs community (see [here](https://emacs.stackexchange.com/questions/81430/setting-up-koma-script)) , but was
referred to this exchange, as it likely has to do with my TeX Live set
up. I have the following version of TeX Live installed:
"pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev"
Following the advice from [here](https://tex.stackexchange.com/questions/331906/installing-using-koma-script-with-tex-live-on-kali-linux) ,
I ran the command sudo apt-get install texlive-latex-recommended
,
which produced the following output:
texlive-latex-recommended is already the newest version (2021.20220204-1).
texlive-latex-recommended set to manually installed.
The following packages were automatically installed and are no longer required:
libwpe-1.0-1 libwpebackend-fdo-1.0-1 linux-headers-5.15.0-91
linux-headers-5.15.0-91-generic linux-headers-5.15.0-92
linux-headers-5.15.0-92-generic linux-headers-5.15.0-97
linux-headers-5.15.0-97-generic linux-image-5.15.0-91-generic
linux-image-5.15.0-92-generic linux-image-5.15.0-97-generic
linux-modules-5.15.0-91-generic linux-modules-5.15.0-92-generic
linux-modules-5.15.0-97-generic linux-modules-extra-5.15.0-91-generic
linux-modules-extra-5.15.0-92-generic linux-modules-extra-5.15.0-97-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
Judging by this, I already seem to have TeX Live installed, but
KOMA-Script isn't used when exporting from org-mode. Which steps do I
need to take to further investigate this resp. to resolve this? As a
secondary issue, should I run sudo apt autoremove
, as suggested by the
terminal, or is this likely to corrupt my TeX Live installation? Any help and prompters would be much appreciated - I am still new to this world!
Tiberius
(101 rep)
Jun 7, 2024, 11:14 AM
0
votes
0
answers
133
views
texlive miktex conflict - texhash
I'm working with Ubuntu 22.04 and texlive (I'm using the Ubuntu texlive from tug.org). I tried to install miktex but gave up because I could not finalize the installation of the miktex console, which would have allowed me to finalize the complete installation. Since I uninstalled miktex, the `texhas...
I'm working with Ubuntu 22.04 and texlive (I'm using the Ubuntu texlive from tug.org). I tried to install miktex but gave up because I could not finalize the installation of the miktex console, which would have allowed me to finalize the complete installation.
Since I uninstalled miktex, the
texhash
command no longer works.
sudo texhash
the terminal answers me:
texhash: error while loading shared libraries: libmiktex-setup.so.6: cannot open shared object file: No such file or directory
However, I uninstalled miktex using the dedicated page and reinstalled texlive.
Régis FDS
(1 rep)
Jun 1, 2024, 05:27 AM
• Last activity: Jun 2, 2024, 09:15 AM
1
votes
1
answers
1128
views
Cannot open MiKTeX, error “File is empty”. Cannot uninstall
I am using KDE neon. After I installed MiKTeX, I updated everything from it, downloaded the "standard package" and then tried to install TeXStudio... a message appeared "installation failed". But TeXStudio is fine. I can run it. I go to MiKTeX Console... and suddenly I am unable to enter, getting th...
I am using KDE neon.
After I installed MiKTeX, I updated everything from it, downloaded the "standard package" and then tried to install TeXStudio... a message appeared "installation failed". But TeXStudio is fine. I can run it.
I go to MiKTeX Console... and suddenly I am unable to enter, getting this message:
Panic ensues. MiKTeX actually says in their documentation that entering the console is needed to first restore initial status to fully uninstall it.
But I can't.
Trying

-shell
sudo apt-get purge miktex
does nothing good.
It says that there is an empty file, the same thing as when you try to open the console:
> miktexsetup: File is empty.
> path="/home/MYUSERNAME/.miktex/texmfs/data/miktex/data/le/90a0591fc444a4d943d26e2f84799e00.fndb-5"
----------
When executing
-shell
sudo dpkg --remove --force-remove-reinstreq miktex
I get this:
(Reading database ... 174113 files and directories currently installed.)
Removing miktex (2.9.7300-bionic1) ...
miktexsetup: File is empty.
miktexsetup: Data: path="/home/MYUSERNAME/.miktex/texmfs/data/miktex/data/le/90a0591fc444a4d943d26e2f84799e00.fndb-5"
dpkg: error processing package miktex (--remove):
installed miktex package pre-removal script subprocess returned error exit status 1
Errors were encountered while processing:
miktex
What am I supposed to do?
MiKTeX Console still appears as if it is still a program.
ivanovitx
(81 rep)
Mar 1, 2020, 12:29 AM
• Last activity: Feb 7, 2024, 01:29 PM
16
votes
7
answers
9184
views
How to sort (by whatever key) BibTex entries in `.bib` file?
I work with LaTeX and do versioning with Git. For bibliography management I use [Mendeley](www.mendeley.com). The problem is that each time Mendeley synchronizes it's `.bib` exports, they are in different order, what makes bibliography versioning much harder. My idea is to sort BibTex entries in `.b...
I work with LaTeX and do versioning with Git. For bibliography management I use [Mendeley](www.mendeley.com).
The problem is that each time Mendeley synchronizes it's
.bib
exports,
they are in different order, what makes bibliography versioning much harder.
My idea is to sort BibTex entries in .bib
file, each time before commit.
Could you help me, how to do this in smart (short&sweet) way ? :)
P.S. I can run this routine manually. I do not need git integration. I just want program/script to sort .bib
file.
Grzegorz Wierzowiecki
(14740 rep)
Feb 9, 2012, 10:33 AM
• Last activity: Jan 26, 2024, 04:29 PM
0
votes
2
answers
206
views
Import named destinations in PDF file
I know we can export named PDF destinations (hypertargets of external links, like we can reference them in LaTeX with `\href{myfile.pdf#page.42}{link text}`) in Linux with the command line `pdfinfo -dests`. But how can we add/create such named destination links, in a ready made PDF file we receive f...
I know we can export named PDF destinations (hypertargets of external links, like we can reference them in LaTeX with
\href{myfile.pdf#page.42}{link text}
) in Linux with the command line pdfinfo -dests
.
But how can we add/create such named destination links, in a ready made PDF file we receive from somewhere, with a command line tool?
Jaleks
(2591 rep)
Sep 4, 2022, 02:04 PM
• Last activity: Jan 18, 2024, 01:29 PM
1
votes
1
answers
343
views
A command in $PATH but can't run and "ln" link not work on Debian 12
The computer system is Debian 12. As needed to update my LaTeX, I tried the command `sudo tlmgr update --all`, which returned `sudo: tlmgr: command not found`. But `which tlmgr` returned `/usr/local/texlive/2023/bin/x86_64-linux/tlmgr`, so `sudo /usr/local/texlive/2023/bin/x86_64-linux/tlmgr update...
The computer system is Debian 12. As needed to update my LaTeX, I tried the command
sudo tlmgr update --all
, which returned sudo: tlmgr: command not found
. But which tlmgr
returned /usr/local/texlive/2023/bin/x86_64-linux/tlmgr
, so sudo /usr/local/texlive/2023/bin/x86_64-linux/tlmgr update --all
worked. However, the sudo echo $PATH
returned
/home/usr1/.local/bin:/usr/local/texlive/2023/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
which contains /usr/local/texlive/2023/bin/x86_64-linux:
, so I don't understand why sudo tlmgr update --all
returned sudo: tlmgr: command not found
.
I created a symbolic links by sudo ln -s /usr/local/texlive/2023/bin/x86_64-linux/tlmgr /usr/bin/tlmgr
, but sudo tlmgr update --all
returned
"wndws" is not exported by the TeXLive::TLUtils module
Can't continue after import errors at /usr/bin/tlmgr line 100.
And I checked it with ls -l /usr/bin/tlmgr1
, which returned lrwxrwxrwx 1 root root 46 Nov 2 11:30 /usr/bin/tlmgr -> /usr/local/texlive/2023/bin/x86_64-linux/tlmgr
. It seem right.
Why should I add tlmgr
to /usr/bin/
and why doesn't sudo tlmgr update --all
work?
Y. zeng
(155 rep)
Nov 2, 2023, 02:51 AM
• Last activity: Nov 2, 2023, 09:25 AM
0
votes
0
answers
186
views
TeXStudio dependancy issues - Ubuntu
I was trying to install tex studio using sudo apt install texstudio But some dependencies are missing here. I understand that they are primarily the Qt libraries. I tried to install from qt website but couldn't solve the issues. But when I try to add libraries one by one, it also gives me same error...
I was trying to install tex studio using
sudo apt install texstudio
But some dependencies are missing here. I understand that they are primarily the Qt libraries. I tried to install from qt website but couldn't solve the issues. But when I try to add libraries one by one, it also gives me same error that library depends on other libraries.
deca28@deca28-Inspiron-5575:~$ sudo apt install texstudio
[sudo] password for deca28:
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:
texstudio : Depends: Libpoppler-qt5-1 (>= 0.81.0) but it is not going to be installed
Depends: libqt5concurrent5 (>= 5.6.0~rc) but it is not going to be installed
Depends: libqt5core5a (>= 5.12.2) but it is not going to be installed
Depends: libqt5gui5 (>= 5.11.0~rc1) but it is not going to be installed or
libqt5gui5-gles (>= 5.11.0~rc1) but it is not going to be installed
Depends: libqt5network5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5printsupport5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5script5 (>= 5.6.0~beta) but it is not going to be installed
Depends: libqt5svg5 (>= 5.6.0~beta) but it is not going to be installed
Depends: Libqt5widgets5 (>= 5.12.2) but it is not going to be installed
Depends: Libqt5xml5 (>= 5.0.2) but it is not going to be installed
Depends: libqtermwidget5-0 (>= 0.9.0~) but it is not going to be installed
Recommends: texlive-latex-base but it is not going to be installed
Recommends: texlive-latex-extra but it is not going to be installed
Recommends: texlive-latex-recommended but it is not going to be installed
Recommends: texlive-base but it is not going to be installed
Recommends: latex-beamer but it is not installable
Recommends: dvipng but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
deca28@deca28-Inspiron-5575:~$
Any help for installing texstudio?
Amalnath Sathyan
(1 rep)
Aug 23, 2021, 02:39 AM
• Last activity: Aug 27, 2023, 03:54 PM
33
votes
4
answers
88470
views
How to fully install LaTeX in Fedora?
What is the equivalent to `sudo apt-get install texlive-full` on Fedora system? I read it is `yum install texlive-scheme-full`. Am I correct?
What is the equivalent to
sudo apt-get install texlive-full
on Fedora system?
I read it is yum install texlive-scheme-full
. Am I correct?
rcbauer
(465 rep)
Apr 30, 2015, 02:11 PM
• Last activity: Apr 18, 2023, 07:12 AM
0
votes
1
answers
45
views
Uploading compiled .tex file (.pdf) to the root repo in Gitlab
I need your help with the following problem. I'm trying to compile a `.tex` document in GitLab and put my compiled `.pdf` file in the root repo. I have created a `.gitlab-ci.yml` file which has the following configuration: ```yml # Use the latest version of the TeX Live Docker image image: texlive/t...
I need your help with the following problem. I'm trying to compile a
.tex
document in GitLab and put my compiled .pdf
file in the root repo. I have created a .gitlab-ci.yml
file which has the following configuration:
# Use the latest version of the TeX Live Docker image
image: texlive/texlive:latest
# Define a single stage named "build"
stages:
- build
# Configuration for the "build" stage
build:
stage: build
# Specify the events that trigger the pipeline
only:
- push
# Specify the commands to be executed in the pipeline
script:
- filename="main"
- echo "Running latexmk with lualatex"
- latexmk -pdf -pdflatex="lualatex %O %S" "$filename.tex"
- echo "Moving .pdf file to root directory"
- mv "$filename.pdf" ../
- echo "Listing contents of root directory"
- ls ../
The log
file tells me the following
Latexmk: All targets () are up-to-date
$ echo "Moving .pdf file to root directory"
Moving .pdf file to root directory
$ mv "$filename.pdf" ../
$ echo "Listing contents of root directory"
Listing contents of root directory
$ ls ../
PhD
PhD.tmp
main.pdf
Cleaning up project directory and file based variables
Job succeeded
However, when I access my repo, I do not find any main.pdf
file loaded. How can I solve this problem? Is there something I don't understand?
Mafsi
(141 rep)
Feb 21, 2023, 09:32 AM
• Last activity: Apr 14, 2023, 10:00 AM
3
votes
3
answers
728
views
Remove a specific latex command from the text AND closing bracket behind it
How to remove a specific latex command from the text AND close bracket behind it, but keep the text inside the brackets? The command in the following example to remove is `\edit{ }`. `\edit{` and `}` should be removed, whereas ` ` should be left unchanged. Please fill free to suggest SED, AWK, Perl...
How to remove a specific latex command from the text AND close bracket behind it, but keep the text inside the brackets? The command in the following example to remove is
\edit{}
. \edit{
and }
should be removed, whereas `` should be left unchanged.
Please fill free to suggest SED, AWK, Perl or whatever will do the job
senseless example:
We \edit{Introduce a} model for analyzing \emph{data} from various
experimental designs, \edit{such as paired or \url{http://www/}
longitudinal; as was done 1984 by NN \cite{mycitation} and by NNN
\cite{mycitation2}}.
Note that there might be one or more latex commands in the form \command{smth}
inside \edit{}
statements. \command{smth}
should be left as it was
Output:
We Introduce a model for analyzing \emph{data} from various
experimental designs, such as paired or \url{http://www/}
longitudinal; as was done 1984 by NN \cite{mycitation} and by NNN
\cite{mycitation2}.
PS. I am introducing a lot of small edits to my text file. I want those edits to be highlighted, so my collaborator can see them. But afterward, I would like to remove all highlights and send the text to a reviewer.
The question was originally asked at https://unix.stackexchange.com/questions/373662/awk-sed-remove-a-specific-latex-command-from-the-text-and-closing-bracket-behind . But for example there was too soft
den2042
(351 rep)
Jun 27, 2017, 09:42 PM
• Last activity: Feb 7, 2023, 06:13 PM
0
votes
3
answers
1559
views
OCR software for handwritten equations to get LaTeX file
First of all, I apologize if this is not the right place to ask this, but I couldn't think of anywhere else (maybe Stack Overflow?). Anyway, I'm looking for a Optical Character Recognition software (OCR) to process my notes. The thing is that occasionally there is an equation there in the middle, so...
First of all, I apologize if this is not the right place to ask this, but I couldn't think of anywhere else (maybe Stack Overflow?).
Anyway, I'm looking for a Optical Character Recognition software (OCR) to process my notes. The thing is that occasionally there is an equation there in the middle, so I was looking for a software that can process the text and the equations together that I can run in my Linux system.
Ultimately my goal is to create a LaTeX file from that, so it wouldn't hurt if the output was already in LaTeX, but I guess that would be asking too much.
I couldn't find anything online that did that, but I think that's mainly because I'm not using the right search terms (English is not my main language). I did find [this question](https://tex.stackexchange.com/questions/1443/what-is-the-status-of-generating-latex-from-handwriting-i-e-ocr) but it's from 4 years ago and I think this have changed since then.
If I could get one good software to process the text part of the notes, and another to process the equation part of the notes, I'd be able to put them all together already.
Does anybody know a way of doing this?
TomCho
(529 rep)
Dec 18, 2016, 05:59 PM
• Last activity: Jan 11, 2023, 07:33 AM
12
votes
1
answers
7351
views
How to compile a Latex document on NixOS?
I normally use `pdflatex` to compile latex documents, but on NixOS I do not see that `pdflatex` is available to install via `$ nix-env -i pdflatex`. $ nix-env -qa pdflatex error: selector ‘pdflatex’ matches no derivations Results for `pdflatex` do not appear under search at [nixos.org/nixos/packages...
I normally use
pdflatex
to compile latex documents, but on NixOS I do not see that pdflatex
is available to install via $ nix-env -i pdflatex
.
$ nix-env -qa pdflatex
error: selector ‘pdflatex’ matches no derivations
Results for pdflatex
do not appear under search at nixos.org/nixos/packages.html either. However, I did notice there the package rubber
, which apparently wraps other latex programs including pdflatex
. After installing rubber
and attempting to compile my latex document with it I get the following "pdflatex is not found" error.
$ rubber --pdf doc.tex
compiling doc.tex...
pdflatex not found
Running pdflatex failed.
**How can I install pdflatex to compile latex documents on NixOS?**
**Why is rubber
available for installation via nix-env
whereas pdflatex
, a dependency of rubber
, is not?**
As a side-note, the 'Tex/Latex' section of the manual does not explain this.
mherzl
(1629 rep)
Jul 22, 2017, 09:22 PM
• Last activity: Nov 6, 2022, 02:57 PM
1
votes
1
answers
131
views
{\LaTeX} symbol in groff
Is there a way to print the {\LaTeX} original symbol in groff? I would like to use the typography every time the word LaTeX appears in a document made with groff.
Is there a way to print the {\LaTeX} original symbol in groff?
I would like to use the typography every time the word LaTeX appears in a document made with groff.
ranemirusG
(11 rep)
Oct 15, 2022, 01:50 AM
• Last activity: Oct 21, 2022, 03:09 PM
2
votes
1
answers
169
views
On Linux Mint, how can I install the font Antiqua for XeLaTeX?
In Linux Mint, how can I install the font "Book Antiqua" to my system. Namely, I have the following LaTeX document: \documentclass[12pt]{article} \title{\textbf{Gummi 0.8.0}} \author{x} \date{} \addtolength{\topmargin}{-3cm} \addtolength{\textheight}{3cm} \usepackage{setspace} %\usepackage{mathpazo}...
In Linux Mint, how can I install the font "Book Antiqua" to my system. Namely, I have the following LaTeX document:
\documentclass[12pt]{article}
\title{\textbf{Gummi 0.8.0}}
\author{x}
\date{}
\addtolength{\topmargin}{-3cm}
\addtolength{\textheight}{3cm}
\usepackage{setspace}
%\usepackage{mathpazo}
\usepackage{xurl}
\usepackage[%
left=3cm,%
right=3cm,%
top=2.5cm,%3
bottom=2.5cm,%
headheight=33pt,%
]{geometry}%
\usepackage[finnish]{babel}
%\usepackage{newtxtext,newtxmath} % Antiqua-fontti
\usepackage{hyperref}
\usepackage{scrlayer-scrpage}
\usepackage{fontspec}
\usepackage[T1]{fontenc}
\clearpairofpagestyles
\ohead*{\pagemark}
\begin{document}
\setlength{\footheight}{17.99445pt}
\topskip0pt
\vspace*{\fill}
\thispagestyle{empty}
\setmainfont{Book Antiqua}
\begin{center}
asijdo
dsad
\end{center}
When I tried to compile the document by the command
xelatex demo.tex
, the output was
Package hyperref Warning: Rerun to get /PageLabels entry.
kpathsea:make_tex: Invalid filename `Book Antiqua', contains ' '
! Package fontspec Error: The font "Book Antiqua" cannot be found.
For immediate help type H .
...
l.32 \begin
{center}
?
How can I solve the issue?
Jaakko Seppälä
(137 rep)
Oct 17, 2022, 12:31 PM
• Last activity: Oct 17, 2022, 03:22 PM
0
votes
1
answers
338
views
Xournal++ does not change the color of LaTex equation
Xournal++ is a very sofisticated program for digital pen/table, but have a bug with colour of Latex equations. It is like in the imagem below. It doesn't matter you make, the color is the same. Look, the red colour even was not selected. [![enter image description here][1]][1] [1]: https://i.sstatic...
Xournal++ is a very sofisticated program for digital pen/table, but have a bug with colour of Latex equations. It is like in the imagem below. It doesn't matter you make, the color is the same. Look, the red colour even was not selected.

Denis da Mata
(153 rep)
Sep 22, 2022, 06:17 PM
Showing page 1 of 20 total questions