Modern CV - Custom line features - latex

I have a sample code below, and I would like to see the grey line as wide as the margin and to insert section above that line.
\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman
\moderncvstyle{casual} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{grey} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
\usepackage[USenglish]{babel}
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name
%----------------------------------------------------------------------------------------
% NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------
\firstname{Name} % Your first name
\familyname{LastName} % Your last name
% All information in this block is optional, comment out any lines you don't need
\title{Curriculum Vitae}
\address{123 Broadway}{City, State 12345}
\mobile{(000) 111 1111}
\phone{(000) 111 1112}
\fax{(000) 111 1113}
\email{john#smith.com}
%\homepage{staff.org.edu/~jsmith}{staff.org.edu/$\sim$jsmith} % The first argument is the url for the clickable link, the second argument is the url displayed in the template - this allows special characters to be displayed such as the tilde in this example
\extrainfo{additional information}
%\photo[70pt][0.4pt]{pictures/picture} % The first bracket is the picture height, the second is the thickness of the frame around the picture (0pt for no frame)
%\quote{"A witty and playful quotation" - John Smith}
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% CURRICULUM VITAE
%----------------------------------------------------------------------------------------
\makecvtitle % Print the CV title
%----------------------------------------------------------------------------------------
% EDUCATION SECTION
%----------------------------------------------------------------------------------------
\section{Education}
\cventry{2011--2012}{Masters of Commerce}{The University of California}{Berkeley}{\textit{GPA -- 8.0}}{First Class Honours} % Arguments not required can be left empty
\cventry{2007--2010}{Bachelor of Business Studies}{The University of California}{Berkeley}{\textit{GPA -- 7.5}}{Specialized in Commerce}
\section{Masters Thesis}
\cvitem{Title}{\emph{Money Is The Root Of All Evil -- Or Is It?}}
\cvitem{Supervisors}{Professor James Smith \& Associate Professor Jane Smith}
\cvitem{Description}{This thesis explored the idea that money has been the cause of untold anguish and suffering in the world. I found that it has, in fact, not.}
%----------------------------------------------------------------------------------------
% WORK EXPERIENCE SECTION
%----------------------------------------------------------------------------------------
\section{Experience}
\subsection{Vocational}
\cventry{2012--Present}{1\textsuperscript{st} Year Analyst}{\textsc{Lehman Brothers}}{Los Angeles}{}{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.
\newline{}\newline{}
Detailed achievements:
\begin{itemize}
\item Learned how to make amazing coffee
\item Finally determined the reason for \textsc{PC LOAD LETTER}:
\begin{itemize}
\item Paper jam
\item Software issues:
\begin{itemize}
\item Word not sending the correct data to printer
\item Windows trying to print in letter format
\end{itemize}
\item Coffee spilled inside printer
\end{itemize}
\item Broke the office record for number of kitten pictures in cubicle
\end{itemize}}
%------------------------------------------------
\cventry{2011--2012}{Summer Intern}{\textsc{Lehman Brothers}}{Los Angeles}{}{Rated "truly distinctive" for Analytical Skills and Teamwork.}
%------------------------------------------------
\end{document}

Quick hack:
\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman
\moderncvstyle{casual} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{grey} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
\usepackage[USenglish]{babel}
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name
%----------------------------------------------------------------------------------------
% NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------
\firstname{Name} % Your first name
\familyname{LastName} % Your last name
% All information in this block is optional, comment out any lines you don't need
\title{Curriculum Vitae}
\address{123 Broadway}{City, State 12345}
\mobile{(000) 111 1111}
\phone{(000) 111 1112}
\fax{(000) 111 1113}
\email{john#smith.com}
%\homepage{staff.org.edu/~jsmith}{staff.org.edu/$\sim$jsmith} % The first argument is the url for the clickable link, the second argument is the url displayed in the template - this allows special characters to be displayed such as the tilde in this example
\extrainfo{additional information}
%\photo[70pt][0.4pt]{pictures/picture} % The first bracket is the picture height, the second is the thickness of the frame around the picture (0pt for no frame)
%\quote{"A witty and playful quotation" - John Smith}
%----------------------------------------------------------------------------------------
\makeatletter
\RenewDocumentCommand{\section}{sm}{%
\par\addvspace{2.5ex}%
\phantomsection{}% reset the anchor for hyperrefs
\addcontentsline{toc}{section}{#2}%
\cvitem[0ex]{\strut\raggedleft\raisebox{-\baselineskip}{\color{color1}\rule{\columnwidth}{0.95ex}}}{\hspace*{-2ex}\hspace*{-\hintscolumnwidth}\strut\sectionstyle{#2}}%
\par\nobreak\addvspace{1ex}\#afterheading}% to avoid a pagebreak after the heading
\makeatother
\begin{document}
%----------------------------------------------------------------------------------------
% CURRICULUM VITAE
%----------------------------------------------------------------------------------------
\makecvtitle % Print the CV title
%----------------------------------------------------------------------------------------
% EDUCATION SECTION
%----------------------------------------------------------------------------------------
\section{Education}
\cventry{2011--2012}{Masters of Commerce}{The University of California}{Berkeley}{\textit{GPA -- 8.0}}{First Class Honours} % Arguments not required can be left empty
\cventry{2007--2010}{Bachelor of Business Studies}{The University of California}{Berkeley}{\textit{GPA -- 7.5}}{Specialized in Commerce}
\section{Masters Thesis}
\cvitem{Title}{\emph{Money Is The Root Of All Evil -- Or Is It?}}
\cvitem{Supervisors}{Professor James Smith \& Associate Professor Jane Smith}
\cvitem{Description}{This thesis explored the idea that money has been the cause of untold anguish and suffering in the world. I found that it has, in fact, not.}
%----------------------------------------------------------------------------------------
% WORK EXPERIENCE SECTION
%----------------------------------------------------------------------------------------
\section{Experience}
\subsection{Vocational}
\cventry{2012--Present}{1\textsuperscript{st} Year Analyst}{\textsc{Lehman Brothers}}{Los Angeles}{}{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.
\newline{}\newline{}
Detailed achievements:
\begin{itemize}
\item Learned how to make amazing coffee
\item Finally determined the reason for \textsc{PC LOAD LETTER}:
\begin{itemize}
\item Paper jam
\item Software issues:
\begin{itemize}
\item Word not sending the correct data to printer
\item Windows trying to print in letter format
\end{itemize}
\item Coffee spilled inside printer
\end{itemize}
\item Broke the office record for number of kitten pictures in cubicle
\end{itemize}}
%------------------------------------------------
\cventry{2011--2012}{Summer Intern}{\textsc{Lehman Brothers}}{Los Angeles}{}{Rated "truly distinctive" for Analytical Skills and Teamwork.}
%------------------------------------------------
\end{document}

Related

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}

VS code LaTex workshop book compile problem

Hi I'm new to LaTex and doing some translating at school in LaTex. Since I'm translating a book, I received a bulky file and when I tried to build it. It didn't work.. By the way I'm using TexLive and Visual Studio Code for editing.
The error consists of a lot of undefined sequences..
The code mainly operates with 3 files. modern_robotics.tex, mr1.tex and mr2.tex.
Due to copyright reasons and also the big file, I won't be able to upload all the codes. But I think I can upload the three files mentioned above. I think most of the problem is in mr2.. but I'm not sure.
Any help would be appreciated. Thanks.
modern_robotics.tex
\input{mr1}
% to center the book horizontally:
\setlength{\oddsidemargin}{63pt}
\setlength{\evensidemargin}{63pt}
% instead of centering horizontally, make it so pages can be enlarged in 2per printing without large gutter:
%\setlength{\oddsidemargin}{80pt}
%\setlength{\evensidemargin}{46pt}
\input{mr2}
mr1.tex
\documentclass[10pt]{book}
%======================================================================%
% PACKAGES %
%======================================================================%
\usepackage[centertags]{amsmath}
\usepackage{amsthm,amsfonts,amssymb,enumerate} % Amstex
%\usepackage{Jtocinc}% Jtocinc.sty Include Table of Contents as first entry
%\usepackage{fancybox}
\usepackage{makeidx}
\makeindex
\usepackage[shortlabels]{enumitem}
\usepackage{color}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{xspace}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{ifthen,version}
\usepackage{cancel}
\usepackage{arydshln}
\usepackage{mathtools}
\usepackage{booktabs}
\usepackage{xcolor}
\usepackage{framed}
\definecolor{shadecolor}{rgb}{0.9,0.9,0.9}
% For translation!!!!!!!!
\usepackage{kotex}
\usepackage{titlesec}
\titleformat{\chapter}% reformat chapter headings
[hang]% like section, with number on same line
{\Huge\bfseries}% formatting applied to whole
{\thechapter~장.}% Chapter number
{0.5em}% space between # and title
{}% formatting applied just to title
\titlespacing*{\chapter}{0pt}{-5mm}{20mm}
\titlespacing*{\section}{0pt}{15mm}{15mm}
\titlespacing*{\subsection}{0pt}{15mm}{15mm}
\titlespacing*{\subsubsection}{0pt}{15mm}{15mm}
\renewcommand{\figurename}{그림}
\usepackage{geometry}
\geometry{
a4paper,
left=20mm,
right=31mm,
top=40mm,
bottom=40mm
}
\usepackage[font={footnotesize,stretch=1.6}]{caption}
\setlength{\belowcaptionskip}{15mm}
\usepackage{setspace}
\setstretch{1.6}
\setlength\parindent{0pt}
% For translation!!!!!!!!
%%%%%%%%%%% for long sub-figures (160824) %%%%%%%%
\usepackage{caption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{csquotes}
\usepackage[linktoc=all,colorlinks=true,urlcolor=blue]{hyperref}
\hypersetup{
colorlinks,
linkcolor=blue
}
\newboolean{include-notes}
% Comment out the following line to exclude the notes.
\setboolean{include-notes}{false}
%notes
\newcommand{\fpnote}[1]{\ifthenelse{\boolean{include-notes}}%
{\textbf{FP says: #1}}{}}
\newcommand{\klnote}[1]{\ifthenelse{\boolean{include-notes}}%
{\textbf{KL says: #1}}{}}
\newcommand{\kldraft}[1]{\ifthenelse{\boolean{include-notes}}%
{#1}{}}
\newenvironment{function}[2]
{
\vspace*{0.1in}
\noindent
\verb~#1~
\\
\noindent
#2
}{}
\usepackage{draftcopy}
\usepackage{fancyhdr}
\usepackage{datetime}
\begin{comment}
\usepackage[linktoc=all]{hyperref}
\hypersetup{
colorlinks,
linkcolor=blue
}
\end{comment}
% Visual ornaments
% \usepackage[avantgarde]{quotchap}
% select Sanserif font for title and quote
% \renewcommand\sectfont{\sffamily\bfseries\Huge}
% San serif section headers
\usepackage{sfsect}
% hyperref package should be the last one in \usepackage list
% \usepackage[colorlinks,backref]{hyperref}
%********** Fine Tune for this TeX
\hfuzz2pt % Don't bother to report over-full boxes if over-edge is < 2pt
\hyphenation{di-men-sion-al}
%\renewcommand{\theenumi}{\roman{enumi}}
%\renewcommand{\labelenumi}{{\normalfont(\theenumi)}}
\renewcommand{\theenumi}{\alph{enumi}}
\renewcommand{\labelenumi}{{\normalfont(\theenumi)}}
%======================================================================%
% COMMANDS %
%======================================================================%
%\renewcommand{\baselinestretch}{1.5}
%\renewcommand{\baselinestretch}{1.0}
% new commands for unit axes vectors
\newcommand{\xhat}{\ensuremath{\hat{\text{x}}}}
\newcommand{\yhat}{\ensuremath{\hat{\text{y}}}}
\newcommand{\zhat}{\ensuremath{\hat{\text{z}}}}
\newcommand{\Xhat}{\ensuremath{\hat{\text{X}}}}
\newcommand{\Yhat}{\ensuremath{\hat{\text{Y}}}}
\newcommand{\Zhat}{\ensuremath{\hat{\text{Z}}}}
\newcommand{\xhats}{\ensuremath{\hat{\text{x}}_{\text{s}}}}
\newcommand{\yhats}{\ensuremath{\hat{\text{y}}_{\text{s}}}}
\newcommand{\zhats}{\ensuremath{\hat{\text{z}}_{\text{s}}}}
\newcommand{\xhatb}{\ensuremath{\hat{\text{x}}_{\text{b}}}}
\newcommand{\yhatb}{\ensuremath{\hat{\text{y}}_{\text{b}}}}
\newcommand{\zhatb}{\ensuremath{\hat{\text{z}}_{\text{b}}}}
\newcommand{\xhatc}{\ensuremath{\hat{\text{x}}_{\text{c}}}}
\newcommand{\yhatc}{\ensuremath{\hat{\text{y}}_{\text{c}}}}
\newcommand{\zhatc}{\ensuremath{\hat{\text{z}}_{\text{c}}}}
% new commands for abstract (unrepresented) vectors
\newcommand{\vecp}{\ensuremath{\text{p}}}
\newcommand{\vecq}{\ensuremath{\text{q}}}
\newcommand{\vecr}{\ensuremath{\text{r}}}
\newcommand{\vecs}{\ensuremath{\text{s}}}
\newcommand{\vect}{\ensuremath{\text{t}}}
\newcommand{\vecu}{\ensuremath{\text{u}}}
\newcommand{\vecv}{\ensuremath{\text{v}}}
\newcommand{\vecw}{\ensuremath{\text{w}}}
\newcommand{\vecx}{\ensuremath{\text{x}}}
\newcommand{\vecy}{\ensuremath{\text{y}}}
\newcommand{\vecz}{\ensuremath{\text{z}}}
% new commands for orthogonal group
\newcommand{\SOthree}{\ensuremath{SO(3)}\xspace}
\newcommand{\SOtwo}{\ensuremath{SO(2)}\xspace}
\newcommand{\SOn}{\ensuremath{SO(n)}\xspace}
\newcommand{\sothree}{\ensuremath{so(3)}\xspace}
\newcommand{\sotwo}{\ensuremath{so(2)}\xspace}
\newcommand{\son}{\ensuremath{so(n)}\xspace}
\newcommand{\SE}{\ensuremath{SE(3)}\xspace}
\newcommand{\se}{\ensuremath{se(3)}\xspace}
% new commands for bold face greeks
\newcommand{\bomega}{\ensuremath{\mathbf{\omega}}}
\newcommand{\blambda}{\ensuremath{\mathbf{\lambda}}}
% new commands for mathematical equations
\newcommand{\defeq}{\ensuremath{\triangleq}}
\newcommand{\trans}{\ensuremath{^{\mbox{\scriptsize $\top$}}}}
\newcommand{\invtrans}{\ensuremath{^{\mbox{\scriptsize $-\top$}}}}
\newcommand{\inverse}{\ensuremath{^{\mbox{\scriptsize -1}}}}
\newcommand{\smallTH}{\ensuremath{^{\mbox{\scriptsize th}}}}
\newcommand{\trace}{\ensuremath{\mathrm{tr}}}
\newcommand{\RE}{\ensuremath{\mathbb{R}}}
\newcommand{\strad}{\bar{}\!\!\!\!\:d}
\newcommand{\bstrad}{\,\,\,\bar{}\!\!\!\!\:d}
\newcommand{\xinit}{\ensuremath{x^{\circ}}}
\newcommand{\optimal}{\ensuremath{^{\mbox{\scriptsize \textsf {OPT}}}}}
% new commands for abbreviations and others
\newcommand{\etal}{\textit{et al.}\#\xspace}
\newcommand{\eg}{\textit{e.g.,}\xspace}
\newcommand{\ie}{\textit{i.e.,}\xspace}
\newcommand{\etc}{\textit{etc}\#\xspace}
%\newcommand{\mass}{\mathfrak{m}}
%\newcommand{\gravity}{\mathfrak{g}}
% Zero height rule of width of one quad
\newcommand{\IR}[1]{\rule{1em}{0pt}%
\makebox[0cm][c]{\rotatebox{45}{\ #1}}}
%********** Definitions for proof
\def\QED{\mbox{\rule[0pt]{1.5ex}{1.5ex}}}
\def\endofrmk{\hspace*{\fill}~$\Diamond$\par\endtrivlist\unskip}
%********** Environments
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{명제}
%
\theoremstyle{definition}
\newtheorem{definition}{정의}[chapter]
\newtheorem{assumption}{Assumption}[chapter]
\newtheorem{condition}{Condition}[chapter]
\newtheorem{example}{예제}[chapter]
%
%
\numberwithin{equation}{chapter}
%\renewcommand{\theequation}{\thesection.\arabic{equation}}
%********** Tools
\newcommand{\mnote}[1]%
{\mbox{}\marginpar{\raggedright\hspace{0pt}\small#1}}
% {\footnote{#1}}
%\reversemarginpar
\newcommand {\nemo} {\hfill $\Box$ }
\newlength{\blenfbox}
\newsavebox{\boxff}
\newenvironment{FramedPar}%
{\setlength{\fboxsep}{15pt}%
\setlength{\blenfbox}{\fboxsep}%
\addtolength{\blenfbox}{\fboxrule}%
\begin{lrbox}{\boxff}
\minipage{\textwidth}}%
{\endminipage\end{lrbox}
\bigskip\noindent\hspace*{-\blenfbox}%
\fbox{\usebox{\boxff}}\bigskip\bigskip}
\newlength{\mylength}
\newenvironment{FramedNM}%
{\setlength{\fboxsep}{5pt}%
\setlength{\mylength}{\fboxsep}%
\addtolength{\mylength}{\fboxrule}%
\Sbox
\minipage{\textwidth}%
\setlength{\abovedisplayskip}{0pt}}%
{\endminipage\endSbox\par
\addvspace{\smallskipamount}\noindent\hspace*{-\mylength}%
\fbox{\TheSbox}\smallskip}
\newenvironment{FramedEqn}%
{\setlength{\fboxsep}{15pt}
\setlength{\mylength}{\linewidth}%
\addtolength{\mylength}{-2\fboxsep}%
\addtolength{\mylength}{-2\fboxrule}%
\Sbox
\minipage{\mylength}%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\equation}%
{\endequation\endminipage\endSbox
\[\fbox{\TheSbox}\]}
\newcounter{xmplctr}
\newcounter{rmrkctr}
\newenvironment{remark}{
\addtocounter{rmrkctr}{1}
\begin{trivlist}
\item[] {\bf Remark \thermrkctr}
}{\end{trivlist}}
%\setlength{\textheight}{7.5in} % fit to b5
%\setlength{\textwidth}{5.5in} % fit to b5
%\setlength{\oddsidemargin}{0.5in}
%\setlength{\evensidemargin}{0.5in}
%\setlength{\footskip}{20mm} % fit to b5
\raggedbottom
%======================================================================%
% COMMANDS FROM KEVIN %
%======================================================================%
% to make the book: pdflatex; bibtex; pdflatex; pdflatex; makeindex; pdflatex
\usepackage{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Indexing. See http://en.wikibooks.org/wiki/LaTeX/Indexing
%
% usual method when defining a term is {\bf term}\index{indexed form of term}
% if we want it to appear in the index as
%
% joint
% revolute, 13
%
% then use {\bf revolute joint}\index{joint|revolute}
%
% can also use \indbf{term} for bold indexed term or \ind{term} for indexed term as short hand if printed
% form is same way it should show up in index
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\topfraction}{0.99}
\renewcommand{\textfraction}{0.01}
\renewcommand{\floatpagefraction}{0.95}
\renewcommand{\textfloatsep}{6mm}
\providecommand{\ind}[1]{#1\index{#1}}
\providecommand{\indbf}[1]{{\bf #1}\index{#1}}
\DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png,.eps} %For pdftex
\newcommand{\real}{\mathbb{R}}
\renewcommand{\Re}{\mathbb{R}} % redefine script R
%\newenvironment{flushenum}{
%\begin{enumerate}
% \setlength{\leftmargin}{0pt}
%}{\end{enumerate}}
\setcounter{secnumdepth}{3}
\newcounter{exercise}[chapter]
\newcommand{\exercise}{\refstepcounter{exercise} \vspace*{5mm} \noindent {\bf \theexercise. }}
\newcommand{\colwidth}{4.8in}
\newcommand{\zeroopen}{[0}
\newcommand{\fzclose}{f_z]^T}
\newcommand{\angvel}{\boldsymbol{\omega}}
\newcommand{\jointtorques}{\boldsymbol{\tau}}
\newcommand{\linvel}{{\bf v}}
%\newcommand{\torque}{{\bf n}}
\newcommand{\torque}{{\bf m}}
%\newcommand{\torquescalar}{n}
\newcommand{\torquescalar}{m}
\newcommand{\force}{{\bf f}}
%\newcommand{\twist}{{\bf t}}
%\newcommand{\wrench}{{\bf w}}
\newcommand{\pos}{{\bf p}}
\newcommand{\rot}{{\bf R}}
\newcommand{\partframe}{P}
\newcommand{\worldframe}{O}
\newcommand{\contactloc}{{\bf x}}
\newcommand{\contactnorm}{\hat{{\bf u}}}
%\newcommand{\config}{{\bf q}}
\newcommand{\config}{q}
\newcommand{\constraints}{{\bf f}}
\newcommand{\crossp}[1]{[#1]}
%\newcommand{\fmode}{{\tt r}}
%\newcommand{\rollmode}{\fmode}
%\newcommand{\smode}{{\tt s}}
%\newcommand{\bmode}{{\tt b}}
%\newcommand{\lmode}{{\tt s}$_\ell$}
%\newcommand{\rmode}{{\tt s}$_r$}
\newcommand{\fmode}{{\tt R}}
\newcommand{\rollmode}{\fmode}
\newcommand{\smode}{{\tt S}}
\newcommand{\bmode}{{\tt B}}
\newcommand{\lmode}{{\tt Sl}}
\newcommand{\rmode}{{\tt Sr}}
\newcommand{\wrench}{\mathcal{F}}
\newcommand{\twist}{\mathcal{V}}
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
%\newcommand{\mass}{{\textrm m}}
%\newcommand{\gravity}{{\textrm g}}
\newcommand{\mass}{\mathfrak{m}}
\newcommand{\gravity}{\mathfrak{g}}
\newcommand{\exerenumbegin}{\begin{enumerate}[itemsep=0pt,parsep=0pt,partopsep=0pt,topsep=0pt]}
\newcommand{\exerenumend}{\end{enumerate}}
%======================================================================%
% END COMMANDS FROM KEVIN %
%======================================================================%
%\input{formatting}
\usdate
\begin{comment}
\pagestyle{fancy}
\fancyhead{} % turn off default
\rfoot{\currenttime ~ \today}
\lfoot{Lynch and Park}
\lhead{\slshape \leftmark}
\end{comment}
% size so the same build works for all these cases, with character size at least the same as 10pt printed:
% 8.5x11 or A4 (8.27 x 11.69), one book page per page
% same as above, but two pages per page
% 9.7 in diagonal view tablet, which is 5.82 in x 7.76 in (3/4 ratio)
% so 4.75 in width, 7.2 in height assures 0.5'' vertical margins printed 2per on A4 paper, and 0.5'' side margins and gutter printed 2 per on 8.5x11
% 7.2 in includes text and header. if default head height is 12pt and headsep is 25pt (total 37 pt about 0.5''), that means textheight is 6.7''.
% need 1.9'' at
% but for some reason 0.6in seems to work better for centering the header+text (ignoring foo.
% maybe book class changes some spacings from defaults.
%
% VERSIONS TO MAKE:
% - tablet version (margins stripped), working hyperlinks
% - printable large font version (A4 and 8.5x11), working hyperlinks
% - printable 2 per page version (A4 and 8.5x11), hyperlinks probably don't work
% to center vertically:
\setlength{\textheight}{6.7in}
\setlength{\voffset}{0.6in}
mr2.tex
%======================================================================%
% USE TO ONLY MAKE PART OF THE BOOK %
%======================================================================%
%
%\includeonly{chapters/ch03-rbm/ch03-text}
%======================================================================%
% Title Page %
%======================================================================%
\begin{document}
\frontmatter
\begin{titlepage}
\selectfont
\begin{center}
%\renewcommand{\baselinestretch}{1.5}
\pagestyle{empty}
\LARGE{\bfseries MODERN ROBOTICS\\ \vspace*{0.2in}
\Large{MECHANICS, PLANNING, AND CONTROL}
}
\vspace{50mm}
\Large{\scshape Kevin M. Lynch and Frank C. Park} \\
\normalsize
\vspace*{0.2in}
\today
\vspace*{0.7in}
This document is the unedited preprint version of \vspace*{0.1in} \\
\large{\emph{Modern Robotics}} \\
\normalsize
\emph{Mechanics, Planning, and Control} \\
%Kevin M. Lynch and Frank C. Park \vspace*{0.1in} \\
\copyright ~Kevin M. Lynch and Frank C. Park \vspace*{0.1in} \\
\end{center}
\noindent
This preprint is being made available for personal use only and not for further distribution. The book will be published by Cambridge University Press in May 2017,
ISBN 9781107156302. Citations of the book should cite Cambridge University Press as the publisher, with a publication date of 2017. Original figures from this book may be reused provided proper citation is given. More information on the book, including software, videos, and a feedback form can be found at \url{http://modernrobotics.org}. Comments are welcome!
\end{titlepage}
\thispagestyle{empty}
\cleardoublepage
%======================================================================%
% Foreword and Preface %
%======================================================================%
%\renewcommand{\chaptermark}[1]{%
% \markboth{}{}}
%\renewcommand{\sectionmark}[1]{%
% \markright{}}
%\cleardoublepage
%\chaptermark{}
%\sectionmark{}
%\sectionmark{\href{http://lynchandpark.org}{Modern Robotics, Lynch and Park}}
%\sectionmark{some stuff}
%\pagenumbering{arabic}
\begin{comment}
\pagestyle{myheadings}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection.\ #1}}
\end{comment}
%\begin{comment}
%\newcommand{\helv}{\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}
%\newcommand{\helv}{\fontfamily{phv}\fontsize{9}{11}\selectfont}
\pagestyle{fancy}
\fancyhf{}
%\renewcommand{\headrulewidth}{0pt}
\fancyhead[LE,RO]{\small\thepage}
\fancyhead[RE]{\small\nouppercase{\rightmark}}
\fancyhead[LO]{\small\nouppercase{\leftmark}}
\fancyfoot[CO,CE]{\footnotesize \href{http://modernrobotics.org}{\copyright Lynch and Park. Nov.\ 2016 preprint of \emph{Modern Robotics}, Cambridge U.\ Press, 2017.}}
%\fancyhead[RE]{\small\scshape\nouppercase{\rightmark}}
%\fancyhead[LO]{\small\scshape\nouppercase{\leftmark}}
%\fancyhead[LE,RO]{\helv \thepage}
%\fancyhead[RE]{\helv \rightmark}
%\fancyhead[LO]{\helv \leftmark}
%\end{comment}
\setcounter{page}{1}
\tableofcontents
\cleardoublepage
\fancyhead[RE,LO]{\small Foreword}
\include{chapters/foreword/foreword}
\cleardoublepage
\fancyhead[RE,LO]{\small Preface}
\include{chapters/preface/preface-text}
\cleardoublepage
\renewcommand{\chaptermark}[1]{\markboth{\arabic{chapter}~장.\ #1}{}}
\fancyhead[RE]{\small\nouppercase{\rightmark}}
\fancyhead[LO]{\small\nouppercase{\leftmark}}
%\pagestyle{plain}
%\pagenumbering{roman}
%\setcounter{page}{2}
%\kldraft{\include{chapters/notation}}
%======================================================================%
% Table of Contents %
%======================================================================%
%\tableofcontents
%\cleardoublepage
%\addcontentsline{toc}{chapter}{List of Tables}
%\listoftables
%\cleardoublepage
%\addcontentsline{toc}{chapter}{List of Figures}
%\listoffigures
%\cleardoublepage
%\include{chapters/chapter0/ch0}
%\cleardoublepage
%======================================================================%
% Chapters %
%======================================================================%
\mainmatter
\include{chapters/ch01-preview/ch01-text}
\cleardoublepage
\include{chapters/ch02-cspace/ch02-text}
\cleardoublepage
\include{chapters/ch03-rbm/ch03-text}
\cleardoublepage
\include{chapters/ch04-kinematics/ch04-text}
\cleardoublepage
\include{chapters/ch05-velkinematics/ch05-text}
\cleardoublepage
\include{chapters/ch06-invkinematics/ch06-text}
\cleardoublepage
\include{chapters/ch07-closed/ch07-text}
\cleardoublepage
\include{chapters/ch08-dynamics/ch08-text}
\cleardoublepage
\include{chapters/ch09-trajectory/ch09-text}
\cleardoublepage
\include{chapters/ch10-planning/ch10-text}
\cleardoublepage
\include{chapters/ch11-control/ch11-text}
\cleardoublepage
\include{chapters/ch12-contact/ch12-text}
\cleardoublepage
\include{chapters/ch13-mobile/ch13-text}
\cleardoublepage
%======================================================================%
% APPENDIX %
%======================================================================%
\appendix
\cleardoublepage
\include{chapters/app1-formulas/app1-text}
\cleardoublepage
\include{chapters/app2-rotationreps/app2-text}
\cleardoublepage
\include{chapters/app3-dh/app3-text}
\cleardoublepage
\include{chapters/app4-optimization/app4-text}
\cleardoublepage\phantomsection % the \phantomsection seems to be needed to correctly hyperref
%\appendix
%\include{chapters/appendix}
%\cleardoublepage
%======================================================================%
% BIBLIOGRAPHY %
%======================================================================%
%\pagestyle{headings}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
\bibliography{robotics-frank,robotics-kevin}
\cleardoublepage\phantomsection % the \phantomsection seems to be needed to correctly hyperref
%======================================================================%
% INDEX %
%======================================================================%
%\begin{comment}
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\cleardoublepage
%\end{comment}
\end{document}
It seems that I can't post images due to 10 reputations rule. Some of the errors are as below. (for mr2.tex)
The font size command \normalsize is not defined(Ln 10, Col 1)
checked for documentclass but no problem.
Environment titlepage undefined(Ln 14, Col 1)
Undefined control sequence. - many times.
error_screencapture

How to reduce the gap/spacing between two bullet-point lines in Overleaf LaTeX?

In this image I have shown the bullet points in Overleaf LaTeX when I was creating my resume. How do I reduce the gap between these bullet point lines? My current code looks like this:
\csection{COURSEWORK}{\small
\begin{itemize}
% item 1 %
\item \frcontent{Data Structures and Algorithms}{}{}{}
% item 2 %
\item \frcontent{Design and Analysis of Algorithms}{}{}{}
% item 3 %
\item \frcontent{Database Management Systems}{}{}{}
% item 3 %
\item \frcontent{Object Oriented Programming}{}{}{}
\end{itemize}
}
Output image: https://i.stack.imgur.com/QKkHT.jpg
\frcontent is not required here.
You can do the following:
\csection{COURSEWORK}{\small
\begin{itemize}
% item 1 %
\item Data Structures and Algorithms
% item 2 %
\item Design and Analysis of Algorithms
% item 3 %
\item Database Management Systems
% item 3 %
\item Object Oriented Programming
\end{itemize}
}
Output Image
NB: You can use \textbf to bold. For example:
\item \textbf{Data Structures and Algorithms}

Undefined control sequence \chapter

Hello I'm new in Latex.
I was trying to write my thesis, using the MasterDoctoralClass.cls.
This is my main.tex:
\documentclass[
11pt,
english,
singlespacing,
headsepline
]{MastersDoctoralThesis}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} )
\addbibresource{example.bib}
\usepackage[autostyle=true]{csquotes}
%----------------------------------------------------------------------------------------
% MARGIN SETTINGS
%----------------------------------------------------------------------------------------
\geometry{
paper=a4paper,
inner=2.5cm,
outer=3.8cm,
bindingoffset=.5cm,
top=1.5cm,
bottom=1.5cm
}
%----------------------------------------------------------------------------------------
% THESIS INFORMATION
%----------------------------------------------------------------------------------------
\thesistitle{Title Thesis}
\supervisor{Prof. X \textsc{Y} \\ Dr. Z \textsc{W}}
\degree{Master of Science in Electronic Engineering}
\author{Name \textsc{Surname}}
\subject{Electronic Engineering}
\keywords{}
\university{{Università}}
\department{{Department of Information Engineering, Electronics and Telecommunications}}
\group{{Master of Science in Electronic Engineering}}
\faculty{{Faculty of Information Engineering, Informatics and Statistics}}
\AtBeginDocument{
\hypersetup{pdftitle=\ttitle}
\hypersetup{pdfauthor=\authorname}
\hypersetup{pdfkeywords=\keywordnames}
}
\begin{document}
\frontmatter
\pagestyle{plain}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\begin{titlepage}
\begin{center}
\includegraphics[scale=1]{logo.jpg}
\end{center}
\begin{center}
\vspace*{.01\textheight}
\textsc{\Large Master Thesis}\\[1cm]
\HRule \\[0.4cm]
{\huge \bfseries \ttitle\par}\vspace{0.4cm}
\HRule \\[1.5cm]
\begin{minipage}[t]{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
\href{}{\authorname}
\end{flushleft}
\end{minipage}
\begin{minipage}[t]{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
{\supname}
\end{flushright}
\end{minipage}\\[2cm]
\begin{center}
\includegraphics[scale=0.4]{logo2.jpg}\hfill\includegraphics[scale=0.5]{logo3.jpg}
\end{center}
\vspace*{1.5cm}
\groupname\\\deptname\\[1.5cm]
\vfill
\rule{3cm}{1pt}\\
{\large \today}\\[4cm]
%\includegraphics{Logo}
\vfill
\end{center}
\end{titlepage}
%----------------------------------------------------------------------------------------
% QUOTATION PAGE
%----------------------------------------------------------------------------------------
\vspace*{0.2\textheight}
\begin{flushright}
\thispagestyle{empty}
\vspace*{5cm}
\itshape\enquote{Something}\\[0.3cm]
\end{flushright}
\hfill Name
%----------------------------------------------------------------------------------------
% ABSTRACT PAGE
%----------------------------------------------------------------------------------------
\begin{abstract}
\addchaptertocentry{\abstractname}
The Thesis Abstract is written here (and usually kept to just this page). The page is kept centered vertically so can expand into the blank space above the title too\ldots
\end{abstract}
%----------------------------------------------------------------------------------------
% ACKNOWLEDGEMENTS
%----------------------------------------------------------------------------------------
\begin{acknowledgements}
\addchaptertocentry{\acknowledgementname}
The acknowledgments and the people to thank go here, don't forget to include your project advisor\ldots
\end{acknowledgements}
%----------------------------------------------------------------------------------------
% LIST OF CONTENTS/FIGURES/TABLES PAGES
%----------------------------------------------------------------------------------------
\tableofcontents
\listoffigures
\listoftables
%----------------------------------------------------------------------------------------
% ABBREVIATIONS
%----------------------------------------------------------------------------------------
\begin{abbreviations}{ll} %
\textbf{LAH} & \textbf{L}ist \textbf{A}bbreviations \textbf{H}ere\\
\textbf{WSF} & \textbf{W}hat (it) \textbf{S}tands \textbf{F}or\\
\end{abbreviations}
%----------------------------------------------------------------------------------------
% PHYSICAL CONSTANTS/OTHER DEFINITIONS
%----------------------------------------------------------------------------------------
\begin{constants}{lr#{${}={}$}l}
Speed of Light & $c_{0}$ & \SI{2.99792458e8}{\meter\per\second} (exact)\\
\end{constants}
%----------------------------------------------------------------------------------------
% SYMBOLS
%----------------------------------------------------------------------------------------
\begin{symbols}{lll}
$a$ & distance & \si{\meter} \\
$P$ & power & \si{\watt} (\si{\joule\per\second}) \\
%Symbol & Name & Unit \\
\addlinespace
$\omega$ & angular frequency & \si{\radian} \\
\end{symbols}
%----------------------------------------------------------------------------------------
% DEDICATION
%----------------------------------------------------------------------------------------
\dedicatory{For my family}
\end{document}
%----------------------------------------------------------------------------------------
% THESIS CONTENT - CHAPTERS
%----------------------------------------------------------------------------------------
\mainmatter
\pagestyle{thesis}
\include{Chapters/Introduction}
%\include{Chapters/Chapter1}
If I compile main.tex (with PDFLatex, I also did it with Latex and PDFTex) it doesn't return me any error, but when I look at the PDF it doesn't print the Introduction.
So I was watching to the Introduction.tex:
% Chapter 1
\chapter{Chapter Title Here} % Main chapter title
\label{Chapter1} % For referencing the chapter elsewhere, use \ref{Chapter1}
%----------------------------------------------------------------------------------------
% Define some commands to keep the formatting separated from the content \newcommand{\keyword}[1]{\textbf{#1}} \newcommand{\tabhead}[1]{\textbf{#1}} \newcommand{\code}[1]{\texttt{#1}} \newcommand{\file}[1]{\texttt{\bfseries#1}} \newcommand{\option}[1]{\texttt{\itshape#1}}
%----------------------------------------------------------------------------------------
\section{Welcome and Thank You} Welcome to this \LaTeX{} Thesis Template, a beautiful and easy to use template for writing a thesis using the \LaTeX{} typesetting system.
If you are writing a thesis (or will be in the future) and its subject is technical or mathematical (though it doesn't have to be), then creating it in \LaTeX{} is highly recommended as a way to make sure you can just get down to the essential writing without having to worry over formatting or wasting time arguing with your word processor.
\LaTeX{} is easily able to professionally typeset documents that run to hundreds or thousands of pages long. With simple mark-up commands, it automatically sets out the table of contents, margins, page headers and footers and keeps the formatting consistent and beautiful. One of its main strengths is the way it can easily typeset mathematics, even \emph{heavy} mathematics. Even if those equations are the most horribly twisted and most difficult mathematical problems that can only be solved on a super-computer, you can at least count on \LaTeX{} to make them look stunning.
And if I complie it I have some errors:
Undefined control sequence \chapter
Missing \begin{document}. \chapter{C
Undefined control sequence \section
I tryed to put the \begin{document} but I still have the same errors on the undefined control sequence and other errors like
The font size command \normalisize si not defined:there is probably something wrong with the class file.
Can someone help me, please? Thanks!
If on line 13 you remove the ) and move the \end{document} statement on line 183 to the end of the main, it will compile properly.

Latex Indentation

I have a list which I want to indent from the section title. I have tried \indent and \hspace{1cm} without success.
Here is my code
\vspace{0.2in}
\section{Affiliations}
\vspace{0.1in}
\indent The American Geophysical Union.\\
\hspace{1cm} The Seismological Society of America.
For consistent indentation of a "somewhat list-like structure", use adjustwidth from changepage:
\documentclass{article}
\usepackage{changepage}
\begin{document}
\section{Affiliations}
\begin{adjustwidth}{1cm}{0pt}
\setlength{\parindent}{0pt}%
The American Geophysical Union.
The Seismological Society of America.
\end{adjustwidth}
\end{document}
However, I'd suggest a regular list-like structure like itemize:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{Affiliations}
\begin{itemize}[leftmargin=1cm]
\item The American Geophysical Union.
\item The Seismological Society of America.
\end{itemize}
\end{document}

Resources