summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ticket/ex_flashcard.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-10-06 23:35:29 +0000
committerKarl Berry <karl@freefriends.org>2006-10-06 23:35:29 +0000
commitd3042188ecd8fc8fab8e6ede6b3c4a8ba306fb96 (patch)
treedb96a89b9e118cfd18719864ee66aa093eb5e321 /Master/texmf-dist/doc/latex/ticket/ex_flashcard.tex
parent63a0497a74fbe02f2bd1f6b62c68f44a4d8d99c5 (diff)
ticket update (31jan06)
git-svn-id: svn://tug.org/texlive/trunk@2257 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/ticket/ex_flashcard.tex')
-rw-r--r--Master/texmf-dist/doc/latex/ticket/ex_flashcard.tex76
1 files changed, 76 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ticket/ex_flashcard.tex b/Master/texmf-dist/doc/latex/ticket/ex_flashcard.tex
new file mode 100644
index 00000000000..31b1e465089
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/ticket/ex_flashcard.tex
@@ -0,0 +1,76 @@
+%%%
+%
+% ticket.sty example file for flashcards for word learning
+%
+%%%%
+% use the corresponding paper size for your ticket definition
+\documentclass[a4paper,10pt]{letter}
+
+\usepackage[flashCard,boxed]{ticket}
+\usepackage{graphicx} % load misc stuff
+\usepackage{syntonly} %to test without output
+\usepackage{fancybox}
+
+% make your default ticket. \ticketdefault is somewhat like a background
+\renewcommand{\ticketdefault}{%no background
+}
+
+% now what do you like to put in your ticket
+\newcommand{\card}[2]{\ticket{%
+ \put(32.5,15){\makebox[0mm]{\centering{\huge{\textbf{#1}}}}}
+ }}
+
+\newcommand{\entryroot}[2]{}
+
+\newcommand{\raiz}[3]{\ticket{%
+ \put(2,31){{$\sqrt{\enspace}$}}
+ \put(32.5,15){\makebox[0mm]{{\huge{\textit{{ #1 }}}}}}
+}}
+
+%puts a bullet on the word.
+\newcommand{\blt}{$\bullet$\enspace}
+
+%command for the synonyms
+\newcommand{\syn}[1]{
+ \begin{center}
+ \fbox{\parbox[t]{50mm}{\centering{#1}}}
+ \end{center}
+}
+
+%command for the related words.
+\newcommand{\relwords}[1]{$\mathbf{\sim}$ #1}
+
+%command for the examples
+\newcommand{\example}[1]{\\[1.5mm]\textit{#1}}
+
+
+
+
+%% you can generate this part from a database!
+\begin{document}
+\input{words}
+% change the commands for the backside
+\renewcommand{\card}[2]{\ticket{%
+ \put(3,30){\parbox{58mm}{\large{\textbf{ #1:}}}}%
+ \put(4,23){\parbox[t]{58mm} {\small {\blt #2}}}%
+ }}
+
+\renewcommand{\entryroot}[2]{\small{\textbf{#1 }}\textit{\scriptsize{{#2}}}$\|$}
+
+\renewcommand{\raiz}[3]{\ticket{%
+ \put(3,30){\parbox{58mm}{\textbf{#1:} #2}}%
+ \put(3,13){\parbox{58mm}{#3}}%
+ }}
+
+\backside%
+\oddsidemargin=8pt
+\input{words}
+\end{document}
+
+
+
+
+
+
+
+