Storing several macros in one command when they start with `makeatletter`
I want to create beamer slides but I frequently need to change the margins of my frames using the commands (thanks to samcarter for providing the original code)
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
I tried to store it in a shorter form as follows
newcommand{framePageWide}{<the code above>}
But I get the error "@Gm does not match its definition"
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
newcommand{framePageWide}{}
begin{document}
{
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}
beamer errors margins
|
show 2 more comments
I want to create beamer slides but I frequently need to change the margins of my frames using the commands (thanks to samcarter for providing the original code)
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
I tried to store it in a shorter form as follows
newcommand{framePageWide}{<the code above>}
But I get the error "@Gm does not match its definition"
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
newcommand{framePageWide}{}
begin{document}
{
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}
beamer errors margins
1
Hopefully you placed themakeatletterandmakeatotherOUTSIDE of thenewcommand{framePageWide}{...}definition, and not inside the braces.
– Steven B. Segletes
Mar 21 at 2:11
Even with that, it does not work
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:12
3
I confirm what @StevenB.Segletes is saying: if you domakeatletter newcommand{framePageWide}{defGm@lmargin{widthTextMarginLeftPageWide}% defGm@rmargin{widthTextMarginRightPageWide}% textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax hsizetextwidth columnwidthtextwidth hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax} makeatotherthen there is no problem.
– marmot
Mar 21 at 2:30
I definedframePageWidewithoutmakeatletterandmakeatotheraround it, but then usedmakeatletterandmakeatotherin the text itself after the command has been defined. It is merely misunderstanding. I should have placedmakeatletterandmakeatotherto enclose the new command in the preamble, not at my attempt to call it
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:45
1
Thank you @marmot for the consideration.
– Steven B. Segletes
Mar 21 at 3:00
|
show 2 more comments
I want to create beamer slides but I frequently need to change the margins of my frames using the commands (thanks to samcarter for providing the original code)
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
I tried to store it in a shorter form as follows
newcommand{framePageWide}{<the code above>}
But I get the error "@Gm does not match its definition"
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
newcommand{framePageWide}{}
begin{document}
{
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}
beamer errors margins
I want to create beamer slides but I frequently need to change the margins of my frames using the commands (thanks to samcarter for providing the original code)
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
I tried to store it in a shorter form as follows
newcommand{framePageWide}{<the code above>}
But I get the error "@Gm does not match its definition"
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
newcommand{framePageWide}{}
begin{document}
{
% Page wide frame
makeatletter
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
makeatother
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}
beamer errors margins
beamer errors margins
edited Mar 21 at 2:11
Al-Motasem Aldaoudeyeh
asked Mar 21 at 2:01
Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh
1,869414
1,869414
1
Hopefully you placed themakeatletterandmakeatotherOUTSIDE of thenewcommand{framePageWide}{...}definition, and not inside the braces.
– Steven B. Segletes
Mar 21 at 2:11
Even with that, it does not work
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:12
3
I confirm what @StevenB.Segletes is saying: if you domakeatletter newcommand{framePageWide}{defGm@lmargin{widthTextMarginLeftPageWide}% defGm@rmargin{widthTextMarginRightPageWide}% textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax hsizetextwidth columnwidthtextwidth hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax} makeatotherthen there is no problem.
– marmot
Mar 21 at 2:30
I definedframePageWidewithoutmakeatletterandmakeatotheraround it, but then usedmakeatletterandmakeatotherin the text itself after the command has been defined. It is merely misunderstanding. I should have placedmakeatletterandmakeatotherto enclose the new command in the preamble, not at my attempt to call it
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:45
1
Thank you @marmot for the consideration.
– Steven B. Segletes
Mar 21 at 3:00
|
show 2 more comments
1
Hopefully you placed themakeatletterandmakeatotherOUTSIDE of thenewcommand{framePageWide}{...}definition, and not inside the braces.
– Steven B. Segletes
Mar 21 at 2:11
Even with that, it does not work
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:12
3
I confirm what @StevenB.Segletes is saying: if you domakeatletter newcommand{framePageWide}{defGm@lmargin{widthTextMarginLeftPageWide}% defGm@rmargin{widthTextMarginRightPageWide}% textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax hsizetextwidth columnwidthtextwidth hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax} makeatotherthen there is no problem.
– marmot
Mar 21 at 2:30
I definedframePageWidewithoutmakeatletterandmakeatotheraround it, but then usedmakeatletterandmakeatotherin the text itself after the command has been defined. It is merely misunderstanding. I should have placedmakeatletterandmakeatotherto enclose the new command in the preamble, not at my attempt to call it
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:45
1
Thank you @marmot for the consideration.
– Steven B. Segletes
Mar 21 at 3:00
1
1
Hopefully you placed the
makeatletter and makeatother OUTSIDE of the newcommand{framePageWide}{...} definition, and not inside the braces.– Steven B. Segletes
Mar 21 at 2:11
Hopefully you placed the
makeatletter and makeatother OUTSIDE of the newcommand{framePageWide}{...} definition, and not inside the braces.– Steven B. Segletes
Mar 21 at 2:11
Even with that, it does not work
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:12
Even with that, it does not work
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:12
3
3
I confirm what @StevenB.Segletes is saying: if you do
makeatletter newcommand{framePageWide}{defGm@lmargin{widthTextMarginLeftPageWide}% defGm@rmargin{widthTextMarginRightPageWide}% textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax hsizetextwidth columnwidthtextwidth hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax} makeatother then there is no problem.– marmot
Mar 21 at 2:30
I confirm what @StevenB.Segletes is saying: if you do
makeatletter newcommand{framePageWide}{defGm@lmargin{widthTextMarginLeftPageWide}% defGm@rmargin{widthTextMarginRightPageWide}% textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax hsizetextwidth columnwidthtextwidth hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax} makeatother then there is no problem.– marmot
Mar 21 at 2:30
I defined
framePageWide without makeatletter and makeatother around it, but then used makeatletter and makeatother in the text itself after the command has been defined. It is merely misunderstanding. I should have placed makeatletter and makeatother to enclose the new command in the preamble, not at my attempt to call it– Al-Motasem Aldaoudeyeh
Mar 21 at 2:45
I defined
framePageWide without makeatletter and makeatother around it, but then used makeatletter and makeatother in the text itself after the command has been defined. It is merely misunderstanding. I should have placed makeatletter and makeatother to enclose the new command in the preamble, not at my attempt to call it– Al-Motasem Aldaoudeyeh
Mar 21 at 2:45
1
1
Thank you @marmot for the consideration.
– Steven B. Segletes
Mar 21 at 3:00
Thank you @marmot for the consideration.
– Steven B. Segletes
Mar 21 at 3:00
|
show 2 more comments
1 Answer
1
active
oldest
votes
As I indicated in my original comment, the makeatletter and makeatother surround the actual definition, rather than surrounding the content of the definition. That is to say,
YES:
makeatletternewcommandframePageWide{...}makeatother
NO:
newcommandframePageWide{makeatletter...makeatother}
The MWE
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
makeatletter
newcommand{framePageWide}{%
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidthrelax
columnwidthtextwidthrelax
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
}
makeatother
begin{document}
{framePageWide
% Page wide frame
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}

