Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Gerwinski
ad
Commits
c7518f4e
Commit
c7518f4e
authored
3 years ago
by
Peter Gerwinski
Browse files
Options
Downloads
Patches
Plain Diff
Notizen und Beispiele 1.7.2021
parent
dc3c24a4
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
20210624/ad-20210624.txt
+1
-1
1 addition, 1 deletion
20210624/ad-20210624.txt
20210701/ad-20210701.txt
+70
-0
70 additions, 0 deletions
20210701/ad-20210701.txt
20210701/latex-1.pdf
+0
-0
0 additions, 0 deletions
20210701/latex-1.pdf
20210701/latex-1.tex
+138
-0
138 additions, 0 deletions
20210701/latex-1.tex
with
209 additions
and
1 deletion
20210624/ad-20210624.txt
+
1
−
1
View file @
c7518f4e
...
...
@@ -53,7 +53,7 @@ Weitere Methoden: https://www.databasestar.com/sql-escape-single-quote/
String-Verkettung:
Aus 'Robert'); DROP TABLE Students;--'
w
o
rd 'Robert' || chr (39) || '); DROP TABLE Students;--'
w
i
rd 'Robert' || chr (39) || '); DROP TABLE Students;--'
Speziell in "like": "escape"-Zeichen spezifizieren
...
...
This diff is collapsed.
Click to expand it.
20210701/ad-20210701.txt
0 → 100644
+
70
−
0
View file @
c7518f4e
SQL-Programmierung, 01.07.2021, 17:25:49
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:) Benutzung von Ausdrücken und Funktionen in select-Anweisungen
:] Funktion = Sammlung von Befehlen, Rückgabe eines Wertes
Prozedur = Sammlung von Befehlen = void-Funktion
Es gibt Parameter, Variable, Schleifen, Verzweigungen, ...
:] Trigger = Code, der ausgeführt wird, wenn ein Ereignis eintritt:
{ BEFORE | AFTER } { INSERT | UPDATE | DELETE }
--> Intelligenz von der Applikation in die Datenbank auslagern
--> kann helfen, die Daten konsistent zu halten
LaTeX, 01.07.2021, 17:41:28
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Literatur: The TeXbook - texbook.pdf
Beispiele:
https://gitlab.cvh-server.de/pgerwinski/ad/common/pgscript.sty
https://gitlab.cvh-server.de/pgerwinski/ad/common/pgslides.sty
https://gitlab.cvh-server.de/pgerwinski/ad/*/*.tex
https://gitlab.cvh-server.de/jweber/latex-template-cvh/
Textsatz: spezielle Symbole
- Anführungszeichen
- verschiedene Striche
Bindestrich: Thomas-Müller-Straße
Gedankenstrich: Textsatzsysteme -- zum Beispiel LaTeX -- funktionieren wie folgt: ...
Minus-Zeichen: $-42$
- Ligaturen:
aus f und i wird automatisch eine fi-Ligatur
aus f und l wird automatisch eine fl-Ligatur
(früher gab es im Deutschen eine st-Ligatur)
Problem: bei Silbentrennung _keine_ Ligatur
Beispiel: Auflage --> korrekt _ohne_ Ligatur
TeX und LaTeX: hinschreiben was man meint, nicht, wie es aussehen soll
- \emph{} statt \textit{}
- \section{}, \subsection{} usw.
--> automatisches Inhaltsverzeichnis,
wird erst beim 2. Compilieren sichtbar.
Achtung: Dadurch können sich Seitenzahlen wieder verschieben!
Sicherheitshalber noch ein drittes Mal compilieren!
- Textabsatz: Leerzeile oder \par
Stil des Textabsatzes ändern: \usepackage{parskip}
- \\ = neue Zeile - nur in speziellen Situationen,
z.B. Gedichte, Tabellen, ...
- Tabellen: tabular-Umgebung, \usepackage{longtable}, ...
Maßeinheiten:
- 1pt = 1/72in
1in = 2.54cm
1cm = 10mm
1ex = Höhe eines "x" (für vertikale Maße, abhängig von Schriftart)
1em = Breite eines "M" (für horizontale Maße, abhängig von Schriftart)
Zeichnen: picture-Umgebung, \usepackage{tikz}
Nächste Woche:
- Code-Beispiele formatieren
- Vortragsfolien (LaTeX Beamer)
This diff is collapsed.
Click to expand it.
20210701/latex-1.pdf
0 → 100644
+
0
−
0
View file @
c7518f4e
File added
This diff is collapsed.
Click to expand it.
20210701/latex-1.tex
0 → 100644
+
138
−
0
View file @
c7518f4e
\documentclass
{
article
}
\usepackage
[german]
{
babel
}
% Für "reformierte" deutsche Rechtschreibung: "ngerman"
\usepackage
[a4paper,margin=2cm]
{
geometry
}
\usepackage
{
listings
}
\usepackage
{
parskip
}
\usepackage
{
color
}
\usepackage
{
tikz
}
\lstset
{
basicstyle=
\ttfamily
}
\newcommand
{
\name
}
[1]
{
\textsc
{
#1
}}
% Befehl selbst definieren, 1 Parameter
\setcounter
{
secnumdepth
}{
1
}
% Ebene, bis zu der Überschriften numeriert werden sollen
\setlength
{
\unitlength
}{
1cm
}
\definecolor
{
lightred
}{
rgb
}{
1.0,0.7,0.7
}
\definecolor
{
medred
}{
rgb
}{
0.5,0.0,0.0
}
\definecolor
{
lightgreen
}{
rgb
}{
0.7,1.0,0.7
}
\definecolor
{
medgreen
}{
rgb
}{
0.0,0.5,0.0
}
\definecolor
{
darkred
}{
rgb
}{
0.3,0.0,0.0
}
\begin{document}
Auflage (falsch)
Auf"|lage
fliegen
f"|liegen (falsch)
``quotation marks''
"`Anführungszeichen"'
"Anführungszeichen" (falsch)
"A "O "U "a "o "u "s
\TeX
ignores spaces after control words.
% Leerzeichen hinter Befehl ("Macro") wird verschluckt
\TeX\
ignores spaces after control words.
% Backslash-Leerzeichen: geschütztes normales Leerzeichen
{
\TeX
}
ignores spaces after control words.
% Gruppierung
\textit
{
kursiv
}
\texttt
{
Schreibmaschinenschrift
}
\textsc
{
Ohm
}
sches Gesetz -- Aussehen spezifizieren (schlecht)
\emph
{
betont
}
\lstinline
{
Code-Beispiel
}
\name
{
Ohm
}
sches Gesetz -- Sinn spezifizieren (gut)
\tableofcontents
\section
{
Überschrift
}
\subsection
{
Unter-Überschrift
}
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor
incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.
Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
\\
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor
incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.
Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor
incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.
Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
Ich ging im Walde
\\
So für mich hin,
\\
Und nichts zu suchen,
\\
Das war mein Sinn.
\begin{center}
\begin{tabular}
{
l|r
}
Objekt
&
Radius
\\\hline
\rule
{
0pt
}{
2.5ex
}
% Linie der Breite 0pt und der Höhe 2.5ex
Sonne
&
696
\,
342
\,
km
\\
% "\," = halbes Leerzeichen
Erde
&
12
\,
756
\,
km
\\
Mond
&
3
\,
474
\,
km
\end{tabular}
\end{center}
Grafiken
%
\begin{picture}
(0,0)
\color
{
red
}
\put
(0,0.5)
{
\makebox
(0,0)[b]
{
schöne
}}
\end{picture}
erzeugen
\begin{picture}
(1,1)
% Größe in \unitlength
\put
(0.5,0.5)
{
\circle
{
0.1
}}
\put
(0,0)
{
\line
(0,1)
{
1
}}
\put
(0,0)
{
\line
(1,0)
{
1
}}
\put
(1,0)
{
\line
(-1,2)
{
0.5
}}
\put
(1,0)
{
\tikz
{
\draw
[->,green!60!black] (0,0)--(0.5,1);
}}
\put
(1,0)
{
\makebox
(0,0)[tr]
{
\tikz
{
\draw
(0,0)--(-1,-0.5);
}}}
\end{picture}
\begin{center}
\begin{tikzpicture}
\draw
[white] (-5.8,4.7)--(6.3,4.7)--(6.3,-0.7)--(-5.8,-0.7)--cycle;
% Trick, um die Größe des Bildes klarzustellen - hier wichtig für Vortragsfolien
\node
(kl) at (-3.0,4) [inner sep = 3mm,rounded corners=3mm,draw=gray]
{
Klassische Physik
}
;
\node
(SRT) at (-3.0,2) [inner sep = 3mm,rounded corners=3mm,draw=medgreen,fill=lightgreen]
{
Spezielle Relativitätstheorie
}
;
\node
(QM) at (3.0,4) [inner sep = 3mm,rounded corners=3mm,draw=medred,fill=lightred]
{
Nichtrelativistische Quantenmechanik
}
;
\draw
[thick,-latex] (kl)--(SRT);
\draw
[thick,-latex] (kl)--(QM);
\node
(ART) at (-3.0,0) [inner sep = 3mm,rounded corners=3mm,draw=medgreen,fill=lightgreen]
{
Allgemeine Relativitätstheorie
}
;
\node
(RQM) at (3.0,2) [inner sep = 3mm,rounded corners=3mm,draw=medred,fill=lightred]
{
Relativistische Quantenmechanik
}
;
\draw
[thick,-latex] (QM)--(RQM);
\draw
[thick,-latex] (SRT)--(RQM);
\draw
[thick,-latex] (SRT)--(ART);
\node
(QFT) at (3.0,0) [inner sep = 3mm,rounded corners=3mm,draw=medred,fill=lightred]
{
Quantenfeldtheorie
}
;
\draw
[thick,-latex] (RQM)--(QFT);
\draw
(RQM) edge[medgreen,thick,latex-latex,out=-135,in=45] (ART);
\draw
(ART) edge[red,thick,latex-latex] node
{
%
\begin{tikzpicture}
\draw
[white,fill=white] (-0.15,0.1)--(0.15,0.1)--(0.15,-0.1)--(-0.15,-0.1)--cycle;
\draw
[red,-latex] (0.05,0.3)--(-0.1,-0.05)--(0.1,0.05)--(-0.05,-0.3);
\end{tikzpicture}
}
(QFT);
\end{tikzpicture}
\end{center}
\end{document}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment