← Previous | ↑Installation TOC | ↑Home | → Next |
In the following procedure we will download files.
I generally recommend to run a virus/malware scan on each download before using it.
Create the following directories:
The steps in this part are required.
After the base installation we should be able to use the gxhconvert.pl script from within a Cygwin Terminal.
From the Cygwin homepage download setup-x86_64.exe (for 64 bit systems) or setup-x86.exe (for 32 bit Save the file into the "C:\Install\Cygwin" directory.
Double-click the executable to start the installation, confirm administrative privileges for the administration process.
Click "Continue" on the information screen.
Choose the first option, click "Continue".
Change the suggested directory "C:\cygwin" or "C:\cygwin64" to "C:\p\cygwin" or "C:\p\cygwin64".
For the "Install For" choice make sure to select "All Users".
Click the "Continue" button.
Confirm the suggested value by clicking "Continue".
Select the connection type appropriate for you computer, click "Continue".
Choose a cygwin mirror near to you. Not necessarily the one shown in the screenshot.
Click the "Continue" button.
Click the "View" button near the windows right top.
The view is switched from tree view to an alphabetically sorted list ("Full").
Make sure the following packages are selected:
I also use the following packages, but these are not required for gxhconvert (don't worry if some package is no longer available):
Allow to install the required packages for the packages choosen in the step before (make sure the "Select required packages (RECOMMENDED)" option is enabled), click the "Continue" button.
The installation process shows a progress window, installation takes some time.
You can choose to create icons in the start menu or on the desktop.
Make your choice and click the "Complete" button.
In the C:\P\Tools directory create a file startcyg.cmd with the following contents:
PATH c:\p\tools;c:\p\pdf2svg;%PATH%;c:\p\cygwin\usr\local\bin;c:\p\cygwin\bin;c:\p\cygwin\usr\bin;c:\p\cygwin\lib\lapack
Right-click on the desktop background.
From the context menu choose "New → Link".
As path for the command enter "C:\windows\system32\cmd.exe".
Enter the name "Cygwin".
Right-click the new "Cygwin" desktop icon.
From the context menu choose "Properties".
Change the command line from
C:\windows\system32\cmd.exe
to
C:\windows\system32\cmd.exe /K c:\p\tools\startcyg.cmd
In the "Security" or "Permissions" tab grant the INTERACTIVE role read and execute access to the link.
Run a console / command prompt as administrator and enter:
c: cd \users\admin\desktop move Cygwin.lnk "..\..\all users\desktop"
You must correct the second line, use the correct user name instead of admin.
Download dktools-x.y.z-WINDOWS-10-mingw64-nsis.exe from http://sourceforge.net/projects/dktools/files into the c:\install directory.
Open a console / command prompt window and enter
c: cd \install dktools-4.36.1-WINDOWS-10-mingw64-nsis.exe /S /D=C:\P\Kr
Confirm to run the installation with administrative privileges.
Start a Cygwin terminal either using the
"Start → All Programs → Cygwin → Cygwin Terminal"
start menu item or by using the Windows-r keyboard combination and
entering the command:
c:\p\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -
Enter the commands:
cd /cygdrive/c/install git clone https://github.com/jalios/pdf2svg-windows
After the git command has finished, wait 5 minutes and type:
rm -fr pdf2svg/.git rm -fr pdf2svg/.gitignore exit
Copy the entire contents of the "C:\install\pdf2svg-windows\dist-64bits" directory into the "C:\p\pdf2svg" directory.
Place the gxhconvert.pl script from the gxhints download in the "c:\p\tools" directory.
A copy of the project wiki contents is in the doc/html directory.
You can copy it to a suitable directory on your computer.
Write a file gptest.gp in the C:\Temp directory:
## width = 10cm
## height = 10cm
set xrange[0:10]
plot x*x title "\\(y=x^2\\)"
From the start menu choose:
"Start → All Programs → Cygwin → Cygwin Terminal".
On systems without a start menu use the Windows-r key combination and type the command:
c:\p\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -
In the terminal type:
cd /cygdrive/c/temp perl /cygdrive/c/p/tools/gxhconvert.pl -o=png x.gp
The installation of Windows binaries allows to use ghxconvert.pl from a usual console / command prompt window.
Obtain the *.msi install package for your system from http://strawberryperl.com/.
The installation is straightforward: After accpeting the license conditions change the installation destination directory from "C:\Strawberry" to "C:\P\Strawberry".
Accept suggested defaults for all other questions (if any).
Visit the MikTeX homepage, in the "Downloads" section klick the "Other Downloads" link to see all downloads. Get the MikTeX x.y.z 64-bit or 32-bit Net Installer.
Installation requires to run the net installer in 2 passes:
Start
Start the installer, i.e. by double-clicking the download.
Accept license terms
Activate the coption "I accept the MiKTeX copying conditions", click on "Continue".
Choose download
Activate the "Download MiKTeX" option, click "Continue".
Complete MiKTeX
Activate the "Complete MiKTeX" option, click "Continue".
Choose download source
Choose a server near to you!
This is not necessarily the server in the screenshot!
Click "Continue".
Directory for downloaded packages
Accept the suggested default directory to store the downloaded packages, click "Continue".
Start download
On the summary page click "Start" to start the download.
Download in progress
As long as the download is in progress you see progress bars, the "Continue" button is disabled.
Download finished
The download is finished when the progress bars are disabled and the "Continue" button is enabled. Click "Continue".
Summary screen
The summary screen indicates success or error. Click "Close".
Start installer again
Start the installer again.
License conditions
Once again accept the MiKTeX copying conditions.
** Decide to install**
Choose the "Install MiKTeX"option, click "Continue".
Install complete MiKTeX
Choose the "Complete MiKTeX" option, click "Continue".
Shared installation
Choose the "Anyone who uses this computer (all users)" option, click "Continue".
Local download directory
We left the download directory unchanged while downloading, so we leave it unchanged now and click "Continue".
Installation directory
Accept the suggested default directory and click "Continue".
Settings / preferences
Choose you preferred paper size and decide whether or not to install missing packages on the fly. Click "Continue".
Start installation
On the summary screen click "Start".
Progress bars
The progress bars are active, the "Continue" button is inactive while the installation is in progress.
Installation finished
The installation is finished when the progress bars are disabled and the "Continue" button is enabled. Click "Continue".
Summary screen
The summary screen indicates success or error. Click "Close".
Get the installer from http://sourceforge.net/projects/gnuplot/files/. Get a stable version, in the example I used gp466-win64-setup.exe.
Start the installer, i.e. by double-clicking the download.
Choose your preferred language.
Accept the license agreement.
Read the release information.
Change the destination folder to "C:\P\gnuplot".
In all remaining dialogs accept the suggested defaults and continue.
Copy the entire contents of the "C:\p\gnuplot\share\texmf" directory into the "C:\ProgramData\MiKTeX\2.9" directory.
Open a console / command prompt windows as administrator and run:
mktexlsr --update-fndb=C:\ProgramData\MiKTeX\2.9
Get the installer from https://inkscape.org/.
Start the installation, i.e. by double-clicking the installer.
Accept the license agreement.
I recommend to click the "Complete"button.
Complete the installation procedure, accept the suggested defaults in remaining dialogs.
Get the installer from http://www.ghostscript.com/download/gsdnld.html.
Start the installation, i.e. by double-clicking the installer.
Accept the license agreement.
Change the destination folder to "C:\p\gs\gs9.18" (for other versions correct the version number).
Complete the installation procedure, accept the suggested defaults in remaining dialogs.
In the C:\P\Tools directory copy the existing file startcyg.cmd to a new file wincyg.cmd.
Modify the C:\P\Tools\wincyg.cmd file to:
PATH C:\p\tools;C:\p\pdf2svg;C:\p\gnuplot\bin;C:\p\gs\gs9.18\bin;C:\p\gs\gs9.18\lib;C:\Program Files\Inkscape;%PATH%;c:\p\cygwin\usr\local\bin;c:\p\cygwin\bin;c:\p\cygwin\usr\bin;c:\p\cygwin\lib\lapack
On the desktop create a copy of the "Cygwin" icon, change the name to "WinCygwin".
Change the properties of the new icon, modify the command line to:
C:\windows\system32\cmd.exe /K c:\p\tools\wincyg.cmd
Optionally you might want to allow the INTERACTIVE role read and execute access to the link and make the icon accessable to all users by moving it into the "c:\users\all users\desktop" directory.
Double-click the WinCygwin desktop icon to open the command prompt window.
In the command prompt window type:
C: cd \Temp
to change into the C:\Temp directory containing the gptest.gp file from the test at the end of part 1.
Type:
perl c:\p\tools\gxhconvert.pl -o=png gptest.gp
or simply
gxhconvert.pl -o=png x.gp
Unprivileged (non-administrator) users should run:
initexmf -u initexmf --mkmaps
once before starting to use pdflatex from MiKTeX or the gxhconvert.pl script.
← Previous | ↑Installation TOC | ↑Home | → Next |