Discussion:
[MiKTeX] Bug in getmap?
Josef Kleber
2014-06-23 12:29:11 UTC
Permalink
Hi,

i just installed MiKTeX beside TeXLive to test my getmap package.
With some weird results. First it tries to use runscript.tlu from
TeXLive to run osmimage. After goggleing, i learned that there should be
a copy of runtexlua.exe renamed to osmimage.exe in \miktex\bin\
When i do that manually, i get:

osmimage: The Lua script is not registered.
osmimage: Data: osmimage

Does that mean that you can't manually install a lua script in MiKTeX?
In TeXLive it's possible with renaming runscript.exe -> osmimage.exe

Or just a bad interaction between my MiKTeX and TeXLive? Can somebody
with a clean MiKTeX installation please test (with -shell-escape):

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[overwrite]{getmap}
\begin{document}
\section{Example}
Do you want to visit the office of Dante e.V.? Here we go:

\getmap{Bergheimer Strasse 110A, 69115 Heidelberg, Germany}%
\includegraphics[width=10cm]{osmimage}
\end{document}

Thanks,

Josef
Ulrike Fischer
2014-06-23 13:09:37 UTC
Permalink
Post by Josef Kleber
Hi,
i just installed MiKTeX beside TeXLive to test my getmap package.
With some weird results. First it tries to use runscript.tlu from
TeXLive to run osmimage. After goggleing, i learned that there should be
a copy of runtexlua.exe renamed to osmimage.exe in \miktex\bin\
osmimage: The Lua script is not registered.
osmimage: Data: osmimage
Does that mean that you can't manually install a lua script in MiKTeX?
No, not if you want to use it through an exe in the miktex
bin-folder. The path to the scripts must be registered in
scripts.ini -- and this file is protected so you can't change it
manually, miktex must do it.

But I just installed getmap in miktex and it worked fine. There is
an osmimage.exe in the miktex/bin folder and the path to the script
is registered in scripts.ini:

osmimage=scripts/getmap/osmimage.lua

You should perhaps check your path and other environment variables.
If you have both texsystem they could be some interference.

I also tried your example with TL14 but there getmap could not be
found. Isn't getmap yet part of TL? CTAN seems to be down currently.
So I can't check what's going on.


Btw: While your script works fine with your example address it
doesn't like mine: The city name (Mönchengladbach) doesn't work
correctly.

