Is there a way (terminal command?) to take a TeX file, possibly with externally linked macros, bibstyle files, bibTeX source, etc., and automatically produce a single, self-contained TeX file? For example, I could generate the bbl file, copy and paste the entries there and add to the source, but it gets tedious. Anyone solve this problem?
Asked
Active
Viewed 288 times
2
1 Answers
1
This document bundles up a local latex package and a local bibtex database as a single file, usimg filecontents, producing
\begin{filecontents}{mypackage.sty}
\def\zzzz{Hello}
\end{filecontents}
\begin{filecontents}{zzz.bib}
@article{zz99,
title={something},
author={M. Eee and Y. Ouoo},
journal={TugBoat},
volume={14},
number={2},
pages={200--100},
year={1884},
publisher={example.org}
}
\end{filecontents}
\documentclass{article}
\usepackage{mypackage}
\begin{document}
\zzzz, \cite{zz99}
\bibliographystyle{plain}
\bibliography{zzz}
\end{document}
David Carlisle
- 757,742

filecontentsenvironemnts. – David Carlisle Jul 02 '17 at 22:09.bibetc. – cfr Jul 03 '17 at 01:14