编译错误:\put 的参数有一个多余的 }

编译错误:\put 的参数有一个多余的 }

我最近安装了最新版本的 MacTex,每当我尝试编译任何使用 tikz 包的文件时,都会出现以下错误:

的参数\put有一个额外的}

我尝试添加\let\put\latexputlet\latexput\put按照问题的答案所建议的那样重新安装 TeXLive/MiKTeX 后,之前正常工作的代码现在显示“\put 的参数有一个额外的 }”,但是这些都不能解决我的问题。

这是我的代码:

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt]{article}
\PassOptionsToPackage{hyphens}{url}
\usepackage[pagebackref=true,colorlinks]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath,amssymb,amsthm,mathtools,amsrefs,mathrsfs}
\usepackage{pifont}% http://ctan.org/pkg/pifont
\usepackage{mathpazo} % add possibly `sc` and `osf` options
\usepackage{eulervm}
\usepackage{csquotes}
\usepackage{bbm}
\usepackage{lscape}%puts selected page in landscape mode
\usepackage{etex} %allows xRightarrow
\usepackage[table]{xcolor}%This is used to add colors to rows and columns in arrays (which I use for matrices) WARNING: Must load before tikz packages (i believe arrows.meta uses xcolor so there is a clash). or another option is to add "table" as a global option to the document class, ex. \documentclass[12pt,table]{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.pathmorphing,shapes}
\usetikzlibrary{calc}
%\usepackage{pgfplots}
%\pgfplotsset{compat=newest}
\usepackage{comment}
\usepackage{adjustbox}
\usepackage{scalerel,stackengine}%Used for reallywidehat
\usepackage{stmaryrd}
\usepackage{fancyhdr}
%\usepackage{xfrac}%use commands such as \sfrac{1}{2}
\usepackage{soul}
\usepackage{dsfont}%this is for mathbb{1} but you write mathds{1}
\usepackage[normalem]{ulem}
\usepackage{longtable}
\usepackage[bottom]{footmisc}%this forces footnotes to appear on the bottom of page
\usepackage{graphicx}
\usepackage{caption}
%\usepackage{subfig} %this is to plot figures vertically
\usepackage{subcaption}
\usepackage{pictexwd, dcpic}
\usepackage{float}
\usepackage{enumerate}
\usepackage[all]{xy} %This is to make higher categorical stuff
\usetikzlibrary{circuits.ee.IEC}
\hypersetup{
    colorlinks=true,%set true if you want colored links
    linktoc=all,%set to all if you want both sections and subsections linked
    linkcolor=blue,  %choose some color if you want links to stand out
    citecolor=blue,
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%to reduce spacing of titles in table of contents%%%%
%%%%%found this at https://tex.stackexchange.com/questions/396795/how-to-reduce-spacing-between-chapters-in-table-of-content%%%%%%
\usepackage{tocbasic}
\DeclareTOCStyleEntry[
  beforeskip=-0.3em plus 1pt,% default is 1em plus 1pt
  pagenumberformat=\textbf
]{tocline}{section}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%shift horizontal spacing to allow overlay from https://tex.stackexchange.com/questions/51113/horizontal-equivalent-to-raisebox




%%%%%FROM CHO--JACOBS
\input{tikzdefs}

%%%%%%%%%%%%%Title and Author%%%%%%%%%%%%
\title{Quantum Computing for the Masses}
\author{James Fullwood}
%\date{\today}

%egreg https://tex.stackexchange.com/questions/150841/address-and-email-in-article-class
\newcommand{\Addresses}{{% additional braces for segregating \footnotesize
  \bigskip
  \footnotesize


\begin{document}
\emergencystretch 2em

\maketitle
%\begin{abstract}  
%\end{abstract}

\vspace{-7mm}
\tableofcontents


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Classical vs. Quantum Information}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\end{document}

相关内容