LyX ⇒ add local .sty and class files
-
- Posts: 94
- Joined: Wed Sep 07, 2011 3:14 pm
add local .sty and class files
Trouble is, my installation of LyX doesn't see any of them, and instead only lists (under Document→Settings→Document Class) the three or four default classes that shipped with LyX itself.
How can I gain access to all the rest of these document class definitions? Using Tools→Reconfigure doesn't seem to help.
Cheers,
EE
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
add local .sty and class files
-
- Posts: 94
- Joined: Wed Sep 07, 2011 3:14 pm
add local .sty and class files
Code: Select all
# kpsewhich koma-moderncvclassic.sty
/usr/share/texmf-dist/tex/latex/koma-moderncvclassic/koma-moderncvclassic.sty
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
add local .sty and class files
-
- Posts: 94
- Joined: Wed Sep 07, 2011 3:14 pm
add local .sty and class files
But thank you for the tip. I'll proceed with educating myself and come back if I get stuck.
Cheers,
EE
UPDATE: OK, I created a new layout file, based on the moderncv one, and now I get a bunch of errors about commands being already defined, as follows:
Code: Select all
) (/usr/share/texmf-dist/tex/latex/koma-moderncvclassic/koma-moderncvclassic.st
y
Package: koma-moderncvclassic 2012/01/04 v0.5
(/usr/share/texmf-dist/tex/latex/marvosym/marvosym.sty
Package: marvosym 2011/07/20 v2.2 Martin Vogel's Symbols font definitions
! LaTeX Error: Command \fax already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.101 \newcommand\fax{\mvchr{116}}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
What did I configure wrong here?
-
- Posts: 94
- Joined: Wed Sep 07, 2011 3:14 pm
add local .sty and class files
I have the file:
/usr/share/texmf-dist/tex/latex/invoice/invoice.{sty,def}
which should provide access to new section types and whatever other tools I might need to create an invoice. But following the instructions at the link you gave, or reading the Customization help file, didn't provide me with the answers I'm looking for. I did create a file invoice.layout in my .lyx local layouts directory, which reads:
Code: Select all
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[scrlttr2, invoice.sty]{KOMA-Script Letter/invoice (V. 2)}
# \DeclareCategory{Letters}
# KOMA scrlettr2 textclass definition file.
# Juergen Spitzmueller <spitz@lyx.org>, 2003/2/17.
# Uwe Stöhr <uwestoehr@web.de>, 2008/2/03.
Preamble
\usepackage{invoice}
EndPreamble
Can you give me some guidance?
Cheers,
EE