行に挿入されたボックスをページの左端に移​​動するにはどうすればよいですか?

行に挿入されたボックスをページの左端に移​​動するにはどうすればよいですか?

次のノート ページの通知を使用しようとしています。通知は、ノート ページの前のノートと同時に表示される小さなボックスです。ボックスをページの右端に、端に対して 0 mm の余白で表示したいと思います。

これが私の得たもの

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

これが私が欲しいもの

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

また、ボックスが の瞬間ごとに自動的に同時に挿入されるのも素晴らしいことです\note<+>が、それでもメモの前の項目と揃える必要があります。

もう 1 つの問題は、ボックスがテキストの単語の中央に揃っていないことです。両方の中央を揃える方法はありますか?

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

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

    \setbeameroption{show notes}
    \newcommand{\itemUncoverMoreContents}{\item<+->}
    \newcommand{\presentUncoverMoreContents}{\uncover<+->}

    \usecolortheme{wolverine}
    \useoutertheme[]{split}
    \useinnertheme{inmargin}

            \newlength{\widthTextMarginLeft}
            \setlength{\widthTextMarginLeft}{1.5mm}
            \newlength{\widthTextMarginRight}
            \setlength{\widthTextMarginRight}{2mm}

            \setbeamersize{text margin left=\widthTextMarginLeft, text margin right=\widthTextMarginRight}

        \newlength{\sidebarWidth}
        \setlength{\sidebarWidth}{0.3\paperwidth}

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




    % ===== Customize the note page =====
    % ===================================

% BEGIN_FOLD

        % Determine note page geometry
        \makeatletter
        \ifbeamer@notesnormals%
        \beamer@paperwidth 16.00cm%
        \beamer@paperheight 9.00cm%
        %           \beamer@leftmargin 10mm%
        %           \beamer@rightmargin 12mm%
        \geometry{papersize={\beamer@paperwidth,\beamer@paperheight}}
        \fi%
        \makeatother

        % Note page layout 2
        \usepackage{tikzpagenodes}
        \usetikzlibrary{calc}
        \newlength{\widthNotePageSlideContentClearance}
        \setlength{\widthNotePageSlideContentClearance}{5mm}
        \newlength{\notepageLeftMargin}
        \setlength{\notepageLeftMargin}{5mm}
        \newcommand{\insertNotePagePreview}{
            \adjustbox{rotate=90, max height=0.997\paperheight,  frame,valign=t}{\insertslideintonotes{1}}
                                        }
        \newcommand{\measureremainder}[1]{%
            \begin{tikzpicture}[overlay,remember picture]%
                % Measure distance to right text border
                \path let \p0 = (0,0), \p1 = (current page.east) in
                [/utils/exec={\pgfmathsetlength#1{\x1-\x0}\global#1=#1}];
            \end{tikzpicture}%
                                        }

        \newlength{\insertnoteWidth}

        \makeatletter
        \setbeamertemplate{note page}{

            % Slide preview

                \hskip-\Gm@lmargin%
                \insertNotePagePreview%
            %
            % The notes (the comments below must stay where they are)
            %
                \hspace{\widthNotePageSlideContentClearance}%
                \measureremainder{\insertnoteWidth}%
                \addtolength{\insertnoteWidth}{-\notepageLeftMargin}% this comment must stay 
                \begin{minipage}[t]{\insertnoteWidth}
                    \justifying
                    \insertnote
                \end{minipage}%
                                    }
        \makeatother

        \setbeamerfont{note page}{size=\normalsize}





% END_FOLD


\usepackage{ragged2e}
\usepackage{adjustbox}
\usepackage{blindtext}
\setbeamersize{description width=0mm}


\usepackage{efbox}          

\newcommand{\notepageUpcoming}{\setbeamercolor{note page alert}{bg=DarkOrange2}%
    \begin{beamercolorbox}[ht=3mm,wd=3mm]{note page alert}\end{beamercolorbox}}

\newcommand{\noteAlert}{%
    \hspace{\fill}\uncover<.>{\adjustbox{raise=0.03\baselineskip}{\notepageUpcoming}}
                            }



\begin{document}

\begin{frame}{Showing Contents Gradually without Alert}

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

        \begin{description}
            \itemUncoverMoreContents[Rigid] Rigid
            \itemUncoverMoreContents[Cheap] Cheap
                \note<+>{\blindlistlist[1]{enumerate}}
                \noteAlert
            \itemUncoverMoreContents[Low Maintenance] Low Maintenance
            \itemUncoverMoreContents[Self-Starting] Self-starting
            \itemUncoverMoreContents[No Excitation Needed] No Excitation Needed
                \note<+>{\blindlistlist[1]{enumerate}}
                \noteAlert
            \itemUncoverMoreContents[Something goes here] Extra contents
        \end{description}

        \vspace{\fill}

        More content

    \end{block}

\end{frame}

\end{document}

答え1

少しtikz-foo を付けると:

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

\setbeameroption{show notes}

\usecolortheme{rose}
\useinnertheme{inmargin}
\setbeamercovered{transparent=30}

\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{overlay-beamer-styles}

\begin{document}

\begin{frame}{Uncovering Contents with Alert}

\begin{itemize}[<+->]
    \item[Rigid] Rigid
    \item[Cheap] Cheap
    \item[Low Maintenance] Low Maintenance%    
    \note<3>{note text}%
    \begin{tikzpicture}[overlay ,remember picture]
        \node (foo) {};
        \fill<.>[orange] let \p1 = (foo),
                            \p2 = (current page.west)
        in (\x2,\y1) rectangle ++(0.2,0.2);
    \end{tikzpicture}
    \item[Self-Starting] Self-starting
    \item[No Excitation Needed] No Excitation Needed
\end{itemize}

\end{frame}

\end{document}

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

編集

簡易版です。@PaulGaborit さん、どうもありがとうございます!

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

\setbeameroption{show notes}

\usecolortheme{rose}
\useinnertheme{inmargin}
\setbeamercovered{transparent=30}

\usepackage{tikz}

\begin{document}

\begin{frame}{Uncovering Contents with Alert}

\begin{itemize}[<+->]
    \item[Rigid] Rigid
    \item[Cheap] Cheap
    \item[Low Maintenance] Low Maintenance%    
    \note<3>{note text}%
    \tikz[overlay ,remember picture]{\fill[orange] (0,0 -| current page.west) rectangle ++(0.2,0.2);}
    \item[Self-Starting] Self-starting
    \item[No Excitation Needed] No Excitation Needed
\end{itemize}

\end{frame}

\end{document}

関連情報