About(none)
Shop(none)
LaTeX(none)
Software(none)
Books(none)
Gallery(none)
News(none)
Contact(none)
Blog(none)
Settings(none)
Latest news 2019-09-20: new blog post "Clouds, Cookies and Migration Part 3: Cookies."


4 Additional Files

You've tried building up or hacking down a minimal example, but the problem is caused by an additional file which you can't copy and paste into the minimal example file, so what do you do?

If the file is a graphics file, replace the command with a rule of the same dimension. For example, if your image is 4in wide by 3in high, then replace:

\includegraphics{myImage}
with
\rule{4in}{3in}
Alternatively, the mwe package comes with some sample images that you can use instead. For example, you could replace
\includegraphics{myImage}
with
\includegraphics[height=3in]{example-image}
(There are other test images provided by that package. See the mwe documentation for further details.)

If the file is a BibTeX file, then make a copy of the file, and remove the entries one by one until you are left with the entry that causes the problem. If the file is a CSV file, make a copy of the file, and remove the rows one by one until you are left with the problem row (but keep the header row if there is one.) You can then send this abridged file with the minimal example or you can embed it in the minimal example file using the filecontents or filecontents* environment8. This environment takes one argument which must be the name of the file. For example:

\documentclass{article}

\begin{filecontents*}{test.bib}
@article{sample,
 author={Ann Other},
 title={Sample Title},
 journal={Journal of Something},
 year=2014
}
\end{filecontents*}

\begin{document}
\cite{sample}

\bibliographystyle{plain}
\bibliography{test}
\end{document}

Alternatively, if the problem is with the way the bibliography is being formatted in general, you can use the xampl.bib file, which should be available in your TeX distribution.

\documentclass{article}

\begin{document}
\nocite{*}

\bibliographystyle{plain}
\bibliography{xampl}
\end{document}

The glossaries package also comes with some sample files that you can use in a similar manner. These should be installed along with the glossaries package. For example:

\documentclass{article}

\usepackage{glossaries}
\makeglossaries

\loadglsentries{example-glossaries-brief}

\begin{document}
\glsaddall
\printglossaries
\end{document}



Footnotes

... environment8
The starred form doesn't write extra comments in the file

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs