summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/substitutefont/greek-palatino-didot.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/substitutefont/greek-palatino-didot.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/substitutefont/greek-palatino-didot.tex')
-rw-r--r--macros/latex/contrib/substitutefont/greek-palatino-didot.tex91
1 files changed, 91 insertions, 0 deletions
diff --git a/macros/latex/contrib/substitutefont/greek-palatino-didot.tex b/macros/latex/contrib/substitutefont/greek-palatino-didot.tex
new file mode 100644
index 0000000000..e8bddaf56c
--- /dev/null
+++ b/macros/latex/contrib/substitutefont/greek-palatino-didot.tex
@@ -0,0 +1,91 @@
+% Example and test for the substitutefont package:
+\documentclass[a4paper,DIV14]{scrartcl}
+\usepackage{parskip}
+\usepackage[LGR,T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[greek,english]{babel}
+\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
+\usepackage{bookmark}
+\pagestyle{empty}
+
+\usepackage{substitutefont}
+% Serif
+\usepackage[sc,slantedGreek]{mathpazo}
+\substitutefont{LGR}{\rmdefault}{udidot}
+
+% Sans
+\usepackage[scale=.90]{tgheros}
+\substitutefont{LGR}{\sfdefault}{neohellenic}
+
+% Monospaced
+% \usepackage[matchlowercase]{tgcursor}
+\renewcommand{\ttdefault}{txtt}
+\substitutefont{LGR}{\ttdefault}{cmtt} % CB fonts
+% \substitutefont{LGR}{\ttdefault}{fdm} % Droid Sans Mono
+
+
+% Teststring
+\newcommand{\alphabet}{%
+ abcdefghjiklmnoprqrstuvwxyzäöüß
+ \foreignlanguage{greek}{abgdezhjiklmnxoprsctufqyw} \\
+ ABCDEFGHJIKLMNOPRQRSTUVWXYZÄÖÜ
+ \foreignlanguage{greek}{ABGDEZHJIKLMNXOPRSTUFQYW}
+}
+
+\begin{document}
+
+\section*{Palatino/Helvetica/TXTT and Greek replacements}
+
+Default font families after loading mathpazo, tgheros, and tgcursor:\\
+familydefault: \familydefault{},
+rmdefault: \rmdefault{},
+sfdefault: \sfdefault{},
+ttdefault: \ttdefault{}
+
+Palatino (mathpazo) with GFS Didot:
+
+\begin{description}
+ \item [Normal:] \alphabet
+
+ \item [it:] \textit{\alphabet}
+
+ \item [sl:] \textsl{\alphabet}
+
+ \item [bf:] \textbf{\alphabet}
+
+ \item [bf it:] \textbf{\textit\alphabet}
+
+ \item [sc:] \textsc{\alphabet}
+
+ % \item [bf sc:] \textsc{\textbf\alphabet}
+
+\end{description}
+
+Helvetica (TG Heros) with GFS Neohellenic:
+
+\begin{description}
+
+ \item [sf:] \textsf{\alphabet}
+
+ \item [sf bf:] \textsf{\textbf\alphabet}
+
+ \item [sf sl:] \textsf{\textsl\alphabet}
+
+ \item [sf sc:] \textsf{\textsc\alphabet}
+
+\end{description}
+
+There is no Greek extension for the monospaced standard PS font Curier.
+A good replacement are the teletype fonts from
+\href{http://www.ctan.org/pkg/newtx}{txfonts} and
+\href{http://www.ctan.org/pkg/cbgreek-complete}{CB-Greek}:
+
+\begin{description}
+
+ \item [tt:] \texttt{\alphabet}
+ % \item [tt bf:] \texttt{\textbf\alphabet} % not in CB-Greek
+ \item [tt it:] \texttt{\textit\alphabet}
+
+\end{description}
+
+\end{document}