Questions tagged [command-line]
The command-line tag has no usage guidance.
54
questions
0
votes
0
answers
28
views
`tex4ebook` error
When I run tex4ebook on a project, I get the following error:
tex4ebook -f epub3 generated-latex.tex
[STATUS] tex4ebook: Conversion started
[STATUS] tex4ebook: Input file: generated-latex.tex
This ...
0
votes
0
answers
93
views
'"lilypond"' is not recognized as an internal or external command, operable program or batch file
I am interested in using lyLuaTeX. I am used to Overleaf, but Overleaf seems incompatible with lyLuaTeX, so I have downloaded TeX Live and Texmaker. Page 5 of the lyLuaTeX documentation (https://ctan....
0
votes
0
answers
49
views
Problems encountered in attempting to use lyLuaTeX
I am writing a document that will involve dozens of snippets of LilyPond. Seeking the simplest way of doing this, I have hit upon lilypond-Book and lyLuaTeX. Not knowing which is ultimately simpler, I ...
0
votes
1
answer
33
views
passing source to latex on command line
In a shell script, I'm doing things like
pdflatex <<- EOT
\def\something{a}
\documentclass{article}
\begin{document}
\something
\end{document}
EOT
which works as expected. However, when ...
1
vote
1
answer
61
views
running latex from .bat file fails
I am trying to write a .bat file for my Windows machine that removes page numbers and converts the pdf to a png file with pdfcrop and pdftoppm. The conversion part is not an issue; running latex from ...
0
votes
1
answer
172
views
Pandoc CMD call tex template and pass variables
I'm trying to pass variables to a tex template to generate a PDF with those values via pandoc.
This is my template:
\documentclass[15pt]{article}
\usepackage{sectsty}
% Margins
\topmargin=-0.45in
\...
1
vote
1
answer
165
views
How to use albatross with miktex on Windows?
I am trying to get albatross to work with miktex on a Windows machine. Trying albatross --version at the command line tells me albatross is not a recognized command. In my miktex installation, I see ...
0
votes
0
answers
20
views
TeX Live albatross unable to access jarfile error
I installed TeX Live 2022 on Linux and added the binary folder to my $PATH. I tested a few executables and they work without issues.
$ latexdef frac
\frac:
macro:->\protect \frac
\frac :
\long ...
4
votes
1
answer
334
views
Terminal Commands W.R.T. LaTeX
I know there are some terminal commands with respect to LaTeX (Suppose TeX Live has been installed).
texdoc
kpsewhich
texhash
mktexlsr
latexdef
And are there any other commands that you think useful?...
0
votes
2
answers
55
views
How to define \newcommand for mappings efficiently
I'm having trouble defining a new command for latex.
What I want to do? Define a \newcommand to define mappings like in this:
\documentclass[english]{scrreprt}
\usepackage{amsmath}
\usepackage{amssymb}...
0
votes
0
answers
27
views
Error when I try define more than one variable on \newcommand [duplicate]
When I define one single newcommand the document it is fine, there is a MWE:
\documentclass{article}
\newcommand{\varB}{\def \@varB}
\newcommand{\printvarB}{\@varB}
\varB{variable B}
\begin{document}...
0
votes
1
answer
130
views
Latex command line compiler can't find image files, but Gummi can
I am trying to compile a latex document in Linux; however, the images are not being found from the command line, despite them being found in Gummi. I am running latex [document_name] from the Linux ...
1
vote
1
answer
250
views
Parsing additional command-line arguments in luatex
I am trying to parse extra arguments given to lualatex in command line — e.g lualatex --jobname=out in.tex myarg.
Though I could not find it in the docs, I discovered from this answer that I can use ...
0
votes
1
answer
1k
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....
2
votes
1
answer
77
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 ...
0
votes
1
answer
83
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 ...
1
vote
0
answers
436
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 ...
7
votes
3
answers
605
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
...
0
votes
0
answers
97
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
...
1
vote
0
answers
309
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:
...
2
votes
1
answer
600
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 ...
0
votes
0
answers
98
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 ...
3
votes
1
answer
998
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 \...
3
votes
1
answer
52
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 ...
1
vote
4
answers
5k
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 ...
2
votes
1
answer
187
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 ...
1
vote
1
answer
81
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 ...
2
votes
1
answer
140
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=...
2
votes
2
answers
176
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 ...
1
vote
0
answers
181
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....
3
votes
1
answer
281
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
0
answers
258
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
0
answers
484
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 ...
2
votes
1
answer
4k
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
1
answer
122
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
0
answers
87
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
0
answers
327
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
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 ...
1
vote
1
answer
79
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
1
answer
36
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
0
answers
38
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
0
answers
50
views
Difference between {} or = to give values in commands [closed]
Difference between {} or = to give values in latex commands.
0
votes
0
answers
417
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 ...
29
votes
1
answer
2k
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
0
answers
140
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
1
answer
162
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
2
answers
318
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 ...
3
votes
0
answers
800
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
1
answer
231
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
0
answers
492
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 ...