I want to have a link on the pdf output of tex file such that when someone copies that and pastes it on a browser (and not by clicking on it), it works. My link has "~", so when I copy it, either nothing is instead of "~" or a wrong character is there. Hence, it doesn't work.  Any idea?
45470
I'm trying to make a URL with a tilde character (~) in it:  \usepackage{url} ... \url{http://lyle.smu.edu/~tspell/jaws}   It looks right in the resulting PDF, but when clicking on it the browser goes to a wrong URL: http://lyle.smu.edu/%18tspell/jaws  If I type in the browser %7e (escape code for '~') instead of %18 the browser then goes to the correct URL.  Any idea how to get a correct link in the PDF?
22682
I need to output the below text but since \ is a special character, I cannot:  [RegularExpression(@"\d+")]   Also sometimes I need use dollar sign $ as well but it seems to be a special char, too.  What is the way to escape those in LaTeX?  UPDATE:  I used \verb as suggested but I am unable to run commands inside it. Also, in the output the font and the opacity of the text is different than the default one:  \verb|[RegularExpression(\newline @"\d+")]|
61451
Is there a \urlstyle{tt} (or something else to that effect) for \href to make it the same font as \url links? I'm happy with any monospace font, as long as they both (\url and \href) show up the same.
100593
I have very often met the Package hyperref Warning: Token not allowed in a PDF string. Being fed up about it and curious to know what it meant, I was about to ask the n-th duplicate of that questions. Fortunately I bumped into  just in time and solved the problem. Another question was naturally opened in the process: what are these pdf bookmarks, what is their use, and how do I make them appear in the pdf? And since I had a \cdot in a section title, is it possible to have a high dot in a bookmark, as \texttwosuperior seems to make it possible for a 2?
38948
When I copy text out of a PDF file and into a text editor, it ends up mangled in a variety of ways. Formatting like bold and italics are lost; soft line breaks within a paragraph of text are converted to hard line breaks; dashes to break a word over two lines are preserved even when they shouldn't be; and single and double quotes are replaced with ? signs.  Ideally, I'd like to be able to copy text from a PDF and have formatting converted to HTML codes, "smart quotes" converted to &quot; and &apos;, and line breaks done properly. Is there any way to do this?
56446
I have a source file called 2011-05-27_Myfilename.tex and I'd like to create a PDF file from it called only Myfilename.pdf.  Can this be configured from within the .tex file itself?  (It seems to be possible with    pdflatex -jobname=Myfilename.tex 2011-05-27_Myfilename.tex   However, as many different files are concerned, It would be easier to have an option like output=Myfilename in the LaTeX source code.)
3118
In     ... the number "5000" does not paste as such but instead as  5 0 U+200C U+200B 0 0   The HTML source looks like this:  perhaps the easiest would be &lt;code&gt;\edef\tmp{\everypar{\widowpenalty\the\widowpenalty\relax}}\tmp\widowpenalty=-50&amp;zwnj;&amp;#8203;00&lt;/code&gt; that may reset   Or (smaller snippet):  \widowpenalty=-50&amp;zwnj;&amp;#8203;00&lt;/code&gt; that   So in the HTML, we have extraneous &amp;zwnj; and &amp;#8203; in between the two middle digits of 5000.  Upon pasting and trying out this code, this first led to a mysterious compiler error. The same issue happened within a (now deleted) comment thread below ; there, these or similar two characters were inserted after the letter "r" within the string \ref ("\ref").  Note that not all browsers wrap the same way. The above screenshot was for Firefox 19.0.2, in which it breaks between \relax}} and \tmp, with 5000 insidiously left intact on the second line but with the two special characters remaining in the middle. So that is why this took me completely by surprise. Other browsers might indeed only break on the invisible Unicode characters, such as Chrome 25:    Or on a smaller screen with the mobile site, multiple line breaks might show, possibly still leaving the Unicode characters unused:
123297
I have the following code  &lt;?php if ($handle = opendir('C:/xampp/htdocs/movies')) {     while (false !== ($file = readdir($handle))) {         if ($file != "." &amp;&amp; $file != "..") {             echo $file."&lt;br /&gt;\n";         }     }     closedir($handle); } ?&gt;   When it does have mb language such as japanese, it doesn't display properly instead it display like kyuukyoku Choujin R ?????~? rather then kyuukyoku Choujin R 究極超人あ～る  Anyway to make it display the correct name or make it still download-able by others?  Thanks for helping me :)
37180
I wrote all my coding in the .tex file. The next day when I opened it the coding is all gone and the pdf file is opening with it and is displayed as an output. How do I bring back my coding?
27925
A PDF output is obtained by compiling the following code. \documentclass{article} \usepackage{xcolor} \usepackage{listings}  \lstset {     language={[LaTeX]TeX},         numbers=left,         numbersep=1em,         numberstyle=\tiny,     frame=single,     framesep=\fboxsep,     framerule=\fboxrule,     rulecolor=\color{red},     xleftmargin=\dimexpr\fboxsep+\fboxrule\relax,     xrightmargin=\dimexpr\fboxsep+\fboxrule\relax,     breaklines=true,     basicstyle=\small\tt,     keywordstyle=\color{blue},     commentstyle=\color[rgb]{0.13,0.54,0.13},     backgroundcolor=\color{yellow!10},     tabsize=2,     columns=flexible,     morekeywords={maketitle}, }  \begin{document}  \begin{lstlisting} \documentclass{article} \usepackage{listings} \title{Sample Document} \author{John Smith} \date{\today} \begin{document} \maketitle Hello World! % This is a comment. \end{document} \end{lstlisting}  \end{document}  I attempted to copy the code only inside Acrobat Reader. Unfortunately, the line numbers also got copied as shown on the following screen shot.  The line numbers are useful, but readers want not to copy them. Is there a LaTeX trick to prevent a PDF viewer from copying the line number?
52047
How to create tagged PDF such that they will be:   good enough for PDF/UA "reflowable" on smaller screens and ebook readers   Any syntax &amp; any engine are of interest, but I'm most interested in using LaTeX with [Xe|pdf]latex engines.
2060
My friend and I are working on the same subject and I asked her to see her work. I noticed that her pdf rendering (if it's really that) is a lot different than mine even though we use the same "template". We both use TexMaker with MikTeX, hers is on Mac, mine is on Windows.   Left is mine, right is hers.     If anyone knows what cause the difference here and could help me getting the same thing that would be great.  Thank you.
92341
I have a form as a PDF file.  I would like to use LaTeX/TeX to overlay my text over the form, and send the output to either a print or another PDF file.  Is this possible?  How would I go about it?
6897
I'm using TeX with the plain format.  On my keyboard there is the 'è' character (as well as é, ò, à, ù, ì).  I'd like to make it work so that, when put è in the input file, TeX transforms it into \`e, i.e. the letter e with an accent.  I think I have to change the character code of è and do something like that, but I don't know what to do exactly.  Can you help me?
76673
When I use pdflatex, I get a bunch of files:  test.aux   test.log   test.out   test.pdf   test.tex   test.toc   The .tex file and the .pdf file have an obvious use, but what do the other files do?  Thanks in advance.
20442
I'm having a similar problem as described here:   However, I want to specify an URL with an # sign in it. I know that I should escape the # by \#, but as we have many links containing the #, it may be nice to be able to copy and paste the URL directly into the LaTeX code.  My current solution looks like this:  \documentclass{article} \usepackage{hyperref} \usepackage{ifthen}  \newcommand*{\myhref}[2][]{\href{http://myserver/#2}%                           {\ifthenelse{\equal{#1}{}}{#2}{#1}}}  \begin{document} \myhref{somewhere} % WORKS \myhref[LINK TEXT]{somewhere} % WORKS  \myhref{somewhere\#anchor} % WORKS \myhref[LINK TEXT]{somewhere\#anchor} % WORKS  \myhref{somewhere/#anchor} % WORKS NOT - BUT I WANT IT TO WORK !!! \myhref[LINK TEXT]{somewhere#anchor} % WORKS NOT - BUT I WANT IT TO WORK !!! \end{document}   Is there a way to automatically escape the # character in the argument to \myhref?
83431
Is there a way to directly compile TeX code into the SVG image format (rather than going the detour over TeX => PDF => SVG)?  I found this question:   But I don't want to do it online - it should be a command-line call.