이러한 "케이스"의 형식을 어떻게 더 잘 지정할 수 있나요?

이러한 "케이스"의 형식을 어떻게 더 잘 지정할 수 있나요?

다음 분수를 편집하여 "x"가 더 커지도록 하려면 어떻게 해야 합니까?

\documentclass{minimal}
\usepackage{amsmath}

\begin{document}
\(\tfrac{x_{\left(\tfrac{n}{2}\right)} + x_{\left(\tfrac{n}{2} + 1\right)}}{2}\)
\end{document}

답변1

\dfracLaTeX가 전체 크기의 분수를 사용하도록 강제하는 데 사용할 수 있습니다 . 또한 인덱스에서 분수를 사용할 때 괄호를 제거하고 대신 사용하는 것이 좋습니다 n/2( 첫 번째 경우 참조).\frac{n}{2}

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
    p = \begin{cases}
        \dfrac{x_{n/2} + x_{n/2+1}}{2}, & \text{falls $n$ gerade}\\[1em]
        \dfrac{x_{\frac{n}{2}+1} + x_{\frac{n}{2}+2}}{2}, & \text{falls $n$ ungerade}
    \end{cases}
\]
\end{document}

결과는 다음과 같습니다.

여기에 이미지 설명을 입력하세요

답변2

어떤 면에서는 비슷하다@ttnick의 첫 번째 솔루션\frac{1}{2}, 나머지 자료보다 먼저 용어를 배치한다는 점을 제외하면 .

여기에 이미지 설명을 입력하세요

\frac{1}{2}나머지 자료보다 앞에 있는 버전이 더 읽기 쉽다는 데 동의하시나요 ?

\documentclass{article}
\usepackage{amsmath} % for 'cases' environment

\begin{document}
\[
\begin{cases}
\frac{1}{2}( x_{n/2} + x_{n/2 + 1}) &\text{falls $n$ gerade,}\\[\jot]  % ok 
\frac{x_{n/2} + x_{n/2 + 1}}{2}     &\text{falls $n$ gerade.} % not quite ok
\end{cases}
\]  
\end{document}

관련 정보