Debian Codegraph @

texmf-dist/doc/latex/ticket/ex_flashcard.tex

raw
1 %%%
2 %
3 % ticket.sty example file for flashcards for word learning
4 %
5 %%%%
6 % use the corresponding paper size for your ticket definition
7 \documentclass[a4paper,10pt]{letter}
8
9 \usepackage[flashCard,boxed]{ticket}
10 \usepackage{graphicx} % load misc stuff
11 \usepackage{syntonly} %to test without output
12 \usepackage{fancybox}
13
14 % make your default ticket. \ticketdefault is somewhat like a background
15 \renewcommand{\ticketdefault}{%no background
16 }
17
18 % now what do you like to put in your ticket
19 \newcommand{\card}[2]{\ticket{%
20 \put(32.5,15){\makebox[0mm]{\centering{\huge{\textbf{#1}}}}}
21 }}
22
23 \newcommand{\entryroot}[2]{}
24
25 \newcommand{\raiz}[3]{\ticket{%
26 \put(2,31){{$\sqrt{\enspace}$}}
27 \put(32.5,15){\makebox[0mm]{{\huge{\textit{{ #1 }}}}}}
28 }}
29
30 %puts a bullet on the word.
31 \newcommand{\blt}{$\bullet$\enspace}
32
33 %command for the synonyms
34 \newcommand{\syn}[1]{
35 \begin{center}
36 \fbox{\parbox[t]{50mm}{\centering{#1}}}
37 \end{center}
38 }
39
40 %command for the related words.
41 \newcommand{\relwords}[1]{$\mathbf{\sim}$ #1}
42
43 %command for the examples
44 \newcommand{\example}[1]{\\[1.5mm]\textit{#1}}
45
46
47
48
49 %% you can generate this part from a database!
50 \begin{document}
51 \input{words}
52 % change the commands for the backside
53 \renewcommand{\card}[2]{\ticket{%
54 \put(3,30){\parbox{58mm}{\large{\textbf{ #1:}}}}%
55 \put(4,23){\parbox[t]{58mm} {\small {\blt #2}}}%
56 }}
57
58 \renewcommand{\entryroot}[2]{\small{\textbf{#1 }}\textit{\scriptsize{{#2}}}$\|$}
59
60 \renewcommand{\raiz}[3]{\ticket{%
61 \put(3,30){\parbox{58mm}{\textbf{#1:} #2}}%
62 \put(3,13){\parbox{58mm}{#3}}%
63 }}
64
65 \backside%
66 \oddsidemargin=8pt
67 \input{words}
68 \end{document}
69
70
71
72
73
74
75
76