Quellcode durchsuchen

mkdoc adapted

84582af
Dirk Alders vor 4 Jahren
Ursprung
Commit
c2056035dc
6 geänderte Dateien mit 64 neuen und 41 gelöschten Zeilen
  1. 17
    0
      .project
  2. 5
    0
      .pydevproject
  3. 2
    3
      latex_doc/templates/brief.tex
  4. 6
    6
      latex_doc/templates/merkblatt.tex
  5. 28
    28
      latex_doc/templates/präsentation.tex
  6. 6
    4
      mkdoc

+ 17
- 0
.project Datei anzeigen

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>bin</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.python.pydev.PyDevBuilder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+	</buildSpec>
14
+	<natures>
15
+		<nature>org.python.pydev.pythonNature</nature>
16
+	</natures>
17
+</projectDescription>

+ 5
- 0
.pydevproject Datei anzeigen

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<?eclipse-pydev version="1.0"?><pydev_project>
3
+    <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
4
+    <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
5
+</pydev_project>

+ 2
- 3
latex_doc/templates/brief.tex Datei anzeigen

@@ -2,7 +2,6 @@
2 2
 
3 3
 \usepackage[utf8]{inputenc}
4 4
 \usepackage{eso-pic} %% AddtoShipPicture nutzen
5
-\usepackage{url}
6 5
 \usepackage{eurosym}
7 6
 \usepackage{booktabs}
8 7
 \usepackage{xcolor}
@@ -63,7 +62,7 @@
63 62
 %                     }
64 63
 %\Verteiler           {
65 64
 %                     }
66
-%\MeinZeichen         {\tiny\url{\VAR{full_folder}}}
65
+%\MeinZeichen         {\small{\VAR{filename}}}
67 66
 %\IhrZeichen          {Zeichen}
68 67
 %\IhrSchreiben        {dd.mm.yyyy}
69 68
 
@@ -73,7 +72,7 @@
73 72
 
74 73
 \begin{document}
75 74
   \ClearShipoutPicture
76
-  \AddToShipoutPicture{\put(50,40){\tiny\url{\VAR{full_folder}}}}
75
+  %\AddToShipoutPicture{\put(50,40){\tiny{\tt \VAR{full_folder}}}}
77 76
   \begin{g-brief}
78 77
 
79 78
     Brieftext.

+ 6
- 6
latex_doc/templates/merkblatt.tex Datei anzeigen

@@ -14,7 +14,6 @@
14 14
 \usepackage{graphicx}
15 15
 \usepackage{longtable} %lange Tabellen über mehrere Seiten erstellen
16 16
 \usepackage{lastpage}
17
-\usepackage{url}
18 17
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19 18
 % Selbst definierte Style-Dateien
20 19
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -25,11 +24,11 @@
25 24
     \renewcommand{\headrulewidth}{0.0pt}
26 25
     \renewcommand{\footrulewidth}{0.0pt}
27 26
     \thicklines
