| 1 |
%% |
| 2 |
%% This is file `typog-without-microtype-test.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% typog.dtx (with options: `without-microtype') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Copyright (C) 2024, 2025 by Ch. L. Spiel |
| 12 |
%% |
| 13 |
%% This work may be distributed and/or modified under the conditions |
| 14 |
%% of the LaTeX Project Public License, either version 1.3c of this |
| 15 |
%% license or (at your option) any later version. The latest version |
| 16 |
%% of this license is in |
| 17 |
%% https://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 19 |
%% version 2003/12/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status `maintained'. |
| 22 |
%% |
| 23 |
%% The Current Maintainer of this work is Ch. L. Spiel. |
| 24 |
%% |
| 25 |
%% This work consists of the files typog.dtx and typog.ins |
| 26 |
%% and the derived files typog.sty, slant-angle.mp, invertedmarks.mp, |
| 27 |
%% crooked-paragraphs.mp, smooth-parshapes.mp, title.mp, |
| 28 |
%% typog-example.tex, typog-minimal-test.tex, |
| 29 |
%% typog-without-microtype-test.tex |
| 30 |
%% typog-grep.pl.in, typog-grep.pl, |
| 31 |
%% typog-grep.pod, and teximan2latex.sed. |
| 32 |
%% |
| 33 |
%% |
| 34 |
\documentclass[]{article} |
| 35 |
|
| 36 |
\usepackage[english]{babel} |
| 37 |
|
| 38 |
\usepackage{csquotes} |
| 39 |
\DeclareQuoteStyle{typog-guillemets} |
| 40 |
{\doubleguillemetright} |
| 41 |
{\doubleguillemetleft} |
| 42 |
{\singleguillemetright} |
| 43 |
{\singleguillemetleft} |
| 44 |
|
| 45 |
\usepackage[uppercaselabelitemadjustments={.1em, .075em, .1em, .1em}, |
| 46 |
lowercaselabelitemadjustments={-.025em, -.05em, -.025em, -.025em}] |
| 47 |
{typog} |
| 48 |
|
| 49 |
\newcommand*{\packagename}[1]{\mbox{\textsf{#1}}} |
| 50 |
|
| 51 |
\begin{document} |
| 52 |
\begin{center} |
| 53 |
\Huge\bf\sf |
| 54 |
TypoG Examples \\ |
| 55 |
without Package~\packagename{microtype} |
| 56 |
\end{center} |
| 57 |
|
| 58 |
\bigskip |
| 59 |
|
| 60 |
\section*{No Microtype} |
| 61 |
|
| 62 |
This example \LaTeX-document uses package~\packagename{typog} |
| 63 |
\emph{without} package~\packagename{microtype}. |
| 64 |
|
| 65 |
We want \packagename{typog} to be as usable as possible even without |
| 66 |
the nice features that \packagename{microtype} offers. |
| 67 |
After all \packagename{typog} is just a front end for it. |
| 68 |
|
| 69 |
\section*{No EnumItem} |
| 70 |
|
| 71 |
We intentionally do not load package~\packagename{enumitem}, either. |
| 72 |
So, we can test whether \packagename{typog} correctly patches the |
| 73 |
plain \LaTeX{} definition if environment~\texttt{itemize}. |
| 74 |
|
| 75 |
The vertical alignment of the label items was setup for |
| 76 |
uppercase (ABC\typoguppercaseadjustcheck{ABCXYZ}XYZ) and for |
| 77 |
lowercase (ace\typoglowercaseadjustcheck{acexyz}xyz), though |
| 78 |
this is not necessary for the test. |
| 79 |
|
| 80 |
\uppercaseadjustlabelitems{*} |
| 81 |
\begin{itemize} |
| 82 |
\item Level i |
| 83 |
\item Sublist \dots |
| 84 |
\begin{itemize} |
| 85 |
\item Level ii |
| 86 |
\item Sublist \dots |
| 87 |
\begin{itemize} |
| 88 |
\item Level iii |
| 89 |
\item Sublist \dots |
| 90 |
\begin{itemize} |
| 91 |
\item Level iv |
| 92 |
\end{itemize} |
| 93 |
\end{itemize} |
| 94 |
\end{itemize} |
| 95 |
\end{itemize} |
| 96 |
|
| 97 |
\section*{CSQuotes} |
| 98 |
|
| 99 |
As we are testing a special configuration here anyhow, |
| 100 |
we hook up our quotes with package~csquotes |
| 101 |
to check whether they interact ok. |
| 102 |
{\setquotestyle{typog-guillemets}% |
| 103 |
\enquote{This is the outer part of the phrase |
| 104 |
which contains the \enquote{inner part}.}} |
| 105 |
\end{document} |
| 106 |
\endinput |
| 107 |
%% |
| 108 |
%% End of file `typog-without-microtype-test.tex'. |