参考书目不占据 beamer 中的所有文本宽度

参考书目不占据 beamer 中的所有文本宽度

我正在尝试修改参考文献页的页边距,但参考书目并未扩展到所有可用的宽度。相反,它占用的宽度与修改页边距之前占用的宽度非常相似。

在此处输入图片描述

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

\usecolortheme{seahorse}
\useoutertheme{miniframes}
\useinnertheme{inmargin}
    \setbeamersize{text margin left=5mm, text margin right=5mm}
    \setbeamersize{sidebar width left=0.3\paperwidth, sidebar width right=0cm}

% Changing page commands

    % Set margins
    \newlength{\widthTextMarginLeftPageWide}
    \setlength{\widthTextMarginLeftPageWide}{5mm}
    \newlength{\widthTextMarginRightPageWide}
    \setlength{\widthTextMarginRightPageWide}{5mm}

    % Command to change margins for a page wide
    \makeatletter
    \newcommand{\framePageWide}{
        \def\Gm@lmargin{\widthTextMarginLeftPageWide}%
        \def\Gm@rmargin{\widthTextMarginRightPageWide}%
        \textwidth=\dimexpr\paperwidth-\Gm@lmargin-\Gm@rmargin\relax
        \hsize\textwidth
        \columnwidth\textwidth
        \hoffset=\dimexpr-\beamer@leftsidebar+\Gm@lmargin-\widthTextMarginLeftPageWide\relax
    }
    \makeatother

\usepackage{natbib}

\begin{document}

{\framePageWide

\begin{frame}[allowframebreaks=0.9]{Referencing}

\cite{dvzafic2014sensitivity}

\cite{saxena2014identification}

\cite{su2016estimating}

\newpage

\bibliographystyle{alpha}


\bibliography{motasem_bib}

\end{frame}

}

\end{document}

内容motasem_bib

@article{saxena2014identification,
    title={Identification of multiple harmonic sources in power system using optimally placed voltage measurement devices},
    author={Saxena, D and Bhaumik, Sayak and Singh, SN},
    journal={IEEE Transactions on Industrial Electronics},
    volume={61},
    number={5},
    pages={2483--2492},
    year={2014},
    publisher={IEEE}
}

@article{su2016estimating,
    title={Estimating the voltage stability margin using PMU measurements},
    author={Su, Heng-Yi and Liu, Chih-Wen},
    journal={IEEE Transactions on Power Systems},
    volume={31},
    number={4},
    pages={3221--3229},
    year={2016},
    publisher={IEEE}
}

@article{dvzafic2014sensitivity,
    title={A sensitivity approach to model local voltage controllers in distribution networks},
    author={D{\v{z}}afi{\'c}, Izudin and Jabr, Rabih A and Halilovic, Ema and Pal, Bikash C},
    journal={IEEE Transactions on Power Systems},
    volume={29},
    number={3},
    pages={1419--1428},
    year={2014},
    publisher={IEEE}
}

答案1

书目通常以列表形式实现。它们围绕 构建\linewidth,长度在内部更新,因此行宽在普通列表中较小。默认情况下,\linewidth其大小为\hsize

当你这样做

\hsize\textwidth
\columnwidth\textwidth

\hsize设置为\textwidth,所以 也是\columnwidth。但\linewidth永远不会更新,因此您获得的 值\linewidth与使用之前获得的值相同\framePageWide

如果我们看一下geometry包,它的内部更改布局宏以

\setlength{\hsize}{\columnwidth}
\setlength{\linewidth}{\hsize}

因此将您的定义改为

\makeatletter
\newcommand{\framePageWide}{
    \def\Gm@lmargin{\widthTextMarginLeftPageWide}%
    \def\Gm@rmargin{\widthTextMarginRightPageWide}%
    \textwidth=\dimexpr\paperwidth-\Gm@lmargin-\Gm@rmargin\relax
    \hsize\textwidth
    \columnwidth\textwidth
    \linewidth\hsize   
    \hoffset=\dimexpr-\beamer@leftsidebar+\Gm@lmargin-\widthTextMarginLeftPageWide\relax
}
\makeatother

应该可以

相关内容