| 1 |
% arara: lualatex: { interaction: nonstopmode } |
| 2 |
% -------------------------------------------------------------------------- |
| 3 |
% the EMBRAC package |
| 4 |
% |
| 5 |
% Upright Brackets in Emphasized Text |
| 6 |
% |
| 7 |
% -------------------------------------------------------------------------- |
| 8 |
% Clemens Niederberger |
| 9 |
% Web: https://github.com/cgnieder/embrac/ |
| 10 |
% E-Mail: [email protected] |
| 11 |
% -------------------------------------------------------------------------- |
| 12 |
% Copyright 2012--2021 Clemens Niederberger |
| 13 |
% |
| 14 |
% This work may be distributed and/or modified under the |
| 15 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 16 |
% of this license or (at your option) any later version. |
| 17 |
% The latest version of this license is in |
| 18 |
% http://www.latex-project.org/lppl.txt |
| 19 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 20 |
% version 2008/05/04 or later. |
| 21 |
% |
| 22 |
% This work has the LPPL maintenance status `maintained'. |
| 23 |
% |
| 24 |
% The Current Maintainer of this work is Clemens Niederberger. |
| 25 |
% -------------------------------------------------------------------------- |
| 26 |
% The embrac package consists of the files |
| 27 |
% - embrac.sty, embrac_en.tex, embrac_en.pdf, embrac_kerning_test.tex and |
| 28 |
% README |
| 29 |
% -------------------------------------------------------------------------- |
| 30 |
% If you have any ideas, questions, suggestions or bugs to report, please |
| 31 |
% feel free to contact me. |
| 32 |
% -------------------------------------------------------------------------- |
| 33 |
\documentclass{scrartcl} |
| 34 |
\usepackage[T1]{fontenc} |
| 35 |
% \usepackage{fontspec} |
| 36 |
|
| 37 |
% load desired font, for example: |
| 38 |
% \usepackage{libertine} |
| 39 |
% \setmainfont{Minion Pro} |
| 40 |
\usepackage[p,osf]{ETbb} % osf in text, tabular lining figures in math |
| 41 |
\usepackage[scaled=.95,type1]{cabin} % sans serif in style of Gill Sans |
| 42 |
\usepackage[varqu,varl]{zi4}% inconsolata typewriter |
| 43 |
\usepackage[T1]{fontenc} % LY1 also works |
| 44 |
\usepackage[libertine,vvarbb]{newtxmath} |
| 45 |
|
| 46 |
|
| 47 |
\usepackage{embrac} |
| 48 |
|
| 49 |
\begin{document} |
| 50 |
% see the default: |
| 51 |
\emph{This is emphasized [sic] text with [long] bla.} |
| 52 |
|
| 53 |
\emph{This is emphasized text [as you can see].} |
| 54 |
|
| 55 |
\emph{This is (sic) emphasized text with (long) bla.} |
| 56 |
|
| 57 |
\emph{This is emphasized text (as you can see).} |
| 58 |
|
| 59 |
\hrulefill |
| 60 |
|
| 61 |
% without additional kerning at all: |
| 62 |
\RenewEmph{[}{]} |
| 63 |
\RenewEmph{(}{)} |
| 64 |
\emph{This is emphasized [sic] text with [long] bla.} |
| 65 |
|
| 66 |
\emph{This is emphasized text [as you can see].} |
| 67 |
|
| 68 |
\emph{This is (sic) emphasized text with (long) bla.} |
| 69 |
|
| 70 |
\emph{This is emphasized text (as you can see).} |
| 71 |
|
| 72 |
\hrulefill |
| 73 |
|
| 74 |
% your changes: |
| 75 |
% oo(io ic)oc |
| 76 |
\RenewEmph{[}[0pt,-.09em]{]}[.055em,-.09em] |
| 77 |
\ChangeEmph{(}[-.01em,-.09em]{)}[.04em,-.09em] |
| 78 |
\emph{This is emphasized [sic] text with [long] bla.} |
| 79 |
|
| 80 |
\emph{This is emphasized text [as you can see].} |
| 81 |
|
| 82 |
\emph{This is (sic) emphasized text with (long) bla.} |
| 83 |
|
| 84 |
\emph{This is emphasized text (as you can see).} |
| 85 |
|
| 86 |
\end{document} |