Changing the position of the searchable word when using package accsupp
I used the answer of my question when using package accsupp so that the text can be found in Zathura pdf viewer when leaning over the "circle connection bar". And also I tried to save code using the answer from my question to use only edge (as answered by @Skillmon). But the searchable word changes position as the relative position of the nodes is changed. See the code examples below. The images match the result of the completed search, so the blue rectangles.
Case 1:

Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
Original image (without doing research in Zathura):

Case 2:
Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
But by changing the position of the nodes, the searchable word is in the correct place:

Original image (without searching Zathura):

positioning accsupp quotation search
add a comment |
I used the answer of my question when using package accsupp so that the text can be found in Zathura pdf viewer when leaning over the "circle connection bar". And also I tried to save code using the answer from my question to use only edge (as answered by @Skillmon). But the searchable word changes position as the relative position of the nodes is changed. See the code examples below. The images match the result of the completed search, so the blue rectangles.
Case 1:

Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
Original image (without doing research in Zathura):

Case 2:
Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
But by changing the position of the nodes, the searchable word is in the correct place:

Original image (without searching Zathura):

positioning accsupp quotation search
1
That's not a tex problem but a problem of your viewer. You should make a bug report there.
– Ulrike Fischer
3 hours ago
Hi @UlrikeFischer, thanks. I posted this problem at git.pwmt.org/pwmt/zathura/issues/68. But I'd like to know if there's any way to circumvent this likely "bug" through a package, library, or additional technique to my code.
– Diego Bnei Noah
2 hours ago
No, as it is completly unclear how your viewer places the search result, it is also not really possible to move the text around. You could perhaps find with try and error a better placement by putting an empty accsupp somewhere else, but every change in the code could break it again.
– Ulrike Fischer
2 hours ago
add a comment |
I used the answer of my question when using package accsupp so that the text can be found in Zathura pdf viewer when leaning over the "circle connection bar". And also I tried to save code using the answer from my question to use only edge (as answered by @Skillmon). But the searchable word changes position as the relative position of the nodes is changed. See the code examples below. The images match the result of the completed search, so the blue rectangles.
Case 1:

Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
Original image (without doing research in Zathura):

Case 2:
Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
But by changing the position of the nodes, the searchable word is in the correct place:

Original image (without searching Zathura):

positioning accsupp quotation search
I used the answer of my question when using package accsupp so that the text can be found in Zathura pdf viewer when leaning over the "circle connection bar". And also I tried to save code using the answer from my question to use only edge (as answered by @Skillmon). But the searchable word changes position as the relative position of the nodes is changed. See the code examples below. The images match the result of the completed search, so the blue rectangles.
Case 1:

Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
Original image (without doing research in Zathura):

Case 2:
Code of the file TeX:
documentclass{article}
usepackage{tikz,accsupp}
usetikzlibrary{mindmap,quotes}
begin{document}
begin{tikzpicture}
node (energy1) at (30:10cm){motorcycle};
node (energy2) at (90:10cm) {motorcycle};
draw [circle connection bar]
(energy1) edge (energy2)
;
draw (energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{textsc{%
BeginAccSupp{method=escape,ActualText=Japan}%
Japan%
EndAccSupp{}}%
}(energy2);
node (energy1) at (130:5cm){car};
node (energy2) at (0:5cm) {car};
draw[circle connection bar]
(energy1)
edge["USA" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
;
end{tikzpicture}
end{document}
But by changing the position of the nodes, the searchable word is in the correct place:

Original image (without searching Zathura):

positioning accsupp quotation search
positioning accsupp quotation search
asked 3 hours ago
Diego Bnei NoahDiego Bnei Noah
1399
1399
1
That's not a tex problem but a problem of your viewer. You should make a bug report there.
– Ulrike Fischer
3 hours ago
Hi @UlrikeFischer, thanks. I posted this problem at git.pwmt.org/pwmt/zathura/issues/68. But I'd like to know if there's any way to circumvent this likely "bug" through a package, library, or additional technique to my code.
– Diego Bnei Noah
2 hours ago
No, as it is completly unclear how your viewer places the search result, it is also not really possible to move the text around. You could perhaps find with try and error a better placement by putting an empty accsupp somewhere else, but every change in the code could break it again.
– Ulrike Fischer
2 hours ago
add a comment |
1
That's not a tex problem but a problem of your viewer. You should make a bug report there.
– Ulrike Fischer
3 hours ago
Hi @UlrikeFischer, thanks. I posted this problem at git.pwmt.org/pwmt/zathura/issues/68. But I'd like to know if there's any way to circumvent this likely "bug" through a package, library, or additional technique to my code.
– Diego Bnei Noah
2 hours ago
No, as it is completly unclear how your viewer places the search result, it is also not really possible to move the text around. You could perhaps find with try and error a better placement by putting an empty accsupp somewhere else, but every change in the code could break it again.
– Ulrike Fischer
2 hours ago
1
1
That's not a tex problem but a problem of your viewer. You should make a bug report there.
– Ulrike Fischer
3 hours ago
That's not a tex problem but a problem of your viewer. You should make a bug report there.
– Ulrike Fischer
3 hours ago
Hi @UlrikeFischer, thanks. I posted this problem at git.pwmt.org/pwmt/zathura/issues/68. But I'd like to know if there's any way to circumvent this likely "bug" through a package, library, or additional technique to my code.
– Diego Bnei Noah
2 hours ago
Hi @UlrikeFischer, thanks. I posted this problem at git.pwmt.org/pwmt/zathura/issues/68. But I'd like to know if there's any way to circumvent this likely "bug" through a package, library, or additional technique to my code.
– Diego Bnei Noah
2 hours ago
No, as it is completly unclear how your viewer places the search result, it is also not really possible to move the text around. You could perhaps find with try and error a better placement by putting an empty accsupp somewhere else, but every change in the code could break it again.
– Ulrike Fischer
2 hours ago
No, as it is completly unclear how your viewer places the search result, it is also not really possible to move the text around. You could perhaps find with try and error a better placement by putting an empty accsupp somewhere else, but every change in the code could break it again.
– Ulrike Fischer
2 hours ago
add a comment |
0
active
oldest
votes
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%2f481980%2fchanging-the-position-of-the-searchable-word-when-using-package-accsupp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f481980%2fchanging-the-position-of-the-searchable-word-when-using-package-accsupp%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
That's not a tex problem but a problem of your viewer. You should make a bug report there.
– Ulrike Fischer
3 hours ago
Hi @UlrikeFischer, thanks. I posted this problem at git.pwmt.org/pwmt/zathura/issues/68. But I'd like to know if there's any way to circumvent this likely "bug" through a package, library, or additional technique to my code.
– Diego Bnei Noah
2 hours ago
No, as it is completly unclear how your viewer places the search result, it is also not really possible to move the text around. You could perhaps find with try and error a better placement by putting an empty accsupp somewhere else, but every change in the code could break it again.
– Ulrike Fischer
2 hours ago