Missing \begin{document}. \chapter{E Latex new blank page - latex

I started to use Latex to write my notes and I've been having some problems when I start a new chapter or blank page
\chapter{ECS, Lambda, Batch, Lightsail}
\section{ECS}
\begin{enumerate}
\item first time
\end{enumerate}
and this is my main
\documentclass[a4paper,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[margin=1.0in]{geometry}
\begin{document}
\author{José Santiago Molano Perdomo}
\title{Aws Cloud Practicioneer}
\date{}
\let\cleardoublepage\clearpage
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\include{./TeX_files/chapter01}
\include{./TeX_files/chapter02}
\include{./TeX_files/chapter03}
\include{./Tex_files/chapter04}
\include{./Tex_files/chapter05}
\include{./Tex_files/chapter06}
\include{./Tex_files/chapter07}
\include{./Tex_files/chapter08}
\backmatter
% bibliography, glossary and index would go here.
\end{document}
I get this error when I try compile chaper 08
Undefined control sequence. \chapter
Missing \begin{document}. \chapter{E
Undefined control sequence. \section
Emergency stop.
Overfull \hbox (20.0pt too wide) in paragraph

The character é in the author name is invalid to UTF-8. Please change to \'{e}

Related

How can I create hyperlink in Acronyms in latex

How can I make my acronyms such that if someone clicks on acronyms then gets redirected to the actual list where all the acronyms are listed?
\documentclass{scrbook}
\usepackage[acronym]{glossaries}
\makeglossaries
\input{acronyms}
\begin{document}
\mainmatter
\printglossary[type=\acronymtype]
\chapter{ch1}
\acrfull{WLAN} is used as a trial for my example and problem
\chapter{ch2}
\acrfull{LAN} is used as a trial for my example and problem
\arcshort{LAN}
\end{document}
with acronyms.tex:
\newacronym{WLAN}{WLAN}{Wireless Local Area Network}
\newacronym{LAN}{LAN}{Local Area Network}
Adding the hyperref package will give you cross-references between your acronyms and the list of acronyms:
\documentclass{scrbook}
\usepackage{hyperref}
\usepackage[acronym]{glossaries}
\makeglossaries
\newacronym{WLAN}{WLAN}{Wireless Local Area Network}
\newacronym{LAN}{LAN}{Local Area Network}
\begin{document}
\mainmatter
\printglossary[type=\acronymtype]
\chapter{ch1}
\acrfull{WLAN} is used as a trial for my example and problem
\chapter{ch2}
\acrfull{LAN} is used as a trial for my example and problem
\end{document}

LaTeX: Citation found in .bib-file but only name of citation returned, bibliography not printed

I got this issue in LayteX (Overleaf) where the \cite{} and \textcite{} command does find my source, but then returns the exact name of the source in my .bib-file. It looks something like this (I couldn't add images somehow):
text...(world'bank"2022)....text.
While the correct output should be:
text... (World Bank, 2022) .... text
The source:
#online{world_bank_2022,
title = {World Bank Open Data {\textbar} Data},
url = {https://data-worldbank-org.eur.idm.oclc.org/},
author = {{World Bank}},
urldate = {2022-10-07},
date = {2022},
file = {World Bank Open Data | Data:C\:\\Users\\jhans\\Zotero\\storage\\X739YI3J\\data-worldbank-org.eur.idm.oclc.org.html:text/html},
}
The package and file name. Name of the bib-file corresponds 1:1 with the imported library file:
\usepackage[backend=biber, style=apa]{biblatex}
\addbibresource{Bibliography-ASP.bib}
And as a result, the following command also does not return anything:
\newpage
\printbibliography
The error messages are:
Empty bibliography on input line 360.
Overfull \hbox (6.3094pt too wide) in paragraph at lines 34--35
Citation 'world_bank_2022' on page 1 undefined on input line 34.
As an illustration, I created a MWE with the exact same structure and packages as in my original file.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{multirow,booktabs,setspace,caption}
\usepackage{tikz}
\usepackage{ntheorem}
\usepackage{longtable}
\newtheorem{hyp}{H}
\usepackage{subcaption}
\usepackage{lipsum}
\usepackage{minted}
\usepackage{wrapfig}
\usepackage{csquotes}
\usepackage{hyperref}
\usepackage[backend=biber, style=apa]{biblatex}
\addbibresource{Bibliography IIA ASP.bib}
\title{AS\&P Assignment 3}
\author{Hans van Beek, 497005}
\date{14 October 2022}
\begin{document}
\maketitle
\section{Panel Data Modelling: Time-to-Export}\label{q1}
\subsection{Hypotheses}\label{q1: hypotheses}
The current analysis focuses on three hypothesised determinants of the time-to-export in hours (\textit{time\_to\_export}) between countries and over time using data from the World Bank (\cite{world_bank_2022}). The time-to-export is an important indicator of a country's quality of export and import conditions with a lower time-to-export (\textit{time\_to\_export}) in hours reflecting a more efficient economy. An appropriate determinant of the variation in the size of a country's economy could therefore be the GDP per capita (providing a good benchmark). The first hypothesis (i) therefore states that a higher GDP is
\newpage
\printbibliography
\newpage
\end{document}

\maketitle to use several times with combine in LaTeX

I am trying to make a .tex template for a book of abstracts for the conference. I want the template to be compilable, so the participants are able to see their abstracts separately before submitting. Moreover I want to use the files to compile the book of abstracts with table of contents and titles.
So, I have master file
\documentclass[12pt]{combine}
\usepackage{authblk}
\begin{document}
\tableofcontents
\begin{papers}
\coltocauthor{Crist\'{o}bal Josevich Junta, Fyodor Simeonovich Kivrin}
\coltoctitle{Title of the first abstract}
\import{first}
\coltocauthor{Roman Oyra-Oyra}
\coltoctitle{Title of the second abstract}
\import{second}
\end{papers}
\end{document}
And two imported files are:
\documentclass{article}
\usepackage{authblk}
\title{Title of the first abstract}
\author[1]{Crist\'{o}bal Josevich Junta}
\author[2]{Fyodor Simeonovich Kivrin}
\affil[1]{Department of the Meaning of Life}
\affil[2]{Department of Linear Happiness}
\begin{document}
\maketitle
Text of the first abstract.
\end{document}
and
\documentclass{article}
\usepackage{authblk}
\title{Title of the second abstract}
\author[1]{Roman Oyra-Oyra}
\affil[1]{Laboratory of the most unexpected sciences}
\begin{document}
\maketitle
Text of the second abstract.
\end{document}
The problem is the second \maketitle does not print authors names and their affiliation.
I have tried using redefined \settitle instead of \maketitle
\makeatletter
\newcommand{\settitle}{\#maketitle}
\makeatother
it did not help.
Also, I tried titling package, which led to no change.
I want \maketitle to print the names and affiliations or to find out the better way to automatically make titles for each abstract.

New to latex, don't know why this \maketitle command is showing error?

I am new to latex and trying to use a conference template. This error is popping up for the \maketitle command and I have tried many things which did no help:
l.72 \maketitle
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Here is what I have in .tex file:
\begin{document}
\maketitle
%===============================================================================
\begin{abstract}
And here is where the .sty file has defined the \maketitle command:
% create title
\providecommand{\maketitle}{}
\renewcommand{\maketitle}{%
\par
\begingroup
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
% for perfect author name centering
\renewcommand{\#makefnmark}{\hbox to \z#{$^{\#thefnmark}$\hss}}
% The footnote-mark was overlapping the footnote-text,
% added the following to fix this problem (MK)
\long\def\#makefntext##1{%
\parindent 1em\noindent
\hbox to 1.8em{\hss $\m#th ^{\#thefnmark}$}##1
}
\thispagestyle{empty}
\#maketitle
\#thanks
\#notice
\endgroup
\let\maketitle\relax
\let\thanks\relax
}
The generated Pdf looks just fine, but the error prevails. Please enlighten me, if you understand what is going on.

Setting up author or address string variables in LaTeX

LaTeX is a wonderful language for writing documents. With the hyperref package and pdflatex, you easily generate documents with metadata, a nice feature to get your documents referenced right on the web.
I often use templates like:
\documentclass[11pt]{article}
\usepackage[pdftex, pdfusetitle,colorlinks=false,pdfborder={0 0 0}]{hyperref}%
\hypersetup{%
pdftitle={My title},%
pdfauthor={My name},%
pdfkeywords={my first keyword, my second keyword, more keywords.},%
}%
\begin{document}
\title{My title}
\author{My name}
\date{}
\maketitle
{\bf Keywords:} my first keyword, my second keyword, more keywords.%
My text is here...
\end{document}
So far, it's well. My question pops out from the example: is there a way to define string variables in the header so that they can be passed as arguments to hyperref and then to the frontmatter or to the text. Something like:
\documentclass[11pt]{article}
%-------definitions-----
\def\Author{My name}
\def\Title{My title}
\def\Keywords{my first keyword, my second keyword, more keywords.}
%--------------------------
\usepackage[pdftex, pdfusetitle,colorlinks=false,pdfborder={0 0 0}]{hyperref}%
\hypersetup{%
pdftitle={\Title},%
pdfauthor={\Author},%
pdfkeywords={\Keywords},%
}%
\begin{document}
\title{\Title}
\author{\Author}
\date{}
\maketitle
{\bf Keywords:} \Keywords %
My text is here...
\end{document}
This fails for the \maketitle part and for the hyperref metadata with ! Use of \Title doesn't match ! Argument of \let has an extra }.but also for including the keywords.
The correct template should look like:
\documentclass[11pt]{article}
%-------definitions-----
\newcommand{\Author}{My name}
\newcommand{\Title}{My title}
\newcommand{\Keywords}{my first keyword, my first keyword, more keywords.}
%--------------------------
\usepackage[pdftex, pdfusetitle,colorlinks=false,pdfborder={0 0 0}]{hyperref}%
\hypersetup{%
pdftitle={\Title},%
pdfauthor={\Author},%
pdfkeywords={\Keywords},%
}%
\begin{document}
\title{\Title}
\author{\Author}
\date{}
\maketitle
{\bf Keywords:} \Keywords %
My text is here...
\end{document}
Compiles fine and the metadata shows fine in the pdf reader.
Try using \newcommand{\Author}{My name} instead of \def.

Resources