inmargin innertheme で、サイドバーのブロックタイトルの幅をカスタマイズするにはどうすればよいですか?

inmargin innertheme で、サイドバーのブロックタイトルの幅をカスタマイズするにはどうすればよいですか?

下の四角で囲まれたスペースは空いており、テキスト自体に使用できます。 lesser を設定することでスペースを小さくできることはわかっていますsidebar width leftが、ブロックのタイトルは長くしておきたいと思います。

ここに画像の説明を入力してください

このため、\blockboxデフォルトでsidebar width left3mm 未満の幅に等しいカスタム ボックスを作成しようとしました。ただし、上記の出力では、ボックスの幅はほぼ同じですが、位置がずれていることがわかります。したがって、考えられる解決策の 1 つは、環境定義でこのボックスを単純にシフトすることですが、その方法がわかりません。

より最適な解決策は、タイトルに使用できる幅を再定義することです。blockこれはおよそ3.5cm

\documentclass[aspectratio=169, xcolor={x11names}]{beamer}


\usecolortheme{crane}

\usefonttheme{structurebold}

\useinnertheme{inmargin}

\useoutertheme[]{split}

    \setbeamersize{text margin left=2mm, text margin right=2mm}

    \newlength{\sidebarWidth}
    \setlength{\sidebarWidth}{5cm}  
    \setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}

    \newlength{\blockboxwidth}
    \setlength{\blockboxwidth}{\sidebarWidth}
    \addtolength{\blockboxwidth}{-3mm}
    \newcommand{\blockbox}[2][\blockboxwidth]{
        \frame{\parbox{#1}{\raggedleft #2}} 
                                            }

\begin{document}

\begin{frame}{Showing Contents Gradually}

    \begin{block}{Why is induction motor very common}
        Induction motors are very practical for the following reasons

        \begin{description}[<+->]
            \item[Rigid] Rigid
            \item[Cheap] Cheap
            \item[Low Maintenance] Low Maintenance
            \item[Self-Starting] Self-starting
            \item[No Excitation Needed] No Excitation Needed
        \end{description}

    \end{block}

    \begin{block}{\blockbox{Why is induction motor very common} Why is induction motor very common}

        Induction motors are very practical for the following reasons

        \begin{description}[<+->]
            \item[Rigid] Rigid
            \item[Cheap] Cheap
            \item[Low Maintenance] Low Maintenance
            \item[Self-Starting] Self-starting
            \item[No Excitation Needed] No Excitation Needed
        \end{description}

    \end{block}

\end{frame}

\end{document}

答え1

前回の質問に対する私の回答を繰り返します:

\documentclass[aspectratio=169, xcolor={x11names}]{beamer}

\usecolortheme{crane}
\usefonttheme{structurebold}
\useinnertheme{inmargin}
\useoutertheme{split}

\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{5cm}  
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}


\makeatletter
\renewcommand\beamer@putleft[2]{%
  \hbox to 0pt{\hss\vtop{%
      \normalsize%
      \@tempdima=\beamer@leftsidebar%
      \advance\@tempdima by-3ex%
      \hsize=\@tempdima%
      \leftskip=0pt plus 1fill%
      \rightskip=0pt\relax%
      \leavevmode#1}\kern#2}%
}
\makeatother


\begin{document}

\begin{frame}{Showing Contents Gradually}

    \begin{block}{Why is induction motor very common\linebreak Induction motors are very practical for the following reasons}

        \begin{description}[<+->]
            \item[Rigid] Rigid
            \item[Cheap] Cheap
            \item[Low Maintenance] Low Maintenance
            \item[Self-Starting] Self-starting
            \item[No Excitation Needed] No Excitation Needed
        \end{description}

    \end{block}

    \begin{block}{Why is induction motor very common\linebreak Why is induction motor very common}

        Induction motors are very practical for the following reasons

        \begin{description}[<+->]
            \item[Rigid] Rigid
            \item[Cheap] Cheap
            \item[Low Maintenance] Low Maintenance
            \item[Self-Starting] Self-starting
            \item[No Excitation Needed] No Excitation Needed
        \end{description}

    \end{block}

\end{frame}

\end{document}

ここに画像の説明を入力してください

関連情報