Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: rgheck rgh...@... writes: On 12/18/2009 06:19 PM, peter kint wrote: Hi, 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Can somebody help me to get one of these things working? LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX is not finding these files. What platform are you on, etc? Did you do what needs doing for installing the LaTeX package? rh Thx for replying. I am on Linux (Ubuntu 9.10) (for 3 months , before : windows) I'mworking a lot wiyh Lyx and pgf/tikz includes. Up to now, everything worked +/- fine. I dont know if I messed up with Latex... Should I restart from scratch maybe? And if so: how to clean? how to restart? Thx Peter Ubuntu 9.10 repository provides texlive-2007 .deb packages. They are old. Installing the new texlive-2009 (it includes circuitikz) is a good thing. Here is a quickinstall http://www.tug.org/texlive/quickinstall.html where you can read - 'How to acquire the software' (http://www.tug.org/texlive/acquire.html e.g downloading the iso or installing over the internet) - 'Running the installer' or 'GUI installer' and - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) By default, the texlive-2009 bundle is installed on /usr/local/texlive (There is no need of deinstalling the old .deb packages, however they are not used anymore.) Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Ubuntu 9.10 repository provides texlive-2007 .deb packages. They are old. Installing the new texlive-2009 (it includes circuitikz) is a good thing. Here is a quickinstall http://www.tug.org/texlive/quickinstall.html where you can read - 'How to acquire the software' (http://www.tug.org/texlive/acquire.html e.g downloading the iso or installing over the internet) - 'Running the installer' or 'GUI installer' and - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) By default, the texlive-2009 bundle is installed on /usr/local/texlive (There is no need of deinstalling the old .deb packages, however they are not used anymore.) Ignacio Hey thx, This sounds like music to me. I had read the quickinstall already, but I get stuck on the POST-INSTALL part What command should I give? (I'm on Ubuntu 9.10 and whenI issue the command 'arch' he gives me the answer 'i686') Thx for reading replying. Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: - 'Running the installer' or 'GUI installer' and - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) This sounds like music to me. I had read the quickinstall already, but I get stuck on the POST-INSTALL part What command should I give? (I'm on Ubuntu 9.10 and whenI issue the command 'arch' he gives me the answer 'i686') The directory of the binaries for your platform must be added to the search path. Are you a single user? Then you can add the following lines PATH=/usr/local/texlive/2009/bin/x86_64-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH; export INFOPATH [in your case it will be '/i686' instead '/x86_64-linux' ;)] in the file .bashrc of your home folder. (e.g., open with gedit /home/your_user/.bashrc) (This is my case in Ubuntu 9.10; if it doesn't work for you, try the .profile file) Testing the installation: type in a terminal tex --version This is my output: $ tex --version TeX 3.1415926 (TeX Live 2009) kpathsea version 5.0.0 Copyright 2009 D.E. Knuth. ... Primary author of TeX: D.E. Knuth. Now all is OK, hope! Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
The directory of the binaries for your platform must be added to the search path. Are you a single user? Then you can add the following lines PATH=/usr/local/texlive/2009/bin/x86_64-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH; export INFOPATH [in your case it will be '/i686' instead '/x86_64-linux' ;)] in the file .bashrc of your home folder. (e.g., open with gedit /home/your_user/.bashrc) (This is my case in Ubuntu 9.10; if it doesn't work for you, try the .profile file) Testing the installation: type in a terminal tex --version This is my output: $ tex --version TeX 3.1415926 (TeX Live 2009) kpathsea version 5.0.0 Copyright 2009 D.E. Knuth. ... Primary author of TeX: D.E. Knuth. Now all is OK, hope! Ignacio Thx very much for your help! Just one more question (as I'm afraid to mess up): I am about to type i (for installation) and I see in the output the following: D directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Happy X-mas!
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: I am about to type i (for installation) and I see in the output the following: D directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Yes, you must create the directory, but /usr/local is not writable by users. Then root must create the directory and then change the permissions. Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. Happy X-mas! Yes, Happy X-mas! Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Sigh, I'm almost desperate. I followed all your instructions. He told me that installation was done. I changed PATHS. And this is what I get: pe...@peter-desktop:~$ tex --version TeX 3.141592 (Web2C 7.5.6) kpathsea version 3.5.6 Copyright 2007 D.E. Knuth. Kpathsea is copyright 2007 Karl Berry and Olaf Weber. There is NO warranty. Redistribution of this software is covered by the terms of both the TeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the TeX source. Primary author of TeX: D.E. Knuth. Kpathsea written by Karl Berry, Olaf Weber, and others. Version 2007. Do I have two versions now and is he choosing the wrong one? Thx, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Sonntag 20 Dezember 2009 schrieb peter kint: Sigh, I'm almost desperate. I followed all your instructions. He told me that installation was done. I changed PATHS. And this is what I get: pe...@peter-desktop:~$ tex --version ... Version 2007. Do I have two versions now and is he choosing the wrong one? You have to set your PATH appropriatelly. which tex gives here: /usr/local/texlive/2009/bin/x86_64-linux/tex This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) Thx, Peter Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On Sunday 20 December 2009 12:22:13 peter kint wrote: Sigh, I'm almost desperate. I followed all your instructions. He told me that installation was done. I changed PATHS. And this is what I get: pe...@peter-desktop:~$ tex --version TeX 3.141592 (Web2C 7.5.6) kpathsea version 3.5.6 Copyright 2007 D.E. Knuth. Kpathsea is copyright 2007 Karl Berry and Olaf Weber. There is NO warranty. Redistribution of this software is covered by the terms of both the TeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the TeX source. Primary author of TeX: D.E. Knuth. Kpathsea written by Karl Berry, Olaf Weber, and others. Version 2007. Do I have two versions now and is he choosing the wrong one? Thx, Peter Anything's possible. Why not investigate, starting with this command at the command prompt: locate tex | grep /tex$ Try running each of them, find out which you want, and then strongarm LyX to specify that one. Here's the output of that command on my machine: === sl...@mydesk:~$ locate tex | grep /tex$ /etc/texmf/tex /home/slitt/junk/lyx-1.5.4/lib/tex /usr/bin/tex /usr/share/lire/tex /usr/share/texmf/tex /usr/share/texmf-texlive/tex /var/lib/texmf/tex /var/lib/texmf/web2c/tex sl...@mydesk:~$ Probably most of those aren't executables, but it's quick enough to check. Another handy tool is the which command: === sl...@mydesk:~$ which tex /usr/bin/tex sl...@mydesk:~$ === The preceding shows the first executable tex encountered on my executable path ($PATH). HTH SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Steve Litt sl...@... writes: Anything's possible. Why not investigate, starting with this command at the command prompt: locate tex | grep /tex$ Hi, thx for replying. Here are my outputs Try running each of them, find out which you want, and then strongarm LyX to specify that one. == pe...@peter-desktop:~$ locate tex | grep /tex$ /etc/texmf/tex /etc/texmf/tex/generic/pgfplots/tex /home/peter/Desktop/lyx-1.6.5/lib/tex /home/peter/Desktop/pgfplots/tex /usr/bin/tex /usr/local/share/texmf/tex /usr/local/share/texmf/circuitikz/tex /usr/share/doc/texlive-doc/polish/tex-virtual-academy-pl/tex /usr/share/doc/texlive-doc-pl/polish/tex-virtual-academy-pl/tex /usr/share/kde4/apps/kile/complete/tex /usr/share/lilypond/2.12.2/tex /usr/share/texmf/tex /usr/share/texmf/circuitikz/tex /usr/share/texmf-texlive/tex /var/lib/texmf/tex /var/lib/texmf/web2c/tex Probably most of those aren't executables, but it's quick enough to check. Another handy tool is the which command: pe...@peter-desktop:~$ which tex /usr/bin/tex How do I proceed? The directory in which I just 'installed'(?) texlive2009 is: /usr/local/texlive/2009 Thx again, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Kornel Benko kornel.be...@... writes: You have to set your PATH appropriatelly. which tex gives here: /usr/local/texlive/2009/bin/x86_64-linux/tex This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) which tex gives: === pe...@peter-desktop:~$ which tex /usr/bin/tex === But the directory in which I installed texlive2009 is: /usr/local/texlive /usr/local/texlive/2009 I must be completely ignorant, but I dont know how to set this right. Thx Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 10:31 AM, Ignacio Garcia wrote: peter kintpeter_k...@... writes: I am about to type i (for installation) and I see in the output the following: D directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Yes, you must create the directory, but /usr/local is not writable by users. Then root must create the directory and then change the permissions. Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh OK. Then how do I force the install program to another directory? Can I use any directory name? Will Lyx find it there? I'm getting a bit confused here. Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 01:31 PM, peter kint wrote: Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh OK. Then how do I force the install program to another directory? Can I use any directory name? Will Lyx find it there? I'm getting a bit confused here. I've lost track of what we're trying to install, but I take it that you were trying to install some updated version of tex-live? I wouldn't recommend that, either, unless (a) you know what you are doing or (b) you can install it via the Ubuntu package manager. If I remember right, the issue was just installing a LaTeX package, not upgrading the whole LaTeX installation. So my suggestion would be to forget about upgrading TeX itself and just to install the package. I've just done this myself and so have found out what at least one of the problems is. Here are the steps to follow. 1. Download CircuiTikz to /tmp: [rgh...@rghquad ~]$ cd /tmp [rgh...@rghquad tmp]$ wget http://home.dei.polimi.it/mredaelli/downloads/circuitikz.zip 2. Make sure it is there: [rgh...@rghquad tmp]$ ls circuitikz.zip circuitikz.zip 3. We now want to figure out where to put this thing. So run locate /latex.ltx as a way of finding out where your base TeX installation is. I see: [rgh...@rghquad tmp]$ locate /latex.ltx /usr/share/texmf/tex/latex/base/latex.ltx This tells me that my main TeX tree is at /usr/share/texmf/. Yours may be elsewhere. We want the part before tex/latex/ NOTE: Please see below. This is by far not the best way for us to proceed, but it will at least work. 4. If you see more than one such file, then I think you still have multiple TeX installations, which is going to confuse everything. Get rid of one of them. 5. Go to your local TeX tree: [rgh...@rghquad tmp]$ cd /usr/share/texmf 6. Now, per the directions here: http://home.dei.polimi.it/mredaelli/circuitikz/download.html we are going to unpack the distribution file in our texmf directory---though not the local one, since we are trying to keep this simple. We have to do this as root. So: [rgh...@rghquad texmf]$ sudo unzip /tmp/circuitikz.zip [sudo] password for rgheck: Archive: /tmp/circuitikz.zip creating: doc/latex/circuitikz/ creating: tex/latex/circuitikz/ inflating: doc/latex/circuitikz/README inflating: doc/latex/circuitikz/CHANGELOG~ inflating: doc/latex/circuitikz/circuitikzmanual.pdf inflating: doc/latex/circuitikz/CHANGELOG inflating: doc/latex/circuitikz/circuitikzmanual.tex inflating: tex/latex/circuitikz/pgfcirctripoles.sty inflating: tex/latex/circuitikz/pgfcircquadpoles.sty inflating: tex/latex/circuitikz/circuitikz.sty inflating: tex/latex/circuitikz/pgfcircvoltage.sty inflating: tex/latex/circuitikz/pgfcircshapes.sty inflating: tex/latex/circuitikz/pgfcircmonopoles.sty inflating: tex/latex/circuitikz/pgfcircmath.sty inflating: tex/latex/circuitikz/pgfcirclabel.sty inflating: tex/latex/circuitikz/pgfcirccurrent.sty inflating: tex/latex/circuitikz/pgfcircbipoles.sty inflating: tex/latex/circuitikz/pgfcircutils.sty 7. There's a permission problem in the archive that we need to fix. You can see it here: [rgh...@rghquad texmf]$ ls -l tex/latex/circuitikz/ total 160 -rwx-- 1 root root 28768 2009-05-20 11:26 circuitikz.sty ... The main circuitikz.sty file is not readable by normal users! So: [rgh...@rghquad texmf]$ sudo chmod 644 tex/latex/circuitikz/circuitikz.sty 8. Update the TeX databases: [rgh...@rghquad texmf]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. 9. Check the results: [rgh...@rghquad texmf]$ kpsewhich circuitikz.sty /usr/share/texmf/tex/latex/circuitikz/circuitikz.sty The permissions problem may also have been part of the issue before. I've written the developer about it. Now, regarding the note above, it isn't really a good idea for us to install our package into the main TeX tree. The reason is that an upgrade of TeX could overwrite all of this, and then we'd lose the package. This is why TeX provides several different trees where we can put our files. There are usually three of these, and their locations are (almost always) defined in the file texmf.cnf. Let's look at it: [rgh...@rghquad texmf]$ less `locate texmf.cnf` If you go down
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheck rgh...@... writes: Here are the steps to follow. Richard Halleluia! What a massive piece of help (and an instructive tex-course too)! IT WORKZ! FINALLY! I owe you eternal gratitude :-) Can I post your lecture in an other forum too (ubuntuforums.org), evidently with proper reference? I'm so glad... thx for your great efforts and patience!! Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: Kornel Benko kornel.be...@... writes: You have to set your PATH appropriatelly. which tex gives here: /usr/local/texlive/2009/bin/x86_64-linux/tex This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) which tex gives: === peter at peter-desktop:~$ which tex /usr/bin/tex === But the directory in which I installed texlive2009 is: /usr/local/texlive /usr/local/texlive/2009 You have the line PATH=/usr/local/texlive/2009/bin/i686:$PATH; export PATH in your /home/peter/.bashrc. OK? This being right, you should get something as: i...@igndesk:~$ echo $PATH /usr/local/texlive/2009/bin/x86_64-linux:/usr/local/sbin: /usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games The *first* path is the local one. Ignacio Don't despair. All the thing becomes learning
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 03:41 PM, peter kint wrote: rgheckrgh...@... writes: Here are the steps to follow. Richard Halleluia! What a massive piece of help (and an instructive tex-course too)! IT WORKZ! FINALLY! I owe you eternal gratitude :-) Can I post your lecture in an other forum too (ubuntuforums.org), evidently with proper reference? When I get a chance, I'll put it on the wiki. And transcribe some of it to the LyX docs. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: rgheck rgh...@... writes: On 12/18/2009 06:19 PM, peter kint wrote: Hi, 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Can somebody help me to get one of these things working? LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX is not finding these files. What platform are you on, etc? Did you do what needs doing for installing the LaTeX package? rh Thx for replying. I am on Linux (Ubuntu 9.10) (for 3 months , before : windows) I'mworking a lot wiyh Lyx and pgf/tikz includes. Up to now, everything worked +/- fine. I dont know if I messed up with Latex... Should I restart from scratch maybe? And if so: how to clean? how to restart? Thx Peter Ubuntu 9.10 repository provides texlive-2007 .deb packages. They are old. Installing the new texlive-2009 (it includes circuitikz) is a good thing. Here is a quickinstall http://www.tug.org/texlive/quickinstall.html where you can read - 'How to acquire the software' (http://www.tug.org/texlive/acquire.html e.g downloading the iso or installing over the internet) - 'Running the installer' or 'GUI installer' and - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) By default, the texlive-2009 bundle is installed on /usr/local/texlive (There is no need of deinstalling the old .deb packages, however they are not used anymore.) Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Ubuntu 9.10 repository provides texlive-2007 .deb packages. They are old. Installing the new texlive-2009 (it includes circuitikz) is a good thing. Here is a quickinstall http://www.tug.org/texlive/quickinstall.html where you can read - 'How to acquire the software' (http://www.tug.org/texlive/acquire.html e.g downloading the iso or installing over the internet) - 'Running the installer' or 'GUI installer' and - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) By default, the texlive-2009 bundle is installed on /usr/local/texlive (There is no need of deinstalling the old .deb packages, however they are not used anymore.) Ignacio Hey thx, This sounds like music to me. I had read the quickinstall already, but I get stuck on the POST-INSTALL part What command should I give? (I'm on Ubuntu 9.10 and whenI issue the command 'arch' he gives me the answer 'i686') Thx for reading replying. Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: - 'Running the installer' or 'GUI installer' and - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) This sounds like music to me. I had read the quickinstall already, but I get stuck on the POST-INSTALL part What command should I give? (I'm on Ubuntu 9.10 and whenI issue the command 'arch' he gives me the answer 'i686') The directory of the binaries for your platform must be added to the search path. Are you a single user? Then you can add the following lines PATH=/usr/local/texlive/2009/bin/x86_64-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH; export INFOPATH [in your case it will be '/i686' instead '/x86_64-linux' ;)] in the file .bashrc of your home folder. (e.g., open with gedit /home/your_user/.bashrc) (This is my case in Ubuntu 9.10; if it doesn't work for you, try the .profile file) Testing the installation: type in a terminal tex --version This is my output: $ tex --version TeX 3.1415926 (TeX Live 2009) kpathsea version 5.0.0 Copyright 2009 D.E. Knuth. ... Primary author of TeX: D.E. Knuth. Now all is OK, hope! Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
The directory of the binaries for your platform must be added to the search path. Are you a single user? Then you can add the following lines PATH=/usr/local/texlive/2009/bin/x86_64-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH; export INFOPATH [in your case it will be '/i686' instead '/x86_64-linux' ;)] in the file .bashrc of your home folder. (e.g., open with gedit /home/your_user/.bashrc) (This is my case in Ubuntu 9.10; if it doesn't work for you, try the .profile file) Testing the installation: type in a terminal tex --version This is my output: $ tex --version TeX 3.1415926 (TeX Live 2009) kpathsea version 5.0.0 Copyright 2009 D.E. Knuth. ... Primary author of TeX: D.E. Knuth. Now all is OK, hope! Ignacio Thx very much for your help! Just one more question (as I'm afraid to mess up): I am about to type i (for installation) and I see in the output the following: D directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Happy X-mas!
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: I am about to type i (for installation) and I see in the output the following: D directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Yes, you must create the directory, but /usr/local is not writable by users. Then root must create the directory and then change the permissions. Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. Happy X-mas! Yes, Happy X-mas! Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Sigh, I'm almost desperate. I followed all your instructions. He told me that installation was done. I changed PATHS. And this is what I get: pe...@peter-desktop:~$ tex --version TeX 3.141592 (Web2C 7.5.6) kpathsea version 3.5.6 Copyright 2007 D.E. Knuth. Kpathsea is copyright 2007 Karl Berry and Olaf Weber. There is NO warranty. Redistribution of this software is covered by the terms of both the TeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the TeX source. Primary author of TeX: D.E. Knuth. Kpathsea written by Karl Berry, Olaf Weber, and others. Version 2007. Do I have two versions now and is he choosing the wrong one? Thx, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Sonntag 20 Dezember 2009 schrieb peter kint: Sigh, I'm almost desperate. I followed all your instructions. He told me that installation was done. I changed PATHS. And this is what I get: pe...@peter-desktop:~$ tex --version ... Version 2007. Do I have two versions now and is he choosing the wrong one? You have to set your PATH appropriatelly. which tex gives here: /usr/local/texlive/2009/bin/x86_64-linux/tex This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) Thx, Peter Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On Sunday 20 December 2009 12:22:13 peter kint wrote: Sigh, I'm almost desperate. I followed all your instructions. He told me that installation was done. I changed PATHS. And this is what I get: pe...@peter-desktop:~$ tex --version TeX 3.141592 (Web2C 7.5.6) kpathsea version 3.5.6 Copyright 2007 D.E. Knuth. Kpathsea is copyright 2007 Karl Berry and Olaf Weber. There is NO warranty. Redistribution of this software is covered by the terms of both the TeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the TeX source. Primary author of TeX: D.E. Knuth. Kpathsea written by Karl Berry, Olaf Weber, and others. Version 2007. Do I have two versions now and is he choosing the wrong one? Thx, Peter Anything's possible. Why not investigate, starting with this command at the command prompt: locate tex | grep /tex$ Try running each of them, find out which you want, and then strongarm LyX to specify that one. Here's the output of that command on my machine: === sl...@mydesk:~$ locate tex | grep /tex$ /etc/texmf/tex /home/slitt/junk/lyx-1.5.4/lib/tex /usr/bin/tex /usr/share/lire/tex /usr/share/texmf/tex /usr/share/texmf-texlive/tex /var/lib/texmf/tex /var/lib/texmf/web2c/tex sl...@mydesk:~$ Probably most of those aren't executables, but it's quick enough to check. Another handy tool is the which command: === sl...@mydesk:~$ which tex /usr/bin/tex sl...@mydesk:~$ === The preceding shows the first executable tex encountered on my executable path ($PATH). HTH SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Steve Litt sl...@... writes: Anything's possible. Why not investigate, starting with this command at the command prompt: locate tex | grep /tex$ Hi, thx for replying. Here are my outputs Try running each of them, find out which you want, and then strongarm LyX to specify that one. == pe...@peter-desktop:~$ locate tex | grep /tex$ /etc/texmf/tex /etc/texmf/tex/generic/pgfplots/tex /home/peter/Desktop/lyx-1.6.5/lib/tex /home/peter/Desktop/pgfplots/tex /usr/bin/tex /usr/local/share/texmf/tex /usr/local/share/texmf/circuitikz/tex /usr/share/doc/texlive-doc/polish/tex-virtual-academy-pl/tex /usr/share/doc/texlive-doc-pl/polish/tex-virtual-academy-pl/tex /usr/share/kde4/apps/kile/complete/tex /usr/share/lilypond/2.12.2/tex /usr/share/texmf/tex /usr/share/texmf/circuitikz/tex /usr/share/texmf-texlive/tex /var/lib/texmf/tex /var/lib/texmf/web2c/tex Probably most of those aren't executables, but it's quick enough to check. Another handy tool is the which command: pe...@peter-desktop:~$ which tex /usr/bin/tex How do I proceed? The directory in which I just 'installed'(?) texlive2009 is: /usr/local/texlive/2009 Thx again, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Kornel Benko kornel.be...@... writes: You have to set your PATH appropriatelly. which tex gives here: /usr/local/texlive/2009/bin/x86_64-linux/tex This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) which tex gives: === pe...@peter-desktop:~$ which tex /usr/bin/tex === But the directory in which I installed texlive2009 is: /usr/local/texlive /usr/local/texlive/2009 I must be completely ignorant, but I dont know how to set this right. Thx Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 10:31 AM, Ignacio Garcia wrote: peter kintpeter_k...@... writes: I am about to type i (for installation) and I see in the output the following: D directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Yes, you must create the directory, but /usr/local is not writable by users. Then root must create the directory and then change the permissions. Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh OK. Then how do I force the install program to another directory? Can I use any directory name? Will Lyx find it there? I'm getting a bit confused here. Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 01:31 PM, peter kint wrote: Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh OK. Then how do I force the install program to another directory? Can I use any directory name? Will Lyx find it there? I'm getting a bit confused here. I've lost track of what we're trying to install, but I take it that you were trying to install some updated version of tex-live? I wouldn't recommend that, either, unless (a) you know what you are doing or (b) you can install it via the Ubuntu package manager. If I remember right, the issue was just installing a LaTeX package, not upgrading the whole LaTeX installation. So my suggestion would be to forget about upgrading TeX itself and just to install the package. I've just done this myself and so have found out what at least one of the problems is. Here are the steps to follow. 1. Download CircuiTikz to /tmp: [rgh...@rghquad ~]$ cd /tmp [rgh...@rghquad tmp]$ wget http://home.dei.polimi.it/mredaelli/downloads/circuitikz.zip 2. Make sure it is there: [rgh...@rghquad tmp]$ ls circuitikz.zip circuitikz.zip 3. We now want to figure out where to put this thing. So run locate /latex.ltx as a way of finding out where your base TeX installation is. I see: [rgh...@rghquad tmp]$ locate /latex.ltx /usr/share/texmf/tex/latex/base/latex.ltx This tells me that my main TeX tree is at /usr/share/texmf/. Yours may be elsewhere. We want the part before tex/latex/ NOTE: Please see below. This is by far not the best way for us to proceed, but it will at least work. 4. If you see more than one such file, then I think you still have multiple TeX installations, which is going to confuse everything. Get rid of one of them. 5. Go to your local TeX tree: [rgh...@rghquad tmp]$ cd /usr/share/texmf 6. Now, per the directions here: http://home.dei.polimi.it/mredaelli/circuitikz/download.html we are going to unpack the distribution file in our texmf directory---though not the local one, since we are trying to keep this simple. We have to do this as root. So: [rgh...@rghquad texmf]$ sudo unzip /tmp/circuitikz.zip [sudo] password for rgheck: Archive: /tmp/circuitikz.zip creating: doc/latex/circuitikz/ creating: tex/latex/circuitikz/ inflating: doc/latex/circuitikz/README inflating: doc/latex/circuitikz/CHANGELOG~ inflating: doc/latex/circuitikz/circuitikzmanual.pdf inflating: doc/latex/circuitikz/CHANGELOG inflating: doc/latex/circuitikz/circuitikzmanual.tex inflating: tex/latex/circuitikz/pgfcirctripoles.sty inflating: tex/latex/circuitikz/pgfcircquadpoles.sty inflating: tex/latex/circuitikz/circuitikz.sty inflating: tex/latex/circuitikz/pgfcircvoltage.sty inflating: tex/latex/circuitikz/pgfcircshapes.sty inflating: tex/latex/circuitikz/pgfcircmonopoles.sty inflating: tex/latex/circuitikz/pgfcircmath.sty inflating: tex/latex/circuitikz/pgfcirclabel.sty inflating: tex/latex/circuitikz/pgfcirccurrent.sty inflating: tex/latex/circuitikz/pgfcircbipoles.sty inflating: tex/latex/circuitikz/pgfcircutils.sty 7. There's a permission problem in the archive that we need to fix. You can see it here: [rgh...@rghquad texmf]$ ls -l tex/latex/circuitikz/ total 160 -rwx-- 1 root root 28768 2009-05-20 11:26 circuitikz.sty ... The main circuitikz.sty file is not readable by normal users! So: [rgh...@rghquad texmf]$ sudo chmod 644 tex/latex/circuitikz/circuitikz.sty 8. Update the TeX databases: [rgh...@rghquad texmf]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. 9. Check the results: [rgh...@rghquad texmf]$ kpsewhich circuitikz.sty /usr/share/texmf/tex/latex/circuitikz/circuitikz.sty The permissions problem may also have been part of the issue before. I've written the developer about it. Now, regarding the note above, it isn't really a good idea for us to install our package into the main TeX tree. The reason is that an upgrade of TeX could overwrite all of this, and then we'd lose the package. This is why TeX provides several different trees where we can put our files. There are usually three of these, and their locations are (almost always) defined in the file texmf.cnf. Let's look at it: [rgh...@rghquad texmf]$ less `locate texmf.cnf` If you go down
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheck rgh...@... writes: Here are the steps to follow. Richard Halleluia! What a massive piece of help (and an instructive tex-course too)! IT WORKZ! FINALLY! I owe you eternal gratitude :-) Can I post your lecture in an other forum too (ubuntuforums.org), evidently with proper reference? I'm so glad... thx for your great efforts and patience!! Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint peter_k...@... writes: Kornel Benko kornel.be...@... writes: You have to set your PATH appropriatelly. which tex gives here: /usr/local/texlive/2009/bin/x86_64-linux/tex This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) which tex gives: === peter at peter-desktop:~$ which tex /usr/bin/tex === But the directory in which I installed texlive2009 is: /usr/local/texlive /usr/local/texlive/2009 You have the line PATH=/usr/local/texlive/2009/bin/i686:$PATH; export PATH in your /home/peter/.bashrc. OK? This being right, you should get something as: i...@igndesk:~$ echo $PATH /usr/local/texlive/2009/bin/x86_64-linux:/usr/local/sbin: /usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games The *first* path is the local one. Ignacio Don't despair. All the thing becomes learning
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 03:41 PM, peter kint wrote: rgheckrgh...@... writes: Here are the steps to follow. Richard Halleluia! What a massive piece of help (and an instructive tex-course too)! IT WORKZ! FINALLY! I owe you eternal gratitude :-) Can I post your lecture in an other forum too (ubuntuforums.org), evidently with proper reference? When I get a chance, I'll put it on the wiki. And transcribe some of it to the LyX docs. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kintwrites: > > rgheck writes: > > > > > On 12/18/2009 06:19 PM, peter kint wrote: > > > Hi, > > > > > > 1. Trying to install circuitikz > > > http://home.dei.polimi.it/mredaelli/circuitikz/index.html > > > to make electrical circuits in Lyx. > > > > > > I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. > > > > > > > > > Can somebody help me to get one of these things working? > > > > > > > > LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX > > is not finding these files. What platform are you on, etc? Did you do > > what needs doing for installing the LaTeX package? > > > > rh > > > > > > Thx for replying. > I am on Linux (Ubuntu 9.10) (for 3 months , before : windows) > I'mworking a lot wiyh Lyx and pgf/tikz includes. Up to now, everything worked > +/- fine. > I dont know if I messed up with Latex... Should I restart from scratch maybe? > And if so: how to clean? how to restart? > > Thx > Peter > Ubuntu 9.10 repository provides texlive-2007 .deb packages. They are old. Installing the new texlive-2009 (it includes circuitikz) is a good thing. Here is a quickinstall http://www.tug.org/texlive/quickinstall.html where you can read - 'How to acquire the software' (http://www.tug.org/texlive/acquire.html e.g downloading the iso or installing over the internet) - 'Running the installer' or 'GUI installer' and - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) By default, the texlive-2009 bundle is installed on /usr/local/texlive (There is no need of deinstalling the old .deb packages, however they are not used anymore.) Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
> Ubuntu 9.10 repository provides texlive-2007 .deb packages. They are old. > Installing the new texlive-2009 (it includes circuitikz) is a good thing. > > Here is a quickinstall > http://www.tug.org/texlive/quickinstall.html > where you can read > - 'How to acquire the software' > (http://www.tug.org/texlive/acquire.html e.g downloading the iso > or installing over the internet) > - 'Running the installer' or 'GUI installer' and > - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the > full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) > > By default, the texlive-2009 bundle is installed on > /usr/local/texlive > > (There is no need of deinstalling the old .deb packages, however > they are not used anymore.) > > Ignacio Hey thx, This sounds like music to me. I had read the quickinstall already, but I get stuck on the POST-INSTALL part What command should I give? (I'm on Ubuntu 9.10 and whenI issue the command 'arch' he gives me the answer 'i686') Thx for reading & replying. Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kintwrites: > > - 'Running the installer' or 'GUI installer' and > > - 'Post-install: setting the PATH' (it's essential: see 3.4.3/3.4.4 in the > > full info page http://www.tug.org/texlive/doc/texlive-en/texlive-en.html) > > > This sounds like music to me. > I had read the quickinstall already, but I get stuck on the POST-INSTALL part > What command should I give? > (I'm on Ubuntu 9.10 > and whenI issue the command 'arch' he gives me the answer 'i686') > The directory of the binaries for your platform must be added to the search path. Are you a single user? Then you can add the following lines PATH=/usr/local/texlive/2009/bin/x86_64-linux:$PATH; export PATH MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH; export MANPATH INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH; export INFOPATH [in your case it will be '/i686' instead '/x86_64-linux' ;)] in the file .bashrc of your home folder. (e.g., open with gedit /home/your_user/.bashrc) (This is my case in Ubuntu 9.10; if it doesn't work for you, try the .profile file) Testing the installation: type in a terminal tex --version This is my output: $ tex --version TeX 3.1415926 (TeX Live 2009) kpathsea version 5.0.0 Copyright 2009 D.E. Knuth. ... Primary author of TeX: D.E. Knuth. Now all is OK, hope! Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
> The directory of the binaries for your platform must be added to > the search path. > Are you a single user? Then you can add the following lines > > PATH=/usr/local/texlive/2009/bin/x86_64-linux:$PATH; export PATH > MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH; export MANPATH > INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH; export INFOPATH > > [in your case it will be '/i686' instead '/x86_64-linux' ;)] > > in the file .bashrc of your home folder. (e.g., open with > gedit /home/your_user/.bashrc) (This is my case in Ubuntu 9.10; if it > doesn't work for you, try the .profile file) > > Testing the installation: type in a terminal > > tex --version > > This is my output: > $ tex --version >TeX 3.1415926 (TeX Live 2009) >kpathsea version 5.0.0 >Copyright 2009 D.E. Knuth. >... >Primary author of TeX: D.E. Knuth. > > Now all is OK, hope! > > Ignacio Thx very much for your help! Just one more question (as I'm afraid to mess up): I am about to type i (for installation) and I see in the output the following: directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Happy X-mas!
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kintwrites: > I am about to type i (for installation) and I see in the output the following: > > directories: >TEXDIR (the main TeX directory): > !! default location: /usr/local/texlive/2009 > !! is not writable, please select a different one! > > Should I first create this directory (it isn't there yet) or will the install > program to that for me? Yes, you must create the directory, but /usr/local is not writable by users. Then root must create the directory and then change the permissions. Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties > Permission and change Owner and Group by your user name. > > Happy X-mas! Yes, Happy X-mas! Ignacio
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Sigh, I'm almost desperate. I followed all your instructions. He told me that installation was done. I changed PATHS. And this is what I get: pe...@peter-desktop:~$ tex --version TeX 3.141592 (Web2C 7.5.6) kpathsea version 3.5.6 Copyright 2007 D.E. Knuth. Kpathsea is copyright 2007 Karl Berry and Olaf Weber. There is NO warranty. Redistribution of this software is covered by the terms of both the TeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the TeX source. Primary author of TeX: D.E. Knuth. Kpathsea written by Karl Berry, Olaf Weber, and others. Version 2007. Do I have two versions now and is he choosing the wrong one? Thx, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Sonntag 20 Dezember 2009 schrieb peter kint: > Sigh, > I'm almost desperate. > > I followed all your instructions. He told me that installation was done. I > changed PATHS. And this is what I get: > > pe...@peter-desktop:~$ tex --version ... > Version 2007. > > Do I have two versions now and is he choosing the wrong one? You have to set your PATH appropriatelly. "which tex" gives here: /usr/local/texlive/2009/bin/x86_64-linux/tex This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) > Thx, > Peter > Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On Sunday 20 December 2009 12:22:13 peter kint wrote: > Sigh, > I'm almost desperate. > > I followed all your instructions. He told me that installation was done. I > changed PATHS. And this is what I get: > > pe...@peter-desktop:~$ tex --version > TeX 3.141592 (Web2C 7.5.6) > kpathsea version 3.5.6 > Copyright 2007 D.E. Knuth. > Kpathsea is copyright 2007 Karl Berry and Olaf Weber. > There is NO warranty. Redistribution of this software is > covered by the terms of both the TeX copyright and > the Lesser GNU General Public License. > For more information about these matters, see the file > named COPYING and the TeX source. > Primary author of TeX: D.E. Knuth. > Kpathsea written by Karl Berry, Olaf Weber, and others. > > Version 2007. > > Do I have two versions now and is he choosing the wrong one? > > Thx, > Peter > Anything's possible. Why not investigate, starting with this command at the command prompt: locate tex | grep /tex$ Try running each of them, find out which you want, and then strongarm LyX to specify that one. Here's the output of that command on my machine: === sl...@mydesk:~$ locate tex | grep /tex$ /etc/texmf/tex /home/slitt/junk/lyx-1.5.4/lib/tex /usr/bin/tex /usr/share/lire/tex /usr/share/texmf/tex /usr/share/texmf-texlive/tex /var/lib/texmf/tex /var/lib/texmf/web2c/tex sl...@mydesk:~$ Probably most of those aren't executables, but it's quick enough to check. Another handy tool is the which command: === sl...@mydesk:~$ which tex /usr/bin/tex sl...@mydesk:~$ === The preceding shows the first executable tex encountered on my executable path ($PATH). HTH SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Steve Littwrites: > Anything's possible. Why not investigate, starting with this command at the > command prompt: > > locate tex | grep /tex$ Hi, thx for replying. Here are my outputs > Try running each of them, find out which you want, and then strongarm LyX to > specify that one. == pe...@peter-desktop:~$ locate tex | grep /tex$ /etc/texmf/tex /etc/texmf/tex/generic/pgfplots/tex /home/peter/Desktop/lyx-1.6.5/lib/tex /home/peter/Desktop/pgfplots/tex /usr/bin/tex /usr/local/share/texmf/tex /usr/local/share/texmf/circuitikz/tex /usr/share/doc/texlive-doc/polish/tex-virtual-academy-pl/tex /usr/share/doc/texlive-doc-pl/polish/tex-virtual-academy-pl/tex /usr/share/kde4/apps/kile/complete/tex /usr/share/lilypond/2.12.2/tex /usr/share/texmf/tex /usr/share/texmf/circuitikz/tex /usr/share/texmf-texlive/tex /var/lib/texmf/tex /var/lib/texmf/web2c/tex > > Probably most of those aren't executables, but it's quick enough to check. > > Another handy tool is the which command: > pe...@peter-desktop:~$ which tex /usr/bin/tex How do I proceed? The directory in which I just 'installed'(?) texlive2009 is: /usr/local/texlive/2009 Thx again, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Kornel Benkowrites: > You have to set your PATH appropriatelly. > > "which tex" gives here: > /usr/local/texlive/2009/bin/x86_64-linux/tex > This path has to be _before_ the path of your standard-installed tex (which is /usr/bin in your case) which tex gives: === pe...@peter-desktop:~$ which tex /usr/bin/tex === But the directory in which I installed texlive2009 is: /usr/local/texlive /usr/local/texlive/2009 I must be completely ignorant, but I dont know how to set this right. Thx Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 10:31 AM, Ignacio Garcia wrote: peter kintwrites: I am about to type i (for installation) and I see in the output the following: directories: TEXDIR (the main TeX directory): !! default location: /usr/local/texlive/2009 !! is not writable, please select a different one! Should I first create this directory (it isn't there yet) or will the install program to that for me? Yes, you must create the directory, but /usr/local is not writable by users. Then root must create the directory and then change the permissions. Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties> Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
> > Graphical? Type in terminal: > > sudo nautilus > > Go to the /usr/local , Create folder and name it texlive > > Then do right click on the created and > > Properties> Permission and change Owner and Group by your user name. > > > > > I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't > MEANT to be writeable by normal users. If you want to install just for > yourself, then install to some directory under $HOME/. > > rh OK. Then how do I force the install program to another directory? Can I use any directory name? Will Lyx find it there? I'm getting a bit confused here. Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 01:31 PM, peter kint wrote: Graphical? Type in terminal: sudo nautilus Go to the /usr/local , Create folder and name it texlive Then do right click on the created and Properties> Permission and change Owner and Group by your user name. I wouldn't recommend this. Stuff in the /usr/local/ hierarchy isn't MEANT to be writeable by normal users. If you want to install just for yourself, then install to some directory under $HOME/. rh OK. Then how do I force the install program to another directory? Can I use any directory name? Will Lyx find it there? I'm getting a bit confused here. I've lost track of what we're trying to install, but I take it that you were trying to install some updated version of tex-live? I wouldn't recommend that, either, unless (a) you know what you are doing or (b) you can install it via the Ubuntu package manager. If I remember right, the issue was just installing a LaTeX package, not upgrading the whole LaTeX installation. So my suggestion would be to forget about upgrading TeX itself and just to install the package. I've just done this myself and so have found out what at least one of the problems is. Here are the steps to follow. 1. Download CircuiTikz to /tmp: [rgh...@rghquad ~]$ cd /tmp [rgh...@rghquad tmp]$ wget http://home.dei.polimi.it/mredaelli/downloads/circuitikz.zip 2. Make sure it is there: [rgh...@rghquad tmp]$ ls circuitikz.zip circuitikz.zip 3. We now want to figure out where to put this thing. So run "locate /latex.ltx" as a way of finding out where your base TeX installation is. I see: [rgh...@rghquad tmp]$ locate /latex.ltx /usr/share/texmf/tex/latex/base/latex.ltx This tells me that my main TeX tree is at /usr/share/texmf/. Yours may be elsewhere. We want the part before "tex/latex/...". NOTE: Please see below. This is by far not the best way for us to proceed, but it will at least work. 4. If you see more than one such file, then I think you still have multiple TeX installations, which is going to confuse everything. Get rid of one of them. 5. Go to your local TeX tree: [rgh...@rghquad tmp]$ cd /usr/share/texmf 6. Now, per the directions here: http://home.dei.polimi.it/mredaelli/circuitikz/download.html we are going to unpack the distribution file in our texmf directory---though not the local one, since we are trying to keep this simple. We have to do this as root. So: [rgh...@rghquad texmf]$ sudo unzip /tmp/circuitikz.zip [sudo] password for rgheck: Archive: /tmp/circuitikz.zip creating: doc/latex/circuitikz/ creating: tex/latex/circuitikz/ inflating: doc/latex/circuitikz/README inflating: doc/latex/circuitikz/CHANGELOG~ inflating: doc/latex/circuitikz/circuitikzmanual.pdf inflating: doc/latex/circuitikz/CHANGELOG inflating: doc/latex/circuitikz/circuitikzmanual.tex inflating: tex/latex/circuitikz/pgfcirctripoles.sty inflating: tex/latex/circuitikz/pgfcircquadpoles.sty inflating: tex/latex/circuitikz/circuitikz.sty inflating: tex/latex/circuitikz/pgfcircvoltage.sty inflating: tex/latex/circuitikz/pgfcircshapes.sty inflating: tex/latex/circuitikz/pgfcircmonopoles.sty inflating: tex/latex/circuitikz/pgfcircmath.sty inflating: tex/latex/circuitikz/pgfcirclabel.sty inflating: tex/latex/circuitikz/pgfcirccurrent.sty inflating: tex/latex/circuitikz/pgfcircbipoles.sty inflating: tex/latex/circuitikz/pgfcircutils.sty 7. There's a permission problem in the archive that we need to fix. You can see it here: [rgh...@rghquad texmf]$ ls -l tex/latex/circuitikz/ total 160 -rwx-- 1 root root 28768 2009-05-20 11:26 circuitikz.sty ... The main circuitikz.sty file is not readable by normal users! So: [rgh...@rghquad texmf]$ sudo chmod 644 tex/latex/circuitikz/circuitikz.sty 8. Update the TeX databases: [rgh...@rghquad texmf]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. 9. Check the results: [rgh...@rghquad texmf]$ kpsewhich circuitikz.sty /usr/share/texmf/tex/latex/circuitikz/circuitikz.sty The permissions problem may also have been part of the issue before. I've written the developer about it. Now, regarding the note above, it isn't really a good idea for us to install our package into the main TeX tree. The reason is that an upgrade of TeX could overwrite all of this, and then we'd lose the package. This is why TeX provides several different trees where we can put our files. There are usually three of these, and their locations are (almost always) defined in the file texmf.cnf. Let's look at it: [rgh...@rghquad texmf]$ less `locate texmf.cnf` If you go
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheckwrites: > Here are the steps to follow. > Richard Halleluia! What a massive piece of help (and an instructive tex-course too)! IT WORKZ! FINALLY! I owe you eternal gratitude :-) Can I post your lecture in an other forum too (ubuntuforums.org), evidently with proper reference? I'm so glad... thx for your great efforts and patience!! Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kintwrites: > > Kornel Benko writes: > > > You have to set your PATH appropriatelly. > > > > "which tex" gives here: > > /usr/local/texlive/2009/bin/x86_64-linux/tex > > This path has to be _before_ the path of your standard-installed tex (which is > /usr/bin in your case) > > which tex gives: > === > peter peter-desktop:~$ which tex > /usr/bin/tex > === > > But the directory in which I installed texlive2009 is: > /usr/local/texlive > /usr/local/texlive/2009 > You have the line PATH=/usr/local/texlive/2009/bin/i686:$PATH; export PATH in your /home/peter/.bashrc. OK? This being right, you should get something as: i...@igndesk:~$ echo $PATH /usr/local/texlive/2009/bin/x86_64-linux:/usr/local/sbin: /usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games The *first* path is the local one. Ignacio Don't despair. All the thing becomes learning
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/20/2009 03:41 PM, peter kint wrote: rgheckwrites: Here are the steps to follow. Richard Halleluia! What a massive piece of help (and an instructive tex-course too)! IT WORKZ! FINALLY! I owe you eternal gratitude :-) Can I post your lecture in an other forum too (ubuntuforums.org), evidently with proper reference? When I get a chance, I'll put it on the wiki. And transcribe some of it to the LyX docs. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheck rgh...@... writes: On 12/18/2009 06:19 PM, peter kint wrote: Hi, 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Can somebody help me to get one of these things working? LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX is not finding these files. What platform are you on, etc? Did you do what needs doing for installing the LaTeX package? rh Thx for replying. I am on Linux (Ubuntu 9.10) (for 3 months , before : windows) I'mworking a lot wiyh Lyx and pgf/tikz includes. Up to now, everything worked +/- fine. I dont know if I messed up with Latex... Should I restart from scratch maybe? And if so: how to clean? how to restart? Thx Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Uwe Stöhr uwesto...@... writes: Am 19.12.2009 00:19, schrieb peter kint: 1. Trying to install circuitikz I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. regards Uwe I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? He tells me I havent got this command Maybe I should start from scratch, or is that not necessary? And if yes: how to clean, where to start? Thx for reading, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint wrote: I dont know if I messed up with Latex... Should I restart from scratch maybe? And if so: how to clean? how to restart? Should not be necessary. Assure the file circuitikz.sty is in a directory where LaTeX can find it (usually a path ending up in texmf/tex/latex/circuitikz/circuitikz.sty) and then run texhash in a console. If kpsewhich circuitikz.sty returns the correct path, you were successful. Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Samstag 19 Dezember 2009 schrieb peter kint: Uwe Stöhr uwesto...@... writes: Am 19.12.2009 00:19, schrieb peter kint: 1. Trying to install circuitikz I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. regards Uwe I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? He tells me I havent got this command Maybe I should start from scratch, or is that not necessary? And if yes: how to clean, where to start? I am on the same system and using tlmgr. Your desired package is also installed. You need a good internet connection 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) 2.) unpack it 3.) create a directory /usr/local/texlive 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to change to be a root-user when installing or updating 5.) cd install-tl-* 6.) Now you may first read the documentation (e.g. firefox index.html) Thx for reading, Peter Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Kornel Benko kornel.be...@... writes: I am on the same system and using tlmgr. Your desired package is also installed. You need a good internet connection 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) 2.) unpack it 3.) create a directory /usr/local/texlive 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to change to be a root-user when installing or updating 5.) cd install-tl-* 6.) Now you may first read the documentation (e.g. firefox index.html) But I have a workin internet connection... What does your step 5) mean? Should I type 'cd install-tl-unx.tar.gz' in a terminal? Is it going to install something then? And what? 6) why do i have to read firefox documentation? Thx for replying.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüller sp...@... writes: Should not be necessary. Assure the file circuitikz.sty is in a directory where LaTeX can find it (usually a path ending up in texmf/tex/latex/circuitikz/circuitikz.sty) and then run texhash in a console. If kpsewhich circuitikz.sty returns the correct path, you were successful. This is what he says: pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently, he doesn't find it? Thx for replying Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüller sp...@... writes: Should not be necessary. Assure the file circuitikz.sty is in a directory where LaTeX can find it (usually a path ending up in texmf/tex/latex/circuitikz/circuitikz.sty) and then run texhash in a console. If kpsewhich circuitikz.sty returns the correct path, you were successful. Jürgen This is what it says: pe...@peter-desktop:~$ sudo texhash [sudo] password for peter: texhash: Updating /usr/local/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... texhash: Updating /var/lib/texmf/ls-R-TEXLIVE... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently he still can find it? Thx for reolying. Pete
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint wrote: This is what he says: pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüller sp...@... writes: Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen I can see the file for example in: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) I ran texhash many times. Thx, peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/19/2009 11:26 AM, peter kint wrote: Jürgen Spitzmüllersp...@... writes: Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen I can see the file for example in: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. It needs to go under /usr/local/texmf/tex/latex/, e.g., at /usr/local/texmf/tex/latex/misc/circuitkz.sty. If you look at the main tex tree, you'll see the structure you need. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am 19.12.2009 15:47, schrieb peter kint: I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? Right. He tells me I havent got this command Because Ubuntu comes with a 2 year old version of TeXLive. Things will be much easier when you upgrade from TeXLive 2007 to version 2008 or 2009. regards Uwe
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheck wrote: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. I think it should, judging from the texhash output Peter posted earlier in this thread. Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/19/2009 11:41 AM, Jürgen Spitzmüller wrote: rgheck wrote: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. I think it should, judging from the texhash output Peter posted earlier in this thread. There's some important rule about keeping the directory structure the same as the main tree. So I get: [rgh...@rghquad ~]$ sudo mkdir -p /usr/share/texmf/circuitkz/tex/latex/ [rgh...@rghquad ~]$ sudo touch /usr/share/texmf/circuitkz/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. [rgh...@rghquad ~]$ kpsewhich circuitkz.sty [rgh...@rghquad ~]$ ls /usr/share/texmf/circuitkz/tex/latex/ circuitkz.sty [rgh...@rghquad ~]$ sudo touch /usr/share/texmf/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. [rgh...@rghquad ~]$ kpsewhich circuitkz.sty /usr/share/texmf/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Samstag 19 Dezember 2009 schrieb peter kint: Kornel Benko kornel.be...@... writes: I am on the same system and using tlmgr. Your desired package is also installed. You need a good internet connection 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) 2.) unpack it 3.) create a directory /usr/local/texlive 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to change to be a root-user when installing or updating 5.) cd install-tl-* 6.) Now you may first read the documentation (e.g. firefox index.html) But I have a workin internet connection... What does your step 5) mean? Should I type 'cd install-tl-unx.tar.gz' in a terminal? Is it going to install something then? And what? If you unpack install-tl-unx.tar.gz you get a directory like install-tl-20091107 (or so) 6) why do i have to read firefox documentation? index.html is good to read with some browser. firefox is a browser. This was an example. Thx for replying. Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheck rgh...@... writes: On 12/18/2009 06:19 PM, peter kint wrote: Hi, 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Can somebody help me to get one of these things working? LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX is not finding these files. What platform are you on, etc? Did you do what needs doing for installing the LaTeX package? rh Thx for replying. I am on Linux (Ubuntu 9.10) (for 3 months , before : windows) I'mworking a lot wiyh Lyx and pgf/tikz includes. Up to now, everything worked +/- fine. I dont know if I messed up with Latex... Should I restart from scratch maybe? And if so: how to clean? how to restart? Thx Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Uwe Stöhr uwesto...@... writes: Am 19.12.2009 00:19, schrieb peter kint: 1. Trying to install circuitikz I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. regards Uwe I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? He tells me I havent got this command Maybe I should start from scratch, or is that not necessary? And if yes: how to clean, where to start? Thx for reading, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint wrote: I dont know if I messed up with Latex... Should I restart from scratch maybe? And if so: how to clean? how to restart? Should not be necessary. Assure the file circuitikz.sty is in a directory where LaTeX can find it (usually a path ending up in texmf/tex/latex/circuitikz/circuitikz.sty) and then run texhash in a console. If kpsewhich circuitikz.sty returns the correct path, you were successful. Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Samstag 19 Dezember 2009 schrieb peter kint: Uwe Stöhr uwesto...@... writes: Am 19.12.2009 00:19, schrieb peter kint: 1. Trying to install circuitikz I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. regards Uwe I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? He tells me I havent got this command Maybe I should start from scratch, or is that not necessary? And if yes: how to clean, where to start? I am on the same system and using tlmgr. Your desired package is also installed. You need a good internet connection 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) 2.) unpack it 3.) create a directory /usr/local/texlive 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to change to be a root-user when installing or updating 5.) cd install-tl-* 6.) Now you may first read the documentation (e.g. firefox index.html) Thx for reading, Peter Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Kornel Benko kornel.be...@... writes: I am on the same system and using tlmgr. Your desired package is also installed. You need a good internet connection 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) 2.) unpack it 3.) create a directory /usr/local/texlive 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to change to be a root-user when installing or updating 5.) cd install-tl-* 6.) Now you may first read the documentation (e.g. firefox index.html) But I have a workin internet connection... What does your step 5) mean? Should I type 'cd install-tl-unx.tar.gz' in a terminal? Is it going to install something then? And what? 6) why do i have to read firefox documentation? Thx for replying.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüller sp...@... writes: Should not be necessary. Assure the file circuitikz.sty is in a directory where LaTeX can find it (usually a path ending up in texmf/tex/latex/circuitikz/circuitikz.sty) and then run texhash in a console. If kpsewhich circuitikz.sty returns the correct path, you were successful. This is what he says: pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently, he doesn't find it? Thx for replying Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüller sp...@... writes: Should not be necessary. Assure the file circuitikz.sty is in a directory where LaTeX can find it (usually a path ending up in texmf/tex/latex/circuitikz/circuitikz.sty) and then run texhash in a console. If kpsewhich circuitikz.sty returns the correct path, you were successful. Jürgen This is what it says: pe...@peter-desktop:~$ sudo texhash [sudo] password for peter: texhash: Updating /usr/local/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... texhash: Updating /var/lib/texmf/ls-R-TEXLIVE... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently he still can find it? Thx for reolying. Pete
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint wrote: This is what he says: pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüller sp...@... writes: Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen I can see the file for example in: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) I ran texhash many times. Thx, peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/19/2009 11:26 AM, peter kint wrote: Jürgen Spitzmüllersp...@... writes: Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen I can see the file for example in: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. It needs to go under /usr/local/texmf/tex/latex/, e.g., at /usr/local/texmf/tex/latex/misc/circuitkz.sty. If you look at the main tex tree, you'll see the structure you need. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am 19.12.2009 15:47, schrieb peter kint: I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? Right. He tells me I havent got this command Because Ubuntu comes with a 2 year old version of TeXLive. Things will be much easier when you upgrade from TeXLive 2007 to version 2008 or 2009. regards Uwe
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheck wrote: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. I think it should, judging from the texhash output Peter posted earlier in this thread. Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/19/2009 11:41 AM, Jürgen Spitzmüller wrote: rgheck wrote: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. I think it should, judging from the texhash output Peter posted earlier in this thread. There's some important rule about keeping the directory structure the same as the main tree. So I get: [rgh...@rghquad ~]$ sudo mkdir -p /usr/share/texmf/circuitkz/tex/latex/ [rgh...@rghquad ~]$ sudo touch /usr/share/texmf/circuitkz/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. [rgh...@rghquad ~]$ kpsewhich circuitkz.sty [rgh...@rghquad ~]$ ls /usr/share/texmf/circuitkz/tex/latex/ circuitkz.sty [rgh...@rghquad ~]$ sudo touch /usr/share/texmf/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. [rgh...@rghquad ~]$ kpsewhich circuitkz.sty /usr/share/texmf/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Samstag 19 Dezember 2009 schrieb peter kint: Kornel Benko kornel.be...@... writes: I am on the same system and using tlmgr. Your desired package is also installed. You need a good internet connection 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) 2.) unpack it 3.) create a directory /usr/local/texlive 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to change to be a root-user when installing or updating 5.) cd install-tl-* 6.) Now you may first read the documentation (e.g. firefox index.html) But I have a workin internet connection... What does your step 5) mean? Should I type 'cd install-tl-unx.tar.gz' in a terminal? Is it going to install something then? And what? If you unpack install-tl-unx.tar.gz you get a directory like install-tl-20091107 (or so) 6) why do i have to read firefox documentation? index.html is good to read with some browser. firefox is a browser. This was an example. Thx for replying. Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheckwrites: > > On 12/18/2009 06:19 PM, peter kint wrote: > > Hi, > > > > 1. Trying to install circuitikz > > http://home.dei.polimi.it/mredaelli/circuitikz/index.html > > to make electrical circuits in Lyx. > > > > I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. > > > > > > Can somebody help me to get one of these things working? > > > > > LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX > is not finding these files. What platform are you on, etc? Did you do > what needs doing for installing the LaTeX package? > > rh > > Thx for replying. I am on Linux (Ubuntu 9.10) (for 3 months , before : windows) I'mworking a lot wiyh Lyx and pgf/tikz includes. Up to now, everything worked +/- fine. I dont know if I messed up with Latex... Should I restart from scratch maybe? And if so: how to clean? how to restart? Thx Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Uwe Stöhrwrites: > > Am 19.12.2009 00:19, schrieb peter kint: > > > 1. Trying to install circuitikz > > > > I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. > > Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package > manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. > > regards Uwe I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? He tells me I havent got this command Maybe I should start from scratch, or is that not necessary? And if yes: how to clean, where to start? Thx for reading, Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint wrote: > I dont know if I messed up with Latex... Should I restart from scratch > maybe? And if so: how to clean? how to restart? Should not be necessary. Assure the file circuitikz.sty is in a directory where LaTeX can find it (usually a path ending up in texmf/tex/latex/circuitikz/circuitikz.sty) and then run "texhash" in a console. If "kpsewhich circuitikz.sty" returns the correct path, you were successful. Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Samstag 19 Dezember 2009 schrieb peter kint: > Uwe Stöhrwrites: > > Am 19.12.2009 00:19, schrieb peter kint: > > > 1. Trying to install circuitikz > > > > > > I get the error message : ! LaTeX Error: File `circuitikz.sty' not > > > found. > > > > Then the installation to LaTeX was not successful. When you are on > > Windows, > > use the MiKTeX package > > > manager to install ciruitikz. When you are using TeXLive 2008 or newer > > use the > > TeXLive package manager. > > > regards Uwe > > I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. > I should use command tlmgr, right? > He tells me I havent got this command > > Maybe I should start from scratch, or is that not necessary? > And if yes: how to clean, where to start? I am on the same system and using tlmgr. Your desired package is also installed. You need a good internet connection 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) 2.) unpack it 3.) create a directory /usr/local/texlive 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to change to be a root-user when installing or updating 5.) cd install-tl-* 6.) Now you may first read the documentation (e.g. firefox index.html) > Thx for reading, > Peter > Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Kornel Benkowrites: > > > I am on the same system and using tlmgr. Your desired package is also installed. > > You need a good internet connection > > 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) > 2.) unpack it > 3.) create a directory /usr/local/texlive > 4.) I for one changed here the user of /usr/local/texlive to be myself, so as to not be forced to > change to be a root-user when installing or updating > 5.) cd install-tl-* > 6.) Now you may first read the documentation (e.g. firefox index.html) > But I have a workin internet connection... What does your step 5) mean? Should I type 'cd install-tl-unx.tar.gz' in a terminal? Is it going to install something then? And what? 6) why do i have to read firefox documentation? Thx for replying.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüllerwrites: > Should not be necessary. Assure the file circuitikz.sty is in a directory > where LaTeX can find it (usually a path ending up in > texmf/tex/latex/circuitikz/circuitikz.sty) and then run "texhash" in a > console. > > If "kpsewhich circuitikz.sty" returns the correct path, you were successful. This is what he says: pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently, he doesn't find it? Thx for replying Peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüllerwrites: > > Should not be necessary. Assure the file circuitikz.sty is in a directory > where LaTeX can find it (usually a path ending up in > texmf/tex/latex/circuitikz/circuitikz.sty) and then run "texhash" in a > console. > > If "kpsewhich circuitikz.sty" returns the correct path, you were successful. > > Jürgen This is what it says: pe...@peter-desktop:~$ sudo texhash [sudo] password for peter: texhash: Updating /usr/local/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... texhash: Updating /var/lib/texmf/ls-R-TEXLIVE... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. pe...@peter-desktop:~$ kpsewhich circuitikz.sty pe...@peter-desktop:~$ Apparently he still can find it? Thx for reolying. Pete
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
peter kint wrote: > This is what he says: > pe...@peter-desktop:~$ kpsewhich circuitikz.sty > pe...@peter-desktop:~$ > > Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Jürgen Spitzmüllerwrites: > > > > Apparently, he doesn't find it? > > Correct. Now where did you put it? > > Jürgen > I can see the file for example in: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) I ran texhash many times. Thx, peter
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/19/2009 11:26 AM, peter kint wrote: Jürgen Spitzmüllerwrites: Apparently, he doesn't find it? Correct. Now where did you put it? Jürgen I can see the file for example in: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. It needs to go under /usr/local/texmf/tex/latex/, e.g., at /usr/local/texmf/tex/latex/misc/circuitkz.sty. If you look at the main tex tree, you'll see the structure you need. rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am 19.12.2009 15:47, schrieb peter kint: I looked it up .I'm on Linux/Ubuntu9.10,now for three monts. I should use command tlmgr, right? Right. He tells me I havent got this command Because Ubuntu comes with a 2 year old version of TeXLive. Things will be much easier when you upgrade from TeXLive 2007 to version 2008 or 2009. regards Uwe
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
rgheck wrote: > > usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty > > (also other places) > > > > > > It won't find it there. I think it should, judging from the texhash output Peter posted earlier in this thread. Jürgen
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/19/2009 11:41 AM, Jürgen Spitzmüller wrote: rgheck wrote: usr/local/share/texmf/circuitikz/tex/latex/circuitikz.sty (also other places) It won't find it there. I think it should, judging from the texhash output Peter posted earlier in this thread. There's some important rule about keeping the directory structure the same as the main tree. So I get: [rgh...@rghquad ~]$ sudo mkdir -p /usr/share/texmf/circuitkz/tex/latex/ [rgh...@rghquad ~]$ sudo touch /usr/share/texmf/circuitkz/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. [rgh...@rghquad ~]$ kpsewhich circuitkz.sty [rgh...@rghquad ~]$ ls /usr/share/texmf/circuitkz/tex/latex/ circuitkz.sty [rgh...@rghquad ~]$ sudo touch /usr/share/texmf/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done. [rgh...@rghquad ~]$ kpsewhich circuitkz.sty /usr/share/texmf/tex/latex/circuitkz.sty [rgh...@rghquad ~]$ rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am Samstag 19 Dezember 2009 schrieb peter kint: > Kornel Benkowrites: > > I am on the same system and using tlmgr. Your desired package is also > > installed. > > > You need a good internet connection > > > > 1.) Get install-tl-unx.tar.gz ( ~ 1.5MB) > > 2.) unpack it > > 3.) create a directory /usr/local/texlive > > 4.) I for one changed here the user of /usr/local/texlive to be myself, > > so as > to not be forced to > > > change to be a root-user when installing or updating > > 5.) cd install-tl-* > > 6.) Now you may first read the documentation (e.g. firefox index.html) > > But I have a workin internet connection... > > What does your step 5) mean? Should I type 'cd install-tl-unx.tar.gz' > in a > terminal? Is it going to install something then? And what? If you unpack "install-tl-unx.tar.gz" you get a directory like "install-tl-20091107" (or so) > 6) why do i have to read firefox documentation? index.html is good to read with some browser. firefox is a browser. This was an example. > Thx for replying. > Kornel -- Kornel Benko kornel.be...@berlin.de signature.asc Description: This is a digitally signed message part.
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/18/2009 06:19 PM, peter kint wrote: Hi, 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. 2. Trying to compile the example begin{tikzpicture}[circuit ee IEC] \draw (0,1) to [resistor] (3.5,1); \draw[circuit symbol unit=14pt] (0,0) to [resistor] (3.5,0); \end{tikzpicture} I get the error message : ! Package pgfkeys Error: I do not know the key '/tikz/circuit ee IEC' and I am and so on. If I include various tikzlibraries in my preamble , Lyx doesn't find them Can somebody help me to get one of these things working? LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX is not finding these files. What platform are you on, etc? Did you do what needs doing for installing the LaTeX package? rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am 19.12.2009 00:19, schrieb peter kint: 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. regards Uwe
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/18/2009 06:19 PM, peter kint wrote: Hi, 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. 2. Trying to compile the example begin{tikzpicture}[circuit ee IEC] \draw (0,1) to [resistor] (3.5,1); \draw[circuit symbol unit=14pt] (0,0) to [resistor] (3.5,0); \end{tikzpicture} I get the error message : ! Package pgfkeys Error: I do not know the key '/tikz/circuit ee IEC' and I am and so on. If I include various tikzlibraries in my preamble , Lyx doesn't find them Can somebody help me to get one of these things working? LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX is not finding these files. What platform are you on, etc? Did you do what needs doing for installing the LaTeX package? rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am 19.12.2009 00:19, schrieb peter kint: 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. regards Uwe
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
On 12/18/2009 06:19 PM, peter kint wrote: Hi, 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. 2. Trying to compile the example begin{tikzpicture}[circuit ee IEC] \draw (0,1) to [resistor] (3.5,1); \draw[circuit symbol unit=14pt] (0,0) to [resistor] (3.5,0); \end{tikzpicture} I get the error message : ! Package pgfkeys Error: I do not know the key '/tikz/circuit ee IEC' and I am and so on. If I include various tikzlibraries in my preamble , Lyx doesn't find them Can somebody help me to get one of these things working? LyX *doesn't* search for these things: LaTeX does. So it appears LaTeX is not finding these files. What platform are you on, etc? Did you do what needs doing for installing the LaTeX package? rh
Re: Where does lyx search for files? Cant get to work ANYTHING with Lyx
Am 19.12.2009 00:19, schrieb peter kint: 1. Trying to install circuitikz http://home.dei.polimi.it/mredaelli/circuitikz/index.html to make electrical circuits in Lyx. I get the error message : ! LaTeX Error: File `circuitikz.sty' not found. Then the installation to LaTeX was not successful. When you are on Windows, use the MiKTeX package manager to install ciruitikz. When you are using TeXLive 2008 or newer use the TeXLive package manager. regards Uwe