# How to attach a file to an article

Hi,

I've written an article and I'd like to attach a file (a program) to the article. I couldn't figure out how to do that -- any ideas?

best,

Robert Dodier

### Re: How to attach a file to an article

Hi Robert:

There’s no immediately straightforward way to do that, sorry!

The ”PlanetMath way” would be to create a second article (Code to accompany XYZ article), and put the title of the original article in the Parent field.

Use \begin{verbatim} and \end{verbatim} tags at the beginning and end of the code article to preserve whitespace formatting.

Joe