한 줄에 삽입된 상자를 페이지 왼쪽 가장자리로 어떻게 이동합니까?

한 줄에 삽입된 상자를 페이지 왼쪽 가장자리로 어떻게 이동합니까?

다가오는 노트 페이지에 대한 알림을 사용하려고 합니다. 알림은 노트 페이지 앞에 있는 노트와 동시에 표시되는 작은 상자입니다. 나는 상자가 가장자리를 기준으로 0mm 여백을 두고 페이지의 맨 오른쪽으로 이동하고 싶습니다.

이것이 내가 얻는 것입니다

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

이것이 내가 원하는거야

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

의 모든 순간에 상자가 자동으로 동시에 삽입되면 좋겠지만 \note<+>여전히 메모 앞에 있는 항목과 정렬되어야 합니다.

또 다른 문제는 상자가 텍스트 단어의 중간에 정렬되지 않는다는 것입니다. 두 센터를 함께 정렬하는 방법이 있나요?

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

\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}

관련 정보