28
-    \put(60,52){\framebox(480,735){}}
29
-    \put(49,76){\rotatebox{90}{\makebox(100,7)[l]{\scriptsize\url{\VAR{full_path}}}}}
30
-    \put(545,104){\rotatebox{90}{\makebox(100,22)[l]{\bfseries #1\,(\thepage/\,\pageref{LastPage})}}}
31
-    \put(545,76){\includegraphics[height=20pt]{icons/#2}}
32
-    \put(75,40){\makebox(100,7)[l]{\scriptsize \today }}
27
+    \put(50,42){\framebox(500,755){}}
28
+    \put(39,66){\rotatebox{90}{\makebox(100,7)[l]{\scriptsize{\tt \VAR{full_folder}}}}}
29
+    \put(555,94){\rotatebox{90}{\makebox(100,22)[l]{\bfseries #1\,(\thepage/\,\pageref{LastPage})}}}
30
+    \put(555,66){\includegraphics[height=20pt]{icons/#2}}
31
+    \put(65,30){\makebox(100,7)[l]{\scriptsize \today }}
33 32
   }
34 33
 }
35 34
 {
@@ -62,6 +61,7 @@
62 61
 \setlength{\oddsidemargin}{2.35cm} \addtolength{\oddsidemargin}{-1in}
63 62
 \setlength{\evensidemargin}{2.35cm} \addtolength{\evensidemargin}{-1in}
64 63
 \addtolength{\topmargin}{1.1cm}
64
+\setlength{\parskip}{0,75em}
65 65
 
66 66
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67 67
 % Überschriftformatierung

+ 28
- 28
latex_doc/templates/präsentation.tex Datei anzeigen

@@ -141,33 +141,33 @@ Sascha Frank &  Course serial  \\
141 141
 \end{columns}
142 142
 }
143 143
 
144
-\subsection{Pictures} 
145
-\frame{\frametitle{pictures in latex beamer class}
146
-\begin{figure}
147
-\includegraphics[scale=0.5]{PIC1} 
148
-\caption{show an example picture}
149
-\end{figure}}
150
-
151
-\subsection{joining picture and lists} 
152
-
153
-\frame{
154
-\frametitle{pictures and lists in beamer class}
155
-\begin{columns}
156
-\begin{column}{5cm}
157
-\begin{itemize}
158
-\item<1-> subject 1
159
-\item<3-> subject 2
160
-\item<5-> subject 3
161
-\end{itemize}
162
-\vspace{3cm} 
163
-\end{column}
164
-\begin{column}{5cm}
165
-\begin{overprint}
166
-\includegraphics<2>{PIC1}
167
-\includegraphics<4>{PIC2}
168
-\includegraphics<6>{PIC3}
169
-\end{overprint}
170
-\end{column}
171
-\end{columns}}
144
+%\subsection{Pictures} 
145
+%\frame{\frametitle{pictures in latex beamer class}
146
+%\begin{figure}
147
+%\includegraphics[scale=0.5]{PIC1} 
148
+%\caption{show an example picture}
149
+%\end{figure}}
150
+%
151
+%\subsection{joining picture and lists} 
152
+%
153
+%\frame{
154
+%\frametitle{pictures and lists in beamer class}
155
+%\begin{columns}
156
+%\begin{column}{5cm}
157
+%\begin{itemize}
158
+%\item<1-> subject 1
159
+%\item<3-> subject 2
160
+%\item<5-> subject 3
161
+%\end{itemize}
162
+%\vspace{3cm} 
163
+%\end{column}
164
+%\begin{column}{5cm}
165
+%\begin{overprint}
166
+%\includegraphics<2>{PIC1}
167
+%\includegraphics<4>{PIC2}
168
+%\includegraphics<6>{PIC3}
169
+%\end{overprint}
170
+%\end{column}
171
+%\end{columns}}
172 172
 
173 173
 \end{document}

+ 6
- 4
mkdoc Datei anzeigen

@@ -1,4 +1,4 @@
1
-#!/usr/bin/env python
1
+#!/usr/bin/env python3
2 2
 # -*- coding: UTF-8 -*-
3 3
 
4 4
 import jinja2
@@ -8,8 +8,8 @@ import shutil
8 8
 import time
9 9
 
10 10
 
11
-TYPES = [u'brief', u'merkblatt', u'präsentation']
12
-TARGET_EXTENTION = u'.tex'
11
+TYPES = ['brief', 'merkblatt', 'präsentation']
12
+TARGET_EXTENTION = '.tex'
13 13
 
14 14
 
15 15
 def mkdir(path):
@@ -32,6 +32,7 @@ def get_path_replace_list():
32 32
         full_path = os.path.join(home_path, p)
33 33
         if os.path.islink(full_path):
34 34
             rv.append( (os.path.realpath(full_path), os.path.join(HOME_PATH_REPLACEMENT, p)) )
35
+    rv.sort(reverse=True)
35 36
     return rv
36 37
 
37 38
 
@@ -55,6 +56,7 @@ if __name__ == "__main__":
55 56
             if full_path.startswith(original):
56 57
                 full_path = replacement + full_path[len(original):]
57 58
                 break
59
+        full_path = full_path.replace('~', '$\\sim$').replace('_', '\_')
58 60
         full_folder = os.path.dirname(full_path)
59 61
         filename = os.path.splitext(os.path.basename(target_file))[0]
60 62
         short_date = time.strftime('%d.%m.%Y')
@@ -81,7 +83,7 @@ if __name__ == "__main__":
81 83
                     full_path=full_path, 
82 84
                     full_folder=full_folder, 
83 85
                     filename=filename, 
84
-                    short_date=short_date).encode('UTF-8'))
86
+                    short_date=short_date))
85 87
             if options.type == 'merkblatt':
86 88
                 shutil.copytree(os.path.join(static_path, options.type), os.path.join(os.path.dirname(target_file), 'icons'))
87 89
         else:

Laden…
Abbrechen
Speichern