Text FormattingMove multi column list up one line

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
shinobi
Posts: 3
Joined: Wed Jan 26, 2011 8:46 pm

Move multi column list up one line

Post by shinobi »

I'm working on a resume. I need this list to move up to the same line the section title is on (as that is how the rest of my resume is). I'm using the multicol package to have 2 column bullet lists. The code looks like this:

Code: Select all

\section(TITLE) \begin{multicols}{2}
  \begin{itemize}
    \item First Item
    \item Second Item
    \item Third Item
    \item Fourth Item
  \end{itemize}
\end{multicols}
This produces something like:

TITLE
*First Item *Second Item
*Third Item *Fourth Item

I need the First Item and Second Items to be on the same line as the section title. Any help would be much much appreciated :D
Last edited by shinobi on Mon Jan 31, 2011 8:08 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Move multi column list up one line

Post by frabjous »

That makes very little sense. Surely you don't want...

Code: Select all

TITLE *First Item *Second Item
*Third Item *Fourth Item
That would be very very ugly.


Is the title in the margin or something? So that it should look like:

Code: Select all

TITLE  *First Item *Second Item
       *Third Item *Fourth Item
If it is, we need to know how that is accomplished, since that is not standard behavior, and that is impossible to understand how to handle this without knowing what documentclass, packages, etc., you're using that is responsible for it.

So, in short, provide a proper minimal working example and not just a code snippet.
shinobi
Posts: 3
Joined: Wed Jan 26, 2011 8:46 pm

Move multi column list up one line

Post by shinobi »

I'm using res9a.tex and res.cls from this link provided:
http://rpi.edu/dept/arc/training/latex/resumes/

Here's an example of how the rest of the resume works:

Code: Select all

\section{OBJECTIVE} To gain employment.
It produces:
OBJECTIVE To gain employment.

If you'd like I can post the entire res9a.tex and the res.cls, but they are found at the link above.

EDIT: Also, it does format correctly like the second example you gave where they are aligned, but they're just one line too low. I'm assuming multicol automatically moves it down a line?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Move multi column list up one line

Post by frabjous »

I think multicol just flushes out the partly written line; it wouldn't move to a new line unless the line it's on had been partly written already, as it is here.

I tested things out, and it seems to work just fine to put the \section command inside the multicol environment (at least as well as it would be if you had a single column list there):

Code: Select all

\begin{multicols}{2}
\section{TITLE}
  \begin{itemize}
    \item First Item
    \item Second Item
    \item Third Item
    \item Fourth Item
  \end{itemize}
\end{multicols}
If there's something strange about that, my next suggestion was going to be to use some negative vertical space, but for some odd reason, it seemed to work just to use 0 vertical space, which is very confusing to me:

Code: Select all

\section{TITLE}
\vspace{0pt}
\begin{multicols}{2}
  \begin{itemize}
    \item First Item
    \item Second Item
    \item Third Item
    \item Fourth Item
  \end{itemize}
\end{multicols}
That vspace command shouldn't do anything at all, yet in that document class somehow it does. Feeling a bit to lazy at the moment to try to figure out what's going on there.
shinobi
Posts: 3
Joined: Wed Jan 26, 2011 8:46 pm

Re: Move multi column list up one line

Post by shinobi »

Thanks a bunch! Putting the section line after multicols seemed to work fine. I'm not sure how that makes sense actually, but I'm happy with it working. The 0 vertical space seems to make even less sense, but also works.

Thanks again.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Move multi column list up one line

Post by localghost »

shinobi wrote:[…] Putting the section line after multicols seemed to work fine. I'm not sure how that makes sense actually, but I'm happy with it working. The 0 vertical space seems to make even less sense, but also works.[…]
Then please mark the topic accordingly as written in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
Post Reply