General ⇒ Custom Quotation Environment
Custom Quotation Environment
I need create or modify an quotation environment in latex for the specification below:
paragraph spacing of 4cm and simple spacing between lines.
thanks for your help.
paragraph spacing of 4cm and simple spacing between lines.
thanks for your help.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Custom Quotation Environment
In order to avoid guesswork and random shots please prepare a proper minimal example that shows exactly what you are doing. Perhaps you can clarify some points.
Best regards and welcome to the board
Thorsten
- Does "paragraph spacing" mean the indentation of the environment content? Perhaps on both sides?
- Presumably "simple line spacing" means that the rest of your document has as different line spacing. How do you do that?
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Custom Quotation Environment
Hello alright!
More details about the new environment
Spacing (indentation) on the left side only.
And just single space in the environment. Why the rest of the text already using spacing of 1.5
Thank you.
More details about the new environment
Spacing (indentation) on the left side only.
And just single space in the environment. Why the rest of the text already using spacing of 1.5
Thank you.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Custom Quotation Environment
Obviously you didn't follow the links in my last reply. Otherwise you would have provided an appropriate example. Too bad. Please report back with a proper code example that shows exactly what you are doing in your document. Check this example for functionality and minimal code. In the meantime I will turn to other questions which need an answer.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Custom Quotation Environment
Hello!
So far I did this:
However, it must be placed to sort a list that is applied to indentation 4cm across the environment. Similar to \ quotation, but with lower power and higher indentation on the left side.
Sorry for not being well understood, is that do not speak English and I'm trying to understand what you are writing.
Thanks anyway!
So far I did this:
Code: Select all
Code, edit and compile here:
% ------------------------------------------------- ------------··· \newenvironment{novoambiente}··· { \small···· \setlength{\parindent}{4cm}% ss···· \setlength{\baselineskip}{0.1 \baselineskip}%··· }{··· \setlength {\parindent}{4cm}··· }% ------------------------------------------------- -
Sorry for not being well understood, is that do not speak English and I'm trying to understand what you are writing.
Thanks anyway!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Custom Quotation Environment
Seemingly you still did not follow the links you have been given. Due to missing information I'm not able to help. We need a complete sample document with minimal content that shows which document class you are using and what you do to achieve 1.5 line spacing. All that information is missing at the moment. A loosely code snippet doesn't help.
I'm also not natively speaking English. But fluency in this language is quite important when asking questions in a forum like this.fabioled wrote:[…] Sorry for not being well understood, is that do not speak English and I'm trying to understand what you are writing. […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Custom Quotation Environment
I am sending everything I've done so far:
PREAMBLE file with the settings:
Now the main document:
Use Example document with text.
Above are the three files that I'm using.
The first are all my settings (preamble)
The second main file for compilation and called the preamble and text files. And lastly this a text file and using an example of what I need.
Hopefully now I can get to demonstrate what I need help.
And Thank you for your attention, I know the importance of English, so I'm taking courses to improve my understanding.
Thank you.
PREAMBLE file with the settings:
Code: Select all
Code, edit and compile here:
\NeedsTeXFormat{LaTeX2e}\input{cvs-id.def}\CVSExtract$Id: abakos.sty,v 0.1 2012/29/08 15:08:25 gweber Exp $\CVSPackage{abakos}{} %substitui \ProvidesPackage (replaces \ProvidesPackage)% Pacotes de codificação das fontes para português\usepackage[T1]{fontenc}\usepackage{times}% \usepackage{memhfixc} % Para mudança de tamanho de fontes% Merge em duas células (linhas diferentes)\usepackage{multirow}%desenhar cabeçalho e rodapé\usepackage{fancyhdr}\pagestyle{fancy}% Pacote para divisão silábica do portugues\usepackage[english, brazil]{babel}% Pacote de adequação do formato ABNT para normas da PUCMinas%\usepackage{abnt-PPGInf-PUCMG}% Pacote para citação e referências seguindo ABNT no sistema (AUTOR, Data)\usepackage[alf]{abntcite}\usepackage{cite}\usepackage{abnt-alf}\usepackage{setspace}\usepackage[utf8]{inputenc}\usepackage{graphicx}\citeoption{abnt-full-initials=yes}\usepackage[portugues, linesnumbered, ruled, vlined]{algorithm2e}\usepackage{algorithmic} %algorithm\usepackage{listings}\usepackage{leading} %espaçamento variavel% Alterar o espaçamento da margem no algoritmo\setlength{\algomargin}{1em}% Margens% \usepackage[inner=30mm,outer=20mm,top=30mm,bottom=20mm]{geometry}\usepackage{geometry}
Code: Select all
Code, edit and compile here:
\documentclass[a4paper,12pt,Times]{article}\usepackage{abakos} % package created by me\newcommand{\monog}{Modelo da revista Abakos da PUC em \LaTeX}\newcommand{\monogES}{Model magazine Abakos in \LaTeX}\newcommand{\origem}{Brasil}\newcommand{\editorial}{\textbf{Abakos}, Belo Horizonte, jun./jul. 2012 - ISSN: 2175-5841}\newcommand{\por}{Fábio Cordeiro}\author{\por}\newcommand{\univ}{Pontifícia Universidade Católica de Minas Gerais}\newcommand{\funcao}{Mestrando em Engenharia Elétrica pelo Programa de Pós-graduação em Engenharia Elétrica da PUC Minas }\newcommand{\curs}{Programa de Pós-graduação em Engenharia Elétrica da PUC Minas}\newcommand{\keyword}[1]{\textsf{#1}}\begin{document}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Pagina de titulo% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\begin{flushleft}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\footnotetext{Artigo recebido em 10 de julho de 1983 e aprovado em 29 de maio 2012}\vspace{.1cm} {\Large{\monog \footnote{Este artigo apresentado a revista Abakos, mais texto mais texto mais texto textomais texto mais texto mais texto mais texto mais texto mais texto mais texto mais texto mais texto mais texto.} \\ }\normalsize{\monogES}}\end{flushleft}\begin{flushright}\normalsize{\por \footnote{\funcao \\ Pais de origem: \origem. E-mail: \email}}\end{flushright}\thispagestyle{empty}\begin{abstract}\noindentEste artigo irá abordar as principais linguagens de programação voltadas a ambiente WEB usadas atualmente.\\\textbf{\keyword{Palavras Chave:}} Modelo \LaTeX, Abakos, Periodicos.
Code: Select all
Code, edit and compile here:
\section{Introdução}\begin{novoambiente} % quotation similar%... um \textit{cluster} é um computador paralelo construído de componentes e processos de \textit{software} (tal como sistema de \textit{software}).Um \textit{cluster} é formado de nós, cada um contendo um ou mais processadores, memória que é compartilhada por todos os processadores do nodo(somente eles), e dispositivos periféricos adicionais (tais como discos), conectados pela rede e que permitem tráfego de dados entre os nós...Tradução\footnote { … a cluster is a parallel computer that is constructed of commodity componets and runs(as its system software) commodity software. A cluster is made of nodes, each conteining one or more processors, memory that is sharedby all of the processors in (and only on) the node, and addtional peripheral devices (surch as disks),connected by network that allows data to move between the nodes}\end{novoambiente} % similar ao quotation
Above are the three files that I'm using.
The first are all my settings (preamble)
The second main file for compilation and called the preamble and text files. And lastly this a text file and using an example of what I need.
Hopefully now I can get to demonstrate what I need help.
And Thank you for your attention, I know the importance of English, so I'm taking courses to improve my understanding.
Thank you.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Custom Quotation Environment
Although this is far from being a minimal and compilable example, we have at least something to work with.
The below code introduces a new environment that prints text with single line spacing and an indentation of 4cm at the left side.
By the way, you should clean up your
It is appreciated very much if you follow given links and the instructions on the respective web sites. This way problems can be solved much faster than in this case.
The below code introduces a new environment that prints text with single line spacing and an indentation of 4cm at the left side.
Code: Select all
Code, edit and compile here:
\documentclass[12pt,a4paper,brazil]{article}\usepackage[T1]{fontenc}\usepackage{selinput}\SelectInputMappings{ % Semi-automatic input selectionatilde={ã}, % by a list of selected glyphsaacute={á}, % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txtccedilla={ç}}\usepackage{babel}\usepackage{txfonts} % Font in Times New Roman style\usepackage[onehalfspacing]{setspace}\usepackage{lipsum} % Only for dummy text, to be dropped in actual document\newenvironment{novoambiente}{%\begin{list}{}{%\setlength{\leftmargin}{4cm}\singlespacing}\item\relax}{\end{list}}\begin{document}\lipsum[1]\begin{novoambiente}\lipsum[2]\end{novoambiente}\lipsum[3]\end{document}
abakos
package. It uses obsolete packages. Furthermore it loads non-standard packages and so makes your example not compilable for others.It is appreciated very much if you follow given links and the instructions on the respective web sites. This way problems can be solved much faster than in this case.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Custom Quotation Environment
Hi!
I thank your help because it worked very well.
I had to make some changes to compile here, because some packages such as UTF8, among others inputenc to format citations in Brazil and are not covered by abntex (http://abntex.codigolivre.org.br/)
Thank you for your attention.
I thank your help because it worked very well.
I had to make some changes to compile here, because some packages such as UTF8, among others inputenc to format citations in Brazil and are not covered by abntex (http://abntex.codigolivre.org.br/)
Thank you for your attention.