0

How can I get a vertical line in the middle of the page ? and I want also to write same text in the right and the left of the vertical bar (like this example) :

I tried \rule but i don't know how to write same text in the right or left.

example

  • 4
    try a minipage of a certain width+height, a \rule and a minipage again. Remember the extented minipage syntax: \begin{minipage}[c][height][c]{width}, you may also need some zero width \rule inside the minipages. – daleif May 27 '15 at 13:55
  • 1
    This info document on CTAN may also be useful for ideas: ctan.org/tex-archive/info/latex-samples/TitlePages – daleif May 27 '15 at 13:56
  • Welcome to TeX.SX! There are some ways to achieve this, e.g. tikz – user31729 May 27 '15 at 13:56
  • "Informations" -> "Information" – Andrew Swann Feb 22 '17 at 15:29
2

Such a rule is built in to the output routine in the format:

enter image description here

\documentclass[twocolumn]{article}
\setlength\columnseprule{1pt}
\raggedright
\begin{document}

\begin{flushright}
\vspace*{\fill}

\textbf{Informations}

\vspace*{\fill}
\end{flushright}

\pagebreak

\textbf{Author:}

Name
\bigskip

\textbf{Subject:}
Title
\end{document}
1

Thank you @daleif for your help, this what i write to get what i want:

\documentclass[a4paper]{report}

\begin{document}

    \begin{minipage}{0.3\textwidth}
        \Large{\textbf{Information}}
    \end{minipage}
    \rule[-400pt]{1.5pt}{600pt}
    \hspace*{0.05\textwidth} % Whitespace between the vertical line and title page text
    \begin{minipage}{0.5\textwidth}
        \textbf{Author :} \\
        Name \\
        [3cm]
        \textbf{Subject :} \\
        Title of the subject
    \end{minipage}

   \pagestyle{empty} % Removes page numbers

\end{document}
1

As you have noticed, alignment can be tricky, particularly if you want to use the whole page.

\documentclass{article}

\begin{document}
\pagestyle{empty}
\noindent\parbox[t]{0.3\textwidth}%
{\vspace{.4\textheight}\textbf{\Large Informations}}\hfill
\rule[\dimexpr \topskip-\textheight]{1pt}{\textheight}\hfill
\begin{minipage}[t]{0.6\textwidth}
\parskip=\baselineskip
\hangindent=.5em
\textbf{Author:}\\Name

\hangindent=.5em
\textbf{Subjects:}\\Title of Subject 1
\end{minipage}
\end{document}

full page

0

Another Option would be the background package:

\documentclass[a4paper,oneside, 11pt]{scrartcl}
\usepackage[hidelinks, pdfstartview=FitH, pdfpagelayout=OneColumn, pdftex]{hyperref}
\usepackage[left=1.5cm, right=2.5cm, top=2.5cm, bottom=2cm,a4paper]{geometry}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\usepackage{amsmath,amssymb,amsfonts,amstext}

\usepackage[natural, table, fixpdftex, hyperref]{xcolor}

\makeatletter
\let\old@rule\@rule
\def\@rule[#1]#2#3{\textcolor{black}{\old@rule[#1]{#2}{#3}}}
\makeatother

\usepackage[pdftex]{graphicx}
\usepackage{background}
\SetBgScale{1}
\SetBgAngle{0}
\SetBgContents{\rule{.75pt}{\textheight}}
\SetBgHshift{-2.1cm}

\begin{document}
\pagestyle{empty}
\newcolumntype{L}{>{\raggedleft}p{5.5cm}}
\newcolumntype{R}{p{9.5cm}}
\setlength{\tabcolsep}{0.5cm}
\begin{tabular}{LR}
{\huge\bfseries Curriculum Vit\ae}&\\[1.5\baselineskip]
Lots of & Information\\
More&Information\\[1.5\baselineskip]
{\Large Education}&\\[\baselineskip]
Lots of & Information\\
More&Information\\
More & Information\\
More&Information\\[1.5\baselineskip]
\end{tabular}
\end{document}

Which produces following Output: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.