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 6199 times

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

Stefan Kottwitz
Site Admin
Posts: 10335
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