# How to include resource files in a package

**URL:** <https://discourse.julialang.org/t/how-to-include-resource-files-in-a-package/54391>\
**Category:** General Usage\
**Created:** [February 1, 2021, 3:52pm UTC](https://discourse.julialang.org/t/how-to-include-resource-files-in-a-package/54391 "2021-02-01T15:52:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollecram](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ollecram/32/20838_2.png) [@ollecram](https://discourse.julialang.org/u/ollecram)\
**Post date:** [February 1, 2021, 3:52pm UTC](https://discourse.julialang.org/t/how-to-include-resource-files-in-a-package/54391/1 "2021-02-01T15:52:24Z")

</div>

I am writing a simple CAD-like system in Julia where, among other things, I have functions that produce LaTeX commands for drawing 2D shapes. These are just _fragments_ that need to be include-d in a _main.tex_ LaTeX file with a lot of heading stuff that is always the same. So, I thought it would be nice to ship that main.tex file within the Julia package that implements the CAD system. This is a quite standard approach with **Java** packages (e.g. for storing icons, I18N resource bundles, etc.). I have seen ongoing work on the ResourceBundles.jl project, with a focus on implementing I18N.  
**Question** : is there a simple/basic way to ship files in a package that can easily be read at runtime by any code “using” that package?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [February 1, 2021, 4:19pm UTC](https://discourse.julialang.org/t/how-to-include-resource-files-in-a-package/54391/2 "2021-02-01T16:19:43Z")

</div>

If it is just a plain text file you can just put it in some subfolder in your repo, otherwise you can maybe use an artifact, see [8. Artifacts · Pkg.jl](https://julialang.github.io/Pkg.jl/v1/artifacts/).

---

<div class="post-metadata">

**Author:** ![ollecram](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ollecram/32/20838_2.png) [@ollecram](https://discourse.julialang.org/u/ollecram)\
**Post date:** [February 1, 2021, 4:51pm UTC](https://discourse.julialang.org/t/how-to-include-resource-files-in-a-package/54391/3 "2021-02-01T16:51:01Z")

</div>

I see, it looks great. Thanks a lot!
