For whatever reason I keep getting an error when I run this code on my laptop, it says I have an extra { but when I run this exact code on a different machine it works just fine. when I remove the } on the specified line it says I forgot to add a }. Please help! I just updated my textmaker in the hopes that that would solve the problem but it didnt. Thank you
\documentclass{article}
\usepackage{mathptmx}
\usepackage{anyfontsize}
\usepackage{amsmath,mathtools}
\usepackage{array}
\usepackage{graphicx}
\usepackage{color}
\usepackage[most]{tcolorbox}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.8}
\usepackage{tikz}
\usepackage{float}
\usepackage{subfig}
\usepackage{color}
\sloppy
\definecolor{lightgray}{gray}{0.5}
\setlength{\parindent}{0pt}
\addtolength{\oddsidemargin}{-.875in}
\addtolength{\evensidemargin}{-.875in}
\addtolength{\textwidth}{1.75in}
\addtolength{\topmargin}{-.875in}
\addtolength{\textheight}{1.75in}
\begin{document}
\section{Experimental Setup}
\begin{figure}[H]
\centering
\includegraphics[scale=0.7]{experimentaldesign.png}
\caption{96-well plate containing A549-HLC3 I cells treated with 25 $\mu$M Rapamycin (RAP), 5 nM Bafilomycin(BAF), and 0.1$%$ Dimethyl Sulfoxide (DMSO) as VC. Cells were treated with Period I(PI) treatments for 24 hours, cells were then "rinsed" with drug-free media and treated with treatments for period II (see above). Red lines represent wells not included in the analysis, blue lines represent images taken for period I, and red circles represent wells where images where taken for Period II(PII).}
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Results}
\begin{figure}[H]
\centering
\subfloat[\centering Cells Treated with Same Drug Input During PI and PII]{{\includegraphics[width=6cm]{AtoA.png} }}%
\qquad
\subfloat[\centering Average Punctae per Cell]{{\includegraphics[width=9cm, height = 8cm]{AnalysisPIPII_01.png} }}%
\caption{\textbf{(a)} side-by-side images taken for PI (left) and PII (right) for VC, RAP, and BAF. VC-R and VC-B represent vehicle control images taken with a Fluorescent Olympus IX83-Inverted Microscope with specific light intensity settings for Rapamycin and Bafilomycin respectively. \textbf{(b)} Average punctae per cell analysis using SparQ pluggin for FIJI(ImageJ). Error bars represent standard deviation ($\pm$SD). }%
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[H]
\centering
\subfloat[\centering VC to RAP and BAF]{{\includegraphics[width=6cm]{VCto2.png} }}%
\qquad
\subfloat[\centering Average Punctae per Cell]{{\includegraphics[width=9cm, height = 8cm]{AnalysisPIPII_02.png} }}%
\caption{\textbf{(a)} Cells treated with VC for PI (left) then treated with RAP and BAF for PII (right). \textbf{(b)} Average punctae per cell analysis. Error bars represent standard deviation ($\pm$SD).}%
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[H]
\centering
\subfloat[\centering RAP to VC and BAF]{{\includegraphics[width=6cm]{RAPto2.png} }}%
\qquad
\subfloat[\centering Average Punctae per Cell]{{\includegraphics[width=9cm, height = 8cm]{AnalysisPIPII_03.png} }}%
\caption{\textbf{(a)} Cells treated with RAP for PI (left) then treated with VC and BAF for PII (right). \textbf{(b)} Average punctae per cell analysis. Error bars represent standard deviation ($\pm$SD).}%
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[H]
\centering
\subfloat[\centering BAF to VC and RAP]{{\includegraphics[width=6cm]{BAFto.png} }}%
\qquad
\subfloat[\centering Average Punctae per Cell]{{\includegraphics[width=9cm, height = 8cm]{AnalysisPIPII_04.png} }}%
\caption{\textbf{(a)} Cells treated with BAF for PI (left) then treated with VC and RAP for PII (right). \textbf{(b)} Average punctae per cell analysis. Error bars represent standard deviation ($\pm$SD).}%
\end{figure}
\section{T-test}
\begin{figure}[H]
\centering
\includegraphics[scale=0.5]{Ttest.png}
\caption{Schematic Diagram for Determining the Correct T-Test to Use.}
\end{figure}
\end{document}

{}, then it will be properly formatted. – Teepeemm Oct 09 '20 at 19:07}{but I got fed up with having to keep going past all the files that you used but did not provide. – Peter Wilson Oct 10 '20 at 18:07experimentaldesign.png. Please remove that from your example (you can useexample-image-ainstead). Please don't post an image of the error message text; copy it from your .log file instead. – Teepeemm Oct 11 '20 at 01:10