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

Make it easier to define new sections #8

Closed
opieters opened this issue Jan 18, 2018 · 11 comments
Closed

Make it easier to define new sections #8

opieters opened this issue Jan 18, 2018 · 11 comments

Comments

@opieters
Copy link
Owner

Creating new sections requires to edit the source code or to use LaTeX hacks. Additionally, it also requires knowledge of how limecv works internally. This should be made much easier and more accessible.

@TOmas2331
Copy link

Hi, is possible to add section Certification with same design as Education and Experience?
Thank you

@opieters
Copy link
Owner Author

opieters commented Jun 5, 2018

Yes, but you will have to hack the document class to do that. I will add a more user friendly API some time in the future.

@TOmas2331
Copy link

TOmas2331 commented Jun 18, 2018

I will try myself but which file limecv.cls or limecv.dtx?

@opieters
Copy link
Owner Author

When you just want to create a new section, you should modify the .cls file. This is the file latex looks at when compiling the document.

@kongyanye
Copy link

Has this function been implemented?

@TOmas2331
Copy link

TOmas2331 commented Feb 21, 2019 via email

@Pouya-Kiani
Copy link

Pouya-Kiani commented May 22, 2019

Hi there, i'm trying to add a new environment, Certificates for example. i've added these lines to the .cls file:
\NewDocumentEnvironment{Certificates}{}{%
\cv@Title{\pgfkeysvalueof{/@cv/names/certificates}}{\faBriefcase}
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
\cv@definecvItem
}{%
\cv@EndSectionDraw
\stepcounter{cv@lastItem}
\draw (item \the\value{cv@itemPrev}.south west)
node (cv@last item \the\value{cv@lastItem}) {};
}
and of course defined /@cv/names/certificates variable using:
\pgfkeys{/@cv/names/certificates = Certificates}%
but i'm still getting an error saying the environement is not defined. Am i missing something? I'll appreciate your help.
P.S. i'm using the xelatex file in the example.

@opieters
Copy link
Owner Author

Please use the new interface \cvList. Documentation was updated to highlight the features. It is now also used internally.

@MarcoMeter
Copy link

MarcoMeter commented Feb 16, 2023

Could somebody provide an example for the usage of \cvList? Or how could an icon be overriden in my main tex file? Overriding the title works for me like this \pgfkeys{/@cv/names/education = Teaching}.
Got it

\cvList{cvCertificate}{certificate}{\faCamera}
\pgfkeys{/@cv/names/certificate = Awards and Certificates}

@sven1904
Copy link

Does anyone know how I can add a section without formatting.
If I use \cvList to define a custom section, I have to use \cvItem{...} inside the environment, which leads to having the "time line" on the left side (see education/experience).
Omitting \cvItem leads to this error message:

! Package pgf Error: No shape named `item 10' is known.

See the pgf package documentation for explanation.

And using no environment at all, e.g. just writing something like Hello, leads to:

Missing character: There is no H in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no l in font nullfont!
Missing character: There is no l in font nullfont!
Missing character: There is no o in font nullfont!

Is there any way to add unformatted text or some custom minipage without editing the source code?

@opieters
Copy link
Owner Author

For now, there's no option unfortunately. Feel free to open a separate ticket for this issue. I'll try and address it when I have time.

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

6 participants