my code is
\documentclass[a4paper,12pt]{article}
\usepackage[paper=a4paper,left=30mm,right=20mm,top=25mm,bottom=30mm]{geometry}
\newenvironment{dedication}
{\clearpage % we want a new page
\thispagestyle{empty}% no header and footer
\vspace*{\stretch{1}}% some space at the top
\itshape % the text is in italics
\raggedleft % flush to the right margin
}
{\par % end the paragraph
\vspace{\stretch{3}} % space at bottom is three times that at the top
\clearpage % finish off the page
}
\begin{document}
\begin{dedication}
Dedicated to google and wikipedia
\end{dedication}
\end{document}
this is result:
\raggedleft
which is the opposite of what you want. Try\raggedright
. – barbara beeton Feb 25 '19 at 15:51\leftskip=
<dimen>\parindent=0pt
where <dimen> is the amount of space you want on the left (e.g.,2cm
). This is plain TeX notation, not LaTeX, but it should work. – barbara beeton Feb 25 '19 at 16:02\raggedleft
in your code. – barbara beeton Feb 25 '19 at 16:13