Changer la position du mot interrogeable lors de l’utilisation du paquet accsupp
Je viens de publier ici mon numéro original publié dans https://tex.stackexchange.com/questions/481980/changing-the-position-of-the-searchable-word-when-using-package-accsupp/482112#482112 (traduit ici en français):
J'ai utilisé la réponse de [ma question] [1] lors de l'utilisation du paquet accsupp afin que le texte puisse être trouvé dans le visualiseur Zathura pdf en se penchant au-dessus de la "barre de connexion circulaire". Et aussi j'ai essayé de sauvegarder le code en utilisant la réponse de m [y question] [2] pour n'utiliser que le bord (comme l'a répondu @Skillmon). Mais le mot interrogeable change de position à mesure que la position relative des nœuds change. Voir les exemples de code ci-dessous. Les images correspondent au résultat de la recherche terminée, donc les rectangles bleus.
Cas 1:
[![Searchable word was found out of the intended place][3]][3]
Code du fichier 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}
Image originale (sans faire de recherche à Zathura):
[![image original for case 1][4]][4]
Cas 2:
Code du fichier 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}
Mais en changeant la position des nœuds, le mot interrogeable est à la bonne place:
[![Searchable word is found in the correct place (on the circle connection bar path)][5]][5]
Image originale (sans chercher Zathura):
[![image original for case 2][6]][6]
J'ajoute une réponse alternative (palliative), qui renforce l'essence philosophique, paragmatique et paradoxale de cette question.
J'ai appliqué les trois types de chemins décrits dans ces deux questions ([Solve Search in Zathura][1] and [Draw Text Sloped][2]), et j'ai mis en place cette structure de base ci-dessous::
%Country at (variable) degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (10:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Country" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Country}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Country}%
usa%
\EndAccSupp{}}%
}(energy2)
;
I planned to repeat this J'avais prévu de répéter cette structure for all pour tous les intervalles de 10 degree intervals starting from zero degrees to degrés, de zéro à 360 degrees in order to test whether the problem during the search would occur again. To differentiate the word on the path at every degrés, afin de vérifier si le problème se reproduirait. Pour différencier le mot sur le chemin à chaque intervalle de 10 degree interval I used degrés, j'ai utilisé [this list of countries][3] in order to elucidate, starting in Afghanistan (at afin d'élucider, en commençant par l'Afghanistan (à 0 degree) and going to Chile (at degré) et en allant au Chili (à 360 degrees). This results in the resulting complete degrés). Il en résulte que le code and image resulting:
et l'image complets résultants résultent:
[![image resulting from the complete code][4]][4]
\documentclass{article}
\usepackage{tikz,accsupp}
\usepackage[paperwidth=30cm,paperheight=30cm,bottom=-15cm,left=2cm]{geometry}
\usetikzlibrary{mindmap,quotes}
\begin{document}
\begin{tikzpicture}
%Afghanistan at 10 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (10:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Afghanistan" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Afghanistan}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Afghanistan}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Albania at 20 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (20:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Albania" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Albania}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Albania}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Algeria at 30 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (30:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Algeria" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Algeria}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Algeria}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Andorra at 40 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (40:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Andorra" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Andorra}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Andorra}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Angola at 50 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (50:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Angola" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Angola}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Angola}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Antigua and Barbuda at 60 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (60:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Antigua and Barbuda" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Antigua and Barbuda}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Antigua and Barbuda}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Argentina at 70 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (70:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Argentina" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Argentina}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Argentina}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Armenia at 80 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (80:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Armenia" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Armenia}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Armenia}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Australia at 90 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (90:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Australia" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Australia}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Australia}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Austria at 100 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (100:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Austria" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Austria}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Austria}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Azerbaijan at 110 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (110:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Azerbaijan" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Azerbaijan}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Azerbaijan}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%The Bahamas at 120 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (120:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["The Bahamas" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{The Bahamas}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=The Bahamas}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Bahrain at 130 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (130:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Bahrain" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Bahrain}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Bahrain}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Bangladesh at 140 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (140:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Bangladesh" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Bangladesh}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Bangladesh}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Barbados at 150 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (150:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Barbados" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Barbados}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Barbados}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Belarus at 160 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (160:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Belarus" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Belarus}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Belarus}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Belgium at 170 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (170:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Belgium" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Belgium}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Belgium}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Belize at 180 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (180:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Belize" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Belize}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Belize}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%target at +180 degree
%Benin at 190 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (190:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Benin" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Benin}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Benin}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Bhutan at 200 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (200:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Bhutan" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Bhutan}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Bhutan}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Bolivia at 210 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (210:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Bolivia" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Bolivia}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Bolivia}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Bosnia and Herzegovina at 220 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (220:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Bosnia and Herzegovina" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Bosnia and Herzegovina}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Bosnia and Herzegovina}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Botswana at 230 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (230:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Botswana" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Botswana}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Botswana}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Brazil at 240 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (240:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Brazil" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Brazil}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Brazil}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Brunei at 250 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (250:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Brunei" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Brunei}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Brunei}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Bulgaria at 260 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (260:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Bulgaria" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Bulgaria}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Bulgaria}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Burkina Faso at 270 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (270:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Burkina Faso" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Burkina Faso}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Burkina Faso}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Burundi at 280 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (280:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Burundi" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Burundi}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Burundi}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Cabo Verde at 290 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (290:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Cabo Verde" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Cabo Verde}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Cabo Verde}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Cambodia at 310 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (310:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Cambodia" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Cambodia}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Cambodia}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Cameroon at 320 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (320:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Cameroon" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Cameroon}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Cameroon}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Canada at 330 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (330:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Canada" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Canada}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Canada}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Central African Republic at 340 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (340:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Central African Republic" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Central African Republic}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Central African Republic}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Chad at 350 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (350:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Chad" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Chad}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Chad}%
usa%
\EndAccSupp{}}%
}(energy2)
;
%Chile at 360 degree
\node (energy1) at (0:10cm){some vehicle};
\node (energy2) at (360:10cm) {some vehicle};
\draw [circle connection bar]
(energy1)
edge["Chile" {orange ,sloped,above=.5cm,align=center,text width=8cm}]
(energy2)
(energy1) edge node[orange,sloped,above=0.5cm,align=center,text width=8cm]{Chile}
(energy2)
(energy1)--node[orange, sloped,above=0.5cm,align=center,text width=8cm]{\textsc{%
\BeginAccSupp{method=escape,ActualText=Chile}%
usa%
\EndAccSupp{}}%
}(energy2)
;
\end{tikzpicture}
\end{document}
J'ai fait plusieurs recherches de mots (pays) où le chemin était avec une inclinaison différente, voire opposée, et je ne rencontrais plus le problème du texte recherché pour être déplacé de la position correcte.
Remarque: La position correcte est sur le chemin comme prévu par les commandes: above = 0.5 et align = center.
Je conclus deux choses à ce sujet:
Premièrement - C’est une solution car je n’ai pas précisé ou limité la façon de la résoudre lorsque j’ai posé ma question.
Deuxièmement - Ce n'est pas une solution économique dans un code, mais un palliatif (si vous voulez comprendre l'improvisation aussi).
En outre, il est toujours nécessaire de le rendre plus précis (délimiter) lorsque ce problème est un bogue de Zathura ([j'ai déjà interrogé le personnel responsable] [5]) et dans quelle mesure il peut exister une méthode encore inconnue. discuté de la raison de l’utilisation de la structure de base décrite au début ont fonctionné. J'ai essayé d'utiliser les trois commandes de structure de base de manière isolée, et je ne pouvais pas résoudre le problème de recherche, c'était simplement en utilisant les trois commandes ensemble qu'il était possible de ne plus avoir le problème de recherche de Zathura.
J'apprécie donc les nouvelles réponses ou commentaires qui pourraient mieux préciser ce qu'il est possible de perfectionner en utilisant le langage TeX pour obtenir une autre solution alternative qui résoudra ce problème avec Zathura. Et aussi déterminer pourquoi cela fonctionnait d'utiliser trois commandes comme décrit dans la structure de base, parce que je ne pouvais tout simplement pas comprendre pourquoi cela fonctionnait.
Remarque: Je me demandais si je devrais inclure cette réponse dans ma question ou si je devais utiliser cette réponse pour répondre à ma question, mais compte tenu des ambiguïtés présentes dans mon explication dans cette réponse, je m'attends à suivre les règles.
[1]: https://tex.stackexchange.com/questions/481371/solve-search-for-rotated-or-tilted-words-within-the-zathura-pdf-viewer?noredirect=1#comment1216595_481371
[2]: https://tex.stackexchange.com/questions/481415/draw-sloped-and-above-path-text-between-two-edge-connected-nodes-with-circle-co/481420#481420
[3]: https://www.britannica.com/topic/list-of-countries-1993160
[4]: https://i.stack.imgur.com/Vi51W.png
[5]: https://git.pwmt.org/pwmt/zathura/issues/68
[1]: https://tex.stackexchange.com/questions/481371/solve-search-for-rotated-or-tilted-words-within-the-zathura-pdf-viewer?noredirect=1#comment1216595_481371
[2]: https://tex.stackexchange.com/questions/481415/draw-sloped-and-above-path-text-between-two-edge-connected-nodes-with-circle-co/481420#481420
[3]: https://i.stack.imgur.com/6CM7C.png
[4]: https://i.stack.imgur.com/c6Fbi.png
[5]: https://i.stack.imgur.com/Xekut.png
[6]: https://i.stack.imgur.com/0tbOf.png