如何将此文本集中在Sharelatex(编辑器)或乳胶(一般而言)中?

发布于 2025-02-01 21:45:54 字数 632 浏览 2 评论 0原文

我正在写一份简历,并想将文本集中在文档顶部,其中包含我的姓名和电子邮件详细信息,例如

我使用\ begin {center}和\ end {center},但似乎在

这里工作是我的代码:


\begin{document}
\begin{tabular*}{\linewidth}{l@{\extracolsep{\fill}}r}

\vspace{-4mm}
\textbf{\LARGE Samuel Adams}
\\
 & \\  \textbf{Notsville, TX} $|$
\textbf{\phone \ \ +1 (000) 000 0000} $|$ 
\textbf{[email protected]} $|$  \textbf{{www.linkedin.com/ffdfs}}\\

\end{tabular*}

\vspace{1 mm}

有人可以帮助我居中这篇文本吗?

这就是现在的样子。我希望像我们在Word中一样将这两条线居中。

I am writing a resume and want to center text at the top of the document which contains my name and email details, like this

enter image description here

I used \begin{center} and \end{center} but it doesnt seem to work

Here is my code:


\begin{document}
\begin{tabular*}{\linewidth}{l@{\extracolsep{\fill}}r}

\vspace{-4mm}
\textbf{\LARGE Samuel Adams}
\\
 & \\  \textbf{Notsville, TX} $|$
\textbf{\phone \ \ +1 (000) 000 0000} $|$ 
\textbf{[email protected]} $|$  \textbf{{www.linkedin.com/ffdfs}}\\

\end{tabular*}

\vspace{1 mm}

Can anyone help me center this piece of text?

This is how it looks right now. I am looking to center both lines just like we do it in word.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终止放荡 2025-02-08 21:45:54

该表将在页面中间,一旦

  • 您将左和右键的大小相同

  • 使用\ noindent在表的前面,以避免将其缩进为新段落的第一行

(我实际上不确定为什么要使用表,您永远不会使用第二列。 ..)


\documentclass[a4paper,10pt]{article} 
\usepackage[empty]{fullpage} 
\usepackage{xcolor} 
\usepackage{url} 
\usepackage{wasysym} 
\usepackage{hyperref} 
\usepackage{enumitem} 
\usepackage[utf8]{inputenc} 
\usepackage[a4paper,bindingoffset=0.3in, left=0.5in,right=0.5in,top =0.8in,bottom=-5in, footskip=.25in]{geometry} 

\begin{document}
\noindent\begin{tabular*}{\linewidth}{l@{\extracolsep{\fill}}r}
\textbf{\LARGE Samuel Adams} & \\
\textbf{Notsville, TX} $|$ \textbf{\phone \ \ +1 (000) 000 0000} $|$ 
\textbf{[email protected]} $|$ \textbf{{www.linkedin.com/ffdfs}} & \\
\hline
\end{tabular*}

\vspace{1 mm}
\end{document}

The table will be in the middle of the page once

  • you make the left and right margin the same size

  • use \noindent in front of the table to avoid it being indented as the first line of a new paragraph

(I'm actually not sure why you use a table for this, you never use the second column...)


\documentclass[a4paper,10pt]{article} 
\usepackage[empty]{fullpage} 
\usepackage{xcolor} 
\usepackage{url} 
\usepackage{wasysym} 
\usepackage{hyperref} 
\usepackage{enumitem} 
\usepackage[utf8]{inputenc} 
\usepackage[a4paper,bindingoffset=0.3in, left=0.5in,right=0.5in,top =0.8in,bottom=-5in, footskip=.25in]{geometry} 

\begin{document}
\noindent\begin{tabular*}{\linewidth}{l@{\extracolsep{\fill}}r}
\textbf{\LARGE Samuel Adams} & \\
\textbf{Notsville, TX} $|$ \textbf{\phone \ \ +1 (000) 000 0000} $|$ 
\textbf{[email protected]} $|$ \textbf{{www.linkedin.com/ffdfs}} & \\
\hline
\end{tabular*}

\vspace{1 mm}
\end{document}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文