TransWikia.com

Edit the distance to the edge of a paragraph, for one paragraph

TeX - LaTeX Asked by Libreik on August 11, 2021

What would be the proper way to move the entire paragraph a distance. Not just the indentation.

In the code i show the 2 first lines are good, but when is a paragraph one can see just the indentation was modified. Therefore, parindent isnt the answer.

documentclass[a4paper,11pt,journal,onecolumn]{IEEEtran}
usepackage{blindtext}


title{Documento de Prueba}
author{Martin}

begin{document}
    maketitle
    vspace{18cm}
    
    section{seccion 3}
    
    
    
    {setlength{parindent}{2cm}

    textbf{One line One line One line One line One line One line}
    
    One line One line One line One line One line One line
    
    blindtext
    }
    
end{document}

outcome

2 Answers

See if the following suggestion work for you:

documentclass[a4paper,11pt,journal,onecolumn]{IEEEtran}
%---------------- Show page layout. Don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
usepackage{blindtext}

usepackage[strict]{changepage}


title{Documento de Prueba}
author{Martin}

begin{document}
    maketitle
    vspace{18cm}

section{seccion three}
begin{adjustwidth}{2cm}{}setlengthparindent{0pt}
    textbf{One line One line One line One line One line One line}

    One line One line One line One line One line One line
    
    blindtext
end{adjustwidth}

blindtext

blindtext

end{document}

enter image description here

(red lines show part of page layout)

Correct answer by Zarko on August 11, 2021

How about this?

documentclass[a4paper,11pt,journal,onecolumn]{IEEEtran}
usepackage{quoting}
usepackage{blindtext}

title{Documento de Prueba}
author{Martin}
begin{document}
    maketitle
    vspace{18cm}
    
    section{seccion 3}
    
    begin{quoting}[leftmargin=5parindent,rightmargin=0pt]
    textbf{One line One line One line One line One line One line}
    
    One line One line One line One line One line One line
    
    blindtext

    end{quoting}
end{document}

enter image description here

Answered by citsahcots on August 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP