[texworks] new binaries posted for Windows and OS X (r357)

Bruno Voisin bvoisin at me.com
Mon Aug 10 11:27:44 CEST 2009


Le 9 août 09 à 19:44, Jonathan Kew a écrit :

> I have just posted new builds of TeXworks for Windows and Mac OS X.
>
>    http://code.google.com/p/texworks/downloads/
>
> [...]
>
> A couple of niggling bugs should also be fixed: the Cmd-A (Select  
> All) issue on OS X, and the potential failure to open multiple files  
> at once from Windows Explorer.

It seems you've also modified the viewer so that when the mouse moves  
over a hyperlink the pointer changes and the URL is displayed in a  
small yellow box. Nice!

There's still this bug though (coming from Poppler I imagine) related  
to non-alphanumeric characters: a URL containing %3C say for "<" is  
displayed as %3C in the small box, but when the user clicks on the URL  
the "%" is expanded to %25 before being passed on to the web browser  
yielding %253C which the browser doesn't understand.

Below is a small test file. On the Mac, with TeXworks the first URL  
doesn't work but the second does, whereas in TeXShop, Preview and  
Adobe Acrobat the first URL works and the second doesn't.

Bruno


%%%%% Test file %%%%%
\documentclass{article}
\usepackage{doi}
\begin{document}
\noindent
\doi{10.1175/1520-0485(2002)032<2882:TROITI>2.0.CO;2}
\par
\bigskip
% In TeXworks, needs modification of doi.sty
% such that "<" and ">" are left as they are and
% translation to "%3C" and "%3E" is left to the previewer
\makeatletter
\def\@doi#1{%
\let\#\relax
\let\_\relax
\let\textless\relax
\let\textgreater\relax
\edef\x{\toks0={{#1}}}%
\x
\edef\#{\@percentchar23}%
\edef\_{_}%
% \edef\textless{\@percentchar3C}% instead of {\string<} for Apple
% \edef\textgreater{\@percentchar3E}% instead of {\sting>} for Apple
\edef\textless{\string<}%
\edef\textgreater{\string>}%
\edef\x{\toks1={\noexpand\href{http://dx.doi.org/#1}}}%
\x
\edef\x{\endgroup\doitext\the\toks1 \the\toks0}%
\x
}
\makeatother
% Will work now in TeXworks
\noindent
\doi{10.1175/1520-0485(2002)032<2882:TROITI>2.0.CO;2}
\end{document}


More information about the texworks mailing list