Questions tagged [command-line]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
297 views

MiKTeX consistently failing macOS

I am trying to install MiKTeX on a new macOS system. Each time that I try to compile any .tex file, I get the following error: jwalsh23@Jacks-MacBook-Pro-14 $ pdflatex CV.tex This is pdfTeX, Version 3....
user avatar
  • 1
2 votes
1 answer
59 views

Correcting Linux Commands

I need to correct some Linux commands in Latex, I'm currently using the minted library because for me is the better looking one but I can't manage to make too long command break into two parts. For ...
user avatar
0 votes
1 answer
45 views

tllocalmgr reports "command install is not defined". What does it mean?

When I run the command $ tllocalmgr install nicecolors Initializing ... Error: command install is not defined Why does tllocalmgr report that the command install is not defined? The syntax is clearly ...
user avatar
  • 2,041
0 votes
0 answers
137 views

Error using svg2tikz: AttributeError: 'TikZPathExporter' object has no attribute 'svg'?

I am trying to turn an .svg file to a LaTeX document. I cloned the github repo for avg2tikz and followed the installation instuctions. After not getting this to work with inkscape I tried to use it ...
user avatar
7 votes
3 answers
570 views

Build both the exam and the solution at once?

I would like to generate two PDFs from an exam document: I currently do the following Add answers to the document class \documentclass[french,a4paper,addpoints,11pt,answers]{exam} Build and rename ...
user avatar
  • 1,087
0 votes
0 answers
25 views

Can't get Makefile to perform complete pdflatex compilation sequence

Folder contents . ├── bibliography.bib ├── Makefile └── template.tex Makefile all: make_pdflatex make_glossaries make_bibtex make_pdflatex make_pdflatex make_pdflatex: pdflatex template.tex ...
user avatar
  • 1,382
0 votes
0 answers
98 views

changing page order, imposition, use pdfpages?

The commandline tool pdfjam provides a wrapper around the pdfpages package. I'm trying to figure out how to do the page ordering or imposition: A 16-page booklet would print onto 4 sheets of paper: ...
user avatar
  • 155
1 vote
1 answer
233 views

Evince: how to do a forward-search from Terminal?

Assume that I have produced a pdf file from a tex document with the option \synctex=1 with pdflatex or xelatex. Various forward-search methods tell us how to jump from your text editor to the ...
user avatar
  • 2,644
0 votes
0 answers
50 views

Add a tagging system to LaTeX files when compiling several at a time

Is there a way to add a tag to a LaTeX document? Something that allows one to omit it from mass compilation? Say I have three .tex files, formulas, math-notes, and artwork. Would there be a way to tag ...
user avatar
2 votes
1 answer
179 views

\pagebreak doesn't spread out the text on its previous page

I read that "\pagebreak tries to make the part of the page that’s above the page break the same height as other pages if it’s possible (by stretching intervals between paragraphs etc) and \...
user avatar
  • 137
3 votes
1 answer
42 views

Custom command for statement to be proved

I have created a code for a proof goal: \centering{zz:\,$\{P,\,P \lif Q,\,Q \lif R\}\,\sststile{AL}{}\,R$` The output looks like this: Now I'd like to define a custom command which gives a very ...
user avatar
1 vote
4 answers
2k views

How can I render a markdown file with some LaTeX inline math?

When I receive a Markdown file, I can open it in a markdown editor like React on Linux or Markdown Monster on Windows etc. However - such editors do not support rendering of LaTeX embedded in the ...
user avatar
  • 11.5k
2 votes
1 answer
108 views

qpdfview command-line argument for forward search

With sumatrapdf, I use the following command to go to the pdf place corresponding to the line 304 of the TeX source file: sumatrapdf file.pdf -forward-search file.tex 304 What is the analogue command ...
user avatar
  • 2,644
1 vote
1 answer
41 views

Specifying macro definitions via command line arguments to make4ht

I want to learn if there is a way to make make4ht pass some macro definitions to the LaTeX engine during compilation time. Let me explain what I am talking about with pdflatex as an example first. I ...
user avatar
  • 2,907
1 vote
1 answer
85 views

Trim margins of the entire document by command line (after TeX Live 2020 update)

I'm used to compile my .tex files with this command: pdflatex '\AtBeginDocument{\newlength\DX \DX=3cm \paperwidth=\dimexpr\paperwidth-\DX\relax \hoffset=\dimexpr\hoffset-.5\DX\relax \newlength\DY \DY=...
user avatar
2 votes
2 answers
84 views

Stitching/imposing pages of varying heights into a single page

I have a project that involves converting a large batch of multi-page PDFs into single-page PDFs. Each PDF file has anywhere from 1 to 16 pages, and the pages have varying heights. For example, I have ...
user avatar
1 vote
0 answers
39 views

Run file.tex from terminal - Texmaker [closed]

I'd like to open a file.tex (with spaces like: "Interpretazione della relazione π_i maggiore di Π_s.tex") from terminal. I tried to open the terminal in the folder where there is the file....
user avatar
3 votes
1 answer
118 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 ...
user avatar
  • 13.9k
0 votes
0 answers
117 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 ...
user avatar
  • 1
0 votes
0 answers
348 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 ...
user avatar
  • 195
2 votes
1 answer
2k 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 ...
user avatar
  • 195
2 votes
1 answer
66 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 (...
user avatar
  • 21
1 vote
0 answers
78 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}...
user avatar
0 votes
0 answers
180 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 ?
user avatar
  • 11.5k
1 vote
0 answers
26 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 ...
user avatar
1 vote
1 answer
53 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{...
user avatar
  • 415
0 votes
1 answer
35 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{...
user avatar
  • 1,033
1 vote
0 answers
23 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
user avatar
  • 195
1 vote
0 answers
43 views

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

Difference between {} or = to give values in latex commands.
user avatar
0 votes
0 answers
208 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 ...
user avatar
  • 1,133
26 votes
1 answer
1k 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 ...
user avatar
  • 1,969
0 votes
0 answers
115 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 ...
user avatar
-1 votes
1 answer
125 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 ...
user avatar
  • 249
3 votes
2 answers
228 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 ...
user avatar
  • 3,391
2 votes
0 answers
392 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 ...
user avatar
7 votes
1 answer
164 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 ...
user avatar
  • 12.7k
1 vote
0 answers
337 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 ...
user avatar
1 vote
1 answer
320 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.
user avatar
  • 235
3 votes
1 answer
244 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 ?
user avatar
1 vote
0 answers
202 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 ...
user avatar
  • 1,213
3 votes
1 answer
407 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 ...
user avatar
  • 723