Questions tagged [attachfile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
117
votes
5answers
8k views

Is there some way to embed LaTeX source code in a PDF file?

Several times now I have inadvertently lost the .tex file that generated a PDF file with pdflatex. Given what I know of the internal structure of PDF files, it should be possible to embed a text file ...
20
votes
2answers
3k views

Is it possible to embed (attach) a file password protected in a PDF?

The situation is the following, for certain short latex files, I embed the source in the PDF it self. That can save me time in an emergency if I need to modify the source of a PDF without having to ...
20
votes
1answer
4k views

How do I make an attached file display like a link?

I'm embedding an external file in my pdf with \usepackage{attachfile2} and\textattachfile[color=1 1 1]{description}{file.pdf}. How can I make the text look the same as it would if I had used the ...
17
votes
2answers
2k views

How to avoid automatic .tex extension in filenames?

I am in an mildly unfortunate situation in which, because of the way I prepared the files automatically, I ended up with a file to be attached but also another file with the same name but ending in ...
15
votes
1answer
506 views

Embed non-PDF files (e.g., BibTex) into PDF with hyperlink in the PDF

This question led to a new package: intopdf Aim I want to achieve following: Embed paper.bib into PDF paper.bib should be opened with the OS tool associated with mimetype application/x-bibtex ...
10
votes
1answer
510 views

Attaching files using plain TeX (pdfTeX)

I am currently in the process of writing a document using plain TeX and would like to be able to attach other relevant files to the resulting pdf. I have experience using the attachfile, attachfile2 ...
7
votes
1answer
7k views

Attaching file into a pdf with pdfLaTeX will crash Adobe Reader

I am using the package attachfile to attach a file to the pdf (generated with pdfLaTeX) with the following code \documentclass[twoside,a4paper,10pt]{article} \usepackage{attachfile} \begin{document} ...
6
votes
1answer
995 views

attachfile vs attachfile2

I would like to attach a file to a PDF document. I've discovered the attachfile and attachfile2 packages. How should I choose which of those to use? Is there a general rule of thumb (e.g., "always ...
6
votes
1answer
512 views

How do I make an attached non-pdf file display like a link?

I'm embedding an external file in my pdf with \usepackage{attachfile2} and \textattachfile[color=1 1 1]{description}{file.txt}. How can I make the text look the same as it would if I had used the ...
6
votes
0answers
897 views

Link to and attached/embedded file? [closed]

I'm using XeTeX and I'd like to have a link to an attached/embedded file. There's a solution here -- but it doesn't work for me: I'm using TeXlive2012. As I understand it the best bet is to use ...
5
votes
1answer
710 views

Conflict between hyperref and attachfile2 package

I have a problem with creating pdf document that contains an attachment. This code works fine: % <xetex — Unicode-based TeX engine> \documentclass[12pt, a4paper, czech, twoside]{book} \...
5
votes
3answers
511 views

attachfile does not work inside captions

In the caption of some figures I want to link to files using the attachfile2 package. But when I try to compile the following example with XeTeX, MiKTeX and TeXstudio I get the warning ** WARNING ** ...
5
votes
1answer
945 views

setting the 'filename' of a file embedded in a PDF using the attachfile package

I'm using the attachfile LaTeX package (in PDFLaTeX) to embed files in a PDF and I've run into a difficulty regarding what I suspect is the 'filename' of the embedded file. I can attach/embed files ...
5
votes
0answers
193 views

How to include PDF as graphics and as attachment without using extra file space [duplicate]

Possible Duplicate: Attach displayed image to the PDF without storing it twice Is it at all possible to include a PDF as a graphic in the document and also as an internal attachment to the final ...
4
votes
1answer
171 views

(not only) beamer: Automatically Attach Graphic Files (to the PDF Output) that are Used in \includegraphics Command

I like to attach the graphic files that I use in a beamer presentation to the generated pdf file. The background is, that I want to enable my colleagues at work to be able to use the graphic files e. ...
4
votes
1answer
247 views

Can programs (e.g. Matlab) be made executable from within the PDF?

Is it possible to include a program (as in say Matlab, Maple, etc.) within a LaTeX file in such a way that clicking a button on the resulting PDF file will transport the program to the related ...
4
votes
0answers
265 views

Adobe Reader does not open file created with [xetex]{\attachfile2}

I have been using \attachfile2 successfully to create PDF documents with LaTeX already. However, when switching to XeTeX, I find the Adobe Reader says it cannot open the file due to security settings....
3
votes
1answer
346 views

The attachfile2 package doesn't work when using \jobname

I'm using MiKTeX 2.9 on a Windows 7 Home Premium 64-bit computer. I have been experimenting with using attachfile2 to make a link to an embedded LaTeX file. When I compile the following document, ...
2
votes
1answer
2k views

attaching a file to latex

I have a "trilogi" simulation software file. Consider it as a file of random simulation software. I want to embed it in pdf document at the place of my choice so that if I click on it in pdf document,...
2
votes
0answers
155 views

Attachfile or attachfile2 in landscape mode

I want to use attachfile or attachfile2, with Paperclip icon, inside a \begin{landscape} section. Everything is ok, but the icon showed is not rotated, so it has a strange looking. Anyone knows how to ...
2
votes
0answers
723 views

How to use variable for \includegraphics and \attachfile in LaTeX3

I want make a function, it can insert image and attach file (e.g., the data about plotting), so I need set a variable for image name and it will use for attachfile.(\attachfile from attachfile2 ...
1
vote
1answer
385 views

Attach a file with different name

I would like to attach a file to a PDF document like \attachfile or \textattachfile does, but I want the attached file to be renamed. As far as I have seen, the packages attachfile and attachfile2 do ...
1
vote
1answer
52 views

LaTeX, use czech characters inside of commands

is there any way to use czech characters (ě, š, č, ř, ž, ý, á, í, é etc.) inside of commands? I am currently trying to use the attachfile package to embed another file in my main file. I tried using ...
1
vote
1answer
51 views

How to set default directory for \copypages and \insertpages?

I'm using two macros to insert some PDFs to my document: \copypages and \insertpages. Is there a way to specify a default directory to these macros to search for files? By info from ConTeXt wiki for ...
1
vote
1answer
64 views

How can I attach files in articles?

I'm having issues attaching files in an article. It returns 2 errors: one related with color and the other with hyperref: ! LaTeX Error: Option clash for package color. ! LaTeX Error: Option clash ...
1
vote
1answer
317 views

How can I modify attachfile icon?

I'm working on an moderncv and trying to edit the default attachfile icon (Pushpin) to use the Paperclip, but it returns an error. Here is my MWE: \documentclass[11pt,spanish,a4paper,sans]{moderncv} ...
1
vote
1answer
176 views

Images not printing with textattachfile

When include graphics is put inside textattachfile from the attachfile2 package the image does not appear in the print preview or actual printing when using acrobat reader. Is it possible to get it to ...
1
vote
1answer
62 views

Include word/pdf files in latex?

I was wondering if it is possible to integrate Word (or PDF) files in LaTeX in such a way, that one can still use the hyperlinks provided in that word / pdf.
0
votes
1answer
151 views

Is it possible to use attachfile package in any documentclass or just in articles?

I have seen some .tex documents using \usepackage{attachfiles}, but all of them were articles. Now I am working on a moderncv document class and \usepackage{attachfiles} returns an error. This is my ...
0
votes
1answer
422 views

How to create a link to open attached PDF in an specific page?

I want to click on the link and open an attached PDF in a specific page.
0
votes
1answer
159 views

Latex Command to Compile another Latex File

I am making a cover letter, where I add a CV to that letter. I currently use the command \includepdf[pages={-}]{CV.pdf} Using the package pdfpages to include another pdf file. This imply that CV.tex ...
0
votes
1answer
98 views

Why a file attached by means of attach/attach2 package isn't open with same name?

When a file is attached thanks to \textattachfile{⟨file⟩}{⟨text⟩} provided by attach(2) package, the file open by the link has same content but not same name as ⟨file⟩. For instance, in the following ...
0
votes
1answer
63 views

icon=Graph in attachment2

Is there any way to add the graph icon of hypdvips package to the attachment2 package Otherwise some features of hypdvips are very nice, is there any way to add the possibility to use it in pdflatex? ...