I am writing a document and I want to share it with some partners I've been searching around and I found that Bundledoc, Snapshot and arlatex could help me to create my document and share it, the only problem is that I do not know how to use them I already read Is there a way to create a standalone folder/document with non standard packages? but I do not know where do I have to write the bundle and arlatex commands? inside the same latex document, in another document or in the terminal. I am new to latex so I do not know a lot could you help me please?

I do not know if this matters I am using a macbook pro.

  • Note: I incorporated my (erased) comments into the answer linked to in the question. – jon Jun 17 '14 at 3:53

Thanks to Jon and his answers here and here I could do what I was intended to. As a short precedure of using bundledoc, and arlatex+bundledoc we could follow the next steps:

  1. Create your file as you normally would (e.g., via pdflatex);
  2. When you are ready to use bundledoc, add the line \RequirePackage{snapshot} above the \documentclass line.
  3. Compile main .tex once again to create the .dep file.
  4. Ensure you have a viable config (.cfg) file for bundledoc (easiest to keep it in the working directory).
  5. If not you can create the .cfg file, and save it in the working directory:

# basic config file for use of arlatex + bundledoc bundle: (arlatex --document=$BDBASE.tex $BDINPUTS | tar -cvf - $BDINPUTS | gzip --best > $BDBASE-all.tar.gz ) sink: > /dev/null 2>&1 find: kpsewhich -progname=latex $BDINPUTS

(This is for compiling arlatex and bundledoc at the same time)

  1. Run bundledoc with the .cfg file on the .dep file

If all goes well, and if you used file names similar to the ones in this example, you will end up with a file called -all.tex.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.