Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wonky sub items #391

Closed
mrethabile opened this issue Jan 4, 2022 · 8 comments
Closed

wonky sub items #391

mrethabile opened this issue Jan 4, 2022 · 8 comments

Comments

@mrethabile
Copy link

I'm not sure if I am doing something off or I missed a point but sub items are wonky either as cvitems or itemize.

To reproduce, first as cvitems:

%-------------------------------------------------------------------------------
%	SECTION TITLE
%-------------------------------------------------------------------------------
\cvsection{Experience}

%-------------------------------------------------------------------------------
%	CONTENT
%-------------------------------------------------------------------------------
\begin{cventries}
    \cventry
        {Senior Developer} % Job title
        {Awesome Company Pty Ltd} % Organization
        {California} % Location
        {Sep. 2019 - Current} % Date(s)
        { 
        \begin{cvitems} % Description(s) of tasks/responsibilities
            \item {Full stack in .NET and JavaScript}
            \item {Build and integrate new web applications}
            \item {Fix bugs and all sort of issues
                \begin{cvitems}
                    \item {Code issues, anywhere from front-end to server-side}       
                    \item {Database issues (query performance, jobs, maintenance)}
                    \item {Service issues (services downtime)}
                \end{cvitems}}
        \end{cvitems}
        }
\end{cventries}

Result:

snip0

as itemize:

%-------------------------------------------------------------------------------
%	SECTION TITLE
%-------------------------------------------------------------------------------
\cvsection{Experience}

%-------------------------------------------------------------------------------
%	CONTENT
%-------------------------------------------------------------------------------
\begin{cventries}
    \cventry
        {Senior Developer} % Job title
        {Awesome Company Pty Ltd} % Organization
        {California} % Location
        {Sep. 2019 - Current} % Date(s)
        { 
        \begin{itemize} % Description(s) of tasks/responsibilities
            \item {Full stack in .NET and JavaScript}
            \item {Build and integrate new web applications}
            \item {Fix bugs and all sort of issues
                \begin{cvitems}
                    \item {Code issues, anywhere from front-end to server-side}       
                    \item {Database issues (query performance, jobs, maintenance)}
                    \item {Service issues (services downtime)}
                \end{itemize}}
        \end{cvitems}
        }
\end{cventries}

Result: while not squashed, but the tab looks extra ordinary,

snip1

@dcsim
Copy link
Contributor

dcsim commented Jan 14, 2022

Below isn't necessarily a good way to do what you're trying to do, but it works. Change -- to --- if you'd prefer an em dash.

 \item {Designed an overall service architecture and pipelines of: \\%
      \quad -- the Machine Learning based Fashion Tagging API SaaS product \\%
      \quad -- with the micro-services architecture.}

Sub Items

Below is another way to do what you want, although it isn't necessarily a good way to do it, but again it works. The \\ may not be necessary if subitem isn't for an item in the middle of the list. I didn't bother to check. Slightly different output then the first option.

        \item {Designed an overall service architecture and pipelines of: \\
          \begin{cvitems}
              \item {the Machine Learning based Fashion Tagging API SaaS product}
              \item {with the micro-services architecture.\\}
          \end{cvitems}
        }

Sub Items 2

@mrethabile
Copy link
Author

I can try that. but since you are mentioning that's not necessarily a good way I would guess it's a workaround.

So after browsing the .cls source I found out that the cvitems comes with a vspace of -4mm i.e. vspace{-4.0mm}. If I counter-offer that, then the issue cancel.

        \item {Fix bugs and all sort of issues
        \vspace{4.0mm}
        \begin{cvitems} % Description(s) of tasks/responsibilities
          \item {Code issues, anywhere from front-end to server-side}       
          \item {Database issues (query performance, jobs, maintenance)}
          \item {Deployment gone wrong}
          \item {Service issues (services downtime)}
          \item {Server issues (scheduled, unscheduled maintenance)}
        \end{cvitems}}

snip02

@dcsim
Copy link
Contributor

dcsim commented Jan 14, 2022

I think all three of these solutions are workarounds, because I don't think the class file intends for items under entries to have subitems.

Your vspace solution is a good workaround and looks well suited for your use case. If others are looking for a similar way to accomplish this in the future, it would be a good place to start.

I specifically mention that my solutions aren't "good" because throwing \\ around isn't always a good idea, but in this situation they "work."

@rehanguha
Copy link

rehanguha commented Jan 16, 2022

