
履歴書を作成しようとしていますが、これまでに取り組んだプロジェクトを箇条書きでリストするセクションがあるため、次のような環境itemize
内でリストを使用します。tabularx
\begin{tabularx}{\linewidth}{>{\centering\arraybackslash}p{2.8cm}|X}
2015 - 2017 & \textbf{Title of Master} \textbf{(120 ECTS)}, Specialization\\[1mm]
& Key projects:\\
& \begin{itemize}
\item Project 1
\item Project 2
\item Project 3
\end{itemize}\\
\multicolumn{2}{c}{}\\
2010 - 2014 & \textbf{Bachelor (180 ECTS)}\\[1mm]
& Final grade: 7.51/10.00 - Name of University\\
& $\bullet$ Diploma thesis: \textit{"Name of thesis"}\\
& $\bullet$ Type of Specialization \\%[2mm]
\end{tabularx}
\setlist[itemize]{leftmargin=*}
ドキュメントの先頭のコマンドを使用して、主要なプロジェクトを含むリスト内の項目のインデントを抑制することができますが、「主要なプロジェクト」行の直後とリストの末尾の直後に抑制できない垂直スペースがあります。topsep
以下のブロックのようなオプションを使用しようとしましたが、機能しませんでした。
& Key projects:\\
& \begin{itemize}[noitemsep,topsep=0pt]
\item Project 1
\item Project 2
\item Project 3
\end{itemize}\\
最後に、各プロジェクトの前に箇条書きを追加するだけで、プロジェクトを手動でリストしてみました。
& Key projects:\\
& $\bullet$ Project 1\\
& $\bullet$ Project 2\\
& $\bullet$ Project 3\\
これは、最後のプロジェクトのタイトルがそれよりも長く\linewidth
、折り返したときに、テキストが前の行の開始位置ではなく箇条書きのすぐ下から始まることを除けば、正常に動作します。
そこで私の質問は、どうすれば世界的にリストによって作成されたインデントおよび垂直スペースの両方を抑制しますか?
アップデート: これは問題を再現して視覚化するためのコードの一部です。
\documentclass[a4paper,10pt]{article}
%%%%-------------------------Packages-------------------------------------------
%\usepackage{extsizes} %package for extra font sizes
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{titlesec} %package to edit document and section titles
\usepackage{enumitem} %package to edit the lists
\usepackage{parskip} %package to suppress paragraph indentation
\usepackage{verbatim} %package to comment in/out chunks of code
\usepackage{tabularx} %package for better manipulation of matrix dimensions
\usepackage{array} %package that allows an alignement command along with a column width specifier (p-column)
\usepackage{geometry} %package to tweak the margins and dimensions of the page
\geometry{
a4paper,
left=10mm,
right=10mm,
top=9mm,
bottom=8mm
}
\usepackage{hyperref} %package to include hyperlinks
\hypersetup{ %edit how the hyperlinks will appear
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
\urlstyle{same}
%%%%%%%%%%%%%%%%%%----------------- Beginning of the document-------------------
\begin{document}
%-------------general settings for the whole document--------------------
% \url{https://www.sharelatex.com/learn/Sections_and_chapters#
% Customize_chapters_and_sections}
\titleformat{\section}[block]{\large\bf\raggedright}{}{0cm}{}[\titlerule]
\titlespacing{\section}{0pt}{1.5pt}{0pt}
%\setlist[itemize]{leftmargin=*} % remove the indent from all list items
%\setlist[itemize]{noitemsep, topsep=0pt}
%\setlist[itemize]{nosep}
\pagestyle{empty} %non-numbered pages
%-------------------------Education Section----------------------------------
\section{Education} % Section Education
\begin{tabularx}{\linewidth}{>{\centering\arraybackslash}p{2.8cm}|X}
2015 - 2017 & \textbf{Title of Master} \textbf{(120 ECTS)}, Specialization\\[1mm]
& Key projects:\\
& \begin{itemize}
\item Project 1
\item Project 2
\item Project 3
\end{itemize}\\
\multicolumn{2}{c}{}\\
2010 - 2014 & \textbf{Bachelor (180 ECTS)}\\[1mm]
& Final grade: 7.51/10.00 - Name of University\\
& $\bullet$ Diploma thesis: \textit{"The name of the thesis which is long enough that the text wraps but starts right below the bullet instead of starting where the word ""Diploma" starts}\\
& $\bullet$ Type of Specialization \\%[2mm]
\end{tabularx}
\end{document}
したがって、最初のケースでは、項目のインデントと、その上下の垂直スペースの両方を取り除くことはできません。2 番目の部分では、箇条書きを手動で入力しましたが、卒業論文の名前が長すぎて折り返され、上の単語ではなく箇条書きと並んでいるため、見栄えが悪くなっています。
私が望んでいるのは、結果が 2 番目のケースのように表示されること、また折り返しの問題も修正することです。私の説明が明確になれば幸いです。ご協力ありがとうございます。
答え1
表内ではそれらを抑制します。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[style=british]{csquotes} \usepackage{array, tabularx}
\usepackage{enumitem}
\usepackage[table, x11names]{xcolor}
\begin{document}
\begin{table}[!ht]
\setlist[itemize]{wide=0pt, label=\color{LightBlue3}\textbullet, noitemsep, topsep=2pt, leftmargin=*, after =\vspace*{-\baselineskip}}
\begin{tabularx}{\linewidth}{>{\centering\arraybackslash}p{2.8cm}! {\color{LightBlue3}\vrule width1.5pt}>{\arraybackslash}X}
2015 - 2017 & \textbf{Title of Master} \textbf{(120 ECTS)}, Specialization \\[1mm]
& Key projects:
\begin{itemize}
\item Project 1
\item Project 2
\item Project 3
\end{itemize}\\
\multicolumn{2}{c}{}\\
2010 - 2014 & \textbf{Bachelor (180 ECTS)} \\[1mm]
& Final grade: 7.51/10.00 - Name of University
\begin{itemize}
\item Diploma thesis: \textit{\enquote{The Hunting of the Snark. An agony in eight fits}}
\item Type of Specialization%[2mm]
\end{itemize}
\end{tabularx}
\end{table}
\end{document}