[Tutorial de LaTeX]
03. Configuración del tamaño de fuente de LaTeX
En LaTeX, una fuente tiene 5 propiedades, a saber:
Codificación de fuentes: Codificación de fuentes corporales, Codificación de fuentes matemáticas
Familia de fuentes: Roman, Sans Serif, Impresora
Familia de fuentes: Peso, Ancho
Forma de fuente: Vertical, Cursiva, Pseudo-cursiva, Versícula
Tamaño de fuente: Pequeño Mediano Grande, etc.
Familia de fuentes (romana, sans serif, fuente de impresora)
Use el comando de configuración de la familia de fuentes aquí
Familia tipográfica | establecer contenido |
---|---|
fuente romana | \textrm{xx} |
fuente sans serif | \textsf{x} |
fuente de impresora | \texttt{xx} |
\documentclass{
article}
\begin{
document}
%\maketitle % 让导言区设置的title生成
\textrm{
\Huge XXX} % textrm设置为罗马字体罗马字体
\textsf{
\Huge XXX} % textsf设置为无衬线字体
\texttt{
\Huge XXX} % texttt设置为打印机字体
\end{
document}
declaración de fuente
\rmfamily se aplica al siguiente texto
{\rmfamily} solo se aplica al texto dentro de {}
fuentes Sans serif, las fuentes de impresora también se configuran como se indica arriba
peso de fuente, ancho
Use \textbf
o \bfseries
puede poner en negrita la fuente
md es medio según el significado literal, fuente en negrita bf
\documentclass{
article}
% 正文区
\begin{
document}
\textmd{
aa}
\textbf{
aa} % 字体加粗
{
\mdseries aa}
{
\bfseriesaa} % 字体加粗
\end{
document}
Fuente vertical, cursiva, pseudocursiva, versalitas
% 导言区
\documentclass{
article}
% 正文区
\begin{
document}
\begin{
document}
%\maketitle % 让导言区设置的title生成
\textup{
Hello world by LaTeX} %直立
\textit{
Hello world by LaTeX} %斜体
\textsl{
Hello world by LaTeX} %伪斜体
\textsc{
Hello world by LaTeX} %小型大写
%只对{
}括号内管用
{
\upshape Hello world by LaTeX}%直立
{
\itshape Hello world by LaTeX}%斜体
{
\slshape Hello world by LaTeX}%伪斜体
{
\scshape Hello world by LaTeX}%小型大写粗
\end{
document}
representaciones
tamaño de fuente
patrón mundial
En el área de introducción
al comienzo del documento, establezca el tamaño de fuente de todo el artículo, como: 12pt
\documentclass[12pt]{
article}
modo local
Los comandos para establecer el tamaño de fuente de pequeño a grande son:
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
\documentclass[12pt]{
article}
\begin{
document}
%\maketitle % 让导言区设置的title生成
Hello world by LaTeX.
\tiny Hello world by LaTeX.
\scriptsize Hello world by LaTeX.
\footnotesize Hello world by LaTeX.
\small Hello world by LaTeX.
\normalsize Hello world by LaTeX.
\large Hello world by LaTeX.
\Large Hello world by LaTeX.
\LARGE Hello world by LaTeX.
\huge Hello world by LaTeX.
\Huge Hello world by LaTeX.
\end{
document}