설명 항목 라벨이 블록을 통해 오버플로됨

설명 항목 라벨이 블록을 통해 오버플로됨
\documentclass{beamer}
\usetheme{Copenhagen}
\begin{document}
\begin{frame}{Proton Pump Inhibitor use and the Risk of Chronic Kidney Disease }
\framesubtitle{Benjamin Lazarus et al, in JAMA Intern Med. 2016;176(2)  }
\begin{block}{Result}
    \begin{description}
        \item [Hazard ratio {\textit{unadjusted analysis}}:]1.45 95\% CI: (1.11-1.90)
        \item [Hazard ratio \textit{adjusted} analysis for demographic, socioeconomic, and clinical variables:]1.5 95\% CI : (1.14-1.96)
        \item [Hazard ratio for PPI verses H2RA:] 1.35 95\% CI : 1.01-1.91  
    \end{description}
\end{block}
\end{frame}
\end{document}

항목 2가 블록을 통해 오버플로됩니다. \\두 줄로 나누어 사용하려고 했으나 결국 오류가 발생했습니다. 도와주세요.

답변1

궁극적인 해결책은 라벨을 줄이는 것입니다. "위험 비율"은 모든 라벨의 중복 정보입니다. 이를 블록 제목 등으로 옮기는 것은 어떨까요?


description이런 경우에는 그냥 환경을 이용하지 않고 손으로 줄바꿈을 하는 것이 가장 쉬울 것 같습니다 .

\documentclass{beamer}
\usetheme{Copenhagen}
\begin{document}
\begin{frame}{Proton Pump Inhibitor use and the Risk of Chronic Kidney Disease }
\framesubtitle{Benjamin Lazarus et al, in JAMA Intern Med. 2016;176(2)  }
\begin{block}{Result}
    {\usebeamercolor[fg]{item} Hazard ratio {\textit{unadjusted analysis}}:} 1.45 95\% CI: (1.11-1.90)\\[0.2cm]
    {\usebeamercolor[fg]{item} Hazard ratio \textit{adjusted} analysis for demographic, socioeconomic, and clinical variables:} 1.5 95\% CI: (1.14-1.96)\\[0.2cm]
    {\usebeamercolor[fg]{item} Hazard ratio for PPI verses H2RA:} 1.35 95\% CI: 1.01-1.91
\end{block}
\end{frame}
\end{document}

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

답변2

여기에 두 번째 줄을 작성하면 됩니다.

% arara: pdflatex

\documentclass{beamer}
\usetheme{Copenhagen}
\usepackage{siunitx}
\sisetup{range-phrase=--}

\begin{document}
\begin{frame}{Proton Pump Inhibitor use and the Risk of Chronic Kidney Disease }
\framesubtitle{Benjamin Lazarus et al, in JAMA Intern Med. 2016;176(2)}
\begin{block}{Result}
    \begin{description}
        \item [Hazard ratio \emph{unadjusted analysis}:]1.45 \SI{95}{\percent} CI: (\numrange{1.11}{1.90})
        \item [Hazard ratio \emph{adjusted} analysis for demographic, socioeconomic,]
        \item [and clinical variables:]1.5 \SI{95}{\percent} CI: (\numrange{1.14}{1.96})
        \item [Hazard ratio for PPI verses H2RA:] 1.35 \SI{95}{\percent} CI: (\numrange{1.01}{1.91})
    \end{description}
\end{block}
\end{frame}
\end{document}

관련 정보