Without the framePageWide, one gets

add a comment |
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480608%2fstoring-several-macros-in-one-command-when-they-start-with-makeatletter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As I indicated in my original comment, the makeatletter and makeatother surround the actual definition, rather than surrounding the content of the definition. That is to say,
YES:
makeatletternewcommandframePageWide{...}makeatother
NO:
newcommandframePageWide{makeatletter...makeatother}
The MWE
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
makeatletter
newcommand{framePageWide}{%
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidthrelax
columnwidthtextwidthrelax
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
}
makeatother
begin{document}
{framePageWide
% Page wide frame
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}

Without the framePageWide, one gets

add a comment |
As I indicated in my original comment, the makeatletter and makeatother surround the actual definition, rather than surrounding the content of the definition. That is to say,
YES:
makeatletternewcommandframePageWide{...}makeatother
NO:
newcommandframePageWide{makeatletter...makeatother}
The MWE
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
makeatletter
newcommand{framePageWide}{%
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidthrelax
columnwidthtextwidthrelax
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
}
makeatother
begin{document}
{framePageWide
% Page wide frame
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}

Without the framePageWide, one gets

add a comment |
As I indicated in my original comment, the makeatletter and makeatother surround the actual definition, rather than surrounding the content of the definition. That is to say,
YES:
makeatletternewcommandframePageWide{...}makeatother
NO:
newcommandframePageWide{makeatletter...makeatother}
The MWE
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
makeatletter
newcommand{framePageWide}{%
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidthrelax
columnwidthtextwidthrelax
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
}
makeatother
begin{document}
{framePageWide
% Page wide frame
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}

Without the framePageWide, one gets

As I indicated in my original comment, the makeatletter and makeatother surround the actual definition, rather than surrounding the content of the definition. That is to say,
YES:
makeatletternewcommandframePageWide{...}makeatother
NO:
newcommandframePageWide{makeatletter...makeatother}
The MWE
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeftPageWide}
setlength{widthTextMarginLeftPageWide}{5mm}
newlength{widthTextMarginRightPageWide}
setlength{widthTextMarginRightPageWide}{5mm}
makeatletter
newcommand{framePageWide}{%
defGm@lmargin{widthTextMarginLeftPageWide}%
defGm@rmargin{widthTextMarginRightPageWide}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidthrelax
columnwidthtextwidthrelax
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax
}
makeatother
begin{document}
{framePageWide
% Page wide frame
begin{frame}
frametitle{Minipages in beamer}
rule{textwidth}{1pt}
begin{columns}[T,onlytextwidth]
column{0.45textwidth}
rule{textwidth}{1pt}
column{0.45textwidth}
rule{textwidth}{1pt}
end{columns}
end{frame}
}
end{document}

Without the framePageWide, one gets

answered Mar 21 at 2:57
Steven B. SegletesSteven B. Segletes
160k9204413
160k9204413
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480608%2fstoring-several-macros-in-one-command-when-they-start-with-makeatletter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown

1
Hopefully you placed the
makeatletterandmakeatotherOUTSIDE of thenewcommand{framePageWide}{...}definition, and not inside the braces.– Steven B. Segletes
Mar 21 at 2:11
Even with that, it does not work
– Al-Motasem Aldaoudeyeh
Mar 21 at 2:12
3
I confirm what @StevenB.Segletes is saying: if you do
makeatletter newcommand{framePageWide}{defGm@lmargin{widthTextMarginLeftPageWide}% defGm@rmargin{widthTextMarginRightPageWide}% textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax hsizetextwidth columnwidthtextwidth hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-widthTextMarginLeftPageWiderelax} makeatotherthen there is no problem.– marmot
Mar 21 at 2:30
I defined
framePageWidewithoutmakeatletterandmakeatotheraround it, but then usedmakeatletterandmakeatotherin the text itself after the command has been defined. It is merely misunderstanding. I should have placedmakeatletterandmakeatotherto enclose the new command in the preamble, not at my attempt to call it– Al-Motasem Aldaoudeyeh
Mar 21 at 2:45
1
Thank you @marmot for the consideration.
– Steven B. Segletes
Mar 21 at 3:00