Questions tagged [command-line]

The tag has no usage guidance.

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

Pass the final/draft option to the document from the command line

I have a document that starts with \documentclass[aps, pra, draft]{revtex4} Once in while I want to change draft for final but without modifying the file. How can I effectively change draft to final ...
0
votes
0answers
39 views

LyX command line not working as expected

I want to use LyX to generate a pdf from a .lyx file from command line and I found how to proceed in this question Problem is that when I try to do like that, no output is generated, and no error is ...
0
votes
0answers
117 views

the \expanded primitive is not provided by your TeX engine, listofitems v1.63 cannot work: loading listofitems v1.61

Scenario I am compiling a latex document from python 3.6 in Anaconda 4.8.2 on a Windows 10 Pro N device. To do so, I created a python 3.6 environment in Anaconda Prompt, installed miktex in anaconda ...
1
vote
1answer
79 views

Automatically install required packages when compiling from commandline

Scenario I am compiling a latex document from python 3.6 in Anaconda 4.8.2 on a Windows 10 Pro N device. To do so, I created a python 3.6 environment in Anaconda Prompt, installed miktex in anaconda ...
2
votes
1answer
37 views

Can't run TeX from Terminal in Catalina / What is texk?/“I can't find the format file `TeX.fmt'!”

I use latex just fine, but was trying to do the exercises in The TEXbook and run it via terminal and it just won't work. This is happening on two different computers both with macOS Catalina (10.15.6 (...
1
vote
0answers
37 views

My first coding - Error - A document must be saved with an extension (and without spaces or accents in the name) before being used by a command

\documentclass{article} \title{My Equation} \author{First Last} \date{July 21, 2020} \begin{document} \maketitle \begin{equation} K = P_{predicted} H^{T} \Big( H P_{predicted} H^{T}+R\Big) ^{-1}...
0
votes
0answers
62 views

Command line that gives the path to `texmf-dist` - TeX Live (MiKTeX ?)

Is there a command line that gives the path to the folder texmf-dist where all the standard sty files are installed ? If the answer is positive, is there the same thing for MiKTeX ?
1
vote
0answers
25 views

How print the latex commands in document with line numbers in a coloured box [duplicate]

I want to write the latex commands in the document ina coloured box with line numbers. Much like in here the latex commands display in a gray coloured box. I want that with line numbers. And also i ...
1
vote
1answer
41 views

Make “pdflatex” compile a file whose name contains double quotes characters

The context Consider a directory with the following files $ ls 1.tex '2 2.tex' "3 '' 3.tex" '4 "" 4.tex' All these files contain the following $ cat 1.tex \documentclass{article} \begin{...
0
votes
1answer
33 views

Can't reproduce this example from

I am tryting to learn Latex using the not so short introduction to latex. But I am having trouble reproduce one of the example from the book. Here is my code documentclass{article} \usepackage{...
1
vote
0answers
17 views

Add keyword via command line

I'm looking for a way to add a keyword to all the entries contained in a bibtex file. I came across this post but no example on how to do it through awk or sed is given. Thanks
1
vote
0answers
42 views

Difference between {} or = to give values in commands [closed]

Difference between {} or = to give values in latex commands.
0
votes
0answers
90 views

Building latex project in VS Code through command line

I would like to build a latex project from the command line on a build server. We write the most latex documents in Visual Studio Code with the LaTeX Workshop extension by James Yu. I have managed to ...
20
votes
1answer
854 views

Drawing Realistic Linux Command Shell Windows with tcolorbox

I'm trying to make these little imitation command shell window/box/things. The problem is I can't skip lines. The prompt (aka. $PS1) appears on every line; there's no room for the command output. Any ...
0
votes
0answers
52 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
71 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
2answers
123 views

Add Defaults To Pdflatex?

I would like pdflatex to default to using -file-line-error. (Why is this not the default anyway??) Is this possible? I can add the flag into a bash alias on my own runs, but when I use pandoc, it ...
1
vote
0answers
175 views

Is there a LaTeX package manager with CLI commands like npm for Javascript?

Finding, installing and updating packages for LaTeX is sometimes a pain in the neck. There are package managers for the so-called "modern" programming languages, like npm or yarn for Javascript, cargo ...
7
votes
1answer
135 views

Can I get the output of a command line program with TeX (using e.g. \read18)?

Say I want to call some external program using \write18, which returns some text to the command line. Can I get that text from inside TeX? As an example > inkscape -V returns the version of the ...
1
vote
0answers
196 views

Is there a LaTeX package for annotating text/code?

I would like to annotate one-line code (shell commands) in a LaTeX document. For example, the command du -ah --max-depth=1 . | sort -h. I like the style in which shell commands are annotated at ...
1
vote
1answer
159 views

Is there way to reconfigure LyX from terminal?

I can't find anything on the wiki. I'm using a Mac OS X 10.11.6 if that helps. https://wiki.lyx.org/Mac/Mac EDIT: I was trying to find a shortcut for the tedious Tools > Reconfigure.
3
votes
1answer
218 views

\pdfminorversion on the command line?

Is it possible to set the pdfminorversion on the commandline when calling pdflatex, instead of using \pdfminorversion=... in the tex file ?
1
vote
0answers
128 views

Recompile main-file automatically after every compile of other files

I am using Kile as LaTeX editor (great btw). For the pictures I use a standalone class and include the resulting .pdf via \includegraphics. However, when I change my graphic and compile it in the ...
3
votes
1answer
266 views

Does --no-shell-escape break \pdf@shellescape?

Edit: since posting the question I've fixed a few mistakes. I don't think they affect the answer given below, but I wanted to correct the record for completeness. Background I have a Python script ...