# How can I use a LaTeX .tex (cv/resume) template for RMarkdown .rmd?

#1

I want to use this LaTeX resume template for RMarkdown. How can I do it? Is there any good guide out there you would recommend to look at?

Thank you!

\documentclass{article}
%% Resume template for Brown's joint
%% CareerLAB and Science Center LaTeX/Resume workshop

%% The template is based on the first
%% example resume on the CareerLAB website, available here:

%% what everything means and with the goal
%% of empowering you to modify the template;
%% feel free to remove the comments
%% if you want a cleaner .tex file.

%%%%%%%%%%%%%%
%% Packages %%
%%%%%%%%%%%%%%

%% For changing the margin size. %%
\usepackage[margin=0.5in]{geometry}

%% For colored text. %%
% -  See http://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips
%    for a list of predefined colors.
%    I'll explain how to color text.
\usepackage[usenames,dvipsnames]{color}

\usepackage{hyperref}

%% For making compact lists.
% -  use itemize* environment for compact itemized lists, etc.
\usepackage{mdwlist}

%%%%%%%%%%%%%%
%%   New    %%
%% Commands %%
%%%%%%%%%%%%%%

%% For making a new section in your resume. %%
% -  \noindent prevents LaTeX from indenting.
% -  \large makes the text slightly larger.
%    See http://en.wikibooks.org/wiki/LaTeX/Fonts#Sizing_text
%    for a list of other font-sizing commands.
% -  \vspace adds a little bit of vertical space.
% -  \hrule adds a horizontal line.
\newcommand{\ressection}[1]{\noindent{\large\textbf{#1}}
\vspace{2pt}\hrule\vspace{4pt}}

%% For job titles and date names. %%
% -  \hfill fills up horizontal space until
%    the words to the left and the right are
%    as far apart as possible.
\newcommand{\leftandright}[2]{\noindent\textbf{#1}\hfill
\textbf{#2}}

%%%%%%%%%%%%%%%%%%%
%% Miscellaneous %%
%%%%%%%%%%%%%%%%%%%

\pagestyle{empty} %% removes the page numbers.

%%%%%%%%%%%%%%%%%
%% The Resume! %%
%%%%%%%%%%%%%%%%%

\begin{document}
\sffamily %% makes the text sans-serif

\begin{center}
\textbf{\huge{Josiah Carberry}}

167 Angell Street, Providence RI 02912
\textbullet\, \href{mailto:josiah_carberry@brown.edu}{josiah\_carberry@brown.edu}
\textbullet\, (401) 863-3326
\end{center}
\vspace{-0.9em}

\ressection{Education}
\leftandright{Brown University, \textmd{B.A. Music, honors candidate, 3.95/4.0 GPA}}{Providence, RI \textbullet\, Class of 2013} \\

\ressection{Digital Media Experience}
\leftandright{Brown CareerLAB}{Providence, RI \textbullet\,
September 2011 -- present} \\
Provides career advice, workshops, planning, and coaching to Brown students. \\[0.1em] %% \\ takes an optional argument, the distance
\textit{Social Media Manager}
\vspace{-0.8em}
\begin{itemize*} %% itemize* is from the mdwlist package
\item
\item
Analyzed success of Twitter engagement through follower counts and link-tracking to inform strategic decisions.
\item
Evaluated and reframed career content for students on Twitter, increasing follower count by 4\% per month.
\item
Wrote and presented curriculum on using Twitter for job searches to students and professional career advisors.
\end{itemize*}

\ressection{Skill Sets}
AudioVault, and Computer/Technical troubleshooting \\
\textbf{Non-Technical}: Trained vocalist, voiceover artist, speedy identification of most popular/alternative music

\end{document}



#2

It will require substantial knowledge about LaTeX and Pandoc templates. The biggest challenge is that it is not possible to translate LaTeX to Markdown perfectly: the translation is almost surely lossy (because Markdown is simple but LaTeX can be complicated).

If you don't or can't work on this by yourself, you can wait for my next package. Creating resumes is one of my goals.

#3

Thank you @yihui! That sounds great! Looking forward to using said package. What's your ETA for it?

#4

Perhaps anywhere from two weeks to two months.

#5

First of all, anyone reading this please do me a favor not to promote the package publicly at the moment (especially on social media platforms), because it is a fairly new package that we just started working on, and I have only done about 10% of what I planned to do. There are also many rough edges and a lot of things are subject to change. You may have high expectations as I do, but I don't want to disappoint you.

Now for those who are brave and understand the above warning:

devtools::install_github('rstudio/pagedown')


and create a new R Markdown document from the RStudio menu File -> New File -> R Markdown -> From Template -> HTML Resume {pagedown}. This is what the default template looks like:

There is no documentation but hopefully the template is self-explanatory. Open the HTML file in Google Chrome, and you can print the page to PDF. You need the fonts "Open Sans" and "Source Code Pro". Both are available on https://fonts.google.com. But you are free to use other typefaces if you understand CSS.

If you find any problems or have suggestions, please feel free to file to https://github.com/rstudio/pagedown/issues. Thanks!

#6

Woah this looks great. Thank you!

#7

Love this package so far!

Is it possible to add a summary paragraph below "sub: Currently searching for a PhD student position" like this (caption: maybe?)

#8

You can write arbitrary Markdown content in these fields, e.g.

left-column:
title:
main: Lijia Yu
sub: |
Currently searching for a PhD student position

Here is another paragraph.


You'd better devtools::install_github('rstudio/pagedown') again, though. Then you'll need some CSS skills if you don't want the full capitals.

#9

Thank you! I'll look into it

IMO, it would be very useful to have the template like the one below cause some people might not be familiar with CSS and having a short summary can be important for some industries

left-column:
title:
main: Lijia Yu
sub:  Currently searching for a PhD student position
cap:  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis
sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi nec
ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultrices augue,
a dignissim nibh lectus placerat pede. Vivamus nunc nunc, molestie ut, ultricies
vel, semper in, velit. Ut porttitor.


#10

Good suggestion. Thanks! Please reinstall the package from Github, and use the content field under title. Example: https://github.com/rstudio/pagedown/commit/e1f0046183b24eb747495ed158b7496edc5b00a6#diff-5179c11f234b99dd67f125e60b3b41b0

#11

#12

nice... my old moderncv is starting to bore me

#13

I daresay you're already working at 150%, @yihui, but if you ever get the time once you publicly announce pagedown, I'd love to read a blog post on it, paged.js and its alternatives (if there are any for CSS Paged Media), and whether or not CSS Paged Media is also useful for non-print paged media, like eBooks It seems like there's a pretty big ecosystem outside LaTeX now!

#14

@rensa Thanks for your interest for CSS Paged Media! I've talked about CSS Paged Media for R Markdown at the last uRos 2018 conference. You can find the slides for my talk here. I gathered some references in the slideshow (download the pdf version to get active links).
You will find alternatives to paged.js (mature ones are commercials). All these tools first appeared in the XML/XSLT-FO ecosystem (they are not new). There's also a newcomer I didn't mentioned: Oxygen PDF Chemistry (still in beta).
However, we are convinced that paged.js is the next big thing for CSS Paged Media. Although this polyfill is still in its first development stages, it does a great job!

#15

Ooooooh, thanks @rlesur! I'll be checking those slides out ASAP

#16

Hi Yihui! Do you think the font size is a little bit too small to read and the space in between sections is too large?

#17

Very interesting talk. Thank you for sharing!

#18

Yes, I do think so: https://github.com/rstudio/pagedown/issues/15

#19

The resume would look really great after this issue is fixed. Fingers crossed!