Browse Source

fix language

main
Hendrik Langer 8 years ago
parent
commit
03269f8519
  1. 2
      .gitlab-ci.yml
  2. 56
      article.tex
  3. 2
      home-server.tex
  4. BIN
      six-computers-chips-circuits.jpg

2
.gitlab-ci.yml

@ -1,5 +1,5 @@
before_script:
- apt-get update -qq && apt-get install -y -qq texlive latexmk
- apt-get update -qq && apt-get install -y -qq texlive texlive-lang-german latexmk
- pdflatex -version
- which pdflatex

56
article.tex

@ -1,56 +0,0 @@
\documentclass[
fontsize=11pt
]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[automark]{scrlayer-scrpage}
\usepackage{wallpaper}
\usepackage{tikz}
\usepackage{blindtext}
\newcommand\chapterillustration{}
%https://komascript.de/comment/5067#comment-5067
\setkomafont{chapter}{\huge}
\makeatletter
% Hack: Eigenen, rudimentären Kapitelstil definieren.
\newcommand*{\scr@dsc@def@style@xchapter@command}[1]{%
\scr@dsc@def@style@chapter@command{#1}%
\expandafter\def\csname @@make#1head\endcsname##1{%
\let\orig@raggedchapter\raggedchapter
\let\raggedchapter\raggedleft
\let\orig@hangfrom\@hangfrom
\let\@hangfrom\chapterhang
\scr@@makechapterhead{#1}{##1}%
\let\@hangfrom\orig@saved@hangfrom
\let\raggedchapter\orig@raggedchapter
}%
}
\makeatother
\DeclareSectionCommand[style=xchapter]{chapter}
\newbox\chapternumberbox
\newcommand{\chapterhang}[2]{%
%\ThisULCornerWallPaper{1}{\chapterillustration}
\tikz[remember picture,overlay] \node[opacity=1.0,inner sep=0pt] at (current page.north){\includegraphics[width=\paperwidth,height=.5\paperheight]{\chapterillustration}};%
\savebox\chapternumberbox{\fontsize{100}{100}\normalfont\sffamily\bfseries
\thechapter}%
\parbox[t]{\dimexpr\linewidth-\wd\chapternumberbox-1em}{%
\raggedleft
\makebox[1em][l]{\normalfont\normalsize\slshape\chapapp}\\
#2%
}\quad
\raisebox{-1.75\baselineskip}{\usebox\chapternumberbox}\par
}
\usepackage{mwe}
\begin{document}
\tableofcontents
\renewcommand\chapterillustration{six-computers-chips-circuits}
\setcounter{chapter}{3}
\chapter{Erarbeitete technische Prinzipien}
\Blindtext
%\blinddocument
\end{document}

2
home-server.tex

@ -7,7 +7,7 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[english]{babel}
\usepackage[automark]{scrlayer-scrpage}
\usepackage[raiselinks=true,

BIN
six-computers-chips-circuits.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

Loading…
Cancel
Save