
Calibri로 문서를 작성해야 합니다. 그 후에 나의 최소한의 예를 찾아보십시오. 문제는 수학을 포함하면 디자인이 "추악"해 보인다는 것입니다.
세리프 수학 글꼴과 숫자를 Calibri에 가까운 SANS-SERIF로 변경하는 방법이 있습니까?
\documentclass[11pt]{article}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{lipsum}
\setmainfont[Mapping=tex-text]{Calibri}
\begin{document}
\begin{table}
\begin{center}
\begin{tabular}{l c }
\hline
& Model 1 \\
\hline
(Intercept) & $10.9983^{***}$ \\
& $(0.0420)$ \\
a & $0.0040^{**}$ \\
& $(0.0016)$ \\
b & $0.0053^{***}$ \\
& $(0.0012)$ \\
c & $0.0052^{***}$ \\
& $(0.0001)$ \\
\hline
R$^2$ & 0.9317 \\
Adj. R$^2$ & 0.9309 \\
Num. obs. & 243 \\
\hline
\multicolumn{2}{l}{\scriptsize{\textsuperscript{***}$p<0.01$,
\textsuperscript{**}$p<0.05$,
\textsuperscript{*}$p<0.1$}}
\end{tabular}
\caption{Statistical models}
\label{table:coefficients}
\end{center}
\end{table}
Loremipsumdolorsitamet,consectetueradipiscingelit. Utpuruselit,ves?bu-
lum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam
arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula
augueeuneque.
\[
\bar{x} = \frac{x_1+x_2+\cdots +x_n}{n}
\]
\end{document}
답변1
사용 unicode-math
:
\documentclass[11pt]{article}
\usepackage{unicode-math}
\usepackage{lipsum}
\setmainfont[Mapping=tex-text]{Calibri}
\setmathfont{XITS Math}% for the symbols
\setmathfont[range=\mathup]{Calibri}
\setmathfont[range=\mathit]{Calibri-Italic}
\begin{document}
\begin{table}
\centering
\begin{tabular}{l c }
\hline
& Model 1 \\
\hline
(Intercept) & $10.9983^{***}$ \\
& $(0.0420)$ \\
a & $0.0040^{**}$ \\
& $(0.0016)$ \\
b & $0.0053^{***}$ \\
& $(0.0012)$ \\
c & $0.0052^{***}$ \\
& $(0.0001)$ \\
\hline
R$^2$ & 0.9317 \\
Adj. R$^2$ & 0.9309 \\
Num. obs. & 243 \\
\hline
\multicolumn{2}{l}{\scriptsize{\textsuperscript{***}$p<0.01$,
\textsuperscript{**}$p<0.05$,
\textsuperscript{*}$p<0.1$}}
\end{tabular}
\caption{Statistical models}\label{table:coefficients}
\end{table}
Loremipsumdolorsitamet,consectetueradipiscingelit. Utpuruselit,ves?bu-
lum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam
arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula
augueeuneque.
\[
\bar{x} = \frac{x_1+x_2+\cdots +x_n}{n}
\]
\end{document}
답변2
사용 가능한 유니코드 산세리프 수학 글꼴이 없습니다. 문서에서 수학을 약간만 사용하는 경우 mathspec
도움이 될 수 있습니다.
Calibri가 없기 때문에 TeX Gyre Heros를 사용합니다.
\documentclass[11pt]{article}
\usepackage{mathspec}
\usepackage{lipsum}
\setmainfont[Ligatures=TeX]{TeX Gyre Heros}
\setmathsfont(Digits,Latin,Greek){TeX Gyre Heros}
\begin{document}
\begin{table}
\centering
\begin{tabular}{l c }
\hline
& Model 1 \\
\hline
(Intercept) & $10.9983^{***}$ \\
& $(0.0420)$ \\
a & $0.0040^{**}$ \\
& $(0.0016)$ \\
b & $0.0053^{***}$ \\
& $(0.0012)$ \\
c & $0.0052^{***}$ \\
& $(0.0001)$ \\
\hline
R$^2$ & $0.9317$ \\
Adj. R$^2$ & $0.9309$ \\
Num. obs. & $243$ \\
\hline
\multicolumn{2}{l}{\scriptsize{\textsuperscript{***}$p<0.01$,
\textsuperscript{**}$p<0.05$,
\textsuperscript{*}$p<0.1$}}
\end{tabular}
\caption{Statistical models}
\label{table:coefficients}
\end{table}
\lipsum*[2]
\[
\bar{x} = \frac{x_1+x_2+\cdots +x_n}{n}
\]
\end{document}
문서의 일부 변경 사항을 확인하세요. 로드하지 마세요 xltxtra
. center
내부에서는 사용하지 마세요 table
. 표시된 방정식 앞에 빈 줄을 두지 마십시오.
아마도 테이블을 조판하는 더 좋은 방법은 다음을 사용하는 것 siunitx
입니다 booktabs
.
\documentclass[11pt]{article}
\usepackage{mathspec}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{lipsum}
\setmainfont[Ligatures=TeX]{TeX Gyre Heros}
\setmathsfont(Digits,Latin,Greek){TeX Gyre Heros}
\begin{document}
\begin{table}
\newcommand\tnote[1]{${}^{#1}$}
\centering
\begin{tabular}{
l
S[table-format=2.4,
table-space-text-post=\tnote{***},
]
}
\toprule
& {Model 1} \\
\midrule
(Intercept) & 10.9983\tnote{***} \\
\addlinespace[-.4ex]
& {\footnotesize(0.0420)} \\
a & 0.0040\tnote{**} \\
\addlinespace[-.4ex]
& {\footnotesize(0.0016)} \\
b & 0.0053\tnote{***} \\
\addlinespace[-.4ex]
& {\footnotesize(0.0012)} \\
c & 0.0052\tnote{***} \\
\addlinespace[-.4ex]
& {\footnotesize(0.0001)} \\
\midrule
R$^2$ & 0.9317 \\
Adj. R$^2$ & 0.9309 \\
Num. obs. & {243} \\
\bottomrule
\multicolumn{2}{l}{\scriptsize{\textsuperscript{***}$p<0.01$,
\textsuperscript{**}$p<0.05$,
\textsuperscript{*}$p<0.1$}}
\end{tabular}
\caption{Statistical models}
\label{table:coefficients}
\end{table}
\lipsum*[2]
\[
\bar{x} = \frac{x_1+x_2+\cdots +x_n}{n}
\]
\end{document}