Wednesday, June 6, 2012

Fedora 17, XeLaTeX and Beamer...

I decided to write this post about XeLaTeX and my attempts to process one presentation written using Beamer class into PDF file. The reason is that I certainly lost few hours trying to resolve cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 set of errors, and maybe someone finds this information/experience helpful.

The first problem I had after starting xelatex was cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 following error:
! Package pgfsys Error: Driver file ``pgfsys-xetex.def'' not found..

See cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 pgfsys package documentation for explanation.
Type  H   for immediate help.
 ...                                             
                                                 
l.847 ...ver file ``\pgfsysdriver'' not found.}{}}
                                                 
? X
No pages of output.
So, I tried to find out which package provides this file using yum. But, no luck cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365re. Then, I continued with google-fu. I found many links, but nothing that could be applied to my case, until I stumbled on this solution which basically tells me to copy one existing pgfsys file into cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 missing file, without any changes. What this post doesn't tell you explicitely is that you have to run texhash after that so that tex's file database is rebuilt.

When I again started xelatex, this time it seemed as if it will work! It was processing files and constantly giving some output. But no! At one point it stopped and I got cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 following error:
(/usr/share/texmf/tex/latex/beamer/cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365mes/font/beamerfontcá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365meserif.sty)
! Font \zf@basefont="TeX Gyre Cursor" at 10.0pt not loadable: Metric (TFM) file
 or installed font not found.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt
                                                  \unless \ifzf@icu \zf@set@...
l.80 ...d,NoCommon,NoContextual}]{TeX Gyre Cursor}
                                                 
?
Back to google-fu! Still, for this one it was easier to identify what's cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 problem. Namely, cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 font is missing (Metric (TFM) file or installed font not found). Again, using yum I found out that this font isn't packaged with Fedora 17 but it can be obtained from here. I downloaded zip archive, unpacked it, and moved all cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 font files into /usr/share/fonts/otf directory (before that I created otf subdirectory as it didn't exist). Afterwards, everything worked and presentation was successfully created. Note that I initially tried to place those fonts into /usr/share/texmf/fonts/opentype/public/tex-gyre/ directory. But that didn't work for unknown reason!

And guess what?! Now cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 source tex file was successfully transformed into PDF file.

While googling to find out solutions to problems I had, I realized that TeXLive distribution in Fedora 17 is 2007, while cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 newest version is 2011 with 2012 in development. Furcá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365rmore, I found out that  cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365re is a plan for Fedora 18 to update TeXLive to at least version 2012. Since beta (or alpha) packages are readily available for F17, and I felt bold enough, I decided to give it a try.  So I installed repository per instructions on a given page and run 'yum update', and after a long wait, I tried again to run xelatex on cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 beamer presentation. This time I was completely out of luck:
kpathsea: Running mktexfmt xelatex.fmt
I can't find cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 format file `xelatex.fmt'!
For some reason, cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365re was no xelatex.fmt file. As usual, first thing was to run 'yum whatprovides' to find out which package provides that file. But, none does! It seems to be a 'bug' in packages, so I had to revert texlive distribution. This was also a kind of a trial and error process, but to cut cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 story short what I did was: disabled texlive repository with experimental packages. Then, I used rpm to force removal of existing texlive packages, and cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365n using yum I reinstalled cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 old ones (note that yum downgrade didn't work!). Finally, I used 'yum check/install' to fix any unresolved dependencies.

No comments:

About Me

scientist, consultant, security specialist, networking guy, system administrator, philosopher ;)

Blog Archive