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

Answer an FAQ: Can I add a profile picture? #74

Open
sinaatalay opened this issue May 18, 2024 · 3 comments
Open

Answer an FAQ: Can I add a profile picture? #74

sinaatalay opened this issue May 18, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue For people who are new to open source

Comments

@sinaatalay
Copy link
Owner

I have added a FAQ section to the user guide. Your assistance with this is greatly appreciated.

@sinaatalay sinaatalay added the documentation Improvements or additions to documentation label May 18, 2024
@sinaatalay sinaatalay self-assigned this May 18, 2024
@edavalosanaya
Copy link

This feature would be great!

@sinaatalay sinaatalay added the good first issue For people who are new to open source label Jul 15, 2024
@kito323
Copy link
Contributor

kito323 commented Sep 16, 2024

Using moderncv theme it is actually quite easy. After first generation you have the moderncv/Preamble.j2.tex file. In this you can follow any moderncv LaTeX code basically and they have a \photo command:

\photo A command for a photo. Takes the image file name as a required argument. Takes the
height of the photo and the thickness of the photo frame as optional arguments.
\photo[<photo height >][< frame thickness >]{<photo file name >}

Keep in mind that the root directory for the .tex file will be rendercv_output folder. So for example, if you want to keep your photo in the folder with Your_Name_CV.yaml then you should add something like this:
\photo[3cm][1pt]{../YourPhoto.jpg}

See more about moderncv documentation here.

Note: As this solution only caters moderncv theme and I have no idea about other themes then I don't think it's worthy of pull request. Maybe it is, let me know. I just thought it might be good info for some.

@sinaatalay
Copy link
Owner Author

sinaatalay commented Sep 16, 2024

@kito323 Thank you! All the files inside the theme folder (moderncv) will be automatically copied to rendercv_output folder. So, putting the photo inside the moderncv folder is an option too.

If you would like to contribute the documentation, you can send a pull request to update the FAQ page. If you're interested, see the developer guide. We can update the answer for the other themes later.

sinaatalay pushed a commit that referenced this issue Oct 24, 2024
* Profile picture feture with `moderncv` theme
Only for this theme and only optional "add" possibility. Should also include design parameters (height and frame thickness) but didn't know how to add those so that they would have default values.

* Revert "Profile picture feture with `moderncv` theme"

This reverts commit f81da26.

* FAQ to add profile picture using `moderncv` theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue For people who are new to open source
Projects
None yet
Development

No branches or pull requests

3 participants