Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bash]

{bash} is used for everything that concerns bash commands and LaTeX like using the package {bashful}.

0
votes
0answers
56 views

LaTeX does not find the command although PATH is specified

LaTeX fails to pass the command to bash even though PATH is specified. For example, I am trying to invoke texcount, which is in directory /Library/TeX/textbin. When I check echo $PATH, the output I ...
1
vote
2answers
101 views

How to automatically write bold commands in a bash script in Latex using listings [duplicate]

I wanna include a bash script in a black box in a pdf using latex. I achieved everything I want, except bold commands in the script using the following code: \documentclass[11pt,a4paper,DIV=15]{...
3
votes
0answers
241 views

Syntax highlighting of (Cisco) terminal

I want to highlight a complete terminal flow, mostly for the Cisco CLI, but Bash would be nice, too. As for now, the result achieved with the package lstlisting looks as follows: I achieved that with ...
0
votes
0answers
82 views

Running pdflatex from a RAM disk

For performance reasons. I would like to be able to run pdflatex directly from memory and not have to go to disk. Plan is to set up a RAM disk, /RamDisk, and run everything there. Currently I have ...
2
votes
1answer
94 views

Determine active distribution via shell script

Background: Currently, I have installed /usr/local/texlive/2016 /usr/local/texlive/2017 /usr/local/texlive/2018 With TeXLive, I can use the TeX Live Utility.app to select which TeX distribution to ...
3
votes
0answers
549 views

Formatting bash with listings

I writing a documentation in LaTeX about Linux Bash resp. Shell script. And I'm having some problems: How can I start a formatting at the beginning of a line? How can I format between two signs, but ...
2
votes
1answer
376 views

Bash script as part of package: how to make LaTeX find it

I'm working on some experimental package that requires LaTeX to execute a Bash script. I'm aware of -shell-escape, etc., and it does work if I simply put the script next to the LaTeX file I'm ...
0
votes
1answer
150 views

LstListing keeps adding whitespaces when a - is used

So I want to have some nice listings for a manual I'm writing. The instructions should be copied to the ubuntu terminal in which a bunch of them can be ran after each other. I fixed that, but now I'...
0
votes
0answers
52 views

Bash Syntax Hightlighting in a Tex File

I've got the question if there is a possibility to auto-highlight Bash syntax in a compiled Tex File. Is there a package that has a function to accomplish that? Thanks in advance, ADDB.
0
votes
1answer
68 views

Minted: Different 'firstnumbers' for each code piece

I use minted to view my bash script. But i have to split my code into 4 pieces. My problem is, that every code piece begins now with the number 1. i.e. i want, that piece 1 is from number 1 till ...
0
votes
1answer
1k views

Listings: Correct syntax highlighting for bash // Use minted package with a box

Since i can't use the listingspacket to display my bash script (because of the wrong syntax highlighting by using i.e. language=bash) i have to use the minted package. So i have two questions: Does ...
1
vote
1answer
76 views

Newline in lstset

I use lstset to print my code. My problem is, that my code is too long for one page, so it gets cut off. But i want just new pages instead of this cutting. I tried escapechar with the parameter '$', ...
1
vote
1answer
82 views

mac os double-click command to execute pdflate can't find local style file

I am writing a mac os double-click bash command file X.command to execute a sequence of pdflatex-ing of various LaTeX files. In the directory containing the files there is an included style file ...
1
vote
3answers
947 views

pandoc does not recognize Chinese characters

I want to compile, with pandoc, a Markdown document containing CJK elements (Chinese, actually). It was stated there that --latex-engine=xelatex option allows pandoc to compile Unicode characters. ...
5
votes
3answers
781 views

backward quote in listings

I'm typesetting a document with examples of bash code. How do I make the code like `pwd -P` appear with the same kind of quotes? I want the readers of the document to be able to copy and paste the ...
1
vote
0answers
54 views

New LaTeX compiled book on Linux System Administration [closed]

I just uploaded the first draft of a new book that I wrote on Linux System Administration. The source .tex documents and resources are available on my GitHub project site: LSA. This is a project site, ...
2
votes
1answer
529 views

Removing all markup automatically changes package

I have looked around and found no answer to this question. I am using the changes package, and I need to remove all markup from the source file. There's this question about using the delcmdchanges....
2
votes
1answer
102 views

Execute lualatex within bash script placed inside cgi-bin [closed]

have a cgi-script which generates a *.tex file based on inputs from the browser. i would like to generate a pdf and download it. however the command doesnt execute and i get a fail message if ...
3
votes
0answers
1k views

! LaTeX Error: File `luatex.def' not found [closed]

I've tried to make a bash script that uses pandoc in conjunction with LaTeX to convert my university notes from markdown to PDF. I initially copied the idea and script from someone of which I've ...
2
votes
0answers
409 views

Can I Use LaTeX to Convert UK to US Spellings? [closed]

I have written a paper using LaTeX. My supervisor wishes to use US English for our paper to submit to an American journal. However, I'm based in New Zealand and have written the entire paper in LaTeX ...
1
vote
1answer
72 views

pdflatex/lualatex called from shutdown script can not find installed packages

At work I have set up a little backup script on my Ubuntu 14.04.1 machine. The script backs up my machine to an external hard drive. After this is done it copies a LaTeX project to my Dropbox and ...
2
votes
1answer
61 views

Metapost : bypass errors mpost multi fig

I'm working on a multi fig Metapost file. I'm wondering if it is possible to bypass the error message during running mpost and correctly export the other fig if there is a error in one of them ? ...
3
votes
1answer
359 views

Is it possible to have two separate listings?

I have defined two listings environments, one for Python and other for Bash, both have different settings, this is a minimal example of what i'm using: \documentclass[a4paper,12pt]{article} \...
3
votes
1answer
230 views

listings package: last whitespace removed before the newline character. How to keep it?

I've some sort of template/examples of bash scripts on my computer (.sh files on my hd) in which I put commands and commented outputs. This is my example.sh file: echo this is wide ...
7
votes
1answer
510 views

Latexdiff support for Lyx

As a regular LyX-user i'd love to know if there exists some back-end to latexdiff available for Lyx. Currently i'm using the following bash commands to get what I want. new=MyFileName old=...
3
votes
3answers
97 views

Is it possible to place compiler tags in the latex document such that one .tex document can produce two different documents sharing similar content?

I'm writing a document and I need two versions. Version one gives the outline and details of the project. It gives a method overview, data, results and conclusion etc. The methods are very ...
2
votes
1answer
496 views

Latex markup removal script (delcmdchanges.bash) not working [duplicate]

I have used changes package in my latex source code. To accept changes I can use final in tex file in order to remove tags in the output (PDF). If I need to remove markup in latex source,delcmdchanges....
1
vote
1answer
654 views

How to prevent line breaks in code listings?

I am adding a big Linux terminal output as a listing and would like to prevent these line breaks from happening: e.g. user@pc ~ $ top PID USER PR NI VIRT RES SHR S %CPU %MEM ...
1
vote
1answer
421 views

Problem in PS2PDF file size

I am using gnuplot to plot an input file. I pass this file to gnuplot from a bash script and the output is .ps. Then I convert it to pdf in my bash script, but the pdf cuts the rest of the plot off. I ...
0
votes
2answers
205 views

How to highlight variables in a \path?

Is there a way to highlight variables within a \path? For example in \path{$HOME/some/thing.txt} to highlight the $HOME part as Bash variable? Or do I have to use a listing environment for this?
1
vote
1answer
361 views

LaTeX/XeLaTeX runs fine with TeXShop but not with bash

I always used TeXShop in the Mac for the last 7 years but now I need to run the compilation remotely. If I run in the terminal (bash shell): XeLaTeX file.tex I get kpathsea: Running mktexfmt XeLaTeX....
7
votes
1answer
2k views

How can I make bash-code look good both in LaTeX and HTML?

As I am new to Latex and this kind of typing in general, I find myself in need of some basic guidelines when it comes to how to make things look good in text. I have a document that looks good when ...
1
vote
0answers
37 views

how to change default editor for latex when compiling in the bash? [duplicate]

When you compile a latex file in bash (e.g., via a makefile), if latex encounters an error it stops for you to enter a command, for example R to continue running or Q to run quietly. Entering E calls ...
5
votes
1answer
465 views

Problem in using comment line in tcolorbox in a bash code

I am recently introduced to tcolorbox, which is a great package. I am trying to use it to highlight computer codes such as bash, python, and c++ in my document. When I run the following MWE, I get the ...
0
votes
0answers
530 views

Install FontPro (Minion & Myriad) with a different bash than Cygwin

On my Windows computer, I don't want to install Cygwin. However, the Git client for windows and the MinGW compiler both came with a custom bash solution (MSYS & Git Bash respectively. Actually Git ...
3
votes
1answer
633 views

Error using package bashful

Even in the simplest MWE executed on a linux distribution, the command latex -shell-escape test.tex returns me the error message: Use of \bashIII doesn't match its definition. MWE: \documentclass{...
3
votes
2answers
164 views

bashrc export TEXEDIT emacs

If PDFLaTeX fails to compile with See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. I want to press e to get an instance of Emacs. The cursor should be on ...