Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

All \randomize{} does in the following MWE is removing the space between the words. I wonder why the text is not randomised.

\documentclass{article}
\usepackage[english]{babel}

\usepackage{randtext}
\begin{document}
\randomize{Random Text}
\end{document}

I am using TeX Live.

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

The randtext won't randomize as it looks. You can't copy paste the word.:

\documentclass{article}
\usepackage[english]{babel}

\usepackage{randtext}
\begin{document}
this is my randomized \randomize{Random Text} here.
\end{document}

This is how pdf looks:

enter image description here

When you try to copy paste the entire sentence from the resulting pdf, you get:

this is my randomized
n
x
m
t
o
d
e
T
Ra
here.

This package is meant to prevent the copy paste-ability of email addresses. From documentation:

enter image description here

Unfortunately not all pdf readers obey this randomization. It works with sumatrapdf (for me) and not with adobe.

share|improve this answer
1  
@cyberSingularity: Yes. PDF readers don't follow uniform rules. This is same as putting a security password to pdf files. Some readers open the files ignoring all the pass words! –  Harish Kumar Dec 24 '12 at 10:58
    
(This is no attack, I am genuinely interested to know the answer to the question that I'm going to ask!) -- I compiled your code with pdfLatex on my ubuntu and default Document Viewer copied it correctly (un randomize). What is the point of this command if most of readers can reorder the text? –  Pouya Dec 24 '12 at 11:09
    
@Pouya: I don't know exactly :-) –  Harish Kumar Dec 24 '12 at 11:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.