utf8 + Mönchengladbach -> error when pdflatex tries to include the
graphics (pdflatex in miktex doesn't like Umlauts in graphic names).

ansinew + Mönchengladbach, or Moenchengladbach: no error but no
correct map either (only water and the text "solomon river").

The only thing that worked was to remove the city name and to use
only the Postleitzahl. I found not way to search for streetnames
with Umlauts.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Ulrike Fischer
2014-06-23 13:22:58 UTC
Permalink
Post by Ulrike Fischer
Btw: While your script works fine with your example address it
doesn't like mine: The city name (Mönchengladbach) doesn't work
correctly.
utf8 + Mönchengladbach -> error when pdflatex tries to include the
graphics (pdflatex in miktex doesn't like Umlauts in graphic names).
ansinew + Mönchengladbach, or Moenchengladbach: no error but no
correct map either (only water and the text "solomon river").
The only thing that worked was to remove the city name and to use
only the Postleitzahl. I found not way to search for streetnames
with Umlauts.
Sorry I forgot to reset the main file so some of the tests were
faulty.

Umlauts works in an ansinew document but not in utf8. Things like
"Muensterstrasse" works in both.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Josef Kleber
2014-06-23 16:27:09 UTC
Permalink
Post by Ulrike Fischer
Post by Ulrike Fischer
Btw: While your script works fine with your example address it
doesn't like mine: The city name (Mönchengladbach) doesn't work
correctly.
utf8 + Mönchengladbach -> error when pdflatex tries to include the
graphics (pdflatex in miktex doesn't like Umlauts in graphic names).
ansinew + Mönchengladbach, or Moenchengladbach: no error but no
correct map either (only water and the text "solomon river").
The only thing that worked was to remove the city name and to use
only the Postleitzahl. I found not way to search for streetnames
with Umlauts.
Sorry I forgot to reset the main file so some of the tests were
faulty.
Umlauts works in an ansinew document but not in utf8. Things like
"Muensterstrasse" works in both.
Should be fixed now here:
https://bitbucket.org/kleberj/getmap/raw/7f5062c2f9e8aaf2d69f9fed160ab5b1298bf472/doc/getmap.dtx

pdftex getmap.dtx will produce the files!

In my tests it works now again with \usepackage[utf8]{inputenc}

Josef
Dieter Mossbrucker
2014-06-23 16:54:43 UTC
Permalink
Hallo,
Post by Josef Kleber
In my tests it works now again with \usepackage[utf8]{inputenc}
My System: Win8.1 64, MiKTeX, all is updated.
When i run:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[inputencoding=utf-8,overwrite]{getmap}
\begin{document}
\getmap{Hansegartenstr. 3,Konstanz, Deutschland}
\includegraphics[width=10cm]{osmimage}
\end{document}

i get the error:

Package getmap Error: \write 18 disabled

How can i fix this error?
--
Herzliche Grüße vom Bodensee
Dieter Moßbrucker

--
=================================================================
Dieter Mossbrucker Friedrich-Hecker-Gymnasium Radolfzell
www.wildnis-wandern.de www.fhg-radolfzell.de
www.nwt.fhg-radolfzell.de
=================================================================

---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
Josef Kleber
2014-06-23 17:18:56 UTC
Permalink
Hallo
Post by Dieter Mossbrucker
Hallo,
Post by Josef Kleber
In my tests it works now again with \usepackage[utf8]{inputenc}
My System: Win8.1 64, MiKTeX, all is updated.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[inputencoding=utf-8,overwrite]{getmap}
\begin{document}
\getmap{Hansegartenstr. 3,Konstanz, Deutschland}
\includegraphics[width=10cm]{osmimage}
\end{document}
Package getmap Error: \write 18 disabled
How can i fix this error?
By enableling \write18! ;-)

getmap uses a lua script to download the map from a server. You must
allow the execution of the script with -shell-escape or the MiKTeX
specific --enable-write18
see: http://docs.miktex.org/2.9/manual/texfeatures.html#id555615

Josef

Josef Kleber
2014-06-23 15:02:07 UTC
Permalink
Post by Ulrike Fischer
Post by Josef Kleber
Hi,
i just installed MiKTeX beside TeXLive to test my getmap package.
With some weird results. First it tries to use runscript.tlu from
TeXLive to run osmimage. After goggleing, i learned that there should be
a copy of runtexlua.exe renamed to osmimage.exe in \miktex\bin\
osmimage: The Lua script is not registered.
osmimage: Data: osmimage
Does that mean that you can't manually install a lua script in MiKTeX?
No, not if you want to use it through an exe in the miktex
bin-folder. The path to the scripts must be registered in
scripts.ini -- and this file is protected so you can't change it
manually, miktex must do it.
Ah, okay! Then install.bat will not have a miktex option! ;-)
Post by Ulrike Fischer
But I just installed getmap in miktex and it worked fine. There is
an osmimage.exe in the miktex/bin folder and the path to the script
osmimage=scripts/getmap/osmimage.lua
Good to know.
Post by Ulrike Fischer
You should perhaps check your path and other environment variables.
If you have both texsystem they could be some interference.
Probably. I now deinstalled MiKTeX and TL2014, which i can't reinstall
at the moment. I can't download the installer.
Post by Ulrike Fischer
I also tried your example with TL14 but there getmap could not be
found. Isn't getmap yet part of TL? CTAN seems to be down currently.
So I can't check what's going on.
I uploaded getmap during the freeze of TL2013. There still is a delay in
package generation.
Post by Ulrike Fischer
Btw: While your script works fine with your example address it
doesn't like mine: The city name (Mönchengladbach) doesn't work
correctly.
utf8 + Mönchengladbach -> error when pdflatex tries to include the
graphics (pdflatex in miktex doesn't like Umlauts in graphic names).
ansinew + Mönchengladbach, or Moenchengladbach: no error but no
correct map either (only water and the text "solomon river").
The only thing that worked was to remove the city name and to use
only the Postleitzahl. I found not way to search for streetnames
with Umlauts.
TL2013 still running! ;-)

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[overwrite]{getmap}
\begin{document}
\getmap{Hürenhof, 41065 Mönchengladbach, Deutschland}
\includegraphics[width=10cm]{osmimage}
\end{document}

Works fine here with TL2013. I can confirm a problem with utf8.
Strangely, this worked before uploading. I will look into it.
As Würg-around use inputencoding=utf-8 as option:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[inputencoding=utf-8,overwrite]{getmap}
\begin{document}
\getmap{Hürenhof, 41065 Mönchengladbach, Deutschland}
\includegraphics[width=10cm]{osmimage}
\end{document}

It also works with lualatex without inputenc.

Josef
Loading...