6

I'm using the genealogic symbols \textborn and \textdied from the textcomp package together with the kpfonts.

Unfortunately kpfonts loads textcomp with the [full] option (unless someone specifies notextcomp) but seems to modify the appereance of said symbols.

If you try out the following example with and without kpfonts you will observe that the symbols get changed to a much heavier, darker version when loading kpfonts.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[full]{textcomp}
%\usepackage{kpfonts}

\begin{document}

\textborn\,1984, \textdied\,2005

\end{document}

I would like to use the original version of these symbols while staying with kpfonts. To achieve this I tried saving them using \let with no success.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[full]{textcomp}
\let\oldtextdied\textdied
\let\oldtextborn\textborn
\usepackage{kpfonts}

\begin{document}

\textborn\,1984, \textdied\,2005

\oldtextborn\,1984, \oldtextdied\,2005

\end{document}

Also loading kpfonts with notextcomp and textcomp on its own doesn't change this behavior.

Any ideas how to preserve the original appereance of these symbols?

  • You can use \usepackage[euro,warn]{textcomp} \usepackage[notextcomp]{kpfonts} but it will affect other chars too. – Ulrike Fischer Apr 16 '15 at 9:08
6

A full solution that neutralizes the pesky encoding specific commands:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[full]{textcomp}
\usepackage{kpfonts}

\DeclareTextSymbol{\textbornstd}{TS1}{98}
\DeclareTextSymbol{\textdiedstd}{TS1}{100}
\UndeclareTextCommand{\textborn}{TS1}
\UndeclareTextCommand{\textdied}{TS1}
\makeatletter
\DeclareTextCommandDefault{\textbornstd}{\tc@check@symbol2\textbornstd}
\DeclareTextCommandDefault{\textdiedstd}{\tc@check@symbol2\textdiedstd}
\makeatother
\DeclareRobustCommand{\textborn}{{\fontfamily{cmr}\selectfont\textbornstd}}
\DeclareRobustCommand{\textdied}{{\fontfamily{cmr}\selectfont\textdiedstd}}


\begin{document}

\textborn\,1984, \textdied\,2005

\end{document}

This is the output

enter image description here

This is the output when \usepackage{kpfonts} and the added code are commented out

enter image description here

So you see that the European Modern TS1 glyphs are used in both cases.

|improve this answer|||||
7

A hacky solution:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{kpfonts}
\newcommand{\oldtextdied}{{\fontfamily{cmr}\selectfont\textdied}}
\newcommand{\oldtextborn}{{\fontfamily{cmr}\selectfont\textborn}}

\begin{document}

\textborn\,1984, \textdied\,2005

\oldtextborn\,1984, \oldtextdied\,2005 

\end{document}

enter image description here

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.