Text FormattingPersisting Input Encoding Errors

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
aegisknight
Posts: 1
Joined: Fri Mar 22, 2013 11:40 pm

Persisting Input Encoding Errors

Post by aegisknight »

Hello,

I am very new to LaTeX, and am using it for the first time on a group presentation project using beamer. However, I am getting constant errors at one or two places, with no possible explanation.

An excerpt of the code I am trying to run is:

Code: Select all

\begin{frame}
\frametitle{Dominance Solvable Voting Scheme}
\begin{itemize}
\item \emph {DEFINITION 2}: An n-player voting scheme is an $(n+2)$ tuple $(X_1,…,X_n,A,\pi)$ where:
\item $A$ : the finite set of alternatives

\item $X_i$ strategy set of player $i$

\item $pi$ a mapping from $X_1 * … * X_n$ into $A$ selecting a particular alternative for every decision of the players.

\item One additional Structure: The preference profile describing how the players order the possible decisions in $A$.$

\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Assumptions}
\begin{itemize}
\item \emph {Assmption}: Ordering of $A$ \rightarrow Each player has a strict ordering on $A$ (For simplicity)

\item $U$ : the set of one-to-one mapping from $A$ into $R$ then every strict ordering on $A$ corresponds to a subset of $U$, the space of utility functions.
\end{itemize}
and the error I am getting is:

Code: Select all

LaTeX Warning: Command \^ invalid in math mode on input line 185.


! Package inputenc Error: Keyboard character used is undefined
(inputenc)                in inputencoding `latin1'.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.185 \end{frame}
Line 185 corresponds to \end{frame}. I have tried deleting and retyping it, deleting the line altogether and pasting the end of a previous slide that had no errors, re-writing the code for the slide entirely, but I cannot get around this error. Can anyone help me fix this?
Last edited by Stefan Kottwitz on Sat Mar 23, 2013 12:30 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Persisting Input Encoding Errors

Post by localghost »

Please always prepare a self-contained and minimal example instead of providing code fragments in order to give an adequate problem description. Otherwise it is nearly impossible for others to comprehend a problem.

If I complete your code snippet to such a minimal example, I get completely different errors which are caused by to small mistakes.
  1. There is a superfluous $ at the end of the last item in the list on the first frame.
  2. The \rightarrow command is only for use in math mode. An equivalent is \to (see below code)
The error messages that you posted is not produce by the code fragment. The below example works fine for me.

Code: Select all

\documentclass[smaller,professionalfonts]{beamer}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\begin{document}

\begin{frame}{Dominance Solvable Voting Scheme}
  \begin{itemize}
    \item \emph {DEFINITION 2}: An n-player voting scheme is an $(n+2)$ tuple $(X_1,…,X_n,A,\pi)$ where:
    \item $A$ : the finite set of alternatives
    \item $X_i$ strategy set of player $i$
    \item $pi$ a mapping from $X_1 * … * X_n$ into $A$ selecting a particular alternative for every decision of the players.
    \item One additional Structure: The preference profile describing how the players order the possible decisions in $A$.
  \end{itemize}
\end{frame}

\begin{frame}{Assumptions}
  \begin{itemize}
    \item \emph {Assmption}: Ordering of $A \to$ Each player has a strict ordering on $A$ (For simplicity)
    \item $U$ : the set of one-to-one mapping from $A$ into $R$ then every strict ordering on $A$ corresponds to a subset of $U$, the space of utility functions.
  \end{itemize}
\end{frame}

\end{document}
So you have to isolate the error and provide the above mentioned self-contained example reduced to minimal content that reproduces the error.

Best regards and welcome to the board
Thorsten
Post Reply