Questions tagged [command-line]
The command-line tag has no summary.
63 questions
0
votes
2
answers
116
views
How to globally turn OFF a macro from the preamble?
Consider the epigraph macro in the following MWE:
\documentclass[11pt,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[tt=false]{libertinus}
\usepackage[french]{babel}
\usepackage[stretch=50]{...
4
votes
3
answers
223
views
Use \csdef on command line to pass in paramaters
Is it possible to use a \csdef{}{} on the command line to pass in parameters to pdflatex?
Background:
If the MWE below is saved as "TeX-SE.tex", I can use the following command line to ...
0
votes
0
answers
63
views
Directing linux command latex output to a different directory
I'm using LaTeX for several years, and I do it using emacs as a wrapper.
(Yes, yes, yes, this site is not about emacs, I know.)
The command that is send to the shell is latex /path/to/file/myfile.tex ...
0
votes
2
answers
2k
views
"restricted \write18 enabled" error while running pdflatex
I installed MacTex on my M4 MacPro today. When I try to compile a file, e.g., revision.tex, by the command
pdflatex revision.tex
in terminal, it shows the following error to me:
This is pdfTeX, ...
1
vote
1
answer
512
views
How can I add package on latex installation using package-set=basic automatic without using miktex console?
I am installing latex on different pc using Command-line installer standalone.
Using local-package-repository. But I don't find and option to select four extra package to install after install package-...
0
votes
0
answers
230
views
Set the class files directory for Latex
How, when I run the pdflatex or lualatex or similar command, can I tell Latex where to look for class files?
Let's say I have a directory structure like this:
root
|--- [my program, etc.]
|--- latex-...
3
votes
1
answer
328
views
Uses of the interactive LaTeX session?
If I run latex (or pdflatex) in the command line, I get a prompt:
$ latex
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live ...
1
vote
1
answer
122
views
TIKZ Overlay Does Not Appear when PDFLATEX is run from Command Prompt
GOOD - When I run my TEX file in TexStudio (hit the play button), the tikz overlays (watermarks) appear in the PDF.
BAD - When I run my TEX file by executing it in a command prompt (pdflatex template....
1
vote
0
answers
143
views
texify: How to define a macro from the command line
I'm using texify and am trying to set a macro from the command line. Here is my sample .tex file:
\documentclass{article}
%\newcommand{\version}{1.3}
\title{test \version}
\begin{document}
\...
0
votes
0
answers
40
views
`-initialize` flag no longer works in mylatexformat?
It was suggested in mylatexformat documentation to use -initialize flag.
However, it appears that in some newer version, this stopped working. (experimentally, -ini still works)
What caused the ...
0
votes
0
answers
143
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
243
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
248
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 ...
1
vote
1
answer
117
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
190
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 ...