Can You Run LaTeX from a USB Drive?

In summary, it is possible to install and run LaTeX from a USB drive, as long as you set the correct environment variables.
  • #1
zeta101
44
0
Is it possible to "install" LaTeX (for windows) on, say, a USB pocketdrive? Or better yet could I just copy over all the directories from an existing computer and then be able to compile .tex files using the packages I have installed?

I know you can get other pieces of software that run off USB drives (i.e., Firefox) but there needs to be certain modifications made to the binary etc. because each time you plug a USB drive into a different machine the drive letter that gets assigned (on windows, don't know about *nix) could, and most likely will be, a different one...

Does anyone know if this would be a problem for LaTeX? if it is does anyone know if anyone else has made the modifications needed? I've tried various googling but I can't find anything relavent at all! I'd like to be able to do the same on an OSX machine too (obviously I'd need a separate installation with OSX binaries).

Thanks
 
Physics news on Phys.org
  • #2
zeta101 said:
Is it possible to "install" LaTeX (for windows) on, say, a USB pocketdrive? Or better yet could I just copy over all the directories from an existing computer and then be able to compile .tex files using the packages I have installed?

I know you can get other pieces of software that run off USB drives (i.e., Firefox) but there needs to be certain modifications made to the binary etc. because each time you plug a USB drive into a different machine the drive letter that gets assigned (on windows, don't know about *nix) could, and most likely will be, a different one...

Does anyone know if this would be a problem for LaTeX? if it is does anyone know if anyone else has made the modifications needed? I've tried various googling but I can't find anything relavent at all! I'd like to be able to do the same on an OSX machine too (obviously I'd need a separate installation with OSX binaries).

Thanks

as long as the TeX binaries know where to find all the components (style files, font metrics, etc) you should have no problem running TeX/LaTeX off a USB drive. It's largely a matter of setting a few environment variables correctly so that TeX/LaTeX knows where to find things.
 
  • #3
for your question! Yes, it is possible to run LaTeX off of a USB drive. In fact, many users prefer to have a portable version of LaTeX for convenience and ease of use. There are a few ways to do this, and it depends on your operating system.

For Windows, you can use a program called MiKTeX Portable, which is a portable version of the popular MiKTeX LaTeX distribution. It can be downloaded and installed onto a USB drive, and all the necessary packages and directories will be included. You can then use it on any Windows computer without having to install anything.

For Mac OS X, there is a similar program called MacTeX Portable, which is a portable version of the MacTeX distribution. It works in a similar way, and can be installed on a USB drive for use on any Mac computer.

As for copying over directories from an existing computer, it is possible but not recommended. This is because the drive letter or path may be different on different computers, and this can cause issues with compiling and running LaTeX documents. It is better to use a dedicated portable version of LaTeX.

I hope this helps and happy LaTeXing!
 

Related to Can You Run LaTeX from a USB Drive?

1. What is the advantage of running LaTeX off of a USB drive?

Running LaTeX off of a USB drive allows for a portable and self-contained LaTeX environment. This means that you can work on your LaTeX documents on any computer without having to install any additional software.

2. How do I set up a USB drive to run LaTeX?

To set up a USB drive to run LaTeX, you will need to download and install a portable LaTeX distribution, such as MiKTeX or TeX Live. Then, you can copy the necessary files onto your USB drive and configure your editor to use the portable distribution.

3. Can I use any USB drive to run LaTeX?

Yes, you can use any USB drive to run LaTeX as long as it has enough storage space to hold the necessary files and is compatible with your computer's operating system.

4. Can I save my LaTeX files on the same USB drive?

Yes, you can save your LaTeX files on the same USB drive that you are using to run LaTeX. This allows for a completely portable LaTeX workspace.

5. Are there any limitations to running LaTeX off of a USB drive?

One limitation of running LaTeX off of a USB drive is that it may run slower than if it were installed on a computer's hard drive. This is because the USB drive has slower read and write speeds compared to a hard drive. Additionally, some advanced features or third-party packages may not be available in the portable LaTeX distribution.

Similar threads

  • Programming and Computer Science
Replies
2
Views
1K
Replies
14
Views
2K
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
457
  • Advanced Physics Homework Help
Replies
6
Views
2K
Replies
1
Views
1K
Replies
5
Views
1K
Replies
2
Views
1K
  • Computing and Technology
Replies
18
Views
1K
Back
Top