使用包 accsupp 时更改可搜索词的位置

使用包 accsupp 时更改可搜索词的位置

我使用的答案是我的问题使用 accsupp 包时,当倾斜“圆形连接栏”时,可以在 Zathura pdf viewer 中找到文本。我还尝试使用 m 的答案保存代码你的问题仅使用边缘(如@Skillmon 所回答)。但是可搜索的单词会随着节点的相对位置改变而改变位置。请参阅下面的代码示例。图像与完成搜索的结果相匹配,因此是蓝色矩形。

情况1:

可搜索的单词不在预期位置

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}

原始图像(未在 Zathura 中进行研究):

案例 1 的原始图片

案例 2:

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}

但通过改变节点的位置,可搜索的单词就位于正确的位置:

在正确的位置找到了可搜索的单词(在圆形连接栏路径上)

原始图像(未搜索 Zathura):

案例 2 的原始图片

答案1

我应用了这两个问题中描述的三种不同路径类型(解决 Zathura 中的搜索问题绘制倾斜的文本),我建立了下面的基本结构:

%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)
;

我计划从零度到 360 度,对所有 10 度间隔重复此结构,以测试搜索过程中的问题是否会再次出现。为了区分路径上每 10 度间隔的单词,我使用了这个国家名单为了阐明,从阿富汗(0 度)开始,到智利(360 度)。这导致最终的完整代码和图像如下:

完整代码生成的图像

\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}

我搜索了多个单词(国家),其中路径具有不同的倾斜度,甚至是相反的,我再也没有遇到试图将文本从正确位置移动的问题。注意:正确的位置是在路径上,正如命令所期望的那样:above = 0.5 和 align = center。我对此得出了两点结论:

首先 - 这是一个解决方案,因为当我提出问题时我没有指定或限制如何解决它。

第二 - 这不是一种代码中的经济解决方案,而是一种缓解措施(如果您也想理解为即兴创作的话)。

此外,仍然需要使其更加灵活(界定)到该问题是 Zathura 的一个错误(我已经询问了相关负责人) 以及在多大程度上可能存在尚未讨论的关于使用开头所述基本结构的原因的方法已经奏效。我尝试单独使用三个基本结构命令,无法解决搜索问题,只有将这三个命令一起使用才有可能不再出现 Zathura 搜索问题。

因此,我很感谢新的答案或评论,它们可能会更好地阐明使用 TeX 语言可以完善哪些方面,以获得另一种替代解决方案来解决 Zathura 的这个问题。同时还要确定为什么使用基本结构中描述的三个命令会有效,因为我就是无法理解它为什么有效。

注意:我想知道我是否应该把这个答案放在我的问题中,或者我是否应该用这个答案来回答我的问题,但考虑到我在这个答案中的解释存在歧义,我希望遵循规则。

相关内容