章节标签错误(使用子文件)和词汇表

章节标签错误(使用子文件)和词汇表

当我参考我的博士论文第 2 章时,我试图得到好的数字,但没有成功。

我有四个文件,主要包含很多包和:

% Manuscrit.tex ----> Main files
\documentclass[a4paper,11pt,final,twoside]{book}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{subfiles}
\usepackage{xr-hyper}
\usepackage[dvipsnames]{xcolor}
\usepackage[pdftex,pagebackref=true]{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=RoyalBlue,
    citecolor=OliveGreen,
    urlcolor=mymauve}
%Drawing
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning,decorations,automata,backgrounds,calc,er,patterns}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.pathreplacing}

\externaldocument[Int-]{./Introduction/Introduction}
\externaldocument[I-]{./Chapitre_1/Chapitre_1}
\externaldocument[III-]{./Chapitre_3/Chapitre_3}

\usepackage{glossaries} % Ensures that all acronyms are defined once
\let\oldnewacronym\newacronym
\newcommand*{\provideacronym}[3]{%
    \ifglsentryexists{#1}{%
      }{%
      \oldnewacronym{#1}{#2}{#3}%
      }%
    }
\makeglossaries

\newacronym{qgp}{QGP}{Quark Gluon Plasma}
\newacronym{epos}{EPOS}{Energy conserving multiple scattering Partons, parton ladders, and strings Off-shell remnants Saturation}
\newacronym{ckm}{CKM}{Cabibbo Kobayashi Maskawa}
\newacronym{sm}{SM}{Standard Model}
\newacronym{qcd}{QCD}{Quantum ChromoDynamics}
% and other acronym

\begin{document}

\mainmatter
\subfile{./Introduction/Introduction.tex}
\subfile{./Chapitre_1/Chapitre_1.tex}
%\subfile{./Chapitre_2/Chapitre_2.tex}
\subfile{./Chapitre_3/Chapitre_3.tex}

\printglossaries

\end{document}

在 Introduction.tex 文件中:

\documentclass[./../Manuscrit.tex]{subfiles}

\begin{document}

\chapter{Introduction}
\label{chap:intro}
\end{document}

在 Chapitre_1.tex 中:

\documentclass[./../Manuscrit.tex]{subfiles}

\begin{document}

Blabla ....
Finally, we will see few programs that we created to study the \acrlong{qgp} with particles colliders and the connection with my Ph.D work.

\chapter{High energy Physics - Matter - Quark-Gluon-Plasma}
\label{chap:context}

\section{Standard Model describes the known matter}

\begin{table}[h]
\begin{center}
\begin{tabular}{|c|c|c|}
\hline 
Symbol & Description & Value \\ 
\hline
\hline 
$m_e$ & Electron Mass & 511 KeV \\ 
\hline 
$m_\mu$ & Muon Mass & 105.7 MeV \\ 
\hline 
$m_\tau$ & Tau Mass & 1.78 GeV \\ 
\hline
$m_u$ & Up Quark Mass & 1.9 MeV \\ 
\hline
$m_d$ & Down Quark Mass & 4.4 MeV \\ 
\hline
$m_s$ & Strange Quark Mass & 87 MeV \\ 
\hline
$m_c$ & Charm Quark Mass & 1.32 GeV \\ 
\hline
$m_b$ & Beauty or Bottom Quark Mass & 4.24 GeV \\ 
\hline
$m_t$ & Truth or Top Quark Mass & 172.7 GeV \\ 
\hline
$\omega_{12}$ & \gls{ckm} 12-mixing angle & 13.1  \\ 
\hline
$\omega_{23}$ & \gls{ckm} 23-mixing angle & 2.4  \\ 
\hline
$\omega_{13}$ & \gls{ckm} 13-mixing angle & 0.2  \\ 
\hline
$\delta$ & \gls{ckm} CP-violating Phase & 0.995 \\ 
\hline
g' & U(1) gauge coupling & 0.357  \\ 
\hline
g & SU(2) gauge coupling & 0.652 \\ 
\hline
$g_s$ & SU(3) gauge coupling & 1.221  \\ 
\hline
$\theta_{QCD}$ & \gls{qcd} vacuum angle & $\approx$ 0  \\ 
\hline
v & Higgs vacuum expectation value & 246 GeV \\ 
\hline
$m_H$ & Higgs Mass & $\approx$ 125.36 GeV \\ 
\hline
\end{tabular} 
\end{center}0
\caption{\label{tab:param_SM} 19 parameters in \acrlong{sm}}
\end{table}

\subsection{Description of the Standard Model}
\subsubsection{Formal Aspect of Standard Model}
\subsubsection{Interactions and particles in Standard Model}
\label{subsub:partSM}
\subsubsection{The architecture of Standard Model}
\subsection{Limitations of Standard Model}
\begin{figure}[h]
\begin{center}
\begin{tikzpicture}
 \draw[thick,->,>=latex] (0,0) -- (13,0); 
 \draw[thick,->,>=latex] (0,0) -- (0,4.1)node[above]{$\alpha_s$};
 \node at (12.5,-0.3){$\mu$};
 \node at (1,-0.3){\small 1 GeV};
 \node at (5,-0.3){\small $\approx$ TeV};
 \node at (10,-0.3){\small Before Planck};
 \node at (1.5,3.3){\small Confinment};
 \node at (11,3.3){\small Asymptotic safety};
 \draw[blue] (1,3) to[out=280,in=170] (5,0.4) to[out=-10,in=200] (9,0.8) to[out=20,in=230] (11,2.7) to[out=30,in=170] (12.8,2.85) ; 
 \node[red] at (2.2,2.2) {\tiny Light quarks};
 \node[red] at (5,1.2) {\tiny Higgs Mechanism};
 \node[red] at (5,0.7) {\tiny Top};
 \node[red] at (8,2) {\tiny New colored states};
 \draw[red,->,>=latex] (8,1.8) -- (9,0.8);
\end{tikzpicture}
\caption{Asymptotically safe scenario of \acrlong{qcd} expressed in terms of the running of $\alpha_s$}
\label{fig:qcdsafe}
\end{center}
\end{figure}

\subsection{Beyond the Standard Model}
\subsubsection{Supersymmetry}
\subsubsection{String Theory}
\subsection{Summary}

\section{One of the first matter in the Universe}
\subsection{Asymptotic Freedom}
\subsection{The beginning of Quark-Gluon Plasma in physics}
\subsection{Phases of nuclear matter}
\label{subsec:phamat}
\subsection{Heavy Ions Collisions}
\subsection{Summary}

\section{Studies of the Quark Gluon Plasma}
\subsection{Soft Probes}
\subsubsection{Photon}
\label{subsub:photon}
\subsubsection{Baryon enhancement}
\subsubsection{Transverse energy}
\subsubsection{Flow}
\label{subsec:flow}

\end{document}

在 Chapitre_3 中我想引用第 1 章(不是简介)

\documentclass[./../Manuscrit.tex]{subfiles}

\externaldocument[I-]{./../Chapitre_1/Chapitre_1}

\begin{document}

\chapter{Methods to study of anisotropic flow}
\label{Chap:flow}

We see in the previous chapter the tool what I have used all of this Ph.D Thesis. In this chapter, I will show the analysis that I have done all this Ph.D Thesis. Typically, I had put some part of this chapter in the event generator \gls{epos} presented in the previous chapter.

\setlength{\parskip}{0.5cm}

The main observable of this Ph.D is the anisotropic flow that I had briefly introduce in the section \ref{I-subsec:flow} of the Chapter \ref{I-chap:context}. Consquently, this chapter will be dedicated of the history and tacticals to calculs the anisotropic flow. To recall the section \ref{I-subsec:flow} of the Chapter \ref{I-chap:context}.
\end{document}

但结果告诉我:

本博士论文的主要内容是各向异性流,我已在第一章 1.3.1 节中简要介绍过。因此,本章将专门介绍各向异性流计算的历史和策略。回顾第一章 1.3.1 节。

本节的引用很好,但章节不好,我想引用第 2 章而不是第 1 章。为什么我有第 1 章以及我们该如何修复它?

我把 放在\usepackage{xr-hyper}前面hyperref,然后删除xr,但现在我无法编译,因为我还有一个带\acrlong命令的词汇表,现在 Latex 无法识别该命令\acrlong。我在标题中都遇到了这个错误,但外部标题\acrlong没有错误\acrlong

makeglossary为每个子文件运行

谢谢

答案1

问题在于当它在或\acrlong内部使用时,会生成嵌套的超链接。\caption\section

手册中对此有明确的警告glossaries-user(屏幕截图取自当前手册第 6 节第 124 页)

在此处输入图片描述

xr-hyper必须在之前加载hyperref,正如引出这个问题的第一个问题中所述。

可能的解决方案

  • \protect\acrlong{foo}在 内部使用\caption
  • 使用\caption[Text for List Of Table]{Text for caption below the table}

我不会在这里再次发布来自 OP 的文件。

相关内容