如何在PDF中嵌入LaTeX中的所有字体

发布网友

我来回答

1个回答

热心网友

最近论文用LaTeX比较多,因为找不到一些冷门语言的模板,所以只好手动缩进手动改字体。
下面的LaTeX代码展示的是在正文中插入Courier字体,关键字加粗次行缩进的内容。
经瓦实验完全通过。\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{courier}
\begin{document}
\section{Code}
Blahblahblah
\\
\\
{\fontfamily{\ttdefault}\selectfont
\textbf{package}
Switcher
\textbf{is}
\\
\indent
\textbf{procere}
Exchange
(X,
Y
:
\textbf{in
out}
Flout);\\
\indent
---\#
\textbf{derives}
X
\textbf{from}
Y
\&
\\
\indent
---\#
Y
\textbf{from}
X;\\
\indent
---\#
\textbf{post}
X
=
Y$\sim$
\textbf{and}
Y
=
X$\sim$;\\
\textbf{end}
Switcher;\\
}
\\
\\
BlahBlah
\end{document}

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com