How add paragraph in Latex file - latex

I want to add a paragraph section to the Summary section in this Latex template.
I've tried using \paragraph, but I am not able to get the results I want. I'm very new to Latex so my understanding of \newcommand is a little confusing to me.
Here is the template src:
\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}
\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]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\textit{\small#1} & \textit{\small #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}
}
\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 Name} \\ \vspace{1pt}
\small 734-548-4835 $|$ \href{email}{\underline{email}} $|$
\href{}{\underline{linkedin}} $|$
\href{}{\underline{github}}
\end{center}
%-----------EDUCATION-----------
\section{Summary}
\resumeSubHeadingListStart
\resumeSubheading
\resumeSubheading
\resumeSubHeadingListEnd
%-----------EXPERIENCE-----------
\section{Experience}
\resumeSubHeadingListStart
\resumeSubheading
{Undergraduate Research Assistant}{June 2020 -- Present}
{Texas A\&M University}{College Station, TX}
\resumeItemListStart
\resumeItem{Developed a REST API using FastAPI and PostgreSQL to store data from learning management systems}
\resumeItem{Developed a full-stack web application using Flask, React, PostgreSQL and Docker to analyze GitHub data}
\resumeItem{Explored ways to visualize GitHub collaboration in a classroom setting}
\resumeItemListEnd
% -----------Multiple Positions Heading-----------
% \resumeSubSubheading
% {Software Engineer I}{Oct 2014 - Sep 2016}
% \resumeItemListStart
% \resumeItem{Apache Beam}
% {Apache Beam is a unified model for defining both batch and streaming data-parallel processing pipelines}
% \resumeItemListEnd
% \resumeSubHeadingListEnd
%-------------------------------------------
\resumeSubheading
{Information Technology Support Specialist}{Sep. 2018 -- Present}
{Southwestern University}{Georgetown, TX}
\resumeItemListStart
\resumeItem{Communicate with managers to set up campus computers used on campus}
\resumeItem{Assess and troubleshoot computer problems brought by students, faculty and staff}
\resumeItem{Maintain upkeep of computers, classroom equipment, and 200 printers across campus}
\resumeItemListEnd
\resumeSubheading
{Artificial Intelligence Research Assistant}{May 2019 -- July 2019}
{Southwestern University}{Georgetown, TX}
\resumeItemListStart
\resumeItem{Explored methods to generate video game dungeons based off of \emph{The Legend of Zelda}}
\resumeItem{Developed a game in Java to test the generated dungeons}
\resumeItem{Contributed 50K+ lines of code to an established codebase via Git}
\resumeItem{Conducted a human subject study to determine which video game dungeon generation technique is enjoyable}
\resumeItem{Wrote an 8-page paper and gave multiple presentations on-campus}
\resumeItem{Presented virtually to the World Conference on Computational Intelligence}
\resumeItemListEnd
\resumeSubHeadingListEnd
%-----------PROJECTS-----------
\section{Projects}
\resumeSubHeadingListStart
\resumeProjectHeading
{\textbf{Gitlytics} $|$ \emph{Python, Flask, React, PostgreSQL, Docker}}{June 2020 -- Present}
\resumeItemListStart
\resumeItem{Developed a full-stack web application using with Flask serving a REST API with React as the frontend}
\resumeItem{Implemented GitHub OAuth to get data from user’s repositories}
\resumeItem{Visualized GitHub data to show collaboration}
\resumeItem{Used Celery and Redis for asynchronous tasks}
\resumeItemListEnd
\resumeProjectHeading
{\textbf{Simple Paintball} $|$ \emph{Spigot API, Java, Maven, TravisCI, Git}}{May 2018 -- May 2020}
\resumeItemListStart
\resumeItem{Developed a Minecraft server plugin to entertain kids during free time for a previous job}
\resumeItem{Published plugin to websites gaining 2K+ downloads and an average 4.5/5-star review}
\resumeItem{Implemented continuous delivery using TravisCI to build the plugin upon new a release}
\resumeItem{Collaborated with Minecraft server administrators to suggest features and get feedback about the plugin}
\resumeItemListEnd
\resumeSubHeadingListEnd
%
%-----------PROGRAMMING SKILLS-----------
\section{Technical Skills}
\begin{itemize}[leftmargin=0.15in, label={}]
\small{\item{
\textbf{Languages}{: Java, Python, C/C++, SQL (Postgres), JavaScript, HTML/CSS, R} \\
\textbf{Frameworks}{: React, Node.js, Flask, JUnit, WordPress, Material-UI, FastAPI} \\
\textbf{Developer Tools}{: Git, Docker, TravisCI, Google Cloud Platform, VS Code, Visual Studio, PyCharm, IntelliJ, Eclipse} \\
\textbf{Libraries}{: pandas, NumPy, Matplotlib}
}}
\end{itemize}
%-------------------------------------------
\end{document}

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}

