Skip to content

Commit

Permalink
Merge pull request #3566 from HansOlsson/ModelicaPathQuoting
Browse files Browse the repository at this point in the history
Sensible quoting.
  • Loading branch information
HansOlsson authored Sep 18, 2024
2 parents b88effd + ff4257b commit 355e861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ \section{The Modelica Library Path -- MODELICAPATH}\label{the-modelica-library-p
If during lookup a top-level name is not found in the unnamed top-level scope, the search continues in the package hierarchies stored in these directories.

\begin{example}
\Cref{fig:roots} below shows an example \lstinline!MODELICAPATH! = \filename{"C:\textbackslash{}library;C:\textbackslash{}lib1;C:\textbackslash{}lib2"}, with three directories containing the roots of the package hierarchies \lstinline!Modelica!, \lstinline!MyLib!, and \lstinline!ComplexNumbers!.
\Cref{fig:roots} below shows an example \lstinline!MODELICAPATH! = \filename{C:\textbackslash{}library;C:\textbackslash{}lib1;C:\textbackslash{}lib2}, with three directories containing the roots of the package hierarchies \lstinline!Modelica!, \lstinline!MyLib!, and \lstinline!ComplexNumbers!.
The first two are represented as the subdirectories \filename{C:\textbackslash{}library\textbackslash{}Modelica} and \filename{C:\textbackslash{}lib1\textbackslash{}MyLib}, whereas the third is stored as the file \filename{C:\textbackslash{}lib2\textbackslash{}ComplexNumbers.mo}.

\begin{figure}[H]
\begin{center}
\includegraphics{modelicapath}
\end{center}
\caption{Roots of package hierarchies, e.g., \lstinline!Modelica!, \lstinline!MyLib!, and \lstinline!ComplexNumbers! in
\lstinline!MODELICAPATH! = \filename{"C:\textbackslash{}library;C:\textbackslash{}lib1;C:\textbackslash{}lib2"}.}
\lstinline!MODELICAPATH! = \filename{C:\textbackslash{}library;C:\textbackslash{}lib1;C:\textbackslash{}lib2}.}
\label{fig:roots}
\end{figure}

Expand Down

0 comments on commit 355e861

Please sign in to comment.