Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 3
% arara: lualatex

25 Okt '18, 19:43

cis's gravatar image

cis
9.6k103460491

Hie noch ein Beispiel mit `\char"2654` [![alt text][1]][1] % arara: lualatex \documentclass[margin=5mm, varwidth]{standalone} \usepackage{fontspec} \setmainfont{DejaVu Sans} \usepackage{tikz} \def\Skalenfaktor{2.125} \newcommand\Skalieren[1]{\scalebox{\Skalenfaktor}{#1}} \newcommand\Kw{\Skalieren{\char"2654}}% ♔ \newcommand\Dw{\Skalieren{\char"2655}}% ♕ \newcommand\Tw{\Skalieren{\char"2656}}% ♖ \newcommand\Lw{\Skalieren{\char"2657}}% ♗ \newcommand\Sw{\Skalieren{\char"2658}}% ♘ \newcommand\Bw{\Skalieren{\char"2659}}% ♙ \newcommand\Ks{\Skalieren{\char"265A}}% ♚ \newcommand\Ds{\Skalieren{\char"265B}}% ♛ \newcommand\Ts{\Skalieren{\char"265C}}% ♜ \newcommand\Ls{\Skalieren{\char"265D}}% ♝ \newcommand\Ss{\Skalieren{\char"265E}}% ♞ \newcommand\Bs{\Skalieren{\char"265F}} % ♟ \newcommand\Grundstellung{ \foreach \Pos/\Fig in {a/\Tw, b/\Sw, c/\Lw, d/\Dw, e/\Kw, f/\Lw, g/\Sw, h/\Tw}{\node[]at (\Pos-1) {\Fig};} \foreach \Pos in {a,b,c,d,e,f,g,h}{\node[]at (\Pos-2) {\Bw};} % \foreach \Pos/\Fig in {a/\Ts, b/\Ss, c/\Ls, d/\Ds, e/\Ks, f/\Ls, g/\Ss, h/\Ts}{\node[]at (\Pos-8) {\Fig};} \foreach \Pos in {a,b,c,d,e,f,g,h}{\node[]at (\Pos-7) {\Bs};} } \begin{document} %\foreach \Figur in{\Kw, \Dw, \Tw, \Lw, \Sw, \Bw}{\Figur ~} \\ %\foreach \Figur in{\Ks, \Ds, \Ts, \Ls, \Ss, \Bs}{\Figur ~} \begin{tikzpicture}[scale=0.75, transform shape] \foreach[count=\x from 0] \X in {a,b,c,d,e,f,g,h} \foreach[count=\Y] \y in {0,...,7}{% \pgfmathparse{mod(\x+\y,2) ? "lightgray" : "red!50"} \colorlet{Farbe}{\pgfmathresult} \path[fill=Farbe, draw=black] (\x,\y) rectangle (\x+1,\y+1);%Schachbrett \node[] at (\x+0.5,-0.5) {\X}; % Beschriftung x \node[] at (-0.5,\y+0.5) {\Y}; % Beschriftung y \coordinate (\X-\Y) at (\x+0.5,\y+0.5); % KoSy }% \Grundstellung \node[] at (e-5) {\Ss}; \node[] at (b-4) {\Tw}; \end{tikzpicture} \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_249.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

18 Okt '18, 16:00

cis's gravatar image

cis
9.6k103460491

Hie noch ein Beispiel mit `\char"2654` [![alt text][1]][1] \documentclass[margin=5mm, varwidth]{standalone} \usepackage{fontspec} \setmainfont{DejaVu Sans} \usepackage{tikz} \def\Skalenfaktor{2.125} \newcommand\Skalieren[1]{\scalebox{\Skalenfaktor}{#1}} \newcommand\Kw{\Skalieren{\char"2654}}% ♔ \newcommand\Dw{\Skalieren{\char"2655}}% ♕ \newcommand\Tw{\Skalieren{\char"2656}}% ♖ \newcommand\Lw{\Skalieren{\char"2657}}% ♗ \newcommand\Sw{\Skalieren{\char"2658}}% ♘ \newcommand\Bw{\Skalieren{\char"2659}}% ♙ \newcommand\Ks{\Skalieren{\char"265A}}% ♚ \newcommand\Ds{\Skalieren{\char"265B}}% ♛ \newcommand\Ts{\Skalieren{\char"265C}}% ♜ \newcommand\Ls{\Skalieren{\char"265D}}% ♝ \newcommand\Ss{\Skalieren{\char"265E}}% ♞ \newcommand\Bs{\Skalieren{\char"265F}} % ♟ \newcommand\Grundstellung{ \foreach \Pos/\Fig in {a/\Tw, b/\Sw, c/\Lw, d/\Dw, e/\Kw, f/\Lw, g/\Sw, h/\Tw}{\node[]at (\Pos-1) {\Fig};} \foreach \Pos in {a,b,c,d,e,f,g,h}{\node[]at (\Pos-2) {\Bw};} % \foreach \Pos/\Fig in {a/\Ts, b/\Ss, c/\Ls, d/\Ds, e/\Ks, f/\Ls, g/\Ss, h/\Ts}{\node[]at (\Pos-8) {\Fig};} \foreach \Pos in {a,b,c,d,e,f,g,h}{\node[]at (\Pos-7) {\Bs};} } \begin{document} %\foreach \Figur in{\Kw, \Dw, \Tw, \Lw, \Sw, \Bw}{\Figur ~} \\ %\foreach \Figur in{\Ks, \Ds, \Ts, \Ls, \Ss, \Bs}{\Figur ~} \begin{tikzpicture}[scale=0.75, transform shape] \foreach[count=\x from 0] \X in {a,b,c,d,e,f,g,h} \foreach[count=\Y] \y in {0,...,7}{% \pgfmathparse{mod(\x+\y,2) ? "lightgray" : "red!50"} \colorlet{Farbe}{\pgfmathresult} \path[fill=Farbe, draw=black] (\x,\y) rectangle (\x+1,\y+1);%Schachbrett \node[] at (\x+0.5,-0.5) {\X}; % Beschriftung x \node[] at (-0.5,\y+0.5) {\Y}; % Beschriftung y \coordinate (\X-\Y) at (\x+0.5,\y+0.5); % KoSy }% \Grundstellung \node[] at (e-5) {\Ss}; \node[] at (b-4) {\Tw}; \end{tikzpicture} \end{document} [1]: https://texwelt.de/wissen/upfiles/55555555_249.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

18 Okt '18, 15:56

cis's gravatar image

cis
9.6k103460491