I am builiding my resume on Overleaf.com platform. I am encountering a problem that there is a "4" at the end of the line. I am unable to remove it

The below provided is the complete latex code.
%-------------------------
% 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{fontawesome5}
\usepackage{multicol}
\setlength{\multicolsep}{-3.0pt}
\setlength{\columnsep}{-1pt}
\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.6in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1.19in}
\addtolength{\topmargin}{-.7in}
\addtolength{\textheight}{1.4in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large\bfseries
}{}{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{\classesList}[4]{
\item\small{
{#1 #2 #3 #4 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{1.0\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & \textbf{\small #2} \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\textit{\small#1} & \textit{\small #2} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{1.001\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & \textbf{\small #4}\\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemi{$\vcenter{\hbox{\tiny$\bullet$}}$}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.0in, 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}
{\Huge \scshape Harsh Jain} \\ \vspace{1pt}
Alwar, Rajasthan \\ \vspace{1pt}
\small \raisebox{-0.1\height}\faPhone\ +91 8769826027 ~ \href{hrsjain.hp#gmail.com}{\raisebox{-0.2\height}\faEnvelope\ \underline{hrsjain.hp#gmail.com}} ~
\href{https://linkedin.com/in//}{\raisebox{-0.2\height}\faLinkedin\ \underline{www.linkedin.com/in/hrsjain}}
\vspace{-8pt}
\end{center}
%-----------EDUCATION-----------
\section{Education}
\resumeSubHeadingListStart
\resumeSubheading
{MBM University, Jodhpur (Pursuing)}{August 2019 - June 2023}
{Bachelor of Technology in Information Technology (CGPA of 8.50 aggregate; 9.44 latest)}{Rajasthan, India}
\resumeSubheading
{Chinar Public School}{April 2017 - March 2018}
{Class XII (83.8\%)}{Rajasthan, India}
\resumeSubheading
{Chinar Public School}{April 2015 - March 2016}
{Class X (10 CGPA) equivalent to 95\% }{Rajasthan, India}
\resumeSubHeadingListEnd
%-----------EXPERIENCE-----------
\section{Experience}
\resumeSubHeadingListStart
\resumeSubheading
{CodePlanet Technologies}{June 2022 - present}
{Java Intern}{Rajasthan, India}
\resumeItemListStart
\resumeItem{Creating a backend + frontend internal tool to do online shopping with ease.}
\resumeItem{Tool and Technoligies used will be JAVA, spring-MVC, JSP and servlet }
\resumeItemListEnd
\resumeSubHeadingListEnd
\vspace{-16pt}
%-----------PROJECTS-----------
\section{Projects}
\vspace{-5pt}
\resumeSubHeadingListStart
\resumeProjectHeading
{\textbf{Flight Reservation Application} $|$ \emph{Java Spring Boot, MySQL} $|$ {https://github.com/hrsjain/Flight-ReservationApplication}}
\resumeItemListStart
\resumeItem{ An user interactive web application that allows users to book their flights and also to allow Airline Companies to add their flights.}
\vspace{2pt}
\resumeItem{ Created the email utility and PDF utility so that the Flight tickets and details can be sent automatically as the flight is booked. Password encoding system while logging in to enhance the security of the system.Exposed API for the Flight Check-in System to access the data.}
\resumeItemListEnd
\vspace{-13pt}
\resumeProjectHeading
{\textbf{Flight Check-in Application} $|$ \emph{Java Spring Boot, MySQL} $|$ {https://github.com/hrsjain/FlightCheckinSystem}}
\\
\resumeItemListStart
\resumeItem{ A user interactive web application that facilitates check-in of passengers of the flight.}
\resumeItem{ Integrated with Flight Reservation Application, the application accesses data from Flight Reservation Application.}
\resumeItemListEnd
\resumeSubHeadingListEnd
%
%-----------Achievements-----------
\section{Achievements}
\begin{itemize}[leftmargin=0.15in, label={}]
\resumeItemListStart
\resumeItem{ 150+ Programming questions solved with 2 badges on Data Structures and Algorithms on LeetCode. leetcode.com/hrsjain/}
\resumeItem{Distinction in Science in International Assessment for Indian Schools, by UNSW Global, Australia which is one of the top institutes which assess students across the globe Student ID-8504, Class XII, Year 2018.}
\resumeItem{Distinction in Maths in International Assessment for Indian Schools, by UNSW Global, Australia which is one of the top institutes which assess students across the globe Student ID-8504, Class XII, Year 2018.}
\resumeItem{AIMUN Certification for Model United Nations Conference held in Amity, Noida with participants from all across the world demonstrating critical thinking, speaking skills, etc.}
\resumeItem{ Management Core Team Member at Google Developer Students Club - MBM, through which we help bridge the gap between theory and practice by empowering a peer-to-peer learning environment.}
\resumeItemListEnd
\end{itemize}
\vspace{-20pt}
%
%-----------SKILLS-----------
\section{Technical Skills}
\begin{itemize}[leftmargin=0.15in, label={}]
\small{\item{
\textbf{Languages}{: C, C++, Java} \\
\textbf{Technologies/Frameworks/Libraries}{: MySQL, Spring, AWS} \\
\textbf{Core}{: Data Structure and Algorithms, Operating System, Computer Networks, Database Management Systems, etc. }
}}
\end{itemize}
%-----------Certifications-----------
\section{Certifications}
\begin{itemize}[leftmargin=0.15in, label={}]
\resumeItemListStart
\resumeItem{Data Structure and Algorithms-certified by Dmatics Technologies}
\resumeItem{ C, C++, Java Programming Language- Certified by Dmatics Technologies}
\resumeItem{AWS CLOUD TECH. ESSENTIALS -AWS through Coursera -BDED2WG6RM9H}
\resumeItem{Building Modern Java Applications on AWS -AWS through Coursera -LYGNJ45TAZP6}
\resumeItem{ RS-CIT certificate in Information Technology (by VMOU, Rajasthan)}
\resumeItemListEnd
\end{itemize}
\vspace{-16pt}
%
\vspace{-16pt}
\end{document}
I have attached both code snippet and the output. I was unable to attach the complete code because of the formatting issue.
Please share your suggestions so as to remove the 4 at the end of the each project description line.
I have attached both code snippet and the output. I was unable to attach the complete code because of the formatting issue.
Please share your suggestions so as to remove the 4 at the end of the each project description line.
There is no point in looking at the output and wondering about stray 4's in your document. Your document does not compile! As long as there are error during the compilation, latex only syntax checks the rest of the document, not necessarily producing reasonable output. Fix the errors before looking at the output!
Never ignore error messages!
Two major problems:
the definition
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{1.001\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & \textbf{\small #4}\\
\end{tabular*}\vspace{-7pt}
}
makes no sense. You instruct it to take 2 mandatory arguments, yet you use the 4th argument inside the macro. This does not go together. Either increase the number of arguments or don't use the 4th argument inside the macro
the definition of this macro is not the only problem, also how you use it. You neither use it with two argument, like you say how many arguments it has, you also don't use it with 4 arguments, how you define it, you use it with only a single argument!
%-------------------------
% 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{fontawesome5}
\usepackage{multicol}
\setlength{\multicolsep}{-3.0pt}
\setlength{\columnsep}{-1pt}
\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.6in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1.19in}
\addtolength{\topmargin}{-.7in}
\addtolength{\textheight}{1.4in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large\bfseries
}{}{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{\classesList}[4]{
\item\small{
{#1 #2 #3 #4 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{1.0\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & \textbf{\small #2} \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\textit{\small#1} & \textit{\small #2} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{1.001\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & \textbf{\small #2}\\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemi{$\vcenter{\hbox{\tiny$\bullet$}}$}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.0in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\section{Projects}
\vspace{-5pt}
\resumeSubHeadingListStart
\resumeProjectHeading
{\textbf{Flight Reservation Application} $|$ \emph{Java Spring Boot, MySQL} $|$ {https://github.com/hrsjain/Flight-ReservationApplication}}{}
\resumeItemListStart
\resumeItem{ An user interactive web application that allows users to book their flights and also to allow Airline Companies to add their flights.}
\vspace{2pt}
\resumeItem{ Created the email utility and PDF utility so that the Flight tickets and details can be sent automatically as the flight is booked. Password encoding system while logging in to enhance the security of the system.Exposed API for the Flight Check-in System to access the data.}
\resumeItemListEnd
\vspace{-13pt}
\resumeProjectHeading
{\textbf{Flight Check-in Application} $|$ \emph{Java Spring Boot, MySQL} $|$ {https://github.com/hrsjain/FlightCheckinSystem}}{}
\\
\resumeItemListStart
\resumeItem{ A user interactive web application that facilitates check-in of passengers of the flight.}
\resumeItem{ Integrated with Flight Reservation Application, the application accesses data from Flight Reservation Application.}
\resumeItemListEnd
\resumeSubHeadingListEnd
\end{document}

Fix spacing on Overleaf with LaTex

I am working on my resume and am using LaTex in Overleaf. I am having issue with spacing everything properly. Here is my LaTex.
%-------------------------
% Resume in Latex
% Author : Sidratul Muntaha Ahmed
% License : MIT
%------------------------
\documentclass[letterpaper,12pt]{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}
\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{1pt}]
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-6pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-9.5pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-10pt}
}
\newcommand{\resumeSubSubheading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\textit{\small#1} & \textit{\small #2} \\
\end{tabular*}\vspace{-10pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-10pt}
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-5pt}}
\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{center}
\textbf{\Huge \scshape Brad Bieselin} \\ \vspace{1pt}
\textbf{\small \scshape 516-557-8407 $|$ Wantagh, NY} \\ \vspace{1pt}
\href{https://bradbieselin.com/}{\underline{bradbieselin.com}} $|$ \href{mailto:brad#bradbieselin.com}{\underline{brad#bradbieselin.com}} $|$
\href{https://linkedin.com/in/bradbieselin}{\underline{linkedin.com/in/bradbieselin}} $|$
\href{https://github.com/bradbieselin}{\underline{github.com/bradbieselin}}
\end{center}
%-----------Experience-----------
\section{Experience}
\resumeSubHeadingListStart
\resumeSubheading
{Witbe Inc}{New York, NY}
{Project Manager/Customer Success Manager}{June 2021-Present}
\resumeItemListStart
\resumeItem{Led and managed 9 projects for customers including Verizon, ViacomCBS, and Peacock by automating VoD asset testing, Channel Change testing, and video/audio quality analysis using Witbe robots}
\resumeItem{Prepared and facilitated 8+ hour interactive training sessions for all customers, including 10+ senior executives on delivery of new products and software}
\resumeItem{Planned, scheduled and executed all software, hardware, and system integration with over 100 Witbe robots and customer devices to ensure the best Quality of Experience monitoring}
\resumeItem{Established growth and generated improvements to customer business by over 40\% by managing automated scripting and monitoring projects, and finding opportunities for improvement}
\resumeItem{Stimulated progress of each project to meet deadlines and standards with 10+ check-ins per week and constant improvemenets to automation scripts}
\resumeItemListEnd
\resumeSubHeadingListEnd
\resumeSubHeadingListStart
\resumeSubheading
{Apple Inc}{Remote}
{Software Quality Engineer}{February 2021-June 2021}
\resumeItemListStart
\resumeItem{Developed projects in Java using Jackson, Jenkins, TestNG and Gradle which analyzed and validated Apple.com product prices when adding products to the cart, testing over 3000 scenarios}
\resumeItem{Engineered a Full-Stack project which allows the upload and download of files, built with a React.js and Spring Boot backend, and using Amazon S3 cloud storage to store files}
\resumeItem{Gained fluency in AWS with 40+ hours of training and obtained AWS Cloud Practitioner Certification}
\resumeItem{Collaborated with development engineers for code review regularly to propose improvements}
\resumeItem{Collected data, devised Confluence reports, and presented reports during weekly team meetings which highlighted progress of software quality testing projects}
\resumeItemListEnd
\resumeSubHeadingListEnd
\resumeSubHeadingListStart
\resumeSubheading
{Frontend Web Developer}{}
{Freelance}{January 2021-Present}
\resumeItemListStart
\resumeItem{Coding web applications and integrating CMS driven data, such as Contentful}
\resumeItem{Designing and creating user interfaces with modern frameworks including React.js and Next.js}
\resumeItem{Completed FrontendMasters Bootcamp and 40+ hours of additional courses including Functional Javascript, Advanced CSS, Computer Science, and Website Accessibility}
\resumeItemListEnd
\resumeSubHeadingListEnd
%-----------Education-----------
\section{Projects}
\resumeSubHeadingListStart
\resumeProjectHeading
{\href{https://studentprofiles.bradbieselin.com/}{\underline{Student Profiles}} $|$ \emph{React.js/Firebase}}{}
\resumeItemListStart
\resumeItem{Developed a website which lets users filter student profiles by name or tag and see test scores driven by an API, using React.js for the frontend}
\resumeItemListEnd
\resumeSubHeadingListEnd
\resumeSubHeadingListStart
\resumeProjectHeading
{\href{https://bitcointracker.bradbieselin.com/}{\underline{Bitcoin Tracker}} $|$ \emph{Javascript/Firebase}}{}
\resumeItemListStart
\resumeItem{An animated sunset built with Javascript, CSS, and HTML that tracks the live price of Bitcoin using the Binance.com websocket}
\resumeItemListEnd
\resumeSubHeadingListEnd
%
%-----------Education-----------
\section{Education}
\resumeSubHeadingListStart
\resumeProjectHeading
{\textbf{University at Albany, SUNY} \emph{}}{May 2015-December 2019}
\resumeItemListStart
\resumeItem{Bachelor of Science in Computer Science}
\resumeItem{Awarded from the College of Engineering and Applied Science}
\resumeItemListEnd
\resumeSubHeadingListEnd
%
%-----------SKILLS-----------
\section{Skills}
\begin{itemize}[leftmargin=0.15in, label={}]
\small{\item{
\textbf{Languages}{: Javascript, TypeScript, CSS, HTML, Java, Python, C, LaTex, PowerShell, Bash} \\
\textbf{Web Skills}{: WebPack, Babel, Tailwind, Styled Components, SEO, Contentful CMS, Amazon Web Services} \\
\textbf{React Skills}{: Next, Gatsby, Material/Semantic UI} \\
\textbf{Technologies}{: Git, WSL 2, VS Code/Studio, IntelliJ, Node.js, Express, Spring Boot} \\
}}
\end{itemize}
%-------------------------------------------
\end{document}
I can't get the spacing to work properly. For my projects, education and skills section there is a lot of empty space and I want everything to be much closer together. Does anyone have any suggestions? Thank you!
Here is an example of the spacing I am looking to achieve:
Here is what the section I am having trouble with looks like:

Missing control sequence inserted. \end{tabulary} error in revtex4-2 template aps

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 ******

Using xcookybooky in LaTeX, I have many ingredients, but it does go into the next page

I'm trying to write a recipe in LaTeX using xcookybooky. The current recipe (lasagne) has way too many ingredients, and it cannot fit in one page. Unfortunately, the ingredient list does not split over two pages, the text simply goes out of the page.
The LaTeX code in and of itself is simply a very long ingredients list made in a recipe environment.
Does anyone know how to fix this?
Thanks
Edit: I see the picture I was trying to add did not appear. Instead I'll copy some of the code in. This compiles as it should for me, although the ingredients list still goes out of the page.
\documentclass[
a4paper,
11pt
]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\usepackage[ngerman, english]{babel}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{nicefrac}
\usepackage[
nowarnings,
]
{xcookybooky}
\DeclareRobustCommand{\textcelcius}{\ensuremath{^{\circ}\mathrm{C}}}
\setcounter{secnumdepth}{1}
\renewcommand*{\recipesection}[2][]
{
\subsection[#1]{#2}
}
\renewcommand{\subsectionmark}[1]
{
}
\usepackage{hyperref}
\begin{document}
\begin{recipe}
[%
preparationtime = {\unit[1]{h}},
bakingtime={\unit[20-25]{min}},
bakingtemperature={\protect\bakingtemperature{
fanoven=\unit[175]{\textcelcius}}},
portion = {\portion{6}},
]
{Spinach Lasagne}
\graph
{
%small=Recipes/MainCourses/BBQChicken/Small.jpg,
big=Recipes/Vegetarian/SpinachLasagne/Big.jpg
}
\ingredients
{
\textbf{Sauce}\\
2 & chopped onions\\
\unit[2]{tbsp} & Olive oil\\
3 & chopped cloves of garlic\\
\unit[2]{tsps} & dried thyme\\
4 & grated carrots\\
3 & grated celery leaves\\
1 & grated squash\\
1 & grated aubergine\\
\unit[250]{g} & mushrooms\\
\unit[1]{dL} & tomato paste\\
\unit[1]{can} & chopped tomatoes\\
To taste & salt and pepper\\
\\
\textbf{Spinach}\\
\unit[500]{g} & frozen spinach\\
\unit[1]{dL} & cream\\
1 & onion\\
1 & clove of garlic\\
\unit[2]{tbsp} & oil\\
To taste & salt \& pepper \& fresh basil\\
\\
\textbf{Mornay}\\
\unit[2]{tbsp} & butter\\
\unit[2]{tbsp} & flour\\
\unit[3]{dL} & milk\\
\unit[125]{g} & fresh mozzarella\\
To taste & salt \& pepper \& nutmeg\\
\\
\unit[250]{g} & Lasagne plates\\
Enough & mozzarella
}
\end{recipe}
\end{document}
It is documented in the xcookybooky manual that lines breaks within the ingredients list are not possible due to technical reasons.
However you could temporarily reimplement the recipe and ingredients macros like this:
\documentclass[
a4paper,
11pt
]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\usepackage[ngerman, english]{babel}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{paracol}
\usepackage{supertabular}
\usepackage{lipsum}
\usepackage{nicefrac}
\usepackage[
nowarnings,
]
{xcookybooky}
\DeclareRobustCommand{\textcelcius}{\ensuremath{^{\circ}\mathrm{C}}}
\setcounter{secnumdepth}{1}
\renewcommand*{\recipesection}[2][]
{
\subsection[#1]{#2}
}
\renewcommand{\subsectionmark}[1]
{
}
\usepackage{hyperref}
\begin{document}
\begingroup
\makeatletter
\renewenvironment{recipe}[2][]
{% initialisation
\setkeys{recipe}{preparationtime, bakingtime, bakingtemperature, portion, calory, source}
\setkeys{picture}{small, big, smallpicturewidth=\xcb#smallpicturewidth, bigpicturewidth=\xcb#bigpicturewidth} % load the default values
\def\xcb#hook#pregraph{}
\def\xcb#hook#pretitle{}
\def\xcb#introduction{}
\def\xcb#hook#prepreparation{}
\preparation{}
\def\xcb#hook#postpreparation{}
\def\xcb#hook#preingredients{}
\ingredients{}
\def\xcb#hook#postingredients{}
\def\xcb#suggestion{}
\def\xcb#hint{}
\def\xcb#recipename{#2}
\setkeys{recipe}{#1} % reading the optional parameters
\setcounter{xcb#newpagefoot}{1}
\setcounter{xcb#newpagehead}{\value{page}}
}
{% this part is executed at \end{recipe}
%% FIRST BLOCK
\xcb#hook#pregraph
\if#twoside
\ifodd\arabic{page}
\begin{minipage}[T]{\xcb#picture#bigwidth}
\xcb#picture#big
\end{minipage}
\hfill
\begin{minipage}[T]{\xcb#picture#smallwidth}
\xcb#picture#small
\end{minipage}
\else
\begin{minipage}[T]{\xcb#picture#smallwidth}
\xcb#picture#small
\end{minipage}
\hfill
\begin{minipage}[T]{\xcb#picture#bigwidth}
\xcb#picture#big
\end{minipage}
\fi
\else
\begin{minipage}[T]{\xcb#picture#bigwidth}
\xcb#picture#big
\end{minipage}
\hfill
\begin{minipage}[T]{\xcb#picture#smallwidth}
\xcb#picture#small
\end{minipage}
\fi
%% SECOND BLOCK
\xcb#hook#pretitle
\recipesection[\normalsize\xcb#recipename]%
{\hspace{-1em}\textcolor{\xcb#color#recipename}{\xcb#font#recipename\xcb#recipename}}
\xcb#cmd#recipeoverview
\xcb#introduction
%% THIRD BLOCK
\columnratio{0.66}
\begin{paracol}{2}
\xcb#hook#prepreparation
\xcb#preparation
\xcb#hook#postpreparation
\xcb#suggestion
\vfill
\xcb#cmd#wrapfill
\xcb#hint
\setcounter{xcb#newpagefoot}{0}
\switchcolumn
\xcb#hook#preingredients
\xcb#ingredients
\xcb#hook#postingredients
\end{paracol}
}
\renewcommand*{\ingredients}[2][\empty]
{% The optional argument contains the number of lines
\def\xcb#ingredientslines{#1}
\def\xcb#ingredients
{%
\xcb#name#inghead
\\[1em]
{\xcb#fontsize#ing\color{\xcb#color#ing}
\begin{supertabular}{r>{\raggedright\arraybackslash}p{3cm}}
#2
\end{supertabular}}
}
}
\makeatother
\begin{recipe}
[%
preparationtime = {\unit[1]{h}},
bakingtime={\unit[20-25]{min}},
bakingtemperature={\protect\bakingtemperature{
fanoven=\unit[175]{\textcelcius}}},
portion = {\portion{6}},
]
{Spinach Lasagne}
\graph
{
%small=Recipes/MainCourses/BBQChicken/Small.jpg,
big=example-image
}
\ingredients
{
\textbf{Sauce}\\
2 & chopped onions\\
\unit[2]{tbsp} & Olive oil\\
3 & chopped cloves of garlic\\
\unit[2]{tsps} & dried thyme\\
4 & grated carrots\\
3 & grated celery leaves\\
1 & grated squash\\
1 & grated aubergine\\
\unit[250]{g} & mushrooms\\
\unit[1]{dL} & tomato paste\\
\unit[1]{can} & chopped tomatoes\\
To taste & salt and pepper\\
\\
\textbf{Spinach}\\
\unit[500]{g} & frozen spinach\\
\unit[1]{dL} & cream\\
1 & onion\\
1 & clove of garlic\\
\unit[2]{tbsp} & oil\\
To taste & salt \& pepper \& fresh basil\\
\\
\textbf{Mornay}\\
\unit[2]{tbsp} & butter\\
\unit[2]{tbsp} & flour\\
\unit[3]{dL} & milk\\
\unit[125]{g} & fresh mozzarella\\
To taste & salt \& pepper \& nutmeg\\
\\
\unit[250]{g} & Lasagne plates\\
Enough & mozzarella\\
}
\preparation{
\step \lipsum[2]
\step \lipsum[2]
\step \lipsum[2]
\step \lipsum[2]
\step \lipsum[2]
\step \lipsum[2]
}
\end{recipe}
\endgroup
\end{document}
Caveats:
the width of the ingredients column is hard coded. Change p{3cm} to whatever value is suitable for you
the preparations column won't wrap around the ingredients.

Resources