Questions tagged [latex]

LaTeX is a macro package implemented on Don Knuth's TeX programming language and is used primarily for creating high quality written documents. Note that http://tex.stackexchange.com is specifically dedicated to LaTeX questions (and TeX, and other related technologies).

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How to configure inverse and forward search in Kile (LaTeX editor)

That is it. There is not much to that question. Inverse and forward search is basically to be able to do some kind of Ctrl+Click in a line of the *.tex file, and automatically be sent to the PDF ...
1
vote
1answer
244 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 ...
0
votes
1answer
32 views

Bash: How to set the current working directory to the current directory in a loop?

My script loops through all subsubdirectories and calls pdflatex command on all .tex files: #!/usr/bin/env bash shopt -s globstar for d in ./*/**/*.tex; do echo pdflatex "$d" done My question ...
1
vote
1answer
31 views

Bash: Loop through all subsubdirectories and execute command on certain files

My folder structure looks like this Main ├── Sub1 | ├── Subsub1 | | | ├── file1.tex | | | ├── file2.tex | ├── Subsub2 | | | ├── file1.tex | | | ├── file2.tex ├── Sub2 | ├...
4
votes
1answer
111 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, ...
0
votes
1answer
106 views

Updating TLMGR on Linux Mint (Debian)

I want to install a Latex package, so I run: (env) mvh:~$ tlmgr install verbatim (running on Debian, switching to user mode!) tlmgr: Remote repository is newer than local (2017 < 2019) Cross ...
1
vote
1answer
41 views

Fonts installed by the `texlive-fonts-extra` package on Debian are not recognized

I've installed all of TeX Live via texlive-full from the latest Debian Sid distribution. I'm using LyX as my editor, and selected XeTeX for typesetting Unicode characters with non-TeX fonts. The ...
0
votes
3answers
19 views

Generate tex file containing all filenames in a directory

I have a folder containing 95 tex files. I need to create a tex file all.tex that contains the following code: \documentclass[10pt]{article} \begin{document} \input{file1.tex} \input{file2.tex} ... \...
0
votes
0answers
30 views

Evince garbles pdflatex output on some zoom levels

I use pdflatex to generate PDFs but one of them produces garbled text in evince on certain zoom levels, while at others it looks perfectly normal. Is this a problem with the .tex file or with Evince ...
0
votes
0answers
109 views

How to install the latest TeXstudio version on linux mint cinnamon 19.1

I am new in linux and I am trying to install the TeXstudio editor. I have tried this approach but with no success. I run on mint cinnamon. I would really appreciate any help.
2
votes
0answers
56 views

How can I install texlive-humanities to Ubuntu 19.04

I tried to install texlive-humanitiesto Ubuntu 19.04 but it looks like there is problems with broken packages. How can I solve this issue? (base) jaakko@jaakko-GL553VW:~/Desktop$ sudo apt install ...
1
vote
1answer
58 views

How to install LaTeX package linguex to Ubuntu?

I would like to write a latex document that contains numbered sentences. I was suggested to use package linguex at https://tex.stackexchange.com/a/504304. How can I install it to Ubuntu?
0
votes
2answers
51 views

Website Template Like (As) Math StackExchange for Linux?

I recently had this question deleted in Math StackExchange. I was mainly using it as a "note to self" in LaTeX, but answers would have been nice. Is there a webpage I can install on my Ubuntu Linux ...
0
votes
1answer
33 views

Makefile run bibtex command only when tex file has bibliography

I want to have a folder full of any number of .tex files where I will have a single Makefile, which will generate a .pdf file for each .tex file when make is run. The constraint I have is that some, ...
0
votes
0answers
18 views

Where to install .cls/.sty files?

I am writing the makefile for a program I have written which produces latex output, however, it requires a custom .cls file. Is it best practice to let the user put this file in the correct directory ...
0
votes
2answers
53 views

How do i remove a specific pattern from a specific lines using bash

