summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-04-28 03:01:33 +0000
committerNorbert Preining <norbert@preining.info>2021-04-28 03:01:33 +0000
commitd929e40413ebfcbeaadd7e5469ed1eb0d867ba97 (patch)
tree29822671cc2b8a5972bc139952a695cd038df417 /macros/latex/contrib/onedown/examples
parent95b070aee1a6351879af117f723c84d50b48338d (diff)
CTAN sync 202104280301
Diffstat (limited to 'macros/latex/contrib/onedown/examples')
-rw-r--r--macros/latex/contrib/onedown/examples/CardSymbols.tex44
-rw-r--r--macros/latex/contrib/onedown/examples/Compass.pdfbin0 -> 415404 bytes
-rw-r--r--macros/latex/contrib/onedown/examples/Compass.tex20
-rw-r--r--macros/latex/contrib/onedown/examples/Fontsizes.pdfbin0 -> 245668 bytes
-rw-r--r--macros/latex/contrib/onedown/examples/Fontsizes.tex33
-rw-r--r--macros/latex/contrib/onedown/examples/Languages.tex2
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-examples.pdfbin855928 -> 874153 bytes
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-examples.tex44
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-ref.pdfbin228347 -> 227662 bytes
-rw-r--r--macros/latex/contrib/onedown/examples/onedown-ref.tex27
10 files changed, 131 insertions, 39 deletions
diff --git a/macros/latex/contrib/onedown/examples/CardSymbols.tex b/macros/latex/contrib/onedown/examples/CardSymbols.tex
new file mode 100644
index 0000000000..5ecca8a55d
--- /dev/null
+++ b/macros/latex/contrib/onedown/examples/CardSymbols.tex
@@ -0,0 +1,44 @@
+\documentclass[onedown-examples]{subfiles}
+
+\begin{document}
+\noindent
+\begin{tcolorbox}[colback=red!5!white,colframe=red!75!black,
+ title={Use card symbols like {\setdefaults{colors=b+w}♣,♢,♡,♠} directly as input}]
+%\begin{HBox}{Use card symbols like {\setdefaults{colors=b+w}♣,♢,♡,♠} directly as input}
+If you want to use the card symbols {\setdefaults{colors=b+w}♣,♢,♡,♠} within your \LaTeX-document,
+then put these lines in your preamble. That's all.
+\\[0.3em]
+\verb|\DeclareUnicodeCharacter{2660}{\Sp}|
+\verb|\DeclareUnicodeCharacter{2661}{\He}| \\
+\verb|\DeclareUnicodeCharacter{2662}{\Di}|
+\verb|\DeclareUnicodeCharacter{2663}{\Cl}| \\
+\verb|\DeclareUnicodeCharacter{2664}{\Sp}|
+\verb|\DeclareUnicodeCharacter{2665}{\He}| \\
+\verb|\DeclareUnicodeCharacter{2666}{\Di}|
+\verb|\DeclareUnicodeCharacter{2667}{\Cl}| \\[0.3em]
+
+%\vspace{0.3em}
+%\\[0.3em]
+If you put them in a file \textbf{\emph{onedown.symbols}}, somewhere where
+\LaTeX{} can find it, then the \OneDown package will take care of loading it. An
+apropriate place would be in your .texmf directory.
+\end{tcolorbox}
+%\end{HBox}
+\begin{tcolorbox}[colback=red!5!white,colframe=red!75!black,
+ title={To enter these card symbols on your keyboard, use this with Linux}]
+Add following lines to your \emph{.Xmodmap} and run \textbf{xmodmap .Xmodmap}
+\\[0.3em]
+{\ttfamily
+keycode 38 = 0x0061 0x0041 0x0061 0x0041 0x1002663 0x1002667 0x00e6 \\
+keycode 39 = 0x0073 0x0053 0x0073 0x0053 0x1002662 0x1002666 0x100017f \\
+keycode 40 = 0x0064 0x0044 0x0064 0x0044 0x1002661 0x1002665 0x00f0 \\
+keycode 41 = 0x0066 0x0046 0x0066 0x0046 0x1002660 0x1002664 0x01f0 \\
+keycode 65 = space nobreakspace space nobreakspace nobreakspace NoSymbol \\
+}
+\tcblower
+Now you can enter {\setdefaults{colors=b+w}♣,♢,♡,♠} with \emph{Shift+AltGr} a,s,d,f
+\end{tcolorbox}
+
+
+\end{document}
+\endinput
diff --git a/macros/latex/contrib/onedown/examples/Compass.pdf b/macros/latex/contrib/onedown/examples/Compass.pdf
new file mode 100644
index 0000000000..c9d613f276
--- /dev/null
+++ b/macros/latex/contrib/onedown/examples/Compass.pdf
Binary files differ
diff --git a/macros/latex/contrib/onedown/examples/Compass.tex b/macros/latex/contrib/onedown/examples/Compass.tex
index 7cd46ecc79..cbb19739b5 100644
--- a/macros/latex/contrib/onedown/examples/Compass.tex
+++ b/macros/latex/contrib/onedown/examples/Compass.tex
@@ -2,8 +2,6 @@
%\usepackage{forloop}
\gamefont{\larger\larger}
-\newcounter{Nr}
-\newcounter{Tmp}
\makeatletter
\def\CP{\ODw@Compass}
\makeatother
@@ -12,11 +10,16 @@
\noindent
Here we show the 16 possible combinations of dealership and vulnerability.
We use the default |colors=2| (|black & red|) and so the vulners appear in
-red. The command |\CP| is defined in the preamble.
+red. The command |\CP| is to be defined in every V- or HBox.
\par\vspace{1em}\noindent
%
\begin{VBox}{The 16 combinations of dealer/vulner\hfill File: \FileName}
+\newcounter{Nr}
+\newcounter{Tmp}
+\makeatletter
+ \def\CP{\ODw@Compass}
+\makeatother
\centering
\setdefaults{compsize=1.3,compmid=\boardtext}
\begin{tabular}{ll|ll}
@@ -40,10 +43,13 @@ for the letters in the compass.
First we enlarge the compass 1.5$\times$. Note that this does influence
neither the fontsize nor the frame thickness. Then we enlarge the fonsize.
As you see, this does influence the size of the compass too. Finally
-the set the size factor back to 1. Notice the difference with the second
+we set the size factor back to 1. Notice the difference with the first
compass.
\vfill
\begin{HBox}{controlling the compass I\hfill File: \FileName}
+\makeatletter
+ \def\CP{\ODw@Compass}
+\makeatother
\CP
\setdefaults{compsize=1.5}\CP
\setdefaults*{compass=\Large}\CP
@@ -54,6 +60,9 @@ As you see, we can make the frame very thick, very thin or let it
disappear completely when we use factor 0.
\vfill
\begin{HBox}{controlling the compass II\hfill File: \FileName}
+\makeatletter
+ \def\CP{\ODw@Compass}
+\makeatother
\setdefaults{compsize=1.5}\CP
\setdefaults{compline=3}\CP
\setdefaults{compline=0.1}\CP
@@ -71,6 +80,9 @@ frame is supressed. Finally we see a diagram where the total compass is
suppressed. For clarity's sake we have added the \east and \west hand.
\vfill
\begin{HBox}{controlling the compass III\hfill File: \FileName}
+\makeatletter
+ \def\CP{\ODw@Compass}
+\makeatother
\boardnr{0}
\setdefaults{compsize=1,compmid=x}\CP
\setdefaults{compsize=1.5}\CP
diff --git a/macros/latex/contrib/onedown/examples/Fontsizes.pdf b/macros/latex/contrib/onedown/examples/Fontsizes.pdf
new file mode 100644
index 0000000000..d2accbc38c
--- /dev/null
+++ b/macros/latex/contrib/onedown/examples/Fontsizes.pdf
Binary files differ
diff --git a/macros/latex/contrib/onedown/examples/Fontsizes.tex b/macros/latex/contrib/onedown/examples/Fontsizes.tex
new file mode 100644
index 0000000000..24f4fd4ced
--- /dev/null
+++ b/macros/latex/contrib/onedown/examples/Fontsizes.tex
@@ -0,0 +1,33 @@
+%\documentclass[onedown-examples]{subfiles}
+\documentclass[10pt]{report}
+%
+\usepackage{libertine}
+\usepackage{onedown}
+
+%
+\makeatletter
+\newcommand{\mysize}[1]{%
+ \bgroup\noindent\csname#1\endcsname The #1 size is: \textbf{\csname#1\endcsname\f@size\,pt}.\\The baselineskip is \the\baselineskip\par\vskip2mm\egroup}
+\makeatother
+
+\begin{document}
+\noindent
+Here we show the different fontsizes with values and output. \\
+For the size commands \emph{ssmall} and \emph{HUGE} refer to package \textsf{moresizes}.
+\\[1em]
+%%%%%
+\mysize{tiny}
+\mysize{ssmall}
+\mysize{scriptsize}
+\mysize{footnotesize}
+\mysize{small}
+\mysize{normalsize}
+\mysize{large}
+\mysize{Large}
+\mysize{LARGE}
+\mysize{huge}
+\mysize{Huge}
+\mysize{HUGE}
+%%%%%
+\end{document}
+\endinput
diff --git a/macros/latex/contrib/onedown/examples/Languages.tex b/macros/latex/contrib/onedown/examples/Languages.tex
index 568f8d0c2a..0e5d0e6702 100644
--- a/macros/latex/contrib/onedown/examples/Languages.tex
+++ b/macros/latex/contrib/onedown/examples/Languages.tex
@@ -29,7 +29,7 @@ Refer to the \OneDown manual for details.
\vfill\noindent
Here we switch to the Norwegian language. As we use the same settings for the
diagram, we simply call |\showAll| to display it, after we changed the
-language. The Jack is coded with \foreignlanguage{norsk}{\jack{}}
+language. The Jack is coded with \foreignlanguage{norsk}{\jack{}}
rather than \jack, so the hand is now closer to the right upper legend. (We already discussed ways
to solve this!)
\vfill
diff --git a/macros/latex/contrib/onedown/examples/onedown-examples.pdf b/macros/latex/contrib/onedown/examples/onedown-examples.pdf
index 60c32c6677..1aab50b8d1 100644
--- a/macros/latex/contrib/onedown/examples/onedown-examples.pdf
+++ b/macros/latex/contrib/onedown/examples/onedown-examples.pdf
Binary files differ
diff --git a/macros/latex/contrib/onedown/examples/onedown-examples.tex b/macros/latex/contrib/onedown/examples/onedown-examples.tex
index 1e5f5b57ad..12a00a6e24 100644
--- a/macros/latex/contrib/onedown/examples/onedown-examples.tex
+++ b/macros/latex/contrib/onedown/examples/onedown-examples.tex
@@ -9,28 +9,29 @@
%%-------------------------------------------------------
+\PassOptionsToPackage{shorthands=off}{babel}
+\documentclass[a4paper,fontsize=11pt,%
+ danish,%
+ dutch,%
+ french,%
+ german,%
+ norsk,%
+ spanish,%
+ swedish,%
+ turkish,%
+ english,% this is the default language
+]{scrartcl}
-\documentclass[a4paper,fontsize=11pt]{scrartcl}
\usepackage{scrlayer-scrpage}
%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%
\usepackage{subfiles}% can compile stand-alone/combined
-\usepackage[%
- danish,%
- dutch,%
- french,%
- german,%
- norsk,%
- spanish,es-noshorthands,% unset active chars to avoid problems with '.' '’' '"' '~' '<' and '>'
- swedish,%
- turkish,shorthands=,% unset active chars to avoid problems with ':', '=' and '!'
- english,%
-]{babel}% introduce all known languages, default is english
+\usepackage{babel}%
%\usepackage[mono=false]{libertine}% verbatim needs option mono=false
-% linertine screws verbatim, at least I don't know how to handle that
+% libertine screws verbatim, at least I don't know how to handle that
\usepackage{onedown}% our own style to set bridge stuff
\usepackage[most]{tcolorbox}% show examples with code
%\usepackage{tcolorbox}% show examples with code
@@ -115,10 +116,10 @@
\def\ExLang{english}
\begin{document}
% when compiled with:
-% pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}'
+% pdflatex '\AtBeginDocument{\def\ExLang{YourLanguage}}\input{onedown-ref.tex}'
% you'll get the onedown commands expansions in YourLanguage
% YourLanguage can be any language out of:
-% english, danish, dutch, french, german, norsk, spanish, swedish, turkish
+% danish, dutch, english, french, german, norsk, spanish, swedish, turkish
%
\expandafter\selectlanguage\expandafter{\ExLang}
\pdfbookmark[1]{Title}{Title}
@@ -128,8 +129,8 @@ use the following command: \newline \texttt{\$ pdflatex \jobname.tex}}
\\[1em]
\normalsize\url{www.ctan.org/pkg/onedown}
}
-\author{J.\,Wiersma\footnote{email: \textsf{jack46@online.de}}}
-\date{23 September 2018 (v0.5)}
+\author{J.\,Wiersma\footnote{email: \textsf{jack@schuli-wirsi.de}}}
+\date{29 January 2020 (v0.5)}
\maketitle
\section*{Introduction}
@@ -152,12 +153,12 @@ sections bear the file name, which can also be found in the list below. The
examples are produced using the \textsf{tcolorbox} package. This enables us
to show the code and the output of it side by side.
-The explanatory text is always in the English language. But you can show the output of all commands
-in any of the supported languages.\\
-These are: english, danish, dutch, french, german, norsk, spanish, swedish, turkish. \\
+The explanatory text is always in the English language. But you can show the
+output of all commands in any of the supported languages.\\
+These are: danish, dutch, english, french, german, norsk, spanish, swedish, turkish. \\
You obtain this output in \emph{YourLanguage} by compiling onedown-ref.tex with: \\[0.2em]
-\verb|pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-examples.tex}'|
+\verb|pdflatex '\AtBeginDocument{\def\ExLang{YourLanguage}}\input{onedown-examples.tex}'|
\par\vspace{1\baselineskip}
\setlength\columnseprule{.8pt}% rule between cols
\begin{multicols}{3}[{\centering \textbf{\Large List of Examples}}]
@@ -189,5 +190,6 @@ You obtain this output in \emph{YourLanguage} by compiling onedown-ref.tex with:
\SubFile{ExpertQuiz}
\SubFile{Languages}
\SubFile{Compass}
+\SubFile{CardSymbols}
\end{document}
diff --git a/macros/latex/contrib/onedown/examples/onedown-ref.pdf b/macros/latex/contrib/onedown/examples/onedown-ref.pdf
index 8b6f3b9018..92ec145e0a 100644
--- a/macros/latex/contrib/onedown/examples/onedown-ref.pdf
+++ b/macros/latex/contrib/onedown/examples/onedown-ref.pdf
Binary files differ
diff --git a/macros/latex/contrib/onedown/examples/onedown-ref.tex b/macros/latex/contrib/onedown/examples/onedown-ref.tex
index 6d16724130..95d6918172 100644
--- a/macros/latex/contrib/onedown/examples/onedown-ref.tex
+++ b/macros/latex/contrib/onedown/examples/onedown-ref.tex
@@ -8,24 +8,24 @@
%% USAGE: (pdf)latex onedown-ref.tex
%%-------------------------------------------------------
-\documentclass[a4paper,fontsize=11pt]{scrartcl}
-\usepackage{scrlayer-scrpage}
-%
-\usepackage[utf8]{inputenc}
-\usepackage[T1]{fontenc}
-%
-\usepackage[%
+\PassOptionsToPackage{shorthands=off}{babel}
+\documentclass[a4paper,fontsize=11pt,%
danish,%
dutch,%
french,%
german,%
norsk,%
- spanish,es-noshorthands,% unset active chars to avoid problems with '.' '’' '"' '~' '<' and '>'
+ spanish,%
swedish,%
- turkish,shorthands=,% unset active chars to avoid problems with ':', '=' and '!'
- english,%
-]{babel}% introduce all known languages, default is english
-
+ turkish,%
+ english,% this is the default language
+]{scrartcl}
+\usepackage{scrlayer-scrpage}
+%
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+%
+\usepackage{babel}%
\usepackage{onedown}% our own style to set bridge stuff
\usepackage[a4paper, total={185mm, 257mm},left=12mm,top=20mm]{geometry}
\newcommand\OneDown{\textcolor{red}{\smaller\bfseries\textsc{OneDown}}\xspace}
@@ -66,6 +66,7 @@
% english, danish, dutch, french, german, norsk, spanish, swedish, turkish
%
\expandafter\selectlanguage\expandafter{\RefLang}
+%
\larger
\newgeometry{total={150mm, 265mm},left=25mm,top=15mm}
\pagestyle{empty}
@@ -88,7 +89,7 @@ You obtain this output in \emph{YourLanguage} by compiling onedown-ref.tex with:
%
\verb|pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}'|
\\[0.7em]
-\centerline{\textbf{This document shows the commands for the \emph{\RefLang}\ language}}
+\centerline{\textbf{This document shows the commands for the \emph{\languagename}\ language}}
\begin{description}[itemsep=-0.3em]
\item[ace]: \ace
\item[Ace\Oarg{*!}]: \Ace, \Ace*, \Ace!, \Ace*!