Generalrookie question: paste texts into latex and reserve original

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ericyuan
Posts: 2
Joined: Thu Dec 04, 2008 4:40 pm

rookie question: paste texts into latex and reserve original

Post by ericyuan »

Hi everyone, I am new at the forum, nice to c u all!!

i am actually very new to latex as well, and have a very rookie question. say, i have a large paragraph of text that i want to paste into latex files, and the texts contain some latex keywords like "%" or "$", which i want to know whether there is a simple way to reserve the original look of the text, or do i have to modify every keyword occurred? there are really a lot...

thanks in advance!
Eric

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

rookie question: paste texts into latex and reserve original

Post by curiouslearn »

Try putting the text in the verbatim environment.

Code: Select all

\begin{verbatim}
     Text text text text text text text text
\end{verbatim}
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

rookie question: paste texts into latex and reserve original

Post by Juanjo »

curiouslearn wrote:Try putting the text in the verbatim environment.
That could be a solution if it would suffice to typeset the text in typewriter font. In general, I would paste the text in a LaTeX editor. Then I would use the "search&replace" feature of the editor to change, say, % by \%. Quick and easy.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
ericyuan
Posts: 2
Joined: Thu Dec 04, 2008 4:40 pm

Re: rookie question: paste texts into latex and reserve original

Post by ericyuan »

Thanks!!! :)
Post Reply