如何画出 A 上方的圆

如何画出 A 上方的圆

鉴于网站,这个命令\AA就是我要找的。但是它只是生成rA一个圆圈,而不是在 A 的顶部顶点上放置一个圆圈。我该如何解决这个问题?我想在参考书目中正确显示某人的名字。

以下是 MWE:

\documentclass[paper=A4, fontsize=12, toc=listof, toc=bib]{scrreprt}
\usepackage[inner=2.5cm, outer=2cm, bottom=3cm]{geometry}
\usepackage[super,sort&compress]{natbib}
\usepackage{natmove}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{lmodern}
\usepackage[hypcap]{caption}
\usepackage[perpage, symbol*]{footmisc}
\usepackage{multirow}
\usepackage[hidelinks, breaklinks]{hyperref}

    \makeatletter
\def\NAT@spacechar{}
\makeatother

\pagestyle{fancyplain}
\setcitestyle{comma}

\renewcommand{\chaptermark}[1]%
    {\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
    {\markright{\small\thesection\ #1}}
\lhead[\fancyplain{}{\small\thepage}]%
    {\fancyplain{}{\small\rightmark}}
\rhead[\fancyplain{}{\small\leftmark}]%
    {\fancyplain{}{\small\thepage}}
\cfoot{}

%\renewcommand{\footnoterule}{%
%    \vspace*{-3pt}%
%    \noindent\rule{\columnwidth}{0.4pt}%
%    \vspace*{2.6pt}%
%}

% % Math abbreviations start

\newcommand{\gLL}{\left|\bar{\gamma}\right|}
\newcommand{\gG}{\left|\gamma\right|}

\newcommand{\muB}{\mu_{\text{B}}}

\newcommand{\Ga}{\Gamma}

\newcommand{\B}{\mathbf{B}}

\newcommand{\D}{\overleftrightarrow{\mathbf{D}}}

\renewcommand{\H}{\mathbf{H}}
\newcommand{\Heff}{\H_{\text{eff}}}
\newcommand{\Hext}{\H_{\text{ext}}}
\newcommand{\Hexch}{\H_{\text{exch}}}
\newcommand{\Hdem}{\H_{\text{dem}}}
\newcommand{\Hanis}{\H_{\text{anis}}}
\newcommand{\Hbias}{\H_{\text{bias}}}
\newcommand{\Hsig}{\H_{\text{sig}}}

\newcommand{\I}{\mathbf{I}}

\newcommand{\J}{\mathbf{J}}

\newcommand{\M}{\mathbf{M}}
\newcommand{\Ms}{M_{\text{s}}}
\newcommand{\Mrf}{\tilde{m}({\bf r}, f)}
\newcommand{\Mrfv}{\left|\Mrf\right|}
\newcommand{\Mrfb}{\left(\Mrf\right)}

\newcommand{\X}{{\rm X}}
\newcommand{\Y}{{\rm Y}}
\newcommand{\Mp}{{\rm M}}

\newcommand{\N}{\overleftrightarrow{\mathbf{N}}}

\newcommand{\Py}{Ni$_{80}$Fe$_{20}$}

\newcommand{\fex}{f_{\text{ex}}}

\renewcommand{\k}{\mathbf{k}}
\newcommand{\kB}{k_{\text{B}}}

\newcommand{\lex}{\lambda_{\text{ex}}}

\newcommand{\mB}{\mu_{\text{B}}}

\newcommand{\m}{\mathbf{m}}

\newcommand{\mean}[1]{\left\langle #1 \right\rangle}

\newcommand{\ms}[1][r]{\mean{{#1}^2}}

\newcommand{\pd}[2]{\frac{\partial#1}{\partial#2}}

\renewcommand{\r}{\mathbf{r}}
\newcommand{\ri}{\r_i}
\newcommand{\rj}{\r_j}
\newcommand{\br}{\left( \r \right)}
\newcommand{\bri}{\left( \ri \right)}
\newcommand{\brj}{\left( \rj \right)}
\newcommand{\bridrj}{\left( \ri - \rj \right)}
\newcommand{\brt}[1]{\left( \r, t_{#1} \right)}
\newcommand{\hrt}[1]{\mathbf{h} \left( \M, \r, t_{#1} \right)}

\newcommand{\set}[1]{\left\lbrace #1 \right\rbrace}

\newcommand{\tc}[1]{\textcircled{\scriptsize #1}}
%4-1 = \tc{1}
%4-6 = \tc{2}
%3-3 = \tc{3}
%3-6 = \tc{4}

\newcommand{\se}{\mathbf{s}}
\newcommand{\bse}{\left( \se \right)}

\newcommand{\citesource}[1]{Source: Ref.$\:$\citenum{#1}}

\newcommand{\tens}[1]{\overleftrightarrow{\mathbf{#1}}}

\newcommand{\unit}[1]{\hat{\mathbf{#1}}}

\DeclareMathOperator{\sinc}{sinc}


% % Math abbreviations end

%\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\sectfont}{\normalfont\bfseries}
%\setkomafont{disposition}{\rmfamily}

\def\chapterautorefname{Chap.}
\def\sectionautorefname{Sec.}
\def\subsectionautorefname{sub--Sec.}
\def\figureautorefname{Fig.}
\def\tableautorefname{Tab.}
\def\equationautorefname~#1\null{Eq.~(#1)\null}

\def\AAo{\textrm{A\kern -1.3ex\raisebox{0.6ex}{$^\circ$}}}

\newcommand{\Autoref}[1]{\begingroup\def\chapterautorefname{Chapter}\def\sectionautorefname{Section}\def\subsectionautorefname{Sub--Section}\def\figureautorefname{Figure}\def\tableautorefname{Table}\def\equationautorefname~##1\null{Equation~(##1)\null}\autoref{#1}\endgroup}

\begin{document}
Cited here \cite{Bonetti2009}.

\begin{thebibliography}{349}%
\makeatletter
\providecommand \@ifxundefined [1]{%
 \@ifx{#1\undefined}
}%
\providecommand \@ifnum [1]{%
 \ifnum #1\expandafter \@firstoftwo
 \else \expandafter \@secondoftwo
 \fi
}%
\providecommand \@ifx [1]{%
 \ifx #1\expandafter \@firstoftwo
 \else \expandafter \@secondoftwo
 \fi
}%
\providecommand \natexlab [1]{#1}%
\providecommand \enquote  [1]{``#1''}%
\providecommand \bibnamefont  [1]{#1}%
\providecommand \bibfnamefont [1]{#1}%
\providecommand \citenamefont [1]{#1}%
\providecommand \href@noop [0]{\@secondoftwo}%
\providecommand \href [0]{\begingroup \@sanitize@url \@href}%
\providecommand \@href[1]{\@@startlink{#1}\@@href}%
\providecommand \@@href[1]{\endgroup#1\@@endlink}%
\providecommand \@sanitize@url [0]{\catcode `\\12\catcode `\$12\catcode
  `\&12\catcode `\#12\catcode `\^12\catcode `\_12\catcode `\%12\relax}%
\providecommand \@@startlink[1]{}%
\providecommand \@@endlink[0]{}%
\providecommand \url  [0]{\begingroup\@sanitize@url \@url }%
\providecommand \@url [1]{\endgroup\@href {#1}{\urlprefix }}%
\providecommand \urlprefix  [0]{URL }%
\providecommand \Eprint [0]{\href }%
\providecommand \doibase [0]{http://dx.doi.org/}%
\providecommand \selectlanguage [0]{\@gobble}%
\providecommand \bibinfo  [0]{\@secondoftwo}%
\providecommand \bibfield  [0]{\@secondoftwo}%
\providecommand \translation [1]{[#1]}%
\providecommand \BibitemOpen [0]{}%
\providecommand \bibitemStop [0]{}%
\providecommand \bibitemNoStop [0]{.\EOS\space}%
\providecommand \EOS [0]{\spacefactor3000\relax}%
\providecommand \BibitemShut  [1]{\csname bibitem#1\endcsname}%
\let\auto@bib@innerbib\@empty

\bibitem [{\citenamefont {Bonetti}\ \emph {et~al.}(2009)\citenamefont
  {Bonetti}, \citenamefont {Muduli}, \citenamefont {Mancoff},\ and\
  \citenamefont {\AAo~kerman}}]{Bonetti2009}%
  \BibitemOpen
  \bibfield  {author} {\bibinfo {author} {\bibfnamefont {S.}~\bibnamefont
  {Bonetti}}, \bibinfo {author} {\bibfnamefont {P.}~\bibnamefont {Muduli}},
  \bibinfo {author} {\bibfnamefont {F.}~\bibnamefont {Mancoff}}, \ and\
  \bibinfo {author} {\bibfnamefont {J.}~\bibnamefont {\AAo~kerman}},\ }\href
  {\doibase http://dx.doi.org/10.1063/1.3097238} {\bibfield  {journal}
  {\bibinfo  {journal} {Appl. Phys. Lett.}\ }\textbf {\bibinfo {volume} {94}},\
  \bibinfo {eid} {102507} (\bibinfo {year} {2009})}\BibitemShut {NoStop}%

\end{thebibliography}%

\end{document}

上面的例子抛出了这些错误:

Use of \@item doesn't match its definition ...itenamefont {\AAo~kerman}}]{Bonetti2009}
Argument of \@rsbox has an extra } ...itenamefont {\AAo~kerman}}]{Bonetti2009}
Paragraph ended before \@rsbox was complete ...itenamefont {\AAo~kerman}}]{Bonetti2009}
Incomplete \iffalse; all text was ignored after line 1076 ...itenamefont {\AAo~kerman}}]{Bonetti2009}
Forbidden control sequence found while scanning text of \write ...itenamefont {\AAo~kerman}}]{Bonetti2009}

参考书目部分是使用 BibTeX 自动生成的。更改\AAo~{\AAo}可解决问题。但我宁愿让它自动完成。如果能让\AA{}它自己工作就更好了。

答案1

不要重新定义,\r因为这是“å”上使用的“环”。

相关内容