Text FormattingIndented Column Section

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Patrickssj6
Posts: 3
Joined: Wed Apr 25, 2012 3:35 pm

Indented Column Section

Post by Patrickssj6 »

I am not very experienced with LaTex yet but if I manage to solve this problem, I should be good to go for the rest of the assignment :D

I am trying to replicate the two column section thing which is used in this pdf
http://www.tedpavlic.com/jobdocs/tpavlic_cv_faculty.pdf

The problem is, everything is indented minus the column section.
http://www.vivid-abstractions.net/downl ... okoll2.pdf (Page 2)

Can you help me? Thanks :D

Code: Select all

\documentclass[paper=a4, fontsize=11pt,twoside]{scrartcl}		% KOMA article



\usepackage[a4paper,pdftex,marginparwidth=30.5mm, marginparsep=1.5mm, margin=25mm]{geometry}										% A4paper margins
\setlength{\oddsidemargin}{5mm}												% Remove 'twosided' indentation
\setlength{\evensidemargin}{5mm}

\usepackage{color,hyperref}
\usepackage{fancyhdr}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[protrusion=true,expansion=true]{microtype}	
\usepackage{amsmath,amsfonts,amsthm,amssymb}
\usepackage{graphicx}
\usepackage{calc}
\setlength{\parindent}{0in}
\usepackage[shortlabels]{enumitem}

\reversemarginpar

% ------------------------------------------------------------------------------
% Indented Column Section
% ------------------------------------------------------------------------------

