Page LayoutIndented Paragraph with Date on left Side

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
inkrement
Posts: 1
Joined: Sat Sep 24, 2011 2:06 pm

Indented Paragraph with Date on left Side

Post by inkrement »

Hi!

I am writing a CV in LaTeX (or I am trying it :D ). To list my previous work experiences I would like to use a "special" format. Its hard to describe it, so I will show you my efforts and the problems.
Example
Example
captureCV.png (17.31 KiB) Viewed 2260 times
Example format:

Code: Select all

Date       [b]Header[/b]
           Details
I found two possibilities:

Code: Select all

\newenvironment{myindentpar}[1]%
{\begin{list}{}%
         {\setlength{\leftmargin}{#1}}%
         \item[]%
}
{\end{list}}

% Education
    Date \indent{Headline}
    \begin{myindentpar}{3cm}
   text text text text text text text text text text text text text text text text text text
    text text text text text text text text text text text text text text text text text text
     text text text text text text text text text text text text text text text text text text
      text text text text text text text text text text text text text text text text text text
    \end{myindentpar}
Second Example

Code: Select all

   
\begin{tabular}{p{28mm}l}
\raisebox{\baselineskip}{Date} & 
\begin{tabular}{l}% first nested table
\bf Headline\\
some text line 1\\
some text line 2\\
\end{tabular}
\end{tabular}
Current Problems:
1.Version:
  • Header and Paragraph have different margins (to the left side)
2.Version:
  • If the Date is a Range like (12.05.2009-23.12.2390) there is no line break and the result is overlapping text.
  • I have to insert line breaks on my own - line for line
How can I optimize the second version? Is there a way to activate auto-"line breaking"? How should I handle long Date-definitions?

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Indented Paragraph with Date on left Side

Post by localghost »

Before you try to reinvent the wheel, you should take a look at some classes and packages that support writing a CV [1]. I'm pretty sure there will be a class or package that comes into question.

If you insist to do that on your own, you can always use a list or table structure to get the desired alignment. If you run into trouble, feel free to ask further targeted questions.

[1] The TeX Catalogue Online, Topic Index - Writing Applications for a Job / CV


Thorsten
Post Reply