包 textcomp 错误:符号 \textlangle 未由 [\textlangle] 提供

包 textcomp 错误:符号 \textlangle 未由 [\textlangle] 提供

在我的论文中,我在尖括号中引用了许多正字法形式。到目前为止,我只是在 (<word>) 后输入尖括号和一个显式空格,但我想切换到一些更美观的尖括号,我可以通过一个命令来输入,该命令会自动包含空格,并允许我同时更改所有形式的排版(例如\Angular{word})。

从这篇文章:[https://tex.stackexchange.com/questions/48448/angle-brackets-in-non-math-mode-text]我想到使用textcomp 包中的\textlangleand命令并定义一个这样的新命令:\textrangle

\usepackage{textcomp,xspace}
\newcommand{\Ang}[1]{\textlangle\xspace{#1}\textrangle\xspace}

在我进行测试的文章类文档中,它运行良好,但在我的论文的更大的报告类文档中,我得到了错误:“

Problem with textcomp package - Symbol \textlangle not provided by
[\Angular{word}]

我也尝试直接在文档中输入\textlangle\textrangle,但收到错误:

Symbol \textlangle not provided by
[\textlangle]

我的序言中是否有一些内容与 textcomp 包和新命令相抵触,或者可能存在什么问题?

我的序言如下所示(如果看起来很乱,我很抱歉,每次我在写论文时遇到新的问题需要解决时,我都会添加新的包和命令,但不知道是否有办法让序言更“有条理”?):

\documentclass[12pt]{report} %Schriftgröße 12 pt; hidelinks in die [] einfügen wenn Links versteckt sein sollen
\usepackage[utf8]{inputenc}

\usepackage[a4paper,left=30mm,right=40mm,top=30mm,bottom=30mm]{geometry} % innerer Seitenrand 3 cm, äußerer 4 cm, oben u. unten je 3
%\usepackage{a4wide} % fuer schmalere Seitenraender

\usepackage{setspace} % für ZeilenabstandLa entrada \enquote{Sillero}, escrita 
\spacing{1.45} % entspricht in etwa Zeilenabstand 1.5 in word
%\doublespacing

\usepackage[spanish]{babel} %,ngerman,spanish, english %\foreignlanguage{spanish}{text}

\usepackage{fontspec-xetex}
    \setmainfont{Linux Libertine O}
    \setsansfont{Linux Biolinum O}

\usepackage{tipa}

\usepackage{fourier}
%\usepackage{textcomp}
\usepackage{expex}
\lingset{% my custom formatting for expex glosses
    belowglpreambleskip=-0.1ex,% shrinks the vertical space between the preamble and the top gloss line
    %everygla=\footnotesize,% removes the default italic formatting of the top gloss line
    everyglb=\footnotesize \ttfamily,
    everyglc=\footnotesize \ttfamily,
    everyglpreamble=\itshape,
    aboveglbskip=-1ex,
    aboveglcskip=-1ex,
    aboveglftskip=-2ex,% shrinks the vertical space between the aligned lines and the free translation line
    interpartskip=1ex,% vertical space between parts of examples
    glspace=!0pt plus .2em,% improves line breaking by increasing the maximum horizontal space between aligned words
    glrightskip=0pt plus .5\hsize,% improves line breaking by increasing the maximum horizontal space between end of line and the right margin
    aboveexskip=1ex plus .4ex minus .4ex,% vertical space above examples
    belowexskip=1.5ex plus .4ex minus .4ex% vertical space below examples
}

\usepackage{caption}

\lingset{% my custom formatting for expex glosses
    belowglpreambleskip=-0.1ex,% shrinks the vertical space between the preamble and the top gloss line
%   everygla=\footnotesize,% removes the default italic formatting of the top gloss line
%   everyglb=\footnotesize \ttfamily,
%   everyglc=\footnotesize \ttfamily,
%    everyglpreamble=\itshape,
    aboveglftskip=-0.2ex,% shrinks the vertical space between the aligned lines and the free translation line
    interpartskip=1ex,% vertical space between parts of examples
    glspace=!0pt plus .2em,% improves line breaking by increasing the maximum horizontal space between aligned words
    glrightskip=0pt plus .5\hsize,% improves line breaking by increasing the maximum horizontal space between end of line and the right margin
    aboveexskip=1ex plus .4ex minus .4ex,% vertical space above examples
    belowexskip=1.5ex plus .4ex minus .4ex% vertical space below examples
}



\usepackage{linguex} % für glossierte Beispiele
\let\eachwordone=\itshape

\usepackage{color} % evtl noetig, wenn die Links farbig sein sollen
\usepackage{hyperref}
\hypersetup{colorlinks=true, linktoc=all, linkcolor=black,}

\usepackage{pdfpages}
\usepackage{graphicx}

\usepackage[
backend=biber,
style=authoryear, %sets the Bibliography style to authoryear; chicago-authordate
citestyle=authoryear-comp %sets the Citation style to authoryear-icomp; chicago-authordate
]
{biblatex} 

\usepackage{url}

%\setlength{\parindent}{4em}
%\setlength{\parskip}{1em}


\renewcommand*{\postnotedelim}{\space\addcolon\space}

\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}

\addbibresource{centralbibliography.bib}
%.bibfile muss sich im selben Ordner befinden
\usepackage[autostyle]{csquotes} % for quotes: commands: \enquote{}; \foreignquote{}; \hyphenquote{}; \textquote[{\cite{}}][<punct>]{text}tpunct; \blockquote[<cite>][]{text}; \hyphenblockquote[][]{}

\newenvironment*{singlespcquote} %sets the line spacing for blockquotes to single
    {\quote\singlespacing}
    {\endquote}

\SetBlockEnvironment{singlespcquote}

\usepackage{array}
\usepackage{booktabs}%fuer schoene Tabellenlinien
\usepackage{tabulary} % für Tabellen (macht alle Spalten gleich lang)
\usepackage{tabularx}
\usepackage{arydshln} %für gestrichelte horizontale Linie in Tabellen mit \hdashline

\usepackage{longtable}
\usepackage[table]{xcolor}

\newcommand{\Gloss}[1]{\textsc{#1}}
\newcommand{\reference}[1]{(#1)}

\usepackage{fancyhdr} % für Header und Footer
\pagestyle{fancy} % am Beginn einer Seite, die keine Header und Footer haben soll: \pagestyle{empty} = gar nichts, \pagestyle{plain} = nur Seitenzahl

\fancyhead{}
\fancyhead[R]{Thesis Title}
\fancyfoot{}
\fancyfoot[R]{\thepage}
\fancyfoot[L]{Chapter \thechapter}
\fancyfoot[C]{Author Name}

\usepackage{graphicx} % für Graphiken
%\graphicspath{ {graphics/} } % spezifiziert den Ordner, wo die Graphiken sind

%\usepackage{adjustbox} Hat nicht funktioniert - Möglichkeit, Tabellen auf Textbreite zu reduzieren?

\newenvironment{packed_item}{
\begin{itemize}
  \setlength{\itemsep}{0.5pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{itemize}}

\newenvironment{packed_enum}{
\begin{enumerate}
  \setlength{\itemsep}{1pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{enumerate}}

\usepackage{etoolbox}
\pretocmd{\ex}{\vspace{\Exredux}\begin{singlespace}}{}{}
\renewcommand{\ExEnd}{%
    \ifnum\theExDepth=0\global\unembeddedfalse\end{singlespace}\vspace{.5\Exredux}\else%
    \end{list}\addtocounter{ExDepth}{-1}\ExEnd\fi}

\setlength\parindent{0pt}

\usepackage{textcomp,xspace}
%\newcommand\la{\textlangle\xspace}  % set up short-form macros
%\newcommand\ra{\textrangle\xspace}  % definiert Kurzbefehle für eckige KLammern, je rechts und links
%\newcommand{\Ang}[1]{\la{#1}\ra}    % definiert einen Kurzbefehl um ein Wort in eckige Klammern zu setzen
\newcommand{\Ang}[1]{\textlangle\xspace{#1}\textrangle\xspace}

\begin{document}

非常感谢你的帮助!

相关内容