Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91108 - Lyx can't handle cv.lyx
Summary: Lyx can't handle cv.lyx
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-01 21:29 UTC by Pupeno
Modified: 2005-05-22 05:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff for lyx-1.3.5-r1.ebuild (diff,505 bytes, patch)
2005-05-08 14:56 UTC, Andrew Roberts
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pupeno 2005-05-01 21:29:16 UTC
There is a class for LyX/LaTeX to write Curriculum Vitaes, the fiels that specify that class/layout are these:
/usr/share/lyx/layouts/cv.layout
/usr/share/lyx/tex/cv.cls
and there's an example of the usage of that class: /usr/share/lyx/examples/cv.lyx
If you try to open that file you'll see that LyX can't finde the cv class and it's not able to produce any output.
I believe that's because some PATHs where not set rightly. It would be nice if you could make the ebuild set those PATHs in whatever way is needed.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Andrew Roberts 2005-05-08 10:47:53 UTC
There are a number of files in /usr/share/lyx/examples that produce the same error, for example chessgame.lyx can't find the chess class.

This issue can be fixed by adding a symlink to /usr/share/texmf/tex/latex

# cd /usr/share/texmf/tex/latex
# ln -s ../../../lyx/tex lyx

then open lyx and run Edit>Reconfigure.

Whilst this appears to fix the issue, I am uncertain whether it is the 'correct' solution.
Comment 2 Pupeno 2005-05-08 11:35:17 UTC
I've tried your fix, but it didn't work, opening cv.lyx and chessgame.lyx still produced the same error as before, may I be missing some other package ?
Thank you.
Comment 3 Andrew Roberts 2005-05-08 12:15:37 UTC
Try running texhash as root, then do the Reconfigure step.
Comment 4 Pupeno 2005-05-08 12:26:44 UTC
That made it work, thanks.
Maybe then the LyX ebuild should make the symlink and run texhash.
Comment 5 Andrew Roberts 2005-05-08 14:56:25 UTC
Created attachment 58412 [details, diff]
diff for lyx-1.3.5-r1.ebuild

This needs to be checked as I haven't got a vanilla installation of tetex/lyx
to play with anymore and reinstallation takes far too long ;).
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-22 05:28:22 UTC
Thanks for the bug report. I applied the patch to lyx-1.3.5-r2.ebuild
with little modification. Please test it if you have some spare time ;)