If we take a situation where I got promoted at a same company and hold 2 designation. I will prefer to have a single entry with sub items(like LinkedIn) rather than two different entries.
Is there any way to achieve that?

we have a class i.e. cvsubentries but i feel its is not spaced properly

@dcsim
Copy link
Contributor

dcsim commented Jan 16, 2022

@rehanguha: I think there have been a few issue threads related to spacing issues in cvsubentries that might be helpful. You might find solutions to making the existing cvsubentries work better and resolve the spacing issues in those.

My (private) fork has the following command to allow for multiple positions within the same company. It may or not look like what you're hoping for.

I have modified the command here so it will use Awesome-CV fonts:

Added to the class file between cventry and cvsubentries

% Define Multiple Positions with a Single Company
% Use: \cventrymultiposition{<Organization>}{Total Dates}{<Position>}{<date>}{previous position}{old date}{...}{n...}{<description>}; adjust params as need.
% Note: specifying a negative skip after a line using glue following the terminator appears to solve the spacing issue in cventry.
\newcommand*{\cventrymulti}[9]{%
  \setlength\tabcolsep{0pt}
  \setlength{\extrarowheight}{0pt}
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.0cm} R{4.0cm}}
    \ifempty{#7#8} 
      {\entrytitlestyle{#1} & \entrydatestyle{#2} \\[-0.5cm]%
      \entrypositionstyle{#3} & \entrylocationstyle{#4}  \\[-0.05cm]
      \entrypositionstyle{#5} & \entrylocationstyle{#6} \\}
      {\entrytitlestyle{#1} & \entrydatestyle{#2} \\[-0.05cm]
      \entrypositionstyle{#3} & \entrydatestyle{#4}  \\[-0.05cm]
      \entrypositionstyle{#5} & \entrydatestyle{#6} \\[-0.05cm]
      \entrypositionstyle{#7} & \entrydatestyle{#8} \\} 
      \if\relax\detokenize{#9}\relax\else
        \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#9}}
      \fi
  \end{tabular*}%
}

Usage in the experience.tex file. Note the order is different from the usual Awesome-CV entry. The comments refer to the standard cventry usage not the usage in cventrymulti.

  \cventrymulti
    {Huge Law Firm} % Job title
    {Jun. '15 - Present} % Organization
    {Managing Attorney} % Location
    {Feb. 2021 - Present} % Date(s)
    {Attorney}
    {Oct. 2017 - Jan. 2021}
    {Law Clerk}
    {Jun. '15 - Sep. 2017}
    {
      \begin{cvitems} % Description(s) of tasks/responsibilities
        \item {Attorney stuff. Writing stuff. Negotiating stuff.}
        \item {Supervisory stuff. Managing, delegating, reviewing, recruiting. That kind of stuff.}
        \item {Stuff Stuff Stuff.}
      \end{cvitems}
    }

This will work for 2 or 3 positions within a company. If you have only 2 positions leave empty the 7th and 8th{}. LaTeX is limited to 9 arguments so this cannot be expanded to a 4th position at a company without more substantial changes.

Using already defined Awesome-CV fonts the output is:

multi position

I'm not sure which of the existing Awesome-CV font definitions should be used in the command to make it look more "Awesome-CV" and it is possible that you'd need to add additional fonts definitions.

Below is what the output ofcventrymulti looks like as I use it. I hope it provides additional context on what font choices may be helpful.

multipos demo

@rehanguha
Copy link

@dcsim Thank you for the response. I have already found a work around and it kind of works fine.

\cventry
{Job title after promotion} % Job title
{Corporation} % Organization
{Location} % Location
{August 2019 - now}
{
  \begin{cvitems} 
	\item {Responsibilities}
	\end{cvitems}
 }


\cventry
{Job title before your promotion}
{} % Organization EMPTY
{} % Location EMPTY
{somewhere in the past - a while ago} % Date(s)
{
  \begin{cvitems}
	\item {Old responsibilities}
	\end{cvitems}
 }

image

Got the solution @ #297

This kind off solved my need, Thank you again for the time.

@dcsim
Copy link
Contributor

dcsim commented Jan 17, 2022

@OJFord: It seems like this issue has been sorted out and might be ready to close. Thanks for your work keeping this repo tidy.

@OJFord
Copy link
Collaborator

OJFord commented Jan 24, 2022

Thanks!

@rehanguha, regarding promotions/multiple roles at the same company, see #297 for some other suggestions (or if you have any additional comments on it, let's keep it there) - I'm hoping to have a built-in mechanism for that soon.

@OJFord OJFord closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants