Environment variables like TEXINPUTS, TEXCONFIG, BSTINPUTS direct the working of tex and related commands, mostly by specifying where to look for packages, styles, etc.
Questions tagged [environment-variables]
114 questions
23
votes
2 answers
How to read a Variable from a file in LATEX?
How to read a variable from a file, lets say textfile var.txt that contains the following:
foo = 10
bar = 20
Now I am looking for a command \missingcommand that scans the file and it can be used in my Latex code like this:
The first value…
Steff80
- 231
22
votes
2 answers
$TEXMFHOME setting
I use texlive 2012 on ubuntu 12.04.
I wanted my ~/texmf folder invisible, so I edited my texmf.cnf file which is in /usr/local/texlive/2012 directory:
TEXMFHOME = ~/.texmf
I rebooted my computer and ran the command
kpsewhich -var-value…
Byeongho Lee
- 321
- 1
- 2
- 5
3
votes
1 answer
Possible to renew table counter?
Can I renew the table counter to use my own counter similarly to renewing, for instance, the \tablename? What is the keyword or where could I look for it?
This will be used within a newenvironment based on tabu (in order to have a separate counter…
Daniel
- 429
2
votes
1 answer
Setting TEXINPUTS
Am using the following command to set TEXINPUTS where I have my style files
gungadin_trk="${HOME}/Opstk/bin/gungadin-1.0"
chilkat_trk="${gungadin_trk}/typex/chilkat//"
export TEXINPUTS=".:${chilkat_trk}:${TEXINPUTS}"
When I do
echo $TEXINPUTS
I…
Veak
- 1
2
votes
1 answer
If and how can I add a variable and use it in commands?
How do I define a variable that can be used in commands? If it is even possible?
I want to assign a length to a variable and use it in \addvspace,…
K.C.
- 71
1
vote
1 answer
Custom topmatter variable
In a simple documentclass for homework assignments, how should I go about specifying a few attributes in addition to title and author in the topmatter?
\begin{document}
\acadclass{Linear Algebra}
\psetnum{2}
\title{Some Title}
\author{Joe Shmoe}
I…
Miles
- 113
0
votes
0 answers
how to insert the name of the file in the text?
I´m making bigwork-096.tex
The source of that file is
\begin{document}
This source is very big.\\
The name of this file is **????????**
\end{document}
What I must type instead ?????? to obtain the PDF with this result
This source is very…
Mika Ike
- 3,751