Well I want to do is when LaTeX writes Theorem at the new line instead of the left side of the page it be a little indented. In other words I want it to start from a little bit to the right.
[Tex/LaTex] Tweaking \theoremstyle
indentationtheorems
Related Solutions
There are several packages available on CTAN to do this. changepage
looks promising but you can find other alternatives by searching for "margins" or "changepage" on ctan search.
With the changepage
package, you can use the adjustwidth
environment as follows:
\begin{adjustwidth}{left amount}{right amount}
\lipsum[2]
\end{adjustwidth}
For example, to remove 100pt from the margin on both sides, you would use
\begin{adjustwidth}{100pt}{100pt}
With the default tufte-latex layout, you can just extend the right margin inside the bibliography environment.
\documentclass[nobib]{tufte-handout}
\usepackage{hyphenat}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear-comp,autocite=footnote]{biblatex}
\defbibenvironment{bibliography}
{\list{}{%
\leftmargin\bibhang
\itemindent-\leftmargin
\advance\rightmargin-\marginparwidth
\advance\rightmargin-\marginparsep
\itemsep\bibitemsep
\parsep\bibparsep}}
{\endlist}
{\item}
\addbibresource{biblatex-examples.bib}
\begin{document}
Filler text \autocite{companion,ctan,markey,aristotle:poetics,aristotle:rhetoric}.
\printbibliography
\end{document}
With the layout settings twoside,symmetric
something like tufte-latex's fullwidth
environment is needed, but it won't work if the bibliography breaks across pages. For a single bibliography contained in one page, the following should give you proper indentation inside the fullwidth
environment.
\defbibenvironment{bibliography}
{\list{}{%
\leftmargin\bibhang
\itemindent-\leftmargin
\listparindent\itemindent
\parsep\bibparsep}}
{\endlist}
{\item}
The more general case can be handled using the mdframed package and some spacing trickery with \AtEveryBibitem
.
\documentclass[nobib,twoside,symmetric]{tufte-handout}
\usepackage{hyphenat}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear-comp]{biblatex}
\usepackage{mdframed}
\newmdenv[skipabove=3.5ex plus 1ex minus .2ex,% Equal to section title spacing
innerleftmargin=0pt,innerrightmargin=0pt,%
innerbottommargin=0pt,innertopmargin=0pt,linewidth=0pt,innermargin=0pt,%
outermargin=\dimexpr-\marginparwidth-\marginparsep\relax]{mdfullwidth}
\defbibenvironment{bibliography}
{\list{}{\parsep\bibparsep}}
{\endlist}
{\item}
\AtEveryBibitem{\hskip-\bibhang}
\addbibresource{biblatex-examples.bib}
\begin{document}
\null\vfill
One of the most prominent and distinctive features of this style is the
extensive use of sidenotes.\footcite{companion,ctan,markey,aristotle:rhetoric} There is a wide margin to provide ample room for sidenotes and small figures. Any footnotes will automatically be converted to sidenotes.
\begin{mdfullwidth}
\printbibliography[type=online]
\end{mdfullwidth}
\pagebreak
One of the most prominent and distinctive features of this style is the
extensive use of sidenotes.\footcite{companion,ctan,markey,aristotle:poetics} There is a wide margin to provide ample room for sidenotes and small figures. Any footnotes will automatically be converted to sidenotes.
\begin{mdfullwidth}
\printbibliography[nottype=online]
\end{mdfullwidth}
\end{document}
Best Answer
Use the
ntheorem
package.Now the
thm
environment will be indented the same amount as a paragraph.