How to resolve this Beamer error in TexStudio? - latex

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)

Related

LaTeX with overleaf editor - my text goes off the page - how do I get it to go onto the next line, in line with my other text?

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}

Undefined control sequence "\end{frame}"

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}

error using \hline in LaTeX not interrupting compiling but maybe I am doing this the wrong way

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}

itemize environment giving this error for unclear reason: Something's wrong, perhaps a missing \item( its happening on line 11)

I am using itemize, not missing an \item (to my knowledge) and there isn't any extra text without an item that I know of. I'm pretty sure I'm using itemize correctly because I've used it in the same way for other 'LaTeX' files before with no issue. I'm really confused.
Also, when I removed the code that had the error, it told me that another section of code that was fine before now had the same error.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\begin{itemize}
\item recombinant
\item Deoxyribose vs Ribose: Only one difference
\item Nitrogen Bases in DNA
\begin{itemize}
\begin{itemize}
\item Purines, 2 rings
\begin{itemize}
\item Adenine
\item Guanine
\end{itemize}{}
\end{itemize}{}
\begin{itemize}
\item Pyrimidines, 1 ring
\begin{itemize}
\item T
\item C
\end{itemize}{}
\end{itemize}{}
\end{itemize}{}
\item[Nitrogen bases = Steps of ladder]
\begin{itemize}
\item phosphate group
\item deoxyribose sugar(connected to nitrogen base)
\end{itemize}{}
\end{itemize}{}
\end{document}{}
You are missing an \item. In your second level itemization, you immediately try to start a third level itemization without having an item before.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\begin{itemize}
\item recombinant
\item Deoxyribose vs Ribose: Only one difference
\item Nitrogen Bases in DNA
\begin{itemize}
\item \begin{itemize}
\item Purines, 2 rings
\begin{itemize}
\item Adenine
\item Guanine
\end{itemize}
\end{itemize}
\begin{itemize}
\item Pyrimidines, 1 ring
\begin{itemize}
\item T
\item C
\end{itemize}
\end{itemize}
\end{itemize}
\item[Nitrogen bases = Steps of ladder]
\begin{itemize}
\item phosphate group
\item deoxyribose sugar(connected to nitrogen base)
\end{itemize}
\end{itemize}
\end{document}

LaTeX: Adding an Enumerate environment to a Tabular environment

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

Resources