I am totally new to Latex, I am seeing error at end of line \end{frame} , not able to figure it out why?
\documentclass{beamer}
% --------------------------------------------------- %
% Presentation info %
% --------------------------------------------------- %
\title{Test1}
\author{AMITH KOTIAN}
\date{January 2021}
\begin{document}
\maketitle
\section{Introduction}
\begin{frame}{HAND REHABILITATION SYSTEM}
\chaptype{ \LARGE \textbf {1.Design Consideration}}
\vspace*{0.5cm}
\begin{itemize}
\setlength{\itemsep}{3mm}
\begin{Large}
\item User safety must be guaranteed.
\item It can be easily worn.
\end{Large}
\end{itemize}
\end{frame}
\end{document}
The macro \chaptype is not defined. I have no idea what you might want it to do, but you must either load a package with defines it or define it yourself:
\documentclass{beamer}
% --------------------------------------------------- %
% Presentation info %
% --------------------------------------------------- %
\title{Test1}
\author{AMITH KOTIAN}
\date{January 2021}
\newcommand{\chaptype}[1]{{#1}}
\begin{document}
\maketitle
\section{Introduction}
\begin{frame}{HAND REHABILITATION SYSTEM}
\chaptype{ \LARGE \textbf {1.Design Consideration}}
\vspace*{0.5cm}
\begin{itemize}
\setlength{\itemsep}{3mm}
\begin{Large}
\item User safety must be guaranteed.
\item It can be easily worn.
\end{Large}
\end{itemize}
\end{frame}
\end{document}
Related
I have imported in TeXStudio a document that compile correctly on Overleaf.
But I got this error :
! Emergency stop.
\pgfsys#defineimage ...astform }\else {\pdfximage
\pgf#imageheight \pgf#imag...
l.16 ...ight=12pt]{beamericonbook}{beamericonbook}
Anybody have an idea of the problem ?
TEX file content :
% Inbuilt themes in beamer
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathabx}
\usepackage{mathpazo}
\usepackage{eulervm}
\usepackage{natbib}
% Theme choice:
\usetheme{Darmstadt}
\usefonttheme{serif}
\usecolortheme{rose}
\makeatletter
\newenvironment{withoutheadline}{
\setbeamertemplate{headline}[default]
\def\beamer#entrycode{\vspace*{-\headheight}}
}{}
\makeatother
\definecolor{macouleur}{RGB}{0,150,200}
\setbeamercolor{structure}{fg=macouleur}
\setbeamercolor{section in toc}{fg=black}
% Title page details:
\beamertemplatenavigationsymbolsempty
\title{Génie Logiciel \newline ------ \newline
Introductions}
\author{2022/2023}
\institute{Yo}
\date{}
\begin{document}
\begin{withoutheadline}
\begin{frame}
\titlepage
\centering
\includegraphics[scale=0.30]{Polytech.jpg}
\end{frame}
\end{withoutheadline}
\begin{withoutheadline}
\begin{frame}{Organisation du module}
\begin{itemize}
\item 22h de CM/TD/TP
\newline
\item Programmation orientée Objet et UML
\item Versionning et GIT
\item Testing et Junit
\item Design patterns et Java
\newline
\item Examen final sur table
\end{itemize}
\end{frame}
\end{withoutheadline}
\begin{withoutheadline}
\begin{frame}{Sommaire}
\tableofcontents
\end{frame}
\end{withoutheadline}
\section{Logiciel, crise et génie logiciels}
\begin{frame}{Slide 1.1}
This is an unordered list:
\begin{itemize}
\item Item 1
\item Item 2
\item Item 3
\end{itemize}
and this is an ordered list:
\begin{enumerate}
\item Item 1
\item Item 2
\item Item 3
\end{enumerate}
\end{frame}
% Blocks frame
\section{Partie 2}
\begin{frame}{Slide 2.1}
\begin{block}{Standard Block}
This is a standard block.
\end{block}
\begin{alertblock}{Alert Message}
This block presents alert message.
\end{alertblock}
\begin{exampleblock}{An example of typesetting tool}
Example: MS Word, \LaTeX{}
\end{exampleblock}
\end{frame}
\end{document}
Log file :
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/amscls\amsthm.sty
Package: amsthm 2020/05/29 v2.20.6
\thm#style=\toks39
\thm#bodyfont=\toks40
\thm#headfont=\toks41
\thm#notefont=\toks42
\thm#headpunct=\toks43
\thm#preskip=\skip61
\thm#postskip=\skip62
\thm#headsep=\skip63
\dth#everypar=\toks44
)
\c#theorem=\count333
)
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerbasethemes.st
y))
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerthemedefault.
sty
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerfontthemedefa
ult.sty)
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamercolorthemedef
ault.sty)
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerinnerthemedef
ault.sty
! I can't write on file `1.pdf'.
(Press Enter to retry, or Control-C to exit; default file extension is `.pdf')
Please type another file name for output
! Emergency stop.
\pgfsys#defineimage ...astform }\else {\pdfximage
\pgf#imageheight \pgf#imag...
l.16 ...ight=12pt]{beamericonbook}{beamericonbook}
*** (job aborted, file error in nonstop mode)
I am new to coding - I am using a template to create my CV with overleaf/LaTeX. There were some default settings but I wanted to create some elements that weren't in the default template. I am trying to add in headings within one of my job experiences but my text goes off the page - how do I get it to go onto the next line and stay in line with my other text?
[Screenshot of line going off the page][1]
%-------------------------
% Resume in Latex
% Author : Jake Gutierrez
% Based off of: https://github.com/sb2nov/resume
% License : MIT
%------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{contour}
\usepackage{ulem}
\input{glyphtounicode}
%----------FONT OPTIONS----------
% sans-serif
% \usepackage[sfdefault]{FiraSans}
% \usepackage[sfdefault]{roboto}
% \usepackage[sfdefault]{noto-sans}
% \usepackage[default]{sourcesanspro}
% serif
% \usepackage{CormorantGaramond}
% \usepackage{charter}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\text{#1} & #2 \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-7pt}
}
\renewcommand{\ULdepth}{3pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.15in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%----------HEADING----------
% \begin{tabular*}{\textwidth}{l#{\extracolsep{\fill}}r}
% \textbf{\href{http://sourabhbajaj.com/}{\Large Sourabh Bajaj}} & Email : \href{mailto:sourabh#sourabhbajaj.com}{sourabh#sourabhbajaj.com}\\
% \href{http://sourabhbajaj.com/}{http://www.sourabhbajaj.com} & Mobile : +1-123-456-7890 \\
% \end{tabular*}
\begin{center}
\textbf{\Huge \scshape *******} \\ \vspace{1pt}
\small $|$ \href{}{{}} $|$
\href{}{\underline{LinkedIn}}
\end{center}
%-----------EXPERIENCE-----------
\section{Experience}
\resumeSubHeadingListStart
\resumeSubheading
{}{}
{}{}
\linebreak
\resumeItemListStart
\resumeItem{}
\resumeItem{}
\resumeItem{}
\linebreak
% \resumeItem{\textbf{\underline{{Client: }}}}
% \begin{enumerate}
% \item [-]
% \item[-]
% \end{enumerate}
% \resumeItem{\underline{}}
% \begin{enumerate}
% \item [-]
% \item [-]
% \item[-]
% \end{enumerate}
\begin{itemize}[leftmargin=0in, label={}]
\small{\item{
\text{\uline{}
\item[-]{}
\item[-]{}
\end{enumerate}
}}
\end{itemize}
\begin{itemize}[leftmargin=0in, label={}]
\small{\item{
\text{\uline{{}}} \\
\begin{enumerate}
\item[-]{.}
\end{enumerate}
}}
\end{itemize}
A couple of problems:
the syntax \small{....} is wrong. \small is a switch, which does not take an argument, so it should be {\small ...}. To avoid incorrect baselineskips, I suggest to place this outside of the itemize environment
\text{...} is a math only command. You must not use it outside of math environments.
\item does not take an mandatory argument. Instead of \item{...} it should be \item ....
don't abuse \\ for line breaks (outside of tables etc.).
several missing \end{itemize}
missing \end{document}
%-------------------------
% Resume in Latex
% Author : Jake Gutierrez
% Based off of: https://github.com/sb2nov/resume
% License : MIT
%------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{contour}
\usepackage{ulem}
\input{glyphtounicode}
%----------FONT OPTIONS----------
% sans-serif
% \usepackage[sfdefault]{FiraSans}
% \usepackage[sfdefault]{roboto}
% \usepackage[sfdefault]{noto-sans}
% \usepackage[default]{sourcesanspro}
% serif
% \usepackage{CormorantGaramond}
% \usepackage{charter}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\text{#1} & #2 \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-7pt}
}
\renewcommand{\ULdepth}{3pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.15in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%----------HEADING----------
% \begin{tabular*}{\textwidth}{l#{\extracolsep{\fill}}r}
% \textbf{\href{http://sourabhbajaj.com/}{\Large Sourabh Bajaj}} & Email : \href{mailto:sourabh#sourabhbajaj.com}{sourabh#sourabhbajaj.com}\\
% \href{http://sourabhbajaj.com/}{http://www.sourabhbajaj.com} & Mobile : +1-123-456-7890 \\
% \end{tabular*}
\begin{center}
\textbf{\Huge \scshape Sophie Clarke} \\ \vspace{1pt}
\small 07920 429 244 $|$ \href{sophieclarke#hotmail.co.uk}{{sophieclarke#hotmail.co.uk}} $|$
\href{https://www.linkedin.com/in/sophie-clarke-5b51aaba/}{\underline{LinkedIn}}
\end{center}
%-----------EXPERIENCE-----------
\section{Experience}
\resumeSubHeadingListStart
\resumeSubheading
{Research Assistant in the Economics of International Trade}{September 2021 -- Present}
{The UK Trade Policy Observatory}{Brighton, UK/ Remote}
\linebreak
\resumeItemListStart
\resumeItem{Assist the UKTPO team of researchers with regard to data and background research and contribute to the production of research outputs for publication.}
\resumeItem{Structure day-to-day research activities; prioritise and meet deadlines across multiple projects.}
\resumeItem{Handle confidential information with diligence and circumspection.}
\linebreak
% \resumeItem{\textbf{\underline{{Client: British Chamber of Commerce}}}}
% \begin{enumerate}
% \item [-] Used MATLAB to support the development of an analytical model to analyse answers to the BCC’s Quarterly Economic Survey using natural language processing, machine learning techniques and sentiment analysis.
% \item[-] Produced a final written report explaining methods, techniques, results and findings.
% \end{enumerate}
% \resumeItem{\underline{Ongoing Research Project: The Consequences of Brexit for the UK}}
% \begin{enumerate}
% \item [-] Textual analysis of EU legal directives and regulations applicable to the single market.
% \item [-]Extensive preparation and use of data.
% \item[-] Written contribution to briefing paper publication.
% \end{enumerate}
{\small
\begin{itemize}[leftmargin=0in, label={}]
\item
\uline{Client: British Chamber of Commerce}
\begin{enumerate}
\item[-] Used MATLAB to support the development of an analytical model to analyse answers to the BCC’s Quarterly Economic Survey using natural language processing, machine learning techniques and sentiment analysis.
\item[-] Produced a final written report explaining methods, techniques, results and findings.
\end{enumerate}
\end{itemize}
}
{\small
\begin{itemize}[leftmargin=0in, label={}]
\item
\uline{Ongoing Research Project: The Impact of the UK Points Based System on European Union Professional Footballer Mobility in England}
\begin{enumerate}
\item[-] Used MATLAB to support the development of a web scraping tool to gather primary data for the project.
\end{enumerate}
\end{itemize}
}
\end{itemize}
\end{itemize}
\end{document}
I am writing a paper in APS journal template : revtex4-2, when I import my table I have this error :
Missing control sequence inserted. \end{tabulary}. But this table has no problem in other template for example IEEE. I dont know how fix it. I really appreciate any help.
\documentclass[aps,pra,twocolumn,floatfix,footinbib,notitlepage,superscriptaddress,groupaddress,showpacs]{revtex4-2}
\usepackage{graphicx,graphics,times,bm,bbm,bbold,amssymb,amsmath,amsfonts,dsfont,hyperref,mathrsfs,color,caption,subcaption,cancel}
\usepackage{adjustbox}
\usepackage{tabularx}
\usepackage{tabulary}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}
\begin{document}
\preprint{AIP/123-QED}
%\title[Sample title]{Sample Title:\\with Forced Linebreak\footnote{Error!}}% Force line breaks with \\
\title[]
\author{}
\affiliation{}
\author{}
\affiliation{}
\email{}
\date{\today}
\begin{abstract}
\end{abstract}
% \keywords{}
% \maketitle
\section{Introduction}\label{sec:introduction}
\section{Theoretical Analysis}
\begin{table}[h!]
\centering
\caption{List of Parameters Values }
\label{table:1}
\begin{adjustbox}{max width=8.5 cm}
\begin{tabulary}{\columnwidth}{#{}llr#{}}
\toprule
\textbf{Parameters} & \textbf{Values} & \textbf{Units}\\
\midrule
$\lambda$ & 1550 & $nm$ \\
\bottomrule
\end{tabulary}
\end{adjustbox}
\end{table}.
\end{document}
%
% ****** End of file aipsamp.tex ******
I suggest the new and much more flexible tabularray package instead.
Also don't scale content which contains text, this will result in an suboptimal result. If in your real document, you must make the table smaller, use a smaller font size instead of scaling it with adjustbox.
(you should really clean up your preamble and remove duplicates and outdated packages)
\documentclass[aps,pra,twocolumn,floatfix,footinbib,notitlepage,superscriptaddress,groupaddress,showpacs]{revtex4-2}
\usepackage{graphicx,graphics,times,bm,bbm,bbold,amssymb,amsmath,amsfonts,dsfont,hyperref,mathrsfs,color,caption,subcaption,cancel}
\usepackage{adjustbox}
\usepackage{tabularx}
\usepackage{tabulary}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
\preprint{AIP/123-QED}
%\title[Sample title]{Sample Title:\\with Forced Linebreak\footnote{Error!}}% Force line breaks with \\
\title[]
\author{}
\affiliation{}
\author{}
\affiliation{}
\email{}
\date{\today}
\begin{abstract}
\end{abstract}
% \keywords{}
% \maketitle
\section{Introduction}\label{sec:introduction}
\section{Theoretical Analysis}
\begin{table}[h!]
\centering
\caption{List of Parameters Values }
\label{table:1}
% \begin{adjustbox}{max width=8.5 cm}
\begin{tblr}{width=0.8\linewidth,colspec={#{}X[l]X[l]X[r]#{}}}
\toprule
\textbf{Parameters} & \textbf{Values} & \textbf{Units}\\
\midrule
$\lambda$ & 1550 & $nm$ \\
\bottomrule
\end{tblr}
% \end{adjustbox}
\end{table}
\end{document}
%
% ****** End of file aipsamp.tex ******
So I'm using \hline to create some underlines for the heading of a \section{} but I'm getting the error
Misplaced \noalign.
You have used a \hline command in the wrong place, probably outside a table. If the \hline command is written inside a table, try including \\ before it.
\hline ->\noalign
{\ifnum 0=`}\fi \hrule \#height \arrayrulewidth \futurelet...
l.15 \hline
I expect to see \noalign only after the \cr of
an alignment. Proceed, and I'll ignore this case.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[dvipsnames]{xcolor}
\setlength{\emergencystretch}{10pt}
\title{Law and Society Notes}
\author{Jack Dwyer }
\date{}
\begin{document}
\maketitle
\section{January 31}
\hline
\begin{itemize}
\item[] \hline
\item Types of law
\begin{itemize}
\item Oral Nomoi
\item Thesmoi
\item Written Nomoi
\item Psephismata
\end{itemize}{}
\item Distinctions not drawn between criminal and civil cases or judicial, legislative, or administrative cases
\item Types of cases
\begin{itemize}
\item Dikē(Public)
\item Graphē(semi-public)
\end{itemize}{}
\item Sycophant – suck up
\item Righteous Indignation
\end{itemize}{}
\hline is for the use inside tabulars. You could use \hrulefill or, better, don't manually underline the section but format it appropriatly, e.g. https://tex.stackexchange.com/a/453372
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[dvipsnames]{xcolor}
\setlength{\emergencystretch}{10pt}
\title{Law and Society Notes}
\author{Jack Dwyer }
\date{}
\begin{document}
\maketitle
\section{January 31}
\hrulefill
\begin{itemize}
\item[] \hrulefill
\item Types of law
\begin{itemize}
\item Oral Nomoi
\item Thesmoi
\item Written Nomoi
\item Psephismata
\end{itemize}
\item Distinctions not drawn between criminal and civil cases or judicial, legislative, or administrative cases
\item Types of cases
\begin{itemize}
\item Dikē(Public)
\item Graphē(semi-public)
\end{itemize}
\item Sycophant – suck up
\item Righteous Indignation
\end{itemize}
\end{document}
I am trying to add an ordered list (enumerate) to a table (tabular) in LaTeX with the following:
\begin{tabular}{|l|l|}
\hline
Event Flow &
\begin{enumerate}
\item This is item 1
\item This is item 2
\end{enumerate}
\\
\hline
\end{tabular}
But I am getting the following error:
! LaTeX Error: Something's
wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX
Companion for explanation. Type H
for immediate help. ...
l.34 \item T
his is item 1 ?
Can anyone please tell me what is the problem exactly?
Because when I put the enumerate environment outside of the tabular environment, it works; so guess I am currently missing something with my example of the table.
The following works:
\documentclass{article}
\begin{document}
\begin{tabular}{|l|l|}
\hline
Event Flow &
\begin{minipage}{5in}
\vskip 4pt
\begin{enumerate}
\item This is item 1
\item This is item 2
\end{enumerate}
\vskip 4pt
\end{minipage}
\\
\hline
\end{tabular}
\end{document}
I'm guessing the trouble is that the enumerate environment needs to be in vertical mode: you could experiment with a \vbox.
You could use the following solution:
\documentclass{article}
\begin{document}
\begin{tabular}{|l|p{5cm}|}
\hline
Event Flow &
\begin{enumerate}
\item This is item 1
\item This is item 2
\end{enumerate} \\
\hline
\end{tabular}
\end{document}
In other words, you can avoid the need for a minipage by simply creating a paragraph type column (which has a specified width). This compiles to