首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Latex中的"Justify“对齐

Latex中的"Justify“对齐
EN

Stack Overflow用户
提问于 2017-09-30 12:22:41
回答 1查看 412关注 0票数 1

我希望我的电子邮件id在左边,电话号码在中间,网站在右边,即我想要的线是“调整”对齐(请看图像)。CV.jpg我使用"\hspace{}“来添加空格,但我认为这不是正确的方法。Resume.cls链接:https://docs.google.com/document/d/12QO34MquVCenQ8Vu8fmuIzrSRqPIhvUZiRdVVCqSqbA/edit

我尝试了以下代码:

代码语言:javascript
复制
\documentclass{resume} 
\usepackage{tabularx}
\usepackage{hyperref} 
\hypersetup{colorlinks=true,urlcolor=blue}
\hypersetup{linktocpage}
\usepackage{marvosym} 
\usepackage[bitstream-charter]{mathdesign}
\usepackage[left=1cm,top=0.5cm,right=1cm,bottom=0.1cm]{geometry} 
\name{\bf Saksham Sharma}
\address{
{\Large\Letter}{\href{mailto:abc@gmail.com}{abc@gmail.com}}
{\Large\Telefon} +1-xxx-xxx-xxxx
{\Large\Mundus} {\href{example.com}{example.com}}
}

\begin{document}

\end{document}
EN

回答 1

Stack Overflow用户

发布于 2017-10-01 00:27:42

使用\hfill将内容推送到侧面:

代码语言:javascript
复制
\documentclass{resume}

\usepackage{marvosym}
\usepackage[bitstream-charter]{mathdesign}
\usepackage{geometry}
\geometry{
  hmargin=1cm,
  top=5mm,
  bottom=1mm
}

\usepackage{hyperref}
\hypersetup{
  colorlinks=true,
  urlcolor=blue,
  linktocpage
}

\name{\bfseries Saksham Sharma}
\address{%
  {\Large\Letter}{\href{mailto:abc@gmail.com}{abc@gmail.com}}\hfill
  {\Large\Telefon} +1-xxx-xxx-xxxx\hfill
  {\Large\Mundus} {\href{example.com}{example.com}}%
}

\begin{document}

\end{document}

然而,我建议不要使用一些限制性的resume类来设置你的简历,除非它是真正奇特的东西。相反,只需使用article

代码语言:javascript
复制
\documentclass{article}

\usepackage{marvosym}
\usepackage[bitstream-charter]{mathdesign}
\usepackage{geometry}
\geometry{
  hmargin=1cm,
  top=5mm,
  bottom=1mm
}

\usepackage{hyperref}
\hypersetup{
  colorlinks=true,
  urlcolor=blue,
  linktocpage
}

\setlength{\parindent}{0pt}

\begin{document}

{\centering

{\huge\bfseries \MakeUppercase{Saksham Sharma}\par}
\bigskip
{\Large\Letter}{\href{mailto:abc@gmail.com}{abc@gmail.com}}\hfill
{\Large\Telefon} +1-xxx-xxx-xxxx\hfill
{\Large\Mundus} {\href{example.com}{example.com}}
\par}

\smallskip

Your resume here

\end{document}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46499546

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档