Fonts & Character SetsFont style other then normal font of document

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Font style other then normal font of document

Post by Ijon Tichy »

sheenshahid wrote:The name of this font is " old English " , which I noted from Microsoft word.
If this is the font from the Microsoft font library the correct name would be "Old English Text MT". If the font has been installed correctly you just have to replace "TeX Gure Chorus" in my example above by the correct font name:
% Important: You have to use LuaLaTeX or XeLaTeX instead of PDFLaTeX zu
%            compile this file!
\documentclass{article}

\usepackage{fontspec}
\usepackage{blindtext}
\usepackage[english]{babel}

\setmainfont{TeX Gyre Termes}% Use the Times clone TeX Gyre Termes as main font.
\newfontfamily{\otherfamily}{Old English Text MT}% Load "Old English Text MT" as an additional font family.

\begin{document}
\begin{titlepage}
  {\otherfamily This is the name of the university.}
  \vfill
  {\Huge\bfseries The Name of the Game\par}
  \bigskip
  {\large\bfseries Me and Boby McGee\par}
  \vfill\vfill\vfill
\end{titlepage}
\tableofcontents
\blinddocument
\end{document}
to get
Image
BTW: The name of the font file is OLDENGL.TTF. So can also copy that font file to the document directory and use \newfontfamily{\otherfamily}{OLDENGL.TTF} to load the font by filename instead of font name. This even works without font installation and if loading the font by font name fails.

As you can see, using fontspec with LuaLaTeX or XeLaTeX is very easy.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
sheenshahid
Posts: 20
Joined: Fri Jan 24, 2020 10:31 am

Font style other then normal font of document

Post by sheenshahid »

Here is my latex file. I just have to write name of the the university in old English style ("Old English Text MT") and the things may same. kindly use latex only and help me i have very short time now.
I request u to solve my problem

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,a4paper,openany]{report}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage{amsmath,amsthm}
\usepackage{amssymb}
\usepackage{epsfig}
\usepackage[T1]{fontenc}
\usepackage{palatino}
\usepackage{caption}
\usepackage{mathpazo}
%\usepackage{hang,hangindent=-.5cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\textwidth  5.8in \textheight 8.5 in \topmargin 0.0in \oddsidemargin
0.0in \evensidemargin 0.0in \setlength{\parindent}{12pt}
\pagestyle{plain}
\renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{ax}{Axiom}
\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]
\theoremstyle{remark}
\newtheorem{rem}{Remark}[section]
\newtheorem*{notation}{Notation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\baselinestretch}{1.5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\numberwithin{equation}{chapter}
\begin{document}
%\renewcommand{\thepage}{\roman{page}}[roman page number from title]
\renewcommand{\thepage}{}
\vspace{3cm}
\begin{center}
\section*{\textbf{\Huge{title}}}
\end{center}
%\begin{figure}[htb] % Default value is [tbp]
%\begin{center}
%\epsfig{file=iub.eps, width=0.9 in}
%\end{center}
%\end{figure}
\begin{center}
By
\end{center}
\begin{center}
{\Large\bf{Student name}\\ [2 cm]
\end{center}
\begin{center}
{\Large\bf{Dissertation}}
\end{center}
\begin{center}
%\\ \quad
{\bf{Session 2019}}\\[3 cm]
{\Large\bf{Department name}}\\
     {\Large\bf{here is my University name}}\\
      {\Large\bf{city,country}}\\
      2020
\end{center}

\newpage


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\pagenumbering{roman}
\begin{center}
\section*{Student's Declaration}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\begin{center}
\section*{Supervisor's Declaration}
\end{center}
%\addcontentsline{toc}{section}{Supervisor's Declaration}{}
\newpage
\begin{center}
\section*{Certificate}
\end{center}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
\section*{Acknowledgements}
\end{center}
%\addcontentsline{toc}{section}{Acknowledgements}{}
\qquad\qquad \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad
\textbf{Shahid Rafiq}

\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\begin{center}
%\section*{\underline{\textsl{Dedication}}}
%\end{center}
%\addcontentsline{toc}{section}{Dedication}{}
\qquad\\[4 Cm]
\qquad\qquad \qquad\qquad\qquad\qquad\ \textbf{To my mother, wife and kids}
\qquad\qquad \qquad\qquad\qquad\qquad\qquad\qquad %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\tableofcontents
%\newpage
%\listoftables
%\addcontentsline{toc}{section}{List of Tables}{}
%\listoffigures
%\addcontentsline{toc}{section}{List of Figures}{}
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Preface%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter*{\begin{center}{Preface}\end{center}}
\addcontentsline{toc}{section}{Preface}{}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addcontentsline{toc}{section}{Contents}{}
\tableofcontents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\listoftables
{%
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\tablename~\oldnumberline}%
\listoftables%
}
\addcontentsline{toc}{section}{List of Tables}{}
%\renewcommand{\cftfignumwidth}{6em}
%\renewcommand{\cftfigpresnum}{Figure }

%\listoffigures
{%
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures%
}
%\renewcommand{\cftfigpresnum}{Figure }
\addcontentsline{toc}{section}{List of Figures}{}
%\listoffigures
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\section*{List of Symbols}
%\addcontentsline{toc}{section}{List of Symbols}{}
%\begin{enumerate}
%\item $u$ shows the velocity component along x-axis
%\item $v$ shows the velocity component along y-axis
%\item $w$ shows the velocity component along z-axis
%%\item $A^{b}_{n}$, $H^{b}_{n}$, $S^{a}_{n,e}$ and $S^{a}_{n,o}$ are proposed subdivision schemes
%%\item $A_{n}(z)$ and $P_{n}(z)$ are Laurent polynomials of the subdivision schemes
%    \end{enumerate}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}
 %\include{Chap_1}
 %\include{Chap_2}
 %\include{Chap_3}
 %\include{Chap_4}
 %\include{Chap_5}
 %\include{Chap_6}
% \include{Conclusions}
 %\include{reference}




\end{document}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Font style other then normal font of document

Post by Johannes_B »

Use a screenshot.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Font style other then normal font of document

Post by Stefan Kottwitz »

As Johannes said, you can write it in Word and make a Screenshot and include it using \includegraphics. You could even copy the logo from the university website to have it in its original version in the paper.

If I would be in the situation, I would run XeLaTeX as Ijon wrote just to create the single university name in the desired font as PDF, crop the PDF (pdfcrop) and use \includegraphics in the title with standard LaTeX or pdfLaTeX if the document needs it instead of XeLaTeX.

But including a screenshot or an image from the web site may be the easiest.

Stefan
LaTeX.org admin
sheenshahid
Posts: 20
Joined: Fri Jan 24, 2020 10:31 am

Font style other then normal font of document

Post by sheenshahid »

Screen shot or include graphics are not showing that display which may expected. So I m finding a way for this line in standard latex
sheenshahid
Posts: 20
Joined: Fri Jan 24, 2020 10:31 am

Font style other then normal font of document

Post by sheenshahid »

Ijon Tichy wrote:
sheenshahid wrote:The name of this font is " old English " , which I noted from Microsoft word.
If this is the font from the Microsoft font library the correct name would be "Old English Text MT". If the font has been installed correctly you just have to replace "TeX Gure Chorus" in my example above by the correct font name:
% Important: You have to use LuaLaTeX or XeLaTeX instead of PDFLaTeX zu
%            compile this file!
\documentclass{article}

\usepackage{fontspec}
\usepackage{blindtext}
\usepackage[english]{babel}

\setmainfont{TeX Gyre Termes}% Use the Times clone TeX Gyre Termes as main font.
\newfontfamily{\otherfamily}{Old English Text MT}% Load "Old English Text MT" as an additional font family.

\begin{document}
\begin{titlepage}
  {\otherfamily This is the name of the university.}
  \vfill
  {\Huge\bfseries The Name of the Game\par}
  \bigskip
  {\large\bfseries Me and Boby McGee\par}
  \vfill\vfill\vfill
\end{titlepage}
\tableofcontents
\blinddocument
\end{document}
to get
Image
BTW: The name of the font file is OLDENGL.TTF. So can also copy that font file to the document directory and use \newfontfamily{\otherfamily}{OLDENGL.TTF} to load the font by filename instead of font name. This even works without font installation and if loading the font by font name fails.

As you can see, using fontspec with LuaLaTeX or XeLaTeX is very easy.
Dear i am using latex and has also installed this font. Plz now tell me what to do,
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Font style other then normal font of document

Post by Ijon Tichy »

As already told by me and Johannes: Either use a screenshot of the small text or switch over to xelatex or lualatex as shown. xelatex and lualatex are also LaTeX. For the second suggestion, you just have to remove fontenc, palatino and mathpazo, load fontenc as shown and tell your editor to use either xelatex or lualatex.

BTW: There is several strange code in your example:
  • There is a "Missing } inserted" error in your example.
  • openany is the default of report and also doesn't change anything with single-sided documents, which it the default of report too.
  • Loading deprecated package palatino before package mathpazo doesn't make sense. BTW: Both packages do not load Times New Roman as you wrote initially. They load a Palatino clone.
  • Is is recommended not to change the layout parameters like \topmargin manually but use a package like geometry.
  • \renewcommand{\baselinestretch}{1.5} is not recommended since LaTeX2e (1994) and should be replaced either by \linespread{1.5} or (better) by usage of package setspace.
  • \renewcommand{\thepage}{} is not recommended. A general replacement would be \thispagestyle{empty} if needed in combination with \pagestyle{empty}. But in case of a title page, usage of titlepage environment would be the better suggestion.
  • Here:
    \begin{center}
    \section*{\textbf{\Huge{title}}}
    \end{center}

    the usage of \section* doesn't make any sense. And instead of starting a new center environment for every line, I would recommend to use only a single one.
  • \bf is deprecated. Also it does not hat any argument. You should replace \bf{…} by \textbf{…}, which has an argument, or {\bf …} by {\bfseries …}
  • All the \quad and \qquad are very strange. Some of them even result in an empty line. So usage of either flushleft environment or \hspace would be resommended.
  • The "List of Tables" entry to the table of contents is done after the list of tables, so it references the last page of the list of tables. It is recommended to add it at the very beginning of the list of tables or (better) use a package like bibintoc.
  • Same for the "List of Figures".
  • The correct entry level for the "List of …" entries would be chapter not section.
  • Instead of \setcounter{page}{1}\renewcommand{\thepage}{\arabic{page}} usage of \pagenumbering{arabic} would be recommended.
  • Usage of center environment inside the argument of \chapter or \chapter* is not recommended but an evil hack.
  • The "Contents" entry for the contents shows the wrong page, because of missing \cleardoublepage. Here package bibintoc would be useful too.
  • package epsfig is only a compatibility wrapper package to graphics. You are already using graphicx, so epsfig should not be needed. It is recommended to not longer use epsfig's command \psfig but replace it by graphicx's \includegraphics.
Last edited by Ijon Tichy on Sat Feb 08, 2020 5:47 pm, edited 1 time in total.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Font style other then normal font of document

Post by Johannes_B »

There is a crosspost on tex.sx
https://tex.stackexchange.com/q/526843/37907
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply