Browse Source

renamed

master
Jonathan Spratte 1 year ago
parent
commit
129c9c17a7
4 changed files with 9 additions and 9 deletions
  1. 2
    2
      README.md
  2. BIN
      documentation.pdf
  3. 5
    5
      documentation.tex
  4. 2
    2
      listings-extx.py

+ 2
- 2
README.md View File

@@ -1,4 +1,4 @@
1
-# `listings-ext.py`
1
+# `listings-extx.py`
2 2
 Some programme to get named entries for listings-ext
3 3
 
4 4
 Author
@@ -14,7 +14,7 @@ License
14 14
 : GPLv3+ <https://gnu.org/licenses/gpl.html>
15 15
 
16 16
 Documentation
17
-: [documentation.pdf](https://gitlass.de/jonathan/listings-ext.py/src/branch/master/documentation.pdf)
17
+: [documentation.pdf](https://gitlass.de/jonathan/listings-extx.py/src/branch/master/documentation.pdf)
18 18
 
19 19
 ## Short description
20 20
 

BIN
documentation.pdf View File


+ 5
- 5
documentation.tex View File

@@ -1,7 +1,7 @@
1 1
 \documentclass[]{scrartcl}
2 2
 
3 3
 \makeatletter
4
-\newcommand*\py{\texttt{listings-ext.py}}
4
+\newcommand*\py{\texttt{listings-extx.py}}
5 5
 \newcommand*\file{\texttt}
6 6
 \newcommand*\pkg{\textsf}
7 7
 \protected\def\meta#1{\texttt{$\langle$\textit{#1}$\rangle$}}
@@ -18,8 +18,8 @@
18 18
 \usepackage{enumitem}
19 19
 \usepackage{xcolor}
20 20
 \usepackage[]{url}
21
-%% call listings-ext.py with:
22
-%%   ./listings-ext.py -o example.lst example.c
21
+%% call listings-extx.py with:
22
+%%   ./listings-extx.py -o example.lst example.c
23 23
 \input{example.lst}
24 24
 
25 25
 \lstdefinestyle{regex}
@@ -58,7 +58,7 @@ them. Line ranges are marked using formatted comments.
58 58
 This script require Python3 to be installed, it contains a shebang
59 59
 \lstinline|#!/bin/python3| which should run the correct Python version on most
60 60
 Unix systems on which Python3 is installed. However this doesn't work on Windows
61
-where you'll have to call it with \lstinline|python listings-ext.py|.
61
+where you'll have to call it with \lstinline|python listings-extx.py|.
62 62
 
63 63
 \section{File preparation}
64 64
 To make use of this script you have to mark the lines you want to be extracted.
@@ -168,7 +168,7 @@ block.
168 168
 \lstinputlisting[numbers=left,numberstyle=\tiny,language=c]{example.c}
169 169
 The file is saved as \file{example.c} and \py\ is run using
170 170
 \begin{lstlisting}[language=sh]
171
-listings-ext.py -o example.lst example.c
171
+listings-extx.py -o example.lst example.c
172 172
 \end{lstlisting}
173 173
 The following is the output in \file{example.lst}:
174 174
 \lstinputlisting[language=TeX]{example.lst}

listings-ext.py → listings-extx.py View File

@@ -1,6 +1,6 @@
1 1
 #!/bin/python3
2 2
 
3
-## listings-ext.py -- Some program to get named entries for listings-ext 
3
+## listings-extx.py -- Some program to get named entries for listings-ext 
4 4
 ## Author: Jonathan P. Spratte <j.spratte(at)yahoo.de>
5 5
 ## Version: 1.0
6 6
 ## Keywords: LaTeX, listings
@@ -85,7 +85,7 @@ class Object(object): # hacky way to have a nice parameters structure {{{
85 85
     pass# }}}
86 86
 
87 87
 def print_version():# {{{
88
-    print("listings-ext.py v1.0")
88
+    print("listings-extx.py v1.0")
89 89
     print("Copyright (C) 2019 Jonathan P. Spratte")
90 90
     print_wrapped(
91 91
             "License GPLv3+: GNU GPL version 3 or later "

Loading…
Cancel
Save