New answers tagged

0

Reinstalling MacTex (using MacTex-2016) solved the problem.


1

Yes. you can use the import package for this. \import{path to folder}{filename}


0

Do this \usepackage{\string~"/path/to/file/<filename>"} Which LaTeX understand as \usepackage{"~/path/to/file/<filename>"}


3

Option caption enhances the listing with a caption, whose title is also used for the entry in the list of listings: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{listings} \lstset{language = Matlab, inputpath=./Code/} \begin{document} \lstlistoflistings \lstinputlisting[caption=test1.m]{test1.m} \lstinputlisting[caption=test2.m]{test2.m} ...



Top 50 recent answers are included