![Latex 中更具創意的文字格式包](https://rvso.com/image/286345/Latex%20%E4%B8%AD%E6%9B%B4%E5%85%B7%E5%89%B5%E6%84%8F%E7%9A%84%E6%96%87%E5%AD%97%E6%A0%BC%E5%BC%8F%E5%8C%85.png)
用於實現類似以下範例的合理套件是什麼(包括更改的圖像):
來源是http://blog.azubiyo.de/bewerbungstipps/deckblatt-bewerbung/attachment/deckblatt-muster-4/(可以從那裡下載 PDF 檔案)這屬於德語 AZUBIYO-Blog 中的部落格條目:Deckblatt 在 der Bewerbung?公告與集合,其中授予以下版權:
作品:© lev dolgachov-fotolia,© Minerva Studio-fotolia; Urheber 設計 1 和 2:Designbewerbung
答案1
拖延隊,代表!
使用 TikZ 這太簡單了;-)
現在顏色、字體正確且代碼與圖片相符。您將需要使用xelatex
或lualatex
進行排版。
\documentclass{article}
\pagestyle{empty}
\usepackage{fontspec}
\setmainfont{Calibri}
\usepackage{tikz,xcolor,mwe}
\definecolor{cvgreen}{HTML}{92D14F}
\definecolor{cvgray}{HTML}{D8E4BE}
\definecolor{cvtext}{HTML}{92909B}
\usetikzlibrary{shadows}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
% green bar
\fill[cvgreen] (current page.north west) rectangle ([xshift=5cm]current page.south west);
% gray bar
\fill[cvgray] ([yshift=-5cm]current page.north west) rectangle ([yshift=-10cm]current page.north east);
% title and date
\node[cvtext,right] at ([yshift=-7cm]current page.north west) {\addfontfeature{Scale = 5}\bfseries Bewerbung als Bankkauffrau};
\node[cvtext,above left] at ([xshift=-1cm,yshift=-9.5cm]current page.north east) {\huge\bfseries zum 01.09.2013};
% cover photo
\node[inner sep=0pt,below right] (image) at ([xshift=5cm,yshift=-10cm]current page.north west) {\includegraphics[width=7cm,height=9cm]{example-image-a}};
% name and address
\node[fill=white,drop shadow,align=center,text width=6.4cm,inner sep=0.3cm,below] (name) at (image.south) {\LARGE Martina Mustermann};
\node[text width=15cm,inner sep=0.3cm,below right] at (name.south west) {\Large\obeylines%
Musterweg 8
81929 München
Tel.: 01 74 / 98 98 61
E-Mail: [email protected]
};
% attachments
\node[white,text width=5cm,inner sep=0.3cm,above right] at ([yshift=1cm]current page.south west) {\large\obeylines%
\textbf{Anlagen:}
Lebenslauf
Bewerbungsschreiben
Letzte 2 Schulzeugnisse
Praktikumsbestätigungen
};
\end{tikzpicture}
\end{document}
答案2
只是為了好玩:
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\gdef\shift{0}
\foreach \x in {1,...,100}{
\pgfmathsetmacro\r{random(0,5)}
\xdef\shift{\shift,\r}
}
\foreach \sh in {0,...,5}{
\gdef\rec{0}
\foreach \s [count=\c] in \shift { \ifnum\s=\sh \xdef\rec{\rec,\c} \fi }
\begin{scope}
\clip \foreach \x in \rec {(0, \x pt) rectangle ++(110pt,1pt)};
\node[anchor=south west] at (\sh pt,0)
{\includegraphics[width=100pt,height=100pt]{example-image-a}};
\end{scope}
}
\end{tikzpicture}
\end{document}