The number of lines in zref-abspage.sty
is 66 in recent versions. In the history I could not find a hint that could explain more than 28 additional lines. What contains line 94 with two lines before and after?
You can recreate the file, if the sources are installed. Make a scratch directory, copy the file zref.dtx there and unpack it, e.g.:
mkdir /tmp/zref-scratch
cd /tmp/zref-scratch
cp /usr/share/texmf-texlive/source/latex/oberdiek/zref.dtx .
tex zref.dtx
This should generate lots of style files with zref-abspage.sty
among them. Note that you need plain TeX, not LaTeX. Otherwise the documentation would be generated.
The two files can be compared:
diff -u /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty zref-abspage.sty
Are there differences?
If yes, what are the differences? The wrong file can then be renamed (for safety and further analysis) and replaced:
sudo mv -i /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage-saved.sty
sudo cp /tmp/zref-scratch/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty
If no, Which version you are using? Look into the file zref-abspage.sty
.
My recommendation would be to install the original TeX Live, "howto"s can be found in the net, e.g.:
The alternative is installing manually updated packages in a local TDS tree (for all users) or in the home texmf tree (~/texmf
) for the current user only. The Ubuntu documentation contains a section about LaTeX.
To identify the local tree you can try:
kpsewhich --expand-var '$TEXMFLOCAL'
The home tree usually is ~/texmf
.
If the package provides a .tds.zip
file, then the installation is easy. As example
I am using my bundle to install in the home texmf tree:
wget http://mirror.ctan.org/install/macros/latex/oberdiek.tds.zip
unzip oberdiek.tds.zip -d ~/texmf
In case of the local texmf tree, texhash
needs to be called:
sudo texhash
If you are happy with experimenting a bit, I suggest to proceed as follows. Disclaimer: I don't have a dual boot machine, I kicked Windows off my Laptop years ago.
Install texlive under windows and test it. Then boot into Linux and start the installation of texlive. Cancel the installation process after some minutes. Now, you have a TDS compliant structure, but the content is missing. EDIT: Delete all files and folders inside /texlive/2014/texmf-dist/tex/latex and /texlive/2014/texmf-dist/doc (not in your Windows folder, I'm speaking only of the Linux side!).
Then make two links:
- link from .../texlive/2014/texmf-dist/tex/latex to C:/texlive/2014/texmf-dist/tex/latex
- link from .../texlive/2014/texmf-dist/doc to C:/texlive/2014/texmf-dist/doc
I don't know whether a hard link or a symbolic link, but as Linux has this link feature, I'd check this possibility. Maybe here are some geeks who know exactly how to set a link from a Linux folder to a NTFS folder somewhere else.
Why only those two links? Because the LaTeX packages and the documents make the lions share of the texlive.
OK. Then restart the installation under Linux. I hope that tlmgr will accept the link to your windows installation and then try to install every single package and documentation, but notices they are already there.
Recently I transferred all doc and latex files to another computer and that part (start installation, abort, transfer, restart) worked. But I have no experience with linking into a windows installation.
Of course, you have to install the linux packages for writing into ntfs. And maybe you ruin your texlive installation on windows, if the installer tries something unexpected. But if you make a backup of it, why not giving it a whirl.
Best Answer
Locate
hanoi.tex
on your system. For me it is/usr/local/texlive/2019/texmf-dist/tex/plain/hanoi/hanoi.tex
go into folder
run
tex hanoi
anddvipdf hanoi
the results of game will be in
hanoi.pdf
If you prefer to play yourself, try https://ctan.org/tex-archive/macros/latex/contrib/jeopardy/example