Install .sty, .cls, .bst files in Lyx
来源:互联网 发布:人工智能狂潮 pdf 编辑:程序博客网 时间:2024/05/18 02:01
For Linux users, refer to this page. http://flukylogs.blogspot.co.uk/2009/09/install-style-files-in-lyx.html
If you have installed WinEdt before you install Lyx, you may not find MiKTeX folder in C:\Users\Username\AppData\Roaming. So my suggestion is to put files in the installation location of your MiKTeX. For example, your MikTeX is installed in D:\CTEX\MiKTeX.
Install LaTeX class (.cls)
- create new directory with name <your-class-name> under D:\CTEX\MiKTeX\tex\latex
- copy <your-class-name>.cls file (& other files, if present) in the new directory
- win+R, input "cmd", then run "texhash --admin -u".
- create a file <your-class-name>.layout in D:\Program Files (x86)\LyX 2.0\Resources\layouts
- edit the layout file according to the instructions given in Chapter 5 of "Customizing LyX: Features for the Advanced User" (Help->Customization in LyX).
- open LyX and click 'tools -> Reconfigure' and restart LyX when done. The new Document Class should be available now.
# \DeclareLaTeXClass{article (IEEEtran)}
to
# \DeclareLaTeXClass{article (IEEEconf)}
and it should turn up when you reconfigure LyX.
Install LaTeX style (.sty)
Style file (.sty) is an addition to class files (.cls) files and they provides special formatting rules which overrides the similar rules in class files, if present. So each style file must be associated with a class file. Installation process is similar to that of class files (see previous section of this post). Layout files (step 5 above) have different format. Instructions are given in Chapter 5 of "Customizing LyX: Features for the Advanced User" (Help->Customization in LyX).
For Example, to install ACRA style file, download the files from here. Copy the file acra.sty to D:\CTEX\MiKTeX\tex\latex\lyx. Run "texhash --admin -u". Findarticle.layout file & copy it to a new file named acra.layout inD:\Program Files (x86)\LyX 2.0\Resources\layouts (acra.sty uses "article" class). Edit the the second line in acra.layout from
# \DeclareLaTeXClass{article}
to
# \DeclareLaTeXClass[article, acra.sty]{article (ACRA)}
Then add in next line
Preamble
\usepackage{acra}
EndPreamble
and it should turn up when you reconfigure LyX.
Install BibTeX Style (.bst)
- create new directory with name <your-bib-style-name> under D:\CTEX\MiKTeX\bibtex\bst\
- copy <your-bib-style-name>.bst file (& other files, if present) in the new directory
- run "texhash --admin -u"
- open LyX and click 'tools -> Reconfigure' and restart LyX when done.
- open LyX and click 'tools -> TeX Information' and choose BibTex Styles. Click 'Rescan' The new BibTeX should be available now.
- Install .sty, .cls, .bst files in Lyx
- LaTeX: .cls vs .sty files (by Robertson)
- .cls vs. .sty
- .cls和.sty文件的作用和区别
- Windows中为Latex添加.sty文件和.cls文件
- lyx
- setup.py install running install error: can't create or remove files in install directory
- algorithm.sty not found error in LaTeX
- Solution:Unable to install CSD for WebSphere® MQ v5.3. Files in use!
- python3.5.2中pycharm中pip install xgboost出现No files/directories in...
- LCA in BST
- Inorder Successor in BST
- Inorder Successor in BST
- Inorder Successor in BST
- Inorder Successor in BST
- Delete node in BST
- Inorder Successor in BST
- yum install conflicts with files
- compressCU
- Spring Security 3.1 自定义 authentication provider
- ISA的启动与停止
- 关于产品
- 数据库木马的清除
- Install .sty, .cls, .bst files in Lyx
- estIntraPredQT
- 关于我
- centos 卸载自带的 java
- win8 双系统
- ubuntu下双显卡部署cocos2d-x的问题
- 今天就成为更为满足的程序员
- HTTP/1.1协议中定义的八种方法
- 变量的6种作用域:全局作用域,文件作用域,命名空间作用域,类作用域,局部作用域,语句作用域