预期的“长腿 n”结果是“6”。how come the words after the long leg n will appear in next line? {where l is the log likelihood function,\\ \mathnrleg is the vector of nuisance parameters,\\ ($\hat{\theta}$,$\hat{\mathnrleg}$) is the maximum likelihood estimator of($\theta$,$\mathnrleg$),\\ $\tilde{\mathnrleg}$ is the restricted maximum likelihood estimator of $\mathnrleg$ under $\text {H}_0.$}
梅威瑟:
\documentclass[12pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[T1]{tipa}
\usepackage{tipx}
\usetheme{Frankfurt}
\usefonttheme{serif}
\usecolortheme{dolphin}
\begin{document}
\begin{frame}
\textcolor{blue}{\underline {Likelihood Ratio Method}}
\begin{itemize}
\item For a scalar parameter of interest $\theta$, the likelihood ratio statistic for testing the null hypothesis, $\text{H}_0$: $\theta$= $\theta_0$ versus $\text{H}_1$: $\theta$ $\neq$ $\theta_0$ is given as,
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
$$\Psi=2[l(\hat{\theta},\hat{\textipa{\textnrleg}}$$
\end{itemize}
\end{frame}
\end{document}
答案1
如果您的目的是将“长尾 n”用作数学符号,请为其定义一个命令。由于\textnrleg
应该出现在文本中,请\textnormal
在其周围添加。使用\text
是不够的,因为字体缺少其他形状,如果您仅在斜体或粗体上下文中tipx
使用,您会再次得到 6 。\text{\textnrleg}
我最小化了代码,因为beamer
没有必要。
\documentclass{article}
\usepackage{amsmath}
\usepackage[T1]{tipa}
\usepackage{tipx}
\newcommand{\mathnrleg}{\textnormal{\textnrleg}}
\begin{document}
\[
\Psi=2[l(\hat{\theta},\hat{\mathnrleg}
\]
\end{document}
在任何情况下都不要使用$$
LaTeX 文档。