aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorax006ho <j.hoffmann@fh-aachen.de>2019-02-19 17:15:12 +0100
committerax006ho <j.hoffmann@fh-aachen.de>2019-02-19 17:15:12 +0100
commit2d01fa0e0787bda91f407df809eefee906e7a4a3 (patch)
tree3a125f72fc47eca7c497f4cb6fdb70171184c12b
parent0df22018e45bccfdc71da4e90b64477aa8fe0b29 (diff)
downloadlistings-2d01fa0e0787bda91f407df809eefee906e7a4a3.tar.gz
listings-2d01fa0e0787bda91f407df809eefee906e7a4a3.tar.bz2
testing the reimplementation
-rw-r--r--testing/keyval/inputpath/inputpath_00.tex24
1 files changed, 16 insertions, 8 deletions
diff --git a/testing/keyval/inputpath/inputpath_00.tex b/testing/keyval/inputpath/inputpath_00.tex
index fa0da4e..b2d8010 100644
--- a/testing/keyval/inputpath/inputpath_00.tex
+++ b/testing/keyval/inputpath/inputpath_00.tex
@@ -4,31 +4,39 @@
\usepackage[latin1]{inputenc}
\usepackage{listings}
+\lstset{style=colored}
+% reimplementation of the relevant commands
\usepackage{inputpath}
\begin{document}
-% \makeatletter
-% \lst@MakePath{../../languages/fortran/}
+% testing, if \lst@MakePAth works correctly
+\makeatletter
+\lst@MakePath{../../languages/fortran/}
-% \lst@MakePath{../../languages/fortran}
+\lst@MakePath{../../languages/fortran}
+\makeatother
-% \makeatother
+\lstset{inputpath=../../languages/fortran}
-\lstset{inputpath=../../languages/fortran/}
-
-printing files from different directories x:
+printing files from different directories, global inputpath is \url|../../languages/fortran|:
+\begin{enumerate}
+\item file is on global inputpath:
\lstinputlisting[language=fortran, title=xxx]{senseless.f08}
+\item file is on local inputpath with the same value:
\lstinputlisting[language=fortran, inputpath={../../languages/fortran}, title=yyy]{senseless.f08}
+\item file is on local inputpath with the same value, testing trailing /:
\lstinputlisting[language=fortran, inputpath={../../languages/fortran/}, title=zzz]{senseless.f08}
+\item file is on local inputpath .:
\lstinputlisting[language=fortran, inputpath={.}, title=xxx]{hello.f90}
+\item inputpath is empty:
\lstinputlisting[language=fortran, inputpath={}, title=xxx]{hello.f90}
-
+\end{enumerate}
\end{document}

Return to:

Send suggestions and report system problems to the System administrator.