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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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