Advertisement
Guest User

Untitled

a guest
Jan 31st, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.36 KB | None | 0 0
  1. % \documentclass[a4paper,10pt,oneside]{article}
  2. \documentclass[letterpaper,10pt,oneside]{article}
  3.  
  4.  
  5. \newcommand{\TypesetInNonStopMode}{1}
  6. \newcommand{\TypesetInDraftMode}{0}
  7.  
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %% SIMPLE-RESUME-CV
  11. %% <https://github.com/zachscrivena/simple-resume-cv>
  12. %% This is free and unencumbered software released into the
  13. %% public domain; see <http://unlicense.org> for details.
  14. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  15.  
  16. % Run in non-stop mode.
  17. \ifnum\TypesetInNonStopMode=1
  18. \nonstopmode
  19. \fi
  20.  
  21. % Geometry package for page margins.
  22. \usepackage[
  23. left=0.70in,
  24. right=0.70in,
  25. top=0.60in,
  26. bottom=0.45in,
  27. nohead,
  28. includefoot]{geometry}
  29.  
  30. % PDF settings and properties.
  31. \usepackage{hyperref}
  32.  
  33. % Long table for page layout.
  34. \usepackage{longtable}
  35.  
  36. % Hyphenation: Disabled.
  37. \usepackage[none]{hyphenat}
  38.  
  39. % Colors.
  40. \usepackage[usenames]{color}
  41. % \definecolor{MyDarkBlue}{RGB}{0,90,160}
  42. % {\color{MyDarkBlue}This text is dark blue}
  43.  
  44. % Current date and time.
  45. \usepackage[yyyymmdd,24hr]{datetime}
  46. \renewcommand{\dateseparator}{-}
  47. \settimeformat{xxivtime}
  48. % {\today}~{\currenttime}
  49.  
  50. % Timestamp.
  51. \newcommand{\Timestamp}{{\yyyymmdddate\today}~{\currenttime}}
  52.  
  53. % Abbreviations for months.
  54. \newcommand{\LongMonth}[1]{%
  55. \ifcase#1\relax
  56. \or January%
  57. \or February%
  58. \or March%
  59. \or April%
  60. \or May%
  61. \or June%
  62. \or July%
  63. \or August%
  64. \or September%
  65. \or October%
  66. \or November%
  67. \or December%
  68. \fi}
  69. \newcommand{\ShortMonth}[1]{%
  70. \ifcase#1\relax
  71. \or Jan%
  72. \or Feb%
  73. \or Mar%
  74. \or Apr%
  75. \or May%
  76. \or Jun%
  77. \or Jul%
  78. \or Aug%
  79. \or Sep%
  80. \or Oct%
  81. \or Nov%
  82. \or Dec%
  83. \fi}
  84.  
  85. % Select datestamp format.
  86. \def\DatestampFormatSelection{2}
  87.  
  88. % Datestamp format: {yyyy}{MM}{dd} ---> yyyy-MM-dd (e.g., 2010-12-31).
  89. \ifnum\DatestampFormatSelection=1
  90. \newcommand{\DatestampYMD}[3]{\mbox{#1-#2-#3}}
  91. \newcommand{\DatestampYM}[2]{\mbox{#1-#2}}
  92. \newcommand{\DatestampY}[1]{#1}
  93. \fi
  94.  
  95. % Datestamp format: {yyyy}{MM}{dd} ---> MMM yyyy (e.g., Dec 2010).
  96. \ifnum\DatestampFormatSelection=2
  97. \newcommand{\DatestampYMD}[3]{\mbox{\ShortMonth{#2} #1}}
  98. \newcommand{\DatestampYM}[2]{\mbox{\ShortMonth{#2} #1}}
  99. \newcommand{\DatestampY}[1]{#1}
  100. \fi
  101.  
  102. % Datestamp format: {yyyy}{MM}{dd} ---> MMMM yyyy (e.g., December 2010).
  103. \ifnum\DatestampFormatSelection=3
  104. \newcommand{\DatestampYMD}[3]{\mbox{\LongMonth{#2} #1}}
  105. \newcommand{\DatestampYM}[2]{\mbox{\LongMonth{#2} #1}}
  106. \newcommand{\DatestampY}[1]{#1}
  107. \fi
  108.  
  109. % Datestamp format: {yyyy}{MM}{dd} ---> yyyy (e.g., 2010).
  110. \ifnum\DatestampFormatSelection=4
  111. \newcommand{\DatestampYMD}[3]{#1}
  112. \newcommand{\DatestampYM}[2]{#1}
  113. \newcommand{\DatestampY}[1]{#1}
  114. \fi
  115.  
  116. % XeLaTeX packages.
  117. \usepackage{fontspec}
  118. \defaultfontfeatures{Ligatures=TeX}
  119. \usepackage{xunicode}
  120. \usepackage{xltxtra}
  121.  
  122. % Font: Use "Tinos" as the main typeface (\textnormal{}, \normalfont).
  123. % The "Tinos" fonts are released under the Apache License Version 2.0,
  124. % and can be downloaded for free at <http://www.fontsquirrel.com/fonts/tinos>.
  125. % Symbol table: <http://www.fileformat.info/info/unicode/font/tinos/grid.htm>
  126. \setmainfont
  127. [Path=./Fonts/Tinos/,
  128. ItalicFont=Tinos-Italic,
  129. BoldFont=Tinos-Bold,
  130. BoldItalicFont=Tinos-BoldItalic]
  131. {Tinos-Regular.ttf}
  132.  
  133. % Secondary font: "GNU FreeFont".
  134. % The "GNU FreeFont" fonts are released under the
  135. % GNU General Public License Version 3, and can be downloaded
  136. % for free at <https://savannah.gnu.org/projects/freefont/>.
  137. \newcommand{\UseSecondaryFont}{\fontspec
  138. [Path=./Fonts/GNUFreeFont/,
  139. ItalicFont=FreeSerifItalic,
  140. BoldFont=FreeSerifBold,
  141. BoldItalicFont=FreeSerifBoldItalic]
  142. {FreeSerif.otf}}
  143.  
  144. % Sans-serif font: Changed to "Tinos".
  145. \renewcommand{\sffamily}{\rmfamily}
  146.  
  147. % Typewriter (monospace) font: Changed to "Tinos".
  148. \renewcommand{\ttfamily}{\rmfamily}
  149.  
  150. % Small caps font: Changed to "Tinos".
  151. \renewcommand{\scshape}{\rmfamily}
  152. %\renewcommand{\textsc}[1]{\textbf{\MakeUppercase{#1}}}
  153.  
  154. % Font styles.
  155. \newcommand{\UseHeadingFont}{\normalfont}
  156. \newcommand{\UseHeaderFooterFont}{\UseHeadingFont\fontsize{8.2pt}{9.5pt}\selectfont}
  157. \newcommand{\UseNoteFont}{\UseHeadingFont\fontsize{8pt}{9.6pt}\selectfont}
  158. \newcommand{\UseTitleFont}{\UseHeadingFont\fontsize{28pt}{33.6pt}\selectfont\bfseries}
  159. \newcommand{\UseSubTitleFont}{\normalfont\fontsize{8.6pt}{10.3pt}\selectfont}
  160. \newcommand{\UseSectionFont}{\UseHeadingFont\fontsize{9pt}{11pt}\selectfont\bfseries}
  161. \newcommand{\UseSubSectionFont}{\UseHeadingFont\fontsize{8.6pt}{10.3pt}\selectfont\bfseries}
  162. \newcommand{\UseDetailFont}{\normalfont\fontsize{8.6pt}{10.3pt}\selectfont}
  163.  
  164. % Symbols (unicode).
  165. \newcommand{\BulletSymbol}{{\normalfont\fontsize{6.5}{7.8}\selectfont\raisebox{0.17em}{\char"25A0}}}
  166. \newcommand{\SubBulletSymbol}{{\normalfont\fontsize{6}{7.2}\selectfont\raisebox{0.17em}{\char"25CF}}}
  167. \newcommand{\TildeSymbol}{{\normalfont\char"007E}}
  168.  
  169. % Headers and footers: Blank header, page number in footer.
  170.  
  171. \makeatletter
  172. \def\ps@plain{%
  173. \def\@oddhead{\HeaderText}%
  174. \def\@evenhead{\HeaderText}%
  175. \def\@oddfoot{\FooterText}%
  176. \def\@evenfoot{\FooterText}}
  177. \makeatother
  178.  
  179. \pagestyle{plain}
  180.  
  181. % Paragraph style.
  182. \setlength{\parindent}{0in} % No indentation at the beginning of each paragraph.
  183. \setlength{\parskip}{0in} % No vertical space between paragraphs.
  184.  
  185. % Footnotes: Use symbols instead of numbers for labels.
  186. \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  187.  
  188. % Macro: title (name).
  189. \renewcommand{\title}[1]{%
  190. \pdfbookmark[1]{#1}{#1}%
  191. \par\begin{center}%
  192. \par\UseTitleFont%
  193. {#1}%
  194. \par\end{center}%
  195. \par\vspace{-1.75em}\par}
  196.  
  197. % Macro: subtitle (personal information below name).
  198. \newenvironment{subtitle}
  199. {\par\begin{center}%
  200. \par\UseSubTitleFont}
  201. {\par\end{center}\par}
  202.  
  203. % Macro: body (rest of the document).
  204. \newenvironment{body}
  205. {\par\vspace{-1em}\par
  206. \begin{longtable}{p{0.15\textwidth}p{0.80\textwidth}}}
  207. {\par\end{longtable}\par}
  208.  
  209. % Macro: section (new section for Education, Research Experience, etc.).
  210. \renewcommand{\section}[3]{\\[-1em]\pdfbookmark[2]{#2}{#3}\\%
  211. {\UseSectionFont\raggedright\MakeUppercase{#1}}%
  212. &}
  213.  
  214. % Macro: subsection.
  215. \renewcommand{\subsection}[3]{\par~\vskip-\baselineskip%
  216. \pdfbookmark[3]{#2}{#3}\par%
  217. {\UseSubSectionFont\raggedright\MakeUppercase{#1}}%
  218. \vspace{0.225\baselineskip}}
  219.  
  220. % Macro: BigGap, BigGapNoBreak (big vertical gap between items in the same section).
  221. \newcommand{\BigGap}{\\[-1.75mm]~&}
  222. \newcommand{\BigGapNoBreak}{\par\vspace{2.45mm}\par}
  223.  
  224. % Macro: Gap, GapNoBreak (vertical gap between items in the same section).
  225. \newcommand{\Gap}{\\[-3.5mm]~&}
  226. \newcommand{\GapNoBreak}{\par\vspace{0.7mm}\par}
  227.  
  228. % Macro: detail (text in smaller font under an item).
  229. \newenvironment{detail}
  230. {\par\begingroup\UseDetailFont}
  231. {\par\endgroup\par}
  232.  
  233. % Macro: BulletItem.
  234. \newsavebox{\BulletItemIndentation}
  235. \newlength{\BulletItemIndentationWidth}
  236. \newcommand{\BulletItem}{\par%
  237. \savebox{\BulletItemIndentation}{\hspace{1.5mm}\BulletSymbol\hspace{1.25mm}}%
  238. \settowidth{\BulletItemIndentationWidth}{\usebox{\BulletItemIndentation}}%
  239. \noindent\hangafter=1\hangindent=\BulletItemIndentationWidth\ignorespaces%
  240. \usebox{\BulletItemIndentation}\ignorespaces}
  241.  
  242. % Macro: SubBulletItem.
  243. \newsavebox{\SubBulletItemIndentation}
  244. \newlength{\SubBulletItemIndentationWidth}
  245. \newcommand{\SubBulletItem}{\par%
  246. \savebox{\SubBulletItemIndentation}{\hspace{5.6mm}\SubBulletSymbol\hspace{1.25mm}}%
  247. \settowidth{\SubBulletItemIndentationWidth}{\usebox{\SubBulletItemIndentation}}%
  248. \noindent\hangafter=1\hangindent=\SubBulletItemIndentationWidth\ignorespaces%
  249. \usebox{\SubBulletItemIndentation}\ignorespaces}
  250.  
  251. % Macro: Item.
  252. \newsavebox{\ItemIndentation}
  253. \newlength{\ItemIndentationWidth}
  254. \newcommand{\Item}{\par%
  255. \savebox{\ItemIndentation}{\hphantom{\hspace{1.5mm}\BulletSymbol\hspace{1.25mm}}}%
  256. \settowidth{\ItemIndentationWidth}{\usebox{\ItemIndentation}}%
  257. \noindent\hangafter=1\hangindent=\ItemIndentationWidth\ignorespaces%
  258. \usebox{\ItemIndentation}\ignorespaces}
  259.  
  260. % Macro: SubItem.
  261. \newsavebox{\SubItemIndentation}
  262. \newlength{\SubItemIndentationWidth}
  263. \newcommand{\SubItem}{\par%
  264. \savebox{\SubItemIndentation}{\hphantom{\hspace{1.5mm}\BulletSymbol\hspace{1.25mm}}}%
  265. \settowidth{\SubItemIndentationWidth}{\usebox{\SubItemIndentation}}%
  266. \noindent\hangafter=1\hangindent=\SubItemIndentationWidth\ignorespaces%
  267. \usebox{\SubItemIndentation}\ignorespaces}
  268.  
  269. % Macro: NumberedItem.
  270. \newsavebox{\NumberedItemIndentation}
  271. \newlength{\NumberedItemIndentationWidth}
  272. \newcommand{\NumberedItem}[1]{\par%
  273. \savebox{\NumberedItemIndentation}{{#1}\hspace{2.3mm}}%
  274. \settowidth{\NumberedItemIndentationWidth}{\usebox{\NumberedItemIndentation}}%
  275. \noindent\hangafter=1\hangindent=\NumberedItemIndentationWidth\ignorespaces%
  276. \usebox{\NumberedItemIndentation}\ignorespaces}
  277.  
  278. % Macro: CharSpace (for aligning single-digit numbers).
  279. \newlength{\CharWidth}
  280. \newcommand{\CharSpace}{\settowidth{\CharWidth}{8}\hspace{\CharWidth}}
  281.  
  282. % Macro: hide.
  283. \newcommand{\hide}[1]{}
  284.  
  285.  
  286.  
  287.  
  288.  
  289. % CV Info (to be customized).
  290. \newcommand{\CVAuthor}{Mohamed Ali}
  291. \newcommand{\CVTitle}{Mohamed Ali's CV}
  292. \newcommand{\CVWebpage}{https://www.linkedin.com/in/mohamed-ali-48903a67}
  293.  
  294. % PDF settings and properties.
  295. \hypersetup{
  296. pdftitle={\CVTitle},
  297. pdfauthor={\CVAuthor},
  298. pdfsubject={\CVWebpage},
  299. pdfcreator={XeLaTeX},
  300. pdfproducer={},
  301. pdfkeywords={},
  302. pdfpagemode={},
  303. bookmarks=true,
  304. unicode=true,
  305. bookmarksopen=true,
  306. pdfstartview=FitH,
  307. pdfpagelayout=OneColumn,
  308. pdfpagemode=UseOutlines,
  309. hidelinks,
  310. breaklinks}
  311.  
  312. % Shorthand.
  313. \newcommand{\CodeCommand}[1]{\mbox{\textbf{\textbackslash{#1}}}}
  314.  
  315. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  316. %% ACTUAL DOCUMENT.
  317. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  318.  
  319. \begin{document}
  320. %%%%%%%%%%%%%%%
  321. % TITLE BLOCK %
  322. %%%%%%%%%%%%%%%
  323.  
  324. \title{\CVAuthor}
  325.  
  326. \begin{subtitle}
  327. {El Amria, Alexandria, Egypt}
  328. \par
  329. \href{mailto:eng.mohamedali99@gmail.com }
  330. {eng.mohamedali99@gmail.com }
  331. \,\SubBulletSymbol\,
  332. +2\,010\,97896103
  333. \,\SubBulletSymbol\,
  334. \href{\CVWebpage}
  335. {\CVWebpage}
  336. \end{subtitle}
  337.  
  338. \begin{body}
  339.  
  340. %%%%%%%%%%%%%%%
  341. %% EDUCATION %%
  342. %%%%%%%%%%%%%%%
  343.  
  344. \section
  345. {Education}
  346. {Education}
  347. {PDF:Education}
  348.  
  349. {\textbf{Faculty of Engineering, Alexandria University, Egypt}}
  350. \GapNoBreak
  351. \BulletItem
  352. BEng of Computer and Systems Engineering
  353. \hfill
  354. \DatestampYMD{2010}{09}{1} --
  355. \DatestampYMD{2016}{07}{1}
  356. \begin{detail}
  357. \SubBulletItem
  358. Grade:
  359. Good.
  360. \SubBulletItem
  361. Graduation Project:
  362. Elderly Assistance Robot (Grade: Very Good).
  363. \end{detail}
  364.  
  365.  
  366. %%%%%%%%%%%%%%%%%%%%%
  367. %% skills %%
  368. %%%%%%%%%%%%%%%%%%%%%
  369.  
  370. \section
  371. {skills}
  372. {skills}
  373. {PDF:skills}
  374.  
  375. \BulletItem
  376. Dean's List,
  377. Fall 2002 through Spring 2005,
  378. Science College
  379. \hfill
  380. \begin{detail}
  381. \SubBulletItem
  382. Grade:
  383. Good.
  384. \SubBulletItem
  385. Graduation Project:
  386. Elderly Assistance Robot (Grade: Very Good).
  387. \end{detail}
  388.  
  389.  
  390. \Gap
  391. \BulletItem
  392. Undergraduate Researcher Award,
  393. Science College
  394. \hfill
  395.  
  396. \Gap
  397. \BulletItem
  398. Undergraduate Researcher Award,
  399. Science College
  400. \hfill
  401.  
  402. \Gap
  403. \BulletItem
  404. Undergraduate Researcher Award,
  405. Science College
  406. \hfill
  407.  
  408. \Gap
  409. \BulletItem
  410. Undergraduate Researcher Award,
  411. Science College
  412. \hfill
  413.  
  414. \Gap
  415. \BulletItem
  416. Undergraduate Researcher Award,
  417. Science College
  418. \hfill
  419.  
  420. \Gap
  421. \BulletItem
  422. Undergraduate Researcher Award,
  423. Science College
  424. \hfill
  425.  
  426.  
  427. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  428. %% ANOTHER SECTION WITH USAGE EXAMPLES %%
  429. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  430.  
  431. \section
  432. {Projects}
  433. {Projects}
  434. {PDF:Projects:ForPDFLink}
  435.  
  436. \textbf{This is a Plain Heading},
  437. followed by an \CodeCommand{hfill} and a date range
  438. \hfill
  439. \DatestampYM{2015}{10} --
  440. \DatestampYM{2015}{12}
  441.  
  442. \GapNoBreak
  443. \BulletItem
  444. This is a \CodeCommand{BulletItem}.
  445. \begin{detail}
  446. \SubBulletItem
  447. This is a \CodeCommand{SubBulletItem}.
  448. \end{detail}
  449.  
  450. \GapNoBreak
  451. \BulletItem
  452. This is a \CodeCommand{BulletItem}.
  453. \begin{detail}
  454. \SubItem
  455. This is a \CodeCommand{SubItem}, which has no bullet.
  456. Note the alignment with the \CodeCommand{BulletItem} above.
  457. \end{detail}
  458.  
  459. \GapNoBreak
  460. \Item
  461. This is an \CodeCommand{Item}, which has no bullet.
  462. Note the alignment with the \CodeCommand{BulletItem} above.
  463. \begin{detail}
  464. \SubItem
  465. This is a \CodeCommand{SubItem}.
  466. \end{detail}
  467.  
  468. \GapNoBreak
  469. \NumberedItem{[16]}
  470. This is a \CodeCommand{NumberedItem}.
  471. Note the alignment with the \CodeCommand{SubBulletItem} above.
  472.  
  473. \GapNoBreak
  474. \NumberedItem{{\CharSpace}[6]}
  475. This is a \CodeCommand{NumberedItem} with a \CodeCommand{CharSpace} in its argument for padding shorter numbers.
  476. Note the alignment with the \CodeCommand{NumberedItem} above.
  477.  
  478. \BigGap
  479. \textbf{Usage Notes}
  480.  
  481. \GapNoBreak
  482. \BulletItem
  483. New Lines and Paragraphs
  484. \begin{detail}
  485. \SubBulletItem
  486. To create a new line within the same paragraph (i.e., with the same indentation), use \CodeCommand{newline} instead of \CodeCommand{\textbackslash}.
  487. The latter will not work because it breaks the long table.
  488. \SubBulletItem
  489. To create a new paragraph, use \CodeCommand{par} or simply leave an empty line.
  490. Paragraph indentations (from
  491. \CodeCommand{Item},
  492. \CodeCommand{SubItem},
  493. \CodeCommand{BulletItem},
  494. \CodeCommand{SubBulletItem},
  495. etc.) do not carry across different paragraphs.
  496. \end{detail}
  497.  
  498. \Gap
  499. \BulletItem
  500. Vertical Spacing Between Items
  501. \begin{detail}
  502. \SubBulletItem
  503. Use \CodeCommand{Gap} or \CodeCommand{GapNoBreak} to insert a small vertical space between items within the same section.
  504. \SubBulletItem
  505. Use \CodeCommand{BigGap} or \CodeCommand{BigGapNoBreak} to insert a bigger vertical space between items within the same section.
  506. \SubBulletItem
  507. The ``NoBreak'' versions prevent page breaking.
  508. \end{detail}
  509.  
  510. \Gap
  511. \BulletItem
  512. Dates
  513. \begin{detail}
  514. \SubBulletItem
  515. Use
  516. \CodeCommand{DatestampYMD\{YYYY\}\{MM\}\{DD\}},
  517. \CodeCommand{DatestampYM\{YYYY\}\{MM\}}, and
  518. \CodeCommand{DatestampY\{YYYY\}}
  519. to specify dates.
  520. \SubBulletItem
  521. Change the date format option passed to the document class to adjust how dates are displayed throughout the document:
  522. MMMyyyy (``Dec~2010''),
  523. ddMMMyyyy (``31~Dec~2010''),
  524. MMMMyyyy (``December~2010''),
  525. ddMMMMyyyy (``31~December~2010''),
  526. yyyyMMdd (``2010-12-31''),
  527. yyyyMM (``2010-12''),
  528. yyyy (``2010'').
  529. \end{detail}
  530.  
  531.  
  532.  
  533. %%%%%%%%%%%%%%%
  534. %% LANGUAGES %%
  535. %%%%%%%%%%%%%%%
  536.  
  537. \section
  538. {Languages}
  539. {Languages}
  540. {PDF:Languages}
  541.  
  542. \BulletItem
  543. Arabic: Native language.
  544.  
  545. \GapNoBreak
  546. \BulletItem
  547. English: Intermediate (reading); basic (speaking, writing).
  548.  
  549. \end{body}
  550.  
  551. %%%%%%%%%%%
  552. % CV NOTE %
  553. %%%%%%%%%%%
  554.  
  555. \UseNoteFont%
  556. \null\hfill%
  557. \hspace{2.0mm}\null
  558.  
  559. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement