다음 그림에 표시된 텍스트를 왼쪽 정렬하는 방법은 무엇입니까?

다음 그림에 표시된 텍스트를 왼쪽 정렬하는 방법은 무엇입니까?

중간에 끼어서 텍스트를 왼쪽 정렬해야 합니다.수라즈 프라카시 샤르마,이메일,GitHub,링크드인.

다음 그림을 보면 빨간색 상자로 표시한 공간을 볼 수 있습니다. 문서에서 텍스트가 왼쪽 정렬되도록 해당 공간을 제거하고 싶습니다.

문서 이미지

다음은 위 문서를 생성하기 위한 Latex 코드입니다.

\documentclass[a4paper,10pt]{article}
\usepackage{anysize}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=0.75in, right=0.75in, top=0.5in, bottom=0.75in, includefoot, headheight=13.6pt]{geometry}
\usepackage{color,graphicx}
\usepackage{verbatim}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{latexsym}
\usepackage{mdwlist}
\usepackage{tabularx}

\renewcommand{\labelitemii}{$\circ$}

\hypersetup{
    % bookmarks=true,         % show bookmarks bar?
    unicode=true,          % non-Latin characters in Acrobat's bookmarks
    pdftoolbar=true,        % show Acrobat's toolbar?
    pdfmenubar=true,        % show Acrobat's menu?
    pdffitwindow=true,      % page fit to window when opened
    pdftitle={CV - Suraj Prakash Sharma},    % title
    pdfauthor={Suraj},     % author
    pdfsubject={Resume},   % subject of the document
    colorlinks=true,       % false: boxed links; true: colored links
    linkcolor=magenta,        % color of internal links
    citecolor=blue,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=blue           % color of external links
}

% Margines

\addtolength{\oddsidemargin}{-0.215in}
\addtolength{\textwidth}{0.2in}

\definecolor{titleColor}{rgb}{0.85, 0.85, 0.85}

\begin{document}

%%%%%%%%% vertical space %%%%%%%%%%%%%%%%%

\begin{table}[h!]
     \begin{center}
     \begin{tabular}{l  p{8cm}  p{8cm}}
     &
     \begin{itemize}
     \setlength\itemsep{.01em}
        \item[] \textbf{\Large Suraj Prakash Sharma}
        % \item[] \textbf{Bachelor of Technology in Computer Science Engineering}
        % \item[] \textbf{NIIT University Rajasthan, India}
        \item[] \textbf{Email: }
        \item [] \textbf{GitHub: }
        % \item[] \textbf{Skype ID: }
        \item[] \textbf{LinkedIn: }
    \end{itemize}
     &
     \begin{itemize}
        \setlength\itemsep{.01em}
        \item[] \textbf{\large NIIT University, Rajasthan}
        \item[] \textbf{Bachelor of Technology}
        \item[] \textbf{Computer Science \& Engineering}
        \item[] \textbf{Phone: }
    \end{itemize}
    \end{tabular}
    \end{center}
  \end{table}
  \vspace{-.8cm}

\begin{tabularx}{.98\textwidth}{llp{2cm}lll}
    \hline
    \textbf{Examination} & \textbf{Specialization} & & \textbf{University / Board} & \textbf{Year} & \textbf{CPI}\\
   \hline
\end{tabularx}
  \end{document}

누구든지 이 문제에서 벗어날 수 있나요?

답변1

지적한 특정 문제는 다음을 사용하여 해결할 수 있습니다.

\noindent
\begin{tabular}{@{}p{5.8cm}  p{10cm}}
\begin{itemize}[leftmargin=0pt]

여기에 이미지 설명을 입력하세요

tabular그러나 아래의 두 번째 MWE에서와 같이 사용하는 것이 더 좋습니다 .

여기에 이미지 설명을 입력하세요

\arraystretch줄 사이에 더 많은 공간을 원하면 늘릴 수 있습니다 .

암호:

\documentclass{article}
\usepackage{showframe}
\usepackage{enumitem}

\begin{document}
\noindent
\begin{tabular}{@{}p{5.8cm}  p{10cm}}
 \begin{itemize}[leftmargin=0pt]
 \setlength\itemsep{.01em}
    \item[] \textbf{\Large Suraj Prakash Sharma}
    \item[] \textbf{Email: }
    \item[] \textbf{GitHub: }
    \item[] \textbf{LinkedIn: }
\end{itemize}
 &
 \begin{itemize}[leftmargin=0pt]
    \setlength\itemsep{.01em}
    \item[] \textbf{\large NIIT University, Rajasthan}
    \item[] \textbf{Bachelor of Technology}
    \item[] \textbf{Computer Science \& Engineering}
    \item[] \textbf{Phone: }
\end{itemize}
\end{tabular}
\end{document}

암호:tabular

\documentclass{article}
\usepackage{showframe}

\begin{document}
\noindent
{%
\renewcommand{\arraystretch}{1.1}%
\begin{tabular}{@{}l@{}}
    \textbf{\Large Suraj Prakash Sharma} \\
    \textbf{Email: }  \\
    \textbf{GitHub: } \\
    \textbf{LinkedIn: } \\
\end{tabular}%
\hfill%
\begin{tabular}{@{}l@{}}
    \textbf{\large NIIT University, Rajasthan} \\
    \textbf{Bachelor of Technology} \\
    \textbf{Computer Science \& Engineering} \\
    \textbf{Phone: } \\
\end{tabular}%
}%
\end{document}

관련 정보