Text FormattingSide Text box placing

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
soyeb_jim
Posts: 1
Joined: Fri Feb 28, 2020 8:26 pm

Side Text box placing

Post by soyeb_jim »

I am new to latex. Can't figure out how to put a side text box. Here is an image of what i want to do. left one is done with ms word and right one with latex.
uT0XmUZ2Hd.png
uT0XmUZ2Hd.png (204.21 KiB) Viewed 2188 times
here's a part of the code(not same as the image. just putting it so you can know what packages i am using)

Code: Select all

% !TEX program = xelatex
\documentclass[11pt]{article}

\setcounter{secnumdepth}{0}
\usepackage{polyglossia}
\usepackage{hyperref} 
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{enumerate}
\usepackage[version=4]{mhchem}
\usepackage{chemfig}
\setchemfig{atom sep=4ex}
\usepackage{xfrac}
\usepackage{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{enumitem}
\usepackage{tikz}
\usetikzlibrary{quotes,angles}

\geometry{
	a4paper,
	total={170mm,257mm},
	left=20mm,
	top=20mm,
}

\setmainlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{english}
\newfontfamily\englishfont{Times New Roman}
\newfontfamily\bengalifont[Script=Bengali]{Kalpurush}

\newcommand{\drg}{^{\circ}}
\newcommand{\bd}{\textbf}
\newcommand{\eng}{\textenglish}

\title {\eng{Physic Formulas}}
\author{সোয়েব পারভেজ জীম}
\date{28 February 2020}
\begin{document}

\maketitle

\begingroup
\hypersetup{hidelinks}
\tableofcontents
\endgroup

\thispagestyle{empty}
\addtocounter{page}{-2}
\clearpage\mbox{}\thispagestyle{empty}\clearpage

\section{\eng{Physic 1${}^{st}$ Paper}}

\subsection{২য় অধ্যায়}

\begin{enumerate}[ wide=0em, label=\textenglish{\textbf{ \arabic* .}}, itemsep=0pt, parsep=1ex]
    \item ভেক্টরের লব্ধি $R=\sqrt{P^2+Q^2+2PQcos\alpha }$

    \item  লব্ধি $R$ ও কোনো ভেক্টর $P$ এর মধ্যবর্তী কোণ $\theta ={{\mathrm{tan}}^{-1} \left(\dfrac{Qsin\alpha }{P+Qcos\alpha }\right)\ }$
        
    \item  $\overrightarrow{P}$ ও $\overrightarrow{Q}$ এর লব্ধি $\overrightarrow{R}$ হলে, 
    \[\dfrac{P}{{\mathrm{sin} \beta \ }}=\dfrac{Q}{{\mathrm{sin} \alpha \ }}=\dfrac{R}{{\mathrm{sin} \left(\alpha +\beta \right)\ }}\] 

    \item  $A=A_x\hat{i}+A_y\hat{j}+A_z\hat{k}$ হলে $\left|A\right|=\sqrt{A^2_x+A^2_y+A^2_z}\ $ 

    \item  ডট গুনণ $\overrightarrow{A}\cdot \overrightarrow{B}=AB{\mathrm{cos} \theta }=A_xb_x+A_yb_y+A_zB_z$

    \item  তিনটি ভেক্টর একই তলে হবে যদি $\overrightarrow{A}\left(\overrightarrow{B}\times \overrightarrow{C}\right)=0$
\end{enumerate}

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

Post Reply