1

Can someone help me how can I use different font just for one line in my LaTeX report in Acknowledgement?

My settings are:

documentclass[a4paper,fontsize=12.5pt,DIV15,BCOR20mm,oneside]{scrbook}

\usepackage[english]{babel}

enter image description here

Kind regards,

Dipak

  • This has probably been answered here: tex.stackexchange.com/questions/25249 See the list of links for the 'flavors of TeX' you're using. – TivV Jan 24 at 11:32
  • Kind user no no :-( the green check it's not mine and it doesn't belong to me. I thank you but for my correctness it is right that you give it back to the previous user. I always wish you the best. – Sebastiano Jan 25 at 22:04
1

My proposal is to use two different font families (here I have used to compile pdfLaTeX instead of XeLaTeX or LuaLaTeX). In the first version I have used calligra package and you can obtain the classic Computer Modern called CM (1st font default family) and calligra calligraphic font. You will obtain this result.

enter image description here

\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{calligra}
\begin{document}

Instead of my parents, I will have
\textcalligra{To my parents}
\end{document}

The second option, maybe you'll like it better is the following one, ZAPF CHANCERY with your font family called pzc. enter image description here

Here you will have this result.

\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\newcommand*\zapchan{\fontfamily{pzc}\selectfont}
\usepackage[T1]{fontenc}
\begin{document}
Instead of my parents, I will have
\zapchan{To my parents}
\end{document}

enter image description here

I add also a link of the calligraphic font in the site LaTeX Font Catalogue: https://www.tug.org/FontCatalogue/calligraphicalfonts.html

  • There are a few different problems with this. The fonts aren’t scaled, and the \zapchan command is going to bleed out of the parentheses and change all the text after it. – Davislor Jan 26 at 17:33
  • Meanwhile thank you for your advice. Very kind Davislor have you seen the comment to the user? :-( I not what the check mark :-( I have not tried but the "my parents" should to stay at the end of a letter and not in line with the text. My was an example. – Sebastiano Jan 27 at 16:02
2

In the Modern Toolchain

This example uses TeX Gyre Chorus, which is a free clone of Zapf Chancery. You can substitute any font of your choice.

\documentclass{scrbook}
\usepackage[english]{babel}
\usepackage{fontspec}

\defaultfontfeatures{Scale = MatchLowercase}
\newfontface\dedicationfont{TeXGyreChorus-MediumItalic}[Ligatures=Common]
\begin{document}

{\dedicationfont To my Parents}

\end{document}

TeX Gyre Chorus sample

With Legacy Fonts

My advice is to use modern fonts when you can, and 8-bit legacy fonts when you have to. If you have to, TeX Gyre Chorus is the family qzc. You can look for others at the LaTeX Font Catalogue.

Here is a version compatible with PDFLaTeX:

\documentclass{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % The default since 2018
\usepackage[english]{babel}

\newcommand\dedicationfont{\fontfamily{qzc}\itshape\mdseries\selectfont}

\begin{document}

{\dedicationfont To my Parents}

\end{document}

To be able to write something like \textdedication{To my parents}, add to the preamble

\DeclareTextFontCommand{\textdedication}{\dedicationfont}

If you simply try to use \newcommand*, the formatting will bleed through and affect the following text.

  • 2
    Thank you @Davislor. Feeling blessed with "To my parents"! – DipakRaje Jan 24 at 17:06
1

Hope this may helps you:

\documentclass[a4paper,fontsize=12.5pt,DIV15,BCOR20mm,oneside]{scrbook}

\usepackage[english]{babel}
\usepackage{eufrak}

\begin{document}

$\mathfrak{To\ my\ Parents}$

\end{document}

Output

enter image description here

Another method

\documentclass[a4paper,fontsize=12.5pt,DIV15,BCOR20mm,oneside]{scrbook}

\usepackage[english]{babel}
\usepackage{yfonts}

\begin{document}

\textfrak{To\ my\ Parents}

\end{document}

Output

enter image description here

  • 2
    Nothing says "I love you, parents" like mathematical Fraktur. But seriously: I think they are looking for a solution that makes it possible to use any possible font (and probably ones made for setting actual text, not mathematical expressions). – TivV Jan 24 at 11:46
  • 2
    The "long s" is incorrect at the end of a word. (It would also be very confusing in math, so I am suspicious of how yfonts is being used. Any good fraktur font should have the "normal" s.) – barbara beeton Jan 24 at 14:41
  • @barbarabeeton The normal s is typed as s: (I think it's a ligature in the font). I also seem to remember that yfonts is tailored for metafont, while in a modern installation one should use the oldgerm package. – campa Jan 24 at 15:01
  • @campa -- Thanks for the details. Yes, I'm pretty sure that yfonts is metafont-based, so essentially superseded. – barbara beeton Jan 24 at 15:04

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.