I want to remove a pattern \textcolor{red}{ and replace }} by } from list of specific lines using bash Let say i have a file cat A.txt \ParallelLText{\jverse{5}\textcolor{red}{“Ahut isi inut chili ...
0
votes
0answers
43 views

How do I automatically reload mupdf-gl with latexmk?

I have the following options in my $HOME/.latexmkrc: $pdf_mode = 1; $dvi_previewer = 'start xdvi -watchfile 1.5'; $ps_previewer = 'start gv --watch'; $pdf_previewer = 'start mupdf-gl'; $...
1
vote
1answer
539 views

How to install TeXLive on Alpine Linux?

Is it possible to install texlive with tlmgr utility (from tug.org)? same question for installing texmaker (or texstudio) latex editors from sources (rather than AppImage, flatpack or snap packages). ...
0
votes
0answers
29 views

Linux and TeX's Biber

I have a Linux related issue I run into when I try to create a .tex (and .pdf) file by a php script, see here. It seems tha the utility Biber (to create bibliography) is designed to unpack its ...
0
votes
1answer
119 views

Installing LaTeX into Google's Debian8 docker image

I'm trying to figure out how to install LaTeX (specifically, this texlive package) into Google's Debian8 Docker image, which is called gcr.io/google-appengine/debian8. I wish I could provide a link to ...
1
vote
1answer
94 views

An error when I write apt update in the terminal

This question is about an error of a sign of MikTeX in my computer with Debian. This error is E: El repositorio «http://miktex.org/download/debian stretch InRelease» no está firmado. This means that:...
0
votes
1answer
92 views

TexLive 2018, after installation Debian “updates” some files and breaks it

After I install the newest version of TexLive through the official installer (this one), if I run a sudo apt-get update && sudo apt-get dist-upgrade apt-get finds a series of packages to ...
0
votes
3answers
41 views

Change the order of entries

I have a file full of the following entries similar to the following: `\index{a!b!c} \index{small!medium!large} \index{mouse!dog!elephant}` I need a script so that all of these are changed so that: ...
1
vote
1answer
89 views

How should I install TexLive 2017 on my Devuan Ascii / Debian Stretch?

Debian Stretch / Devuan Ascii comes with TexLive 2016.20170123-5 , and I want to install TeXLive 2017. What's the best way to do that without messing up my system with conflicts between the distro ...
1
vote
0answers
23 views

Cropped plot labels in knitted PDF in Linux

Has anyone experienced having their plot labels cropped in knitted PDF's in Linux? This does not happen in my Windows machine. Here is a minimal r-markdown example to replicate this problem. --- ...
1
vote
1answer
82 views

Run portable LaTeX on Gentoo

I'm trying to get a portable LaTeX installation running on a Gentoo Server. The LaTeX files are already installed. When I try to run ./pdflatex in the path/to/texlive/bin/x86_64-linux/ I get the ...
1
vote
1answer
46 views

extracting strings from LaTeX files

I am searching for the whole evening, but couldn't find a solution. (I also read Remove a specific latex command from the text AND closing bracket behind it) I have a lot of LaTeX files from which I ...
1
vote
1answer
50 views

How to find and replace specific part of specific lines with sed?

I have a LaTeX file foo.tex that contains these lines: \includegraphics[width=0.49\textwidth]{img1} \includegraphics{img2} \subfloat{\includegraphics[width=0.3\textwidth]{img3}} \subfloat{\...
3
votes
1answer
800 views

Installing CMU fonts on NixOS

I have figured out that I need CMU fonts to be able to typeset Russian text with XeLaTeX. Under NixOS there is cm-unicode package for it, I have installed it with nix-env -iA nixos.cm_unicode but ...
0
votes
1answer
88 views

TeXLive light version installed from a deb file

In this answer, it is explained how a light version of TeXLive can be installed with the --no-install-recommends option, like this: sudo apt-get install --no-install-recommends texlive-latex-extra ...
0
votes
1answer
543 views

How to install a Latex distribution on Ubuntu 17.04?

How to install a Latex distribution on Ubuntu 17.04? I tried: sudo apt install --fix-missing texlive-base Reading package lists... Done Building dependency tree Reading state information... ...
2
votes
2answers
189 views

Replacing different string with different new string that follows a pattern

I have \title{A64L(3)} somethings \textbf{a64l}() \title{MALLOC(3)} somethings \textbf{malloc}() I want \title{\hypertarget{a64l}{A64L(3)}} somethings \textbf{\hyperlink{a64l}{a64l}}() \title{\...
3
votes
1answer
233 views

Any Text File Merge Tools?

When I do version control on text (or latex) files I often run into the problem that the merge/diff tools are all line based while text files are not. This leads to insufficient granularity: every ...
1
vote
0answers
63 views

Use sed to fix weird symbols on tex file generated by publish function from miscellaneous Octave package

I have an Octave code that among other things outputs: (x - 5)⋅(x - 4)⋅(x - 3)⋅(x - 2) ─────────────────────────────── 24 When using publish function from Octave miscellaneous ...
3
votes
1answer
5k views

Export from Libreoffice Calc to a table LaTeX [closed]

I would like to know if there is a way to transform a sheet of LibreOffice Calc to a table LaTeX. Thank you in advance!
2
votes
0answers
3k views

Is there any way to install a latex editor (for example Texmaker) to a chromebook?

I would like to work with LaTeX in my chromebook, but I'd like to use a normal program instead of an online editor.
1
vote
1answer
52 views

Creating pre-formatted Tex file from terminal

I am constantly writing up my homework in Latex and they always have the same framework. Is there anyway I can create a script in Linux that creates a file with the framework then opens it in ...
0
votes
1answer
159 views

Differences in launching a program through terminal and through an application launcher

I am trying to run GVim with Vim LaTex-Suite to be able to compile LaTeX documents. I have two ways of running GVim: Open Terminal, then type gvim and enter Use an application launcher e.g. xfce4-...
-3
votes
1answer
49 views

How to get Texlive actualized on Debian?

Tex-stuff changes frequently and some of its packages aren't actualized on Synaptic. Is there general way to get updated packages which are outdated on Synaptic? At least can you provide me the way ...
1
vote
1answer
593 views

How to install Acrotex in Debian for TeXLive?

I need LaTeX Eforms, which is part of the package Acrotex which zip-file here, for my TeXLive 2017. It is not part of Debian TeXLive because the package is not free enough for Debian, stated by ...
2
votes
0answers
664 views

convert CDA XML to PDF without *TeX?

Apologies for the hyper-specificity of my requirements, but they are what they are ... summary The box I'm using runs Debian. I want to render a Clinical Document Architecture (CDA) document to PDF ...
10
votes
1answer
3k 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’ ...
3
votes
4answers
1k views

Extracting pattern from multiple lines

I have a file test.tex with content that is similar to this: \documentclass{scrartcl} \usepackage{graphicx} \title{Test} \author{Author 1, Author 2, Author 3} \begin{document} \end{document} I want ...
1
vote
2answers
545 views

Here-document without interpreting escape sequences, but with interpolation

Is there any way to cat a file without interpreting the double backslash as an escape sequence? In this example a tex file is created: cat <<EOF > file.tex \\documentclass[varwidth=true,...
2
votes
1answer
144 views

How to grep a pdf for math?

Is there any way to grep a pdf document (originally written in LaTeX) for the math "2^n" as in 2 to the power of n? I have pdfgrep but I don't know how you would use that to grep for math.
0
votes
1answer
233 views

(pdflatex) not resolved

What is configured wrong or how do I find out? I expect my pdflatex command to function. $ pdflatex file.tex bash: /usr/local/texlive/2016/bin/x86_64-linux/pdflatex: file not found It does not. ...
1
vote
1answer
133 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 closing bracket behind it, but to keep the text inside the brackets? The command in the following example to remove is \edit{<some staff>}...
1
vote
1answer
248 views

ArchLinux: Still having the wrong editor in some cases

After the installation of my ArchLinux OS, the default text editor was set to vi. I wanted to change it to vim and edited all possible configurations, such as .bashrc, .zshrc, .zshenv and /etc/...
2
votes
0answers
64 views

Extract formulae from PDF

I'm studying machine learning and the literature is formulae-rich. I want to be able to extract the formulae (which seem to be created by TeX) to either: .PNG images LaTeX I've tried: pdfimages -- ...
3
votes
1answer
2k views

How to save R stargazer(data.frame) output in .tex document?

This thread is the continua of the thread How to save R xtable(data.frame) output in .tex document? but with the package stargazer where the approach proposed for xtable does not work. Code DF <-...