Doc-Start appearing when using xr package
I am trying to write up an article that uses the xr package (or maybe it needs to be zref) to reference labels in two different documents: an article and a beamer presentation. The references from the other article work perfectly, it is the beamer references that show up as
Slide 1Doc-Start.
Where 1 is the frame number which I am trying to reference. Looking at the aux file produced by beamer the entry is
newlabel{posvnorm}{{1}{1}{}{Doc-Start}{}}
If I manually delete Doc-Start from the aux file, the final output is what I desire. So if there is a way to write the label so "Doc-Start" isn't included, or suppressed when calling the label, I should be good to go. A a heads up, there will be multiple references to difference beamer slides in the main article.
Code for the main article:
documentclass[11pt]{article}
usepackage{xr}
externaldocument{../Folder1/mwe_article}
externaldocument{../Folder2/mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
Code for the beamer slides
documentclass{beamer}
usetheme{Boadilla}
usecolortheme{beaver}
begin{document}
begin{frame} label{posvnorm}
frametitle{Title}
Words go here
end{frame}
end{document}
Code for the article being referenced
documentclass[11pt]{article}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
beamer ref xr
add a comment |
I am trying to write up an article that uses the xr package (or maybe it needs to be zref) to reference labels in two different documents: an article and a beamer presentation. The references from the other article work perfectly, it is the beamer references that show up as
Slide 1Doc-Start.
Where 1 is the frame number which I am trying to reference. Looking at the aux file produced by beamer the entry is
newlabel{posvnorm}{{1}{1}{}{Doc-Start}{}}
If I manually delete Doc-Start from the aux file, the final output is what I desire. So if there is a way to write the label so "Doc-Start" isn't included, or suppressed when calling the label, I should be good to go. A a heads up, there will be multiple references to difference beamer slides in the main article.
Code for the main article:
documentclass[11pt]{article}
usepackage{xr}
externaldocument{../Folder1/mwe_article}
externaldocument{../Folder2/mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
Code for the beamer slides
documentclass{beamer}
usetheme{Boadilla}
usecolortheme{beaver}
begin{document}
begin{frame} label{posvnorm}
frametitle{Title}
Words go here
end{frame}
end{document}
Code for the article being referenced
documentclass[11pt]{article}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
beamer ref xr
Welcome to TeX.SE.
– Sebastiano
Mar 13 at 22:15
add a comment |
I am trying to write up an article that uses the xr package (or maybe it needs to be zref) to reference labels in two different documents: an article and a beamer presentation. The references from the other article work perfectly, it is the beamer references that show up as
Slide 1Doc-Start.
Where 1 is the frame number which I am trying to reference. Looking at the aux file produced by beamer the entry is
newlabel{posvnorm}{{1}{1}{}{Doc-Start}{}}
If I manually delete Doc-Start from the aux file, the final output is what I desire. So if there is a way to write the label so "Doc-Start" isn't included, or suppressed when calling the label, I should be good to go. A a heads up, there will be multiple references to difference beamer slides in the main article.
Code for the main article:
documentclass[11pt]{article}
usepackage{xr}
externaldocument{../Folder1/mwe_article}
externaldocument{../Folder2/mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
Code for the beamer slides
documentclass{beamer}
usetheme{Boadilla}
usecolortheme{beaver}
begin{document}
begin{frame} label{posvnorm}
frametitle{Title}
Words go here
end{frame}
end{document}
Code for the article being referenced
documentclass[11pt]{article}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
beamer ref xr
I am trying to write up an article that uses the xr package (or maybe it needs to be zref) to reference labels in two different documents: an article and a beamer presentation. The references from the other article work perfectly, it is the beamer references that show up as
Slide 1Doc-Start.
Where 1 is the frame number which I am trying to reference. Looking at the aux file produced by beamer the entry is
newlabel{posvnorm}{{1}{1}{}{Doc-Start}{}}
If I manually delete Doc-Start from the aux file, the final output is what I desire. So if there is a way to write the label so "Doc-Start" isn't included, or suppressed when calling the label, I should be good to go. A a heads up, there will be multiple references to difference beamer slides in the main article.
Code for the main article:
documentclass[11pt]{article}
usepackage{xr}
externaldocument{../Folder1/mwe_article}
externaldocument{../Folder2/mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
Code for the beamer slides
documentclass{beamer}
usetheme{Boadilla}
usecolortheme{beaver}
begin{document}
begin{frame} label{posvnorm}
frametitle{Title}
Words go here
end{frame}
end{document}
Code for the article being referenced
documentclass[11pt]{article}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
beamer ref xr
beamer ref xr
edited Mar 13 at 22:28
samcarter
92.6k7105299
92.6k7105299
asked Mar 13 at 22:15
Ryan LeeRyan Lee
112
112
Welcome to TeX.SE.
– Sebastiano
Mar 13 at 22:15
add a comment |
Welcome to TeX.SE.
– Sebastiano
Mar 13 at 22:15
Welcome to TeX.SE.
– Sebastiano
Mar 13 at 22:15
Welcome to TeX.SE.
– Sebastiano
Mar 13 at 22:15
add a comment |
1 Answer
1
active
oldest
votes
The problem is that you mix documents which use hyperref
(automatically loaded by beamer) with documents that don't use it. If you change the two article documents to include hyperref
, the following works fine and even produces click-able like that will automatically open the linked documents:
documentclass[11pt]{article}
usepackage{xr-hyper}
usepackage{hyperref}
externaldocument{mwe_article}
externaldocument{mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
documentclass[11pt]{article}
usepackage{hyperref}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
Thank you! This works great.
– Ryan Lee
Mar 13 at 22:38
@RyanLee You're welcome!
– samcarter
Mar 13 at 22:46
add a comment |
Your Answer
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%2f479369%2fdoc-start-appearing-when-using-xr-package%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
The problem is that you mix documents which use hyperref
(automatically loaded by beamer) with documents that don't use it. If you change the two article documents to include hyperref
, the following works fine and even produces click-able like that will automatically open the linked documents:
documentclass[11pt]{article}
usepackage{xr-hyper}
usepackage{hyperref}
externaldocument{mwe_article}
externaldocument{mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
documentclass[11pt]{article}
usepackage{hyperref}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
Thank you! This works great.
– Ryan Lee
Mar 13 at 22:38
@RyanLee You're welcome!
– samcarter
Mar 13 at 22:46
add a comment |
The problem is that you mix documents which use hyperref
(automatically loaded by beamer) with documents that don't use it. If you change the two article documents to include hyperref
, the following works fine and even produces click-able like that will automatically open the linked documents:
documentclass[11pt]{article}
usepackage{xr-hyper}
usepackage{hyperref}
externaldocument{mwe_article}
externaldocument{mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
documentclass[11pt]{article}
usepackage{hyperref}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
Thank you! This works great.
– Ryan Lee
Mar 13 at 22:38
@RyanLee You're welcome!
– samcarter
Mar 13 at 22:46
add a comment |
The problem is that you mix documents which use hyperref
(automatically loaded by beamer) with documents that don't use it. If you change the two article documents to include hyperref
, the following works fine and even produces click-able like that will automatically open the linked documents:
documentclass[11pt]{article}
usepackage{xr-hyper}
usepackage{hyperref}
externaldocument{mwe_article}
externaldocument{mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
documentclass[11pt]{article}
usepackage{hyperref}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
The problem is that you mix documents which use hyperref
(automatically loaded by beamer) with documents that don't use it. If you change the two article documents to include hyperref
, the following works fine and even produces click-able like that will automatically open the linked documents:
documentclass[11pt]{article}
usepackage{xr-hyper}
usepackage{hyperref}
externaldocument{mwe_article}
externaldocument{mwe_beamer}
begin{document}
Slide ref{posvnorm}
Article ref{pos} and ref{norm}
end{document}
documentclass[11pt]{article}
usepackage{hyperref}
begin{document}
begin{enumerate}
item Blah label{pos}
item Blarg label{norm}
end{enumerate}
end{document}
edited Mar 13 at 22:32
answered Mar 13 at 22:24
samcartersamcarter
92.6k7105299
92.6k7105299
Thank you! This works great.
– Ryan Lee
Mar 13 at 22:38
@RyanLee You're welcome!
– samcarter
Mar 13 at 22:46
add a comment |
Thank you! This works great.
– Ryan Lee
Mar 13 at 22:38
@RyanLee You're welcome!
– samcarter
Mar 13 at 22:46
Thank you! This works great.
– Ryan Lee
Mar 13 at 22:38
Thank you! This works great.
– Ryan Lee
Mar 13 at 22:38
@RyanLee You're welcome!
– samcarter
Mar 13 at 22:46
@RyanLee You're welcome!
– samcarter
Mar 13 at 22:46
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%2f479369%2fdoc-start-appearing-when-using-xr-package%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
Welcome to TeX.SE.
– Sebastiano
Mar 13 at 22:15