使用 itemize 擠壓項目

使用 itemize 擠壓項目

我覺得我可以在下面的列表中保存一些行,但我不知道如何保存。

在此輸入影像描述

broadband networks例如,我想避免分割。

這是最小的例子:

\documentclass[margin,line]{res}
\usepackage[colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}]{hyperref}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
\usepackage{url}
\oddsidemargin -.5in
\evensidemargin -.5in
\textwidth=6.0in
\itemsep=0in
\parsep=0in
\topmargin=0in
\topskip=0in
\newcommand{\tab}{\hspace*{2em}}
\usepackage{multicol}
\newcommand{\Myoops}[1]{\textit{#1}}
\usepackage{graphicx}
\begin{document}
\name{\LARGE Georgios Samaras}
%MUST leave a blank line after this

\begin{resume}

\section{\sc Conferences Events} All the conferences/events where held in Athens
\begin{multicols}{4}
\begin{itemize}
  \item Broadband networks.
  \item Internet security.
  \item \href{http://en.wikipedia.org/wiki/Next-generation_network}{NGN}s
  \item E-Learning and Webinars.
  \item E-Business.
  \item Windows Phone (Microsoft).
  \item Java, C$^\sharp$ and F$^\sharp$.
\end{itemize}
\end{multicols}


\end{resume}
\end{document}

不過,該文件需要res.cls,您可以查看這裡

順便說一句,如果有人對如何節省空間有任何其他想法,請告訴我,因為保存的每一行都有很大幫助。


如果我在 multicols 中使用 4,我會得到:

在此輸入影像描述

答案1

在您擁有的幾個選項中,一個是用作(包的一項功能)的nosep選項。另外添加,這樣奇怪的理由就不會破壞外觀。 itemizeenumitem\raggedright

如果喜歡冒險,您也可以考慮使用taskspackage,它可以很好地處理多列清單。我添加了tasks包含所有可能選項的環境,以便您可以根據需要更改尺寸。詳細資訊請參閱tasks手冊。

\documentclass[margin,line]{res}
\usepackage[colorlinks=true ,urlcolor=blue,urlbordercolor={0 1 1}]{hyperref}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
\usepackage{url}
\oddsidemargin -.5in
\evensidemargin -.5in
\textwidth=6.0in
\itemsep=0in
\parsep=0in
\topmargin=0in
\topskip=0in
\newcommand{\tab}{\hspace*{2em}}
\usepackage{multicol}
\newcommand{\Myoops}[1]{\textit{#1}}
\usepackage{graphicx}

\usepackage[more]{tasks}


\begin{document}
\name{\LARGE Georgios Samaras}
%MUST leave a blank line after this

\begin{resume}

\section{\sc Conferences Events} All the conferences/events where held in Athens
\begin{multicols}{4}
\raggedright
\begin{itemize}[nosep]
  \item Broadband networks.
  \item Internet security.
  \item \href{http://en.wikipedia.org/wiki/Next-generation_network}{NGN}s
  \item E-Learning and Webinars.
  \item E-Business.
  \item Windows Phone (Microsoft).
  \item Java, C$^\sharp$ and F$^\sharp$.
\end{itemize}
\end{multicols}

With \verb|tasks|:
\begin{tasks}[style=itemize,label=\labelitemi,before-skip=0pt,
                after-skip=-2pt,after-item-skip=0pt,
                column-sep=1em,label-width=0.6em,label-offset=0.1em,
                item-indent=0.2em,label-align=left](3)
  \task Broadband networks.
  \task Internet security.
  \task \href{http://en.wikipedia.org/wiki/Next-generation_network}{NGN}s
  \task E-Learning and Webinars.
  \task E-Business.
  \task Windows Phone (Microsoft).
  \task Java, C$^\sharp$ and F$^\sharp$.
\end{tasks}


\end{resume}
\end{document}

在此輸入影像描述

順便說一句,最好使用geometry套件來改變頁面佈局,而不是手動調整。

另外,盡量避免使用兩個字母指令 ( \sc) 來表示字體形狀,而使用\scshape.順便說一句,修改章節標題最好使用任何一個sectsty套件來完成titlesec。如果您像此/您的程式碼中那樣手動執行此操作,則可能會面臨失去一致性的風險。使用這些套件更改序言中的格式。 (我這裡沒有這樣做)。

相關內容