Text FormattingPut text into left margin

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
megh500
Posts: 25
Joined: Tue Jan 24, 2017 5:54 am

Put text into left margin

Post by megh500 »

Hi
Please tell me how i can put text in the left part of the our text(border side) in latex the same as picture( downloaded at February2017)
Attachments
867508660051221291.jpg
867508660051221291.jpg (174.02 KiB) Viewed 6256 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Put text into left margin

Post by Stefan Kottwitz »

Hi,

here is an example with TikZ.

Code: Select all

\documentclass{article}
\usepackage{blindtext}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
  \tikz[remember picture, overlay]
    \node [rotate=90] at ($(current page.west)+(1,0)$)
      {Text in the left margin};
  \blindtext
\end{document}
  • the current page node is used for positioning, I took the west side
    remember picture, overlay are options for placing TikZ code in the background of the page
  • I used the calc library syntax ($(current page.west)+(1,0)$) to move (1,0) in (x,y) direction.
It needs to be compiled two times for correct positioning.

Stefan
LaTeX.org admin
megh500
Posts: 25
Joined: Tue Jan 24, 2017 5:54 am

how can i put text

Post by megh500 »

thanks
Post Reply