# Bug#309098: marked as done (The variable TEXINPUTS isn't recognized when the tex file is opened by the file manager and the file was compiles by the yatex tex command)

```Your message dated Sat, 14 May 2005 20:50:21 +0200
with message-id <20050514185021.GA16178@chistera.yi.org>
and subject line The variable TEXINPUTS isn't recognized when the tex file is opened by the file manager and the file was compiles by the yatex tex command
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am

--------------------------------------
Received: (at submit) by bugs.debian.org; 14 May 2005 15:40:41 +0000
>From wai290117@yahoo.co.jp Sat May 14 08:40:41 2005
Return-path: <wai290117@yahoo.co.jp>
by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
id 1DWykr-0006fR-00; Sat, 14 May 2005 08:40:41 -0700
Received: from unknown (HELO ?192.168.11.10?) (wai290117@218.112.92.36 with plain)
by smtp18.mail.bbt.yahoo.co.jp with SMTP; 14 May 2005 15:40:09 -0000
X-Apparently-From: <wai290117@yahoo.co.jp>
Message-ID: <42861BE9.5070007@yahoo.co.jp>
Date: Sun, 15 May 2005 00:40:25 +0900
From: yukie <wai290117@yahoo.co.jp>
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: submit@bugs.debian.org
Subject: The variable TEXINPUTS isn't recognized when the tex file is opened
by the file manager and the file was compiles by the yatex tex command
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.3 required=4.0 tests=BAYES_10,FROM_ENDS_IN_NUMS,
HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:

Package: yatex
Version: 1.71-1

I am using debian sarge, and having trouble with
yatex.  I don't have this problem with other machines
with debian woody.  The problem is as follows.
I set up the file association of konqueror so that
when I double click an tex file then it is opened
by the editor emacs.  I use yatex to edit tex files.
Here is the part of my .emacs wich concerns yatex

(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)

;; YaTeX-mode
(setq auto-mode-alist
(cons (cons "\\.tex\$" 'yatex-mode) auto-mode-alist))
(setq dvi2-command "xdvi"
tex-command "platex -src"
dviprint-command-format "dvips %s | lpr"
YaTeX-kanji-code 3)

I set up the environment variables as follows in my .bashrc

export TEXINPUTS=.:/usr/share/texmf//:\${HOME}/tex-macros//
export BIBINPUTS=.:/usr/share/texmf//:\${HOME}/tex-macros//
export BSTINPUTS=.:/usr/share/texmf//:\${HOME}/tex-macros//

I put macro files in tex-macros such as head.tex.  When I try to
compile with Ctrl+c t j it doesn' recognize the variable TEXINPUTS
and says

! I can't find file `head'.

Please type another input file name:

If I open a tex file from the command line this problem does not
occur and I can compile the file.  I don't know if this is a problem of
yatex or konqueror.  When I open a tex file in a similar manner on a
woody machine this problem does not occur.  Of course I may be
overlooking something, but I appreciate if somebody could look into the
matter.

Sincerely yours,
Akihiko Yukie

---------------------------------------
Received: (at 309098-done) by bugs.debian.org; 14 May 2005 18:50:28 +0000
>From asp16@alu.ua.es Sat May 14 11:50:28 2005
Return-path: <asp16@alu.ua.es>
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DX1iU-0006oL-00; Sat, 14 May 2005 11:50:27 -0700
Received: from userid 1000 by chistera.yi.org with local (Exim 4.50)
id 1DX1iP-0004Tt-MX; Sat, 14 May 2005 20:50:21 +0200
Date: Sat, 14 May 2005 20:50:21 +0200
To: yukie <wai290117@yahoo.co.jp>, 309098-done@bugs.debian.org
Cc: debian-kde@lists.debian.org, yatex@packages.debian.org
Subject: Re: The variable TEXINPUTS isn't recognized when the tex file is opened by the file manager and the file was compiles by the yatex tex command
Message-ID: <20050514185021.GA16178@chistera.yi.org>
Mail-Followup-To: yukie <wai290117@yahoo.co.jp>,
309098-done@bugs.debian.org, debian-kde@lists.debian.org,
yatex@packages.debian.org
References: <42861BE9.5070007@yahoo.co.jp>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.9i
Delivered-To: 309098-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-1.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:

* yukie [Sun, 15 May 2005 00:40:25 +0900]:

Hello!

> Package: yatex
> Version: 1.71-1

This bug has been reassigned from yatex to konqueror, but this is not
really a bug in konqueror (nor in any package), so I'm closing it.

I will try now to give you some hints about what you should do to get
the file association working properly. I'm cc'ing the debian-kde list,
so if my indications are not enough, please follow up there since

> I am using debian sarge, and having trouble with
> yatex.  I don't have this problem with other machines
> with debian woody.  The problem is as follows.
> I set up the file association of konqueror so that
> when I double click an tex file then it is opened
> by the editor emacs.  I use yatex to edit tex files.

> I set up the environment variables as follows in my .bashrc
^^^^^^^^^^^^^

> export TEXINPUTS=.:/usr/share/texmf//:\${HOME}/tex-macros//
> export BIBINPUTS=.:/usr/share/texmf//:\${HOME}/tex-macros//
> export BSTINPUTS=.:/usr/share/texmf//:\${HOME}/tex-macros//

This is the whole issue, that you set up the variable in your
~/.bashrc. This is an issue that bites many people: environment
variables set in .bashrc are only available for your Bash sessions
(inside e.g. konsole or xterm). This is the reason for:

> If I open a tex file from the command line this problem does not
> occur and I can compile the file.

The way to solve this is to make the above variables available to
konqueror. You can do that by e.g. placing the above definitions in a
file in ~/.kde/env named *.sh, like ~/.kde/env/variables.sh.

Or in your ~/.[xX]session file, if you use one.

Personaly, I use /etc/X11/Xsession.d/85LOCAL-sourcefiles, a file
created by me that contains, among other things, this:

if test -f \$HOME/.Xsession-common; then
. \$HOME/.Xsession-common
fi

> I put macro files in tex-macros such as head.tex.  When I try to
> compile with Ctrl+c t j it doesn' recognize the variable TEXINPUTS
> and says

> ! I can't find file `head'.

> Please type another input file name:

> If I open a tex file from the command line this problem does not
> occur and I can compile the file.  I don't know if this is a problem of
> yatex or konqueror.  When I open a tex file in a similar manner on a
> woody machine this problem does not occur.  Of course I may be
> overlooking something, but I appreciate if somebody could look into the
> matter.

> Sincerely yours,
> Akihiko Yukie

Hope this helps,

--