Question 1
I am getting the following error in Latex:
! LaTeX Error: File `fancybox.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
However, the file fancybox.sty is actually located in the folder from where I am running the pdflatex command. Why is not able to find it?
I just installed Latex on Ubuntu using the command
apt-get install texlive-latex-base
and the pdflatex command works.
Question 2
I want to install this texments from CTAN. Can I do this through apt-get? Is there another Easy way?
Thanks,
Ajay G.
The fancybox LaTeX package is included in the texlive-latex-extra package for Ubuntu. If you install the texlive-latex-extra package using Synaptic or apt-get, your document should compile:
$ sudo apt-get install texlive-latex-extra
A couple other things that may help you in the future:
The TeXLive installation in Ubuntu is currently the 2007 edition. The 2009 edition of TeXLive was just released recently (see the TeXLive website for downloads). The 2007 edition will work most of the time, but the 2009 edition contains the latest version of the packages with their bug fixes. Just a heads-up.
I'd recommend installing the full set of TeXLive package under Ubuntu so that you don't have to dig through the repository and install new files each time you want to add a new \usepackage line to your .tex file. If you install the texlive-full package, that'll cover all the bases:
$ sudo apt-get install texlive-full
Note, however, that the full TeXLive package set is a large download and will take some time to install.
Try
apt-file -x search '/fancybox.sty$'
and you may get the answer like:
texlive-latex-recommended: /usr/share/texmf-texlive/tex/latex/fancybox/fancybox.sty
so "texlive-latex-recommended" is the right package to install.
Have you tried manually as it says in the official Ubuntu documentation?
https://help.ubuntu.com/community/LaTeX
If a package you desire is not in Ubuntu's repositories, you may look on CTAN's web site or TeX Catalogue Online to see if they have the package. If they do, download the archive containing the files. In this example, we'll install example package foo, contained in foo.tar.gz.
Once foo.tar.gz has finished downloading, we unzip it somewhere in our home directory:
tar xvf foo.tar.gz
This expands to folder foo/. We cd into foo/ and see foo.ins. We now run LaTeX on the file:
latex foo.ins
This will generate foo.sty. We now have to copy this file into the correct location. For the purposes of this example, we will copy this into our personal texmf tree. The advantages of this solution are that if we migrate our files to a new computer, we will remember to take our texmf tree with us, resulting in keeping the same packages we had. The disadvantages are that if multiple users want to use the same packages, the tree will have to be copied to each user's home folder.
We'll first create the necessary directory structure:
cd ~
mkdir -p texmf/tex/latex/foo
Notice that the final directory created is labeled foo. It is a good idea to name directories after the packages they contain. The -p attribute to mkdir tells it to create all the necessary directories, since they don't exist. Now, using either the terminal, or the file manager, copy foo.sty into the directory labeled foo.
Now, we must make LaTeX recognize the new package:
texhash ~/texmf
The new package should now be installed. To use it in your LaTeX document, merely insert \usepackage{foo} in the preamble.
It should work with the style file in the directory from where you were running the pdflatex command, but a solution to this problem is simple:
sudo cp *.sty /usr/share/texmf-texlive/tex/latex/base/
sudo mktexlsr
Related
I have a kinda weird problem. I'm currently messing around with the VRX-Simulator, which simulates an unmanned-watersurface-vehicle.
For the installation I followed the guide on https://bitbucket.org/osrf/vrx/wiki/tutorials/SystemSetupInstall.
Then I tried to modify some of the files and tried to rebuild the project.
This was the point when I noticed it always used the "old" version of my simulation within gazebo.
From now on no matter what I did (I even deleted the whole catkin workspace folder) ROS somehow managed to always launch the original version of my simulation even without any build/src folder existing when I used roslaunch.
roslaunch vrx_gazebo sandisland.launch
So my question would be how can I get rid of my simulation/model and where does ros/gazebo cache my simulation?
You most probably installed the package with the command from the tutorial sudo apt install ros-melodic-vrx-gazebo. So the package launched with roslaunch vrx_gazebo sandisland.launch was not in your catkin workspace. If you want to get rid of it you can uninstall it with sudo apt remove ros-melodic-vrx-gazebo. But this is not strictly necessary.
There are several ways to find out where some ros package is located, try running some of these commands:
rospack find vrx_gazebo will show you where the package used is located
roscd vrx_gazebo will take you to the folder where it is installed something like
/opt/ros/melodic/share/vrx_gazebo
If you also followed the tutorials installing from source code then the issue most likely was not sourcing the built packages. The last line of the guide is a bit misleading. The line *Remember to run this command every time you open a new terminal. is meant to reference the command source ~/vrx_ws/devel/setup.bash
Whether the installed package or the package built from source is used depends on which order they are listed in the environment variable ROS_PACKAGE_PATH. This variable is modified by both source /opt/ros/melodic/setup.bash and source ~/vrx_ws/devel/setup.bash. So have a look at the variable after each step with printenv | grep ROS or echo $ROS_PACKAGE_PATH. Theoretically if you source your terminal in the order I had the source commands it should be using the package built from source, you can verify with the rospack find ... and roscd ... commands mentioned earlier.
In the end it is probably easier to add the sourcing commands to your .bashrc file so you would not forget to source the terminals as mentioned in the ROS installation tutorial. You can add the sourcing of the workspace to the the same file, you will just have to be aware that you would need to change the file, should you want to use a different workspace.
http://wiki.ros.org/melodic/Installation/Ubuntu#melodic.2BAC8-Installation.2BAC8-DebEnvironment.Environment_setup
relevant command from the tutorial:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
you could do the same for the workspace:
echo "source ~/vrx_ws/devel/setup.bash" >> ~/.bashrc
And after running those commands run exec bash to get the changes into the current terminal. All future terminals will have those commands already loaded.
I have download CTAN packages from https://www.tug.org/texlive/acquire-mirror.html with wget --mirror --no-parent ctan.imsc.res.in.
In the installation document they have mentioned install-tl* to install the downloaded package. But I couldn't find the install-tl* in the downloaded files. And the downloaded file size is about 2.73GB
Someone suggest me how to install CTAN latex packages after downloading it.
tl might stand for the texlive distribution; it has its own packaging that contains many available also on CTAN, you may use the command tlmgr (here in a GNU/Linux Debian) to manage them.
it depends… some packages might give you instructions, some not. they lack a common format. some you first need to compile others you can just put into the texmf path etc.
you would need to be more specific on what package you want to install in which system and what problem this is supposed to solve. also you should knw the better place for such questions is: https://tex.stackexchange.com/ .
https://www.ctan.org/pkg/acrotex?lang=en provides sources (e.g. dtx, ins) to be compiled first (e.g. sty)… and then I placed into ~/texmf/tex/latex/acrotex to have them in my path.
Im using gnat4.6 on Ubuntu installed using apt-get. I need to know where to install downloaded libraries like APQ. What should I set my ADA_INCLUDE_PATH and ADA_OBJECTS_PATH to?
The beauty of Ada support in Debian (on which Ubuntu is based) is that you don't need to mess with ADA_INCLUDE_PATH and friends; supported libraries are installed where the GNAT Project Manager expects to find them. Say gnatls -v to see the default values.
To use the system as intended, you will find it much simpler to use the GNAT Project Manager; you'd say, in your my_project.gpr file,
with "apq";
project My_Project is
...
and build with
$ gnatmake -P my_project
There's online documentation for GPR, but I wouldn't call it particularly user-friendly. There's a set of Youtube videos (I haven't looked at them in any detail; their stated interest is large systems, but hang in there).
I use gnatmake to build; how do I cite my build paths in a correct way?
The relevant options are shown in 6.2 Switches for gnatmake: Source and library search path switches.
Addendum: The development package is libapq3.2.0-dev.
The manual is in /usr/share/doc/libapq3.2.0-dev/manual.pdf.gz
An example and corresponding .gpr file are in /usr/share/doc/libapq3.2.0-dev/examples. As #Simon suggested, the .gpr file begins:
with "apq.gpr";
project APQ.Samples is
The Ada include files are in /usr/share/ada/adainclude/apq.
The libraries are in /usr/lib.
$ dpkg -L libapq3.2.0-dev
/.
/usr
/usr/share
/usr/share/ada
/usr/share/ada/adainclude
/usr/share/ada/adainclude/apq
/usr/share/ada/adainclude/apq/apq_helper.ads
/usr/share/ada/adainclude/apq/apq_helper.adb
/usr/share/ada/adainclude/apq/apq.adb
/usr/share/ada/adainclude/apq/apq.ads
/usr/share/ada/adainclude/apq.gpr
/usr/share/doc
/usr/share/doc/libapq3.2.0-dev
/usr/share/doc/libapq3.2.0-dev/copyright
/usr/share/doc/libapq3.2.0-dev/manual.pdf.gz
/usr/share/doc/libapq3.2.0-dev/examples
/usr/share/doc/libapq3.2.0-dev/examples/apq-samples.adb
/usr/share/doc/libapq3.2.0-dev/examples/apq-samples.ads
/usr/share/doc/libapq3.2.0-dev/examples/apq-samples.gpr
/usr/lib
/usr/lib/libapq.a
/usr/lib/ada
/usr/lib/ada/adalib
/usr/lib/ada/adalib/apq
/usr/lib/ada/adalib/apq/apq_helper.ali
/usr/lib/ada/adalib/apq/apq.ali
/usr/share/doc/libapq3.2.0-dev/changelog.Debian.gz
/usr/lib/libapq.so
I hunted around but I couldn't determine if this is possible.
Basically, http://luarocks.org is down, and I already have a copy of luafilesystem installed on another machine locally here. With Ruby, it's possible to cross install ruby gems using the 'gem' command locally. I'm wondering if the same is possible with rocks and luarocks.
Is there any way to 'cross-install' a rock (for instance, luafilesystem), by using another local installation of that rock?
Something like:
luarocks install //10.0.1.123/machine/path/to/luafilesystem/on/other/machine
is what I'd like to be able to do.
UPDATE: I'd even be happy with how to install a rock from the .tar.gz or .zip, for instance, if I downloaded one of the images from this location (in the case of LuaFileSystem).
In which case, the 'source' for the install would / could be local to the machine, rather than remote (and wouldn't necessarily already be installed as a rock).
If you have the source zip, you can unpack it and point luarocks to the the rockspec file. Here is how I installed 'busted' from source.
git clone https://github.com/Olivine-Labs/busted.git
luarocks install busted/busted-1.3-1.rockspec
Or install it directly from source
cd busted
luarocks make
LuaRocks has a pack subcommand that will create a binary rock (a zip file containing all files for an installed module). You can use that binary rock to install the same module on another computer, given that the architecture matches.
E.g.
luarocks pack luafilesystem
produces luafilesystem-1.6.2-2.linux-x86_64.rock on my machine, and
luarocks install luafilesystem-1.6.2-2.linux-x86_64.rock
will reinstall luafilesystem with no internet connection necessary.
If Someone want an installation from the local source rock.
Just do this:
cd /path/to/source-rock
luarocks make source-rock.rockspec
NOTE:
Use make instead of install. The reason is here (quoted below).
LuaRocks offers this:
make Compile package in current directory using a rockspec.
install Install a rock.
However, install does not utilize the present make. It tries
to download and recompile the same package from the server instead
of the one I customized locally.
Any way round this?
The make command will actually build and install your customized
rockspec. The poor naming choice causes confusion every now and then,
I know.
I would like to use a special notation in LaTeX, namely the "product integral" symbol.
Apparently, the \prodi command from the prodint package does the job. The package seems to be available in the form of a zip file at the following page http://www.math.leidenuniv.nl/~gill/ (near the end of the page).
Can someone explain me how I can load the package from that zip file ?
Thank you in advance !
The file that you linked to is a named "prodint.zip", but is actually a gzipped tarball. The unzipping process is depends on your operating system.
Mac OS X
Mac OS X 10.3 or later have a built0in utility that opens gzipped files and untars archives. You can just double click on the file.
Windows
This is from the gzip home page:
For Windows 9x/NT/2000/ME/XP, use PowerArchiver,
7-zip
(freeware) or Winzip
(commercial).
Unix (including Mac from the Terminal)
Type and run the following command (the $ is the unix prompt, not part of the command):
$ tar xzvf prodint.tgz
If that doesn't work, try this sequence:
$ gunzip prodint.tgz
$ tar xvf prodint.tar
Now that you've unarchived the files you will probably want to know how to install them so that your TeX can see them. That also will depend on your operating system and tex distribution. Read the file prodint.readme that is in the archive and TUG's Installing Tex Fonts page.
PS You can find an entire community on the TeX StackExchange, where no TeX-related question is too small.