
라텍스에서 간단한 목록 형식으로 알고리즘을 작성하려고 합니다.
첫 번째 지점에서는 '알파' 기호와 그 뒤에 아래첨자 'out'이 필요합니다.
이렇게 했는데 마음에 들지 않는 것 같고 여러 가지 오류가 발생하고 이상한 출력이 나오는 것 같습니다.
\begin{document}
\section{Algorithm}
\begin{footnotesize}
\begin{itemize}[noitemsep]
\item A maximum probability \textalpha _{out} for removal is pre-specified,
\item Step 2...,
\item Step 3...,
\item Step 4...,
\end{itemize}
\end{footnotesize}
\end{document}
{textgreek}
이 글을 게시하기 전에 설명된 패키지 도 사용해 보았습니다.여기, 하지만 그것도 작동하지 않는 것 같았습니다. 제가 뭔가 잘못하고 있는 게 틀림없어요.
특수 문자가 포함된 목록을 구현하는 쉬운 솔루션이 있습니까?
미리 감사드립니다.
답변1
알파의 경우 $\alpha_{out}$
, 또는 $\alpha_{\mbox{out}}$
또는 $\alpha_{\text{out}}$
또는... 을 사용하지 않는 이유는 무엇입니까?
답변2
textgreek
이 패키지가 설치된 업데이트된 설치가 있는 경우 텍스트 모드에서 그리스 문자를 사용하는 것이 좋습니다. 다른 옵션은 inputenc
유니코드 문자 또는 babel
. 패키지 upgreek
및 textgreek
. 아래 첨자의 경우 \textsubscript
주석으로 사용하거나 추가 fixltx2e
패키지 없이 또는 Werner가 말한 패키지와 함께 \raisebox
수학 모드에서 또는 패키지 와 함께 사용할 수 있습니다 . 예:_{\text{}}
amsmath
_{\textrm{}}
amstext
\documentclass{article}
\usepackage[greek,english]{babel} % for 1st solution, no math mode
\usepackage[utf8]{inputenc} % for 2nd solution, no math mode
\usepackage{fixltx2e, textgreek} % for 3rd solution, no math mode
\usepackage{amstext,upgreek} % for 4th solution, math mode
\usepackage{amstext,txfonts} % for 5th solution, "fake" text mode
\def\alphaout{\ensuremath\alphaup\raisebox{-.3ex}{\scriptsize out}}
\begin{document}
{\greektext a}\raisebox{-.3ex}{\scriptsize out}
α\raisebox{-.3ex}{\scriptsize out}
\textalpha\textsubscript{out}
$\upalpha_{\textrm{out}}$
\alphaout
\end{document}