diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-09-16 12:22:44 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-18 14:28:12 +0200 |
| commit | d66f10f393b5057fb73352d08a24425f0a6e0347 (patch) | |
| tree | 5a739ecc3e31c42ffadcc8ce3ab341cda79ec072 /latex/tikzcards.tex | |
| parent | 716db14842fa39159a2e96eaabbe60061967ec2a (diff) | |
| download | muhqs-game-d66f10f393b5057fb73352d08a24425f0a6e0347.tar.gz muhqs-game-d66f10f393b5057fb73352d08a24425f0a6e0347.zip | |
introduce new splitcontent commands for single and two lines
Diffstat (limited to 'latex/tikzcards.tex')
| -rw-r--r-- | latex/tikzcards.tex | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/latex/tikzcards.tex b/latex/tikzcards.tex index 70037fb2..7f1fccc2 100644 --- a/latex/tikzcards.tex +++ b/latex/tikzcards.tex @@ -100,10 +100,43 @@ \clip[cardcorners] \shapeCard; \fill[elementcorners,contentbg] \shapeContentArea; \end{scope} - \node[below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding + 1) { + % \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding + \heightof{)#1}) { + \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding + 0.8) { \textit{\normalsize #1} }; - \node[below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 3.6) { + \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight - 0.8) { + \vrule width \textwidth height 2pt \\[-2pt] + \vspace{0.2cm} + {\normalsize #2} + }; +} + +\newcommand{\cardsplitcontentsingleline}[2]{ + \begin{scope}[even odd rule] + \clip[cardcorners] \shapeCard; + \fill[elementcorners,contentbg] \shapeContentArea; + \end{scope} + % \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding + \heightof{)#1}) { + \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding) { + \textit{\normalsize #1} + }; + \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight - 0.8) { + \vrule width \textwidth height 2pt \\[-2pt] + \vspace{0.2cm} + {\normalsize #2} + }; +} + +\newcommand{\cardsplitcontenttwolines}[2]{ + \begin{scope}[even odd rule] + \clip[cardcorners] \shapeCard; + \fill[elementcorners,contentbg] \shapeContentArea; + \end{scope} + % \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding + \heightof{)#1}) { + \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding + 0.4) { + \textit{\normalsize #1} + }; + \node[draw, below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight - 0.8) { \vrule width \textwidth height 2pt \\[-2pt] \vspace{0.2cm} {\normalsize #2} |
