Tips for sharing your LaTeX source files

If you need to share the .tex source files of your work but they include comments that you would rather not distribute, you can use this simple in-line Perl script to removes comments automatically.

perl -pe 's/(^|[^\])%.*/$1%/' < old.tex > new.tex

When you’re asked for your .tex paper you probably also need to include all the files which are called there (i.e. images and bibliography) in order to make possible for the receiver to recreate the final .dvi (or .pdf) file  correctly.
Here you can find a Perl script which collects all the files you call in your .tex file, and packages them up, together with the original .tex file, as a .tar file.
This works only if you’re using LaTeX, the ones using PDFLaTex should take a look here.

 

Source: http://arxiv.org/corr/latexhelp

Author: Claudio Pacchierotti

Claudio Pacchierotti received the B.S., M.S., and Ph.D. degrees from the University of Siena, Italy in 2009, 2011, and 2014, respectively. He was an exchange student at the Karlstad University, Sweden in 2010. He spent the first seven months of 2014 visiting the Penn Haptics Group at the University of Pennsylvania, Philadelphia, USA, which is part of the General Robotics, Automation, Sensing, and Perception (GRASP) Laboratory. He also visited the Dept. of Innovation in Mechanics and Management of the University of Padua and the Institute for Biomedical Technology and Technical Medicine (MIRA) of the University of Twente in 2013 and 2014, respectively. He received the 2014 EuroHaptics Best PhD Thesis Award for the best doctoral thesis in the field of haptics. He is currently a postdoctoral researcher at the Dept. of Advanced Robotics of the Italian Institute of Technology, Genova, Italy. His research deals with robotics and haptics, focusing on cutaneous force feedback techniques, wearable devices, and haptics for robotic surgery

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s