I have this simple code:
\documentclass[10pt]{article}
% amsmath package, useful for mathematical formulas
\usepackage{amsmath}
% amssymb package, useful for mathematical symbols
\usepackage{amssymb}
\usepackage{changepage}
% graphicx package, useful for including eps and pdf graphics
% include graphics with the command \includegraphics
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{listings}
\usepackage{caption}
% cite package, to clean up citations in the main text. Do not remove.
\usepackage{cite}
\usepackage{color}
% Use doublespacing - comment out for single spacing
%\usepackage{setspace}
%\doublespacing
% Text layout
\topmargin 0.0cm
\oddsidemargin 0.5cm
\evensidemargin 0.5cm
\textwidth 16cm
\textheight 21cm
% Bold the 'Figure #' in the caption and separate it with a period
% Captions will be left justified
\usepackage[labelfont=bf,labelsep=period,justification=raggedright]{caption}
\usepackage{amsfonts}
\usepackage{t1enc}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{pdflscape}
% Allow long tables to be split over multiple pages
\usepackage{longtable}
\title{TEST}
\begin{document}
\maketitle
\section*{Equations}
\noindent Example Equation
\begin{equation}
E_x= 1-e^{-k_{time}t}
\end{equation}
...
\texttt{E_x}
\end{document}
I receive "Missing $ inserted" on the \texttt{E_x}, but I know that \texttt{} function is used to produce a text-mode of what it has inside the {}. What am I wrong?
\_to get a _ in text – David Carlisle Mar 08 '21 at 16:37k_{\mathrm{time}}the version you have will spacet i m elike a product of variables not a word. – David Carlisle Mar 08 '21 at 16:38