Questions tagged [bash]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
20 views

Using a bash script to compile, then Image in same directory not found. Mac OS 10.15.7, pdfLateX (texlive), function \includegraphics{image}

As the title suggests, I am putting an image into my pdf document using the \includegraphics command. It works, and puts my output main.pdf in the same directory as expected. Here's where my question ...
0
votes
0answers
25 views

I can't find the format file `XeLaTeX.fmt'! when compiling with bash script

Im very new to tex and I am using it to help me with my cover letter. I installed MacTex and I've been using the TexShop editor. I have found that I like the XeLaTeX the best so I've been using that. ...
0
votes
0answers
15 views

Minted highlight like tree command on Konsole

I'm using minted for quite some time when adding code to my latex documents, already tried it with a couple of languages and it works great. Today I tried to print the output of tree command like ...
0
votes
0answers
22 views

Why is listings not coloring the comments properly in the middle of the bash script?

I have created a minimal example to illustrate the behavior. I have a bash code using sed. I want to use multiple substitutions using sed, placing each in a different line, so that I may add a comment ...
0
votes
1answer
41 views

Using listings, copy bash command in 1 line

Im trying to insert in my PDF some long bash commands like this one: I like how it looks but, when trying to copy, it splits the command into 3 lines, which obviously is not how I would like it to ...
0
votes
0answers
23 views

Editing highlighting rules for bash in the minted package

I use the minted package for syntax highlighting of bash scripts. I use texlive. I have some problems of the typeset output. Where can I find the rules for bash scripts? Are those in the Pygments ...
3
votes
1answer
58 views

vim-t line split not working

I'm using context on my mac machine. I'm trying to wrap lines automatically using lines=split when defining vim typing, but it's not working. This is how I define vim typing at the very top of my ....
0
votes
0answers
29 views

Replace text and special character in linux

How to replace <u>Some texts need to be underlined</u> by \underline{Some texts need to be underlined} in linux by "sed" or any other means?
0
votes
1answer
58 views

How to create individual PDFs from included TeX-files in subfolders?

I have a question that is very similar to the one described here: How to create individual chapter PDFs from included TeXs? I want to create individual PDF-files (chap01.pdf, chap02.pdf, ...) from ...
2
votes
1answer
42 views

Have MetaFont read an arithmetic expression from a file

I know this is a question that possibly does not belong to pure TeX, as MetaFont is part of a project to which TeX relates, ie as part of building TeX. My question is as follows: I call MetaFont from ...
0
votes
0answers
62 views

Bash file to compile multiple documents using different variables from CSV in separate folders?

There is probably a better way to do this, but this is my MWE attempt and I cannot get it to work. I want to compile multiple form letters from a .csv file like below: company, dept World of ...
-1
votes
1answer
80 views

Unable to use pdftex-quiet package

I'm trying to use the pdftex-quiet package from the command line. It is correctly installed also and comes with TexLive 2019. But I am not able to use it and get the error message 'pdftex-quiet' is ...
3
votes
1answer
212 views

How to run a command before compiling (hook script) in latexmk?

I use latexmk to compile a project. It should run some bash commands before starting to compile. I tried to add $compiling_cmd="date >> /tmp/compiled.log"; to the local .latexmkrc file. But ...
2
votes
2answers
54 views

Is there a bash wrapper for tex output?

I am wondering if there is a bash tool available that I can pipe my latex output through and retrieve a more user-friendly output (i.e. file and line number of error). Currently, I am using a bash ...
0
votes
0answers
240 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
195 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
508 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
198 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
202 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 ...
4
votes
0answers
1k 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
518 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
267 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
60 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
94 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
2k views

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

Since I can't use the listings packet 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
124 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
173 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
2k 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
1k 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
62 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
2answers
1k 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
167 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
2k 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
579 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
76 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
77 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 ? ...
5
votes
1answer
551 views

Post compile hook latexmk

Is there something like a "post compile hook" for latexmk. I want to configure latexmk to run some scripts automatically after a compilation process is completed.
3
votes
1answer
732 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
409 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
721 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
108 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 ...
3
votes
1answer
644 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....
3
votes
1answer
1k 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
537 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
344 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
461 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
44 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
558 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 ...
3
votes
1answer
713 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{...