\renewcommand{\section}[1]{\pagebreak[3]%
    \vspace{1.3\baselineskip}%
    \phantomsection\addcontentsline{toc}{section}{#1}%
    \noindent\llap{\scshape\smash{\parbox[t]{\marginparwidth}{\hyphenpenalty=10000\raggedright #1}}}%
    \vspace{-\baselineskip}\par}
    
    
% ------------------------------------------------------------------------------
% Definitions
% ------------------------------------------------------------------------------
\newcommand{\HRule}[1]{\rule{\linewidth}{#1}} 	% Horizontal rule

\makeatletter							% Title
\def\printtitle{%						
    {\centering \@title\par}}
\makeatother
			

\makeatletter							% Author
\def\printauthor{%					
    {\centering \large \@author}}				
\makeatother							

% ------------------------------------------------------------------------------
% Metadata
% ------------------------------------------------------------------------------
\title{	\normalsize \textsc{Protokoll} 	% Subtitle of the document
		 	\\[2.0cm]													% 2cm spacing
			\HRule{0.5pt} \\										% Upper rule
			\LARGE \textbf{\uppercase{Molarbiologisches Grundpraktikum für Bioinformatiker}}	% Title
			\HRule{2pt} \\ [0.5cm]								% Lower rule + 0.5cm spacing
			\normalsize \today									% Todays date
		}

\author{
		Sebastian Harz, Martin Hoffmann, Patrick Lüdeke\\
		Friedrich-Schiller-Universität Jena\\	
		Gruppe 2 - WS 2011/2012\\
}


\begin{document}
% ------------------------------------------------------------------------------
% Title Page
% ------------------------------------------------------------------------------
\thispagestyle{empty}

\printtitle
\vfill
\begin{figure}[hbtp]
  	\centering
  	\includegraphics[width=220px]{ujl.png}
  	\end{figure}
  	
\vfill
  	
\printauthor

% ------------------------------------------------------------------------------
% First Page
% ------------------------------------------------------------------------------
\newpage

\pagestyle{fancy}
\lhead{02.04.2012}
\chead{}
\rhead{\bfseries Überprüfung der Pipettiergenauigkeit}
\lfoot{Sebastian Harz, Martin Hoffmann, Patrick Lüdeke - Gruppe 2}
\cfoot{}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\section{Research Interests}

\textbf{Complex adaptive systems with applications in control systems
engineering and behavioral science:} distributed algorithms, agent-based
modeling, hybrid dynamic systems, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, behavioral ecology, engineering education, bio-mimicry and
bio-inspiration

\end{document}
Last edited by Stefan Kottwitz on Wed Apr 25, 2012 4:42 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.

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

Indented Column Section

Post by localghost »

Patrickssj6 wrote:[…] I am trying to replicate the two column section thing which is used in this pdf
http://www.tedpavlic.com/jobdocs/tpavlic_cv_faculty.pdf […]
Just download the LaTeX sources [1]. Should be easy then to reproduce what you want.

[1] LaTeX Resume/CV Template/Example


Best regards and welcome to the board
Thorsten
Patrickssj6
Posts: 3
Joined: Wed Apr 25, 2012 3:35 pm

Re: Indented Column Section

Post by Patrickssj6 »

I had the source and went several times through it but I still couldn't figure out what part I am missing so it would indent.

I will look through it again
Patrickssj6
Posts: 3
Joined: Wed Apr 25, 2012 3:35 pm

Indented Column Section

Post by Patrickssj6 »

I still cannot get it to work...
http://www.vivid-abstractions.net/downl ... okoll2.pdf

I would be happy if there is at least space between the section left column and the right content. Even better would be if everything would be indented to fit.

Code: Select all

\documentclass[11pt]{scrartcl}		% KOMA article



% Use these lines for A4-sized paper
\usepackage[paper=a4paper,
            %includefoot, % Uncomment to put page number above margin
            marginparwidth=20.5mm,    % Length of section titles
            marginparsep=1.5mm,       % Space between titles and text
            margin=25mm,              % 25mm margins
            %includemp
            ]{geometry}


%\setlength{\oddsidemargin}{30.5mm}												% Remove 'twosided' indentation
%\setlength{\evensidemargin}{30.5mm}

\usepackage{color,hyperref}
\usepackage{fancyhdr}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[protrusion=true,expansion=true]{microtype}	
\usepackage{amsmath,amsfonts,amsthm,amssymb}
\usepackage{graphicx}
\usepackage{calc}
\usepackage[shortlabels]{enumitem}

\reversemarginpar
%\setlength{\parindent}{0in}

\pagestyle{fancy}
%
%\fancyhf{}\renewcommand{\headrulewidth}{0pt}
%\fancyfootoffset{\marginparsep+\marginparwidth}
%\newlength{\footpageshift}
%\setlength{\footpageshift}
%          {0.5\textwidth+0.5\marginparsep+0.5\marginparwidth-2in}
%\lfoot{\hspace{\footpageshift}%
%       \parbox{4in}{\, \hfill %
%                    \arabic{page} of \protect\pageref*{LastPage} % +LP
%                    \arabic{page}                               % -LP
%                    \hfill \,}}

% Finally, give us PDF bookmarks
\usepackage{color,hyperref}
\definecolor{darkblue}{rgb}{0.0,0.0,0.3}
\hypersetup{colorlinks,breaklinks,
            linkcolor=darkblue,urlcolor=darkblue,
            anchorcolor=darkblue,citecolor=darkblue}

% ------------------------------------------------------------------------------
% Indented Column Section
% ------------------------------------------------------------------------------

\renewcommand{\section}[1]{\pagebreak[3]%
    \vspace{1.8\baselineskip}%
    \phantomsection\addcontentsline{toc}{section}{#1}%
    \noindent\llap{\scshape\smash{\parbox[t]{\marginparwidth}{\hyphenpenalty=00000\raggedright #1}}}%
    \vspace{-\baselineskip}\par}
    
    
% ------------------------------------------------------------------------------
% Definitions
% ------------------------------------------------------------------------------
\newcommand{\HRule}[1]{\rule{\linewidth}{#1}} 	% Horizontal rule

\makeatletter							% Title
\def\printtitle{%						
    {\centering \@title\par}}
\makeatother
			

\makeatletter							% Author
\def\printauthor{%					
    {\centering \large \@author}}				
\makeatother							

% ------------------------------------------------------------------------------
% Metadata
% ------------------------------------------------------------------------------
\title{\normalsize \textsc{Protokoll} 	% Subtitle of the document
		 	\\[2.0cm]													% 2cm spacing
			\HRule{0.5pt} \\										% Upper rule
			\LARGE \textbf{\uppercase{Molarbiologisches Grundpraktikum für Bioinformatiker}}	% Title
			\HRule{2pt} \\ [0.5cm]								% Lower rule + 0.5cm spacing
			\normalsize \today									% Todays date
		}

\author{
		XXX\\
		XXX\\	
		Gruppe 2 - WS 2011/2012\\
}


\begin{document}
% ------------------------------------------------------------------------------
% Title Page
% ------------------------------------------------------------------------------
\thispagestyle{empty}

\printtitle
\vfill
\begin{figure}[hbtp]
  	\centering
  	\includegraphics[width=220px]{ujl.png}
  	\end{figure}
  	
\vfill
  	
\printauthor

% ------------------------------------------------------------------------------
% First Page
% ------------------------------------------------------------------------------
\newpage

\pagestyle{fancy}
\lhead{02.04.2012}
\chead{}
\rhead{\bfseries XXX}
\lfoot{XXX}
\cfoot{}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

%\newlength{\rcollength}\setlength{\rcollength}{0.85in}%
%\newlength{\spacewidth}\setlength{\spacewidth}{20pt}
%\newcommand\spacechar{$|$}


\section{Einleitung und Ziel des Versuchs}

\textbf{Complex adaptive systems with applications in control systems
engineering and behavioral science:} distributed algorithms, agent-based
modeling, hybrid dynamic systems, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, behavioral ecology, engineering education, bio-mimicry and
bio-inspiration



\section{Material und Methoden}

\textbf{Complex adaptive systems with applications in control systems
engineering and behavioral science:} distributed algorithms, agent-based
modeling, hybrid dynamic systems, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, behavioral ecology, engineering education, bio-mimicry and
bio-inspiration

\section{Ergebnisse}

\textbf{Complex adaptive systems with applications in control systems
engineering and behavioral science:} distributed algorithms, agent-based
modeling, hybrid dynamic systems, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, behavioral ecology, engineering education, bio-mimicry and
bio-inspiration

\section{Diskussion und Schlussfolgerung}

\textbf{Complex adaptive systems with applications in control systems
engineering and behavioral science:} distributed algorithms, agent-based
modeling, hybrid dynamic systems, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, behavioral ecology, engineering education, bio-mimicry and
bio-inspiration

\end{document}
Post Reply