forked from wg030/jlcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.tex
More file actions
42 lines (28 loc) · 1.19 KB
/
Copy pathexample.tex
File metadata and controls
42 lines (28 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\documentclass[11pt, a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{courier}
\usepackage{jlcode}
\begin{document}
\section*{The Output of a Quite General Code Example}
The following Julia code contains all operators, some strings and some comments.
Moreover a few names of variables consist of greek letters, superscripts or
subscripts. However the code itself is rather useless unless you want to test
how Julia code is displayed by the jlcode package.
\lstinputlisting{testfile.jl}
\newpage
\section*{Known Managable Issues}
\noindent
The following Julia code presents the known issues that can appear due to the
nature of the listings package. Right now the jlcode package is not able to
handle theses cases. However the issues can be fixed by the user himself.
\vspace{2\baselineskip}\noindent
Without fixing the issues one gets the following output:
\lstinputlisting{testfile2.jl}
\vspace{2\baselineskip}\noindent
After fixing the issues the output looks as follows:
\addlitjlbase{myβ2ndvar}{my$\beta$2ndvar}{9}
\addlitjlbase{myφvar₊}{my$\phi$var${\scriptstyle {}_{+}}$}{7}
\addlitjlstring{e400}{e400}{4}
\addlitjlstring{E400}{E400}{4}
\lstinputlisting{testfile2.jl}
\end{document}