13.11.2015 Views

my Latex and Tex4ht cheat sheet

my Latex cheat sheet - 12000.org

my Latex cheat sheet - 12000.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5<br />

Using Scientific word<br />

5.1 location of external package in Scientific word<br />

if using SW on windows <strong>and</strong> want to add a package not included by SW, then first download it from CTAN <strong>and</strong><br />

put the .sty file here<br />

C:\swp55\TCITeX\TeX\LaTeX\contrib<br />

<strong>and</strong> from inside SW, follow instructions as given here<br />

http://www.mackichan.com/index.html?techtalk/455.htm mainFrame<br />

or you can simply edit the preamble <strong>and</strong> add \usepackage{packageName}<br />

5.2 inputting <strong>Latex</strong> files into SW document<br />

This is tricky. But just do this <strong>and</strong> do not follow any other instructions given in other places, they are all very<br />

confusing. Here is the deal.<br />

When you write input{file.txt} in SW document main.tex, then it will not find file.txt becuase SW<br />

process main.tex is some other temporary folder. The easiest way to do this, is to make main.tex as a master<br />

document, then it will use the current folder.<br />

To make main.tex as master document, create a file called empty.tex in the same folder <strong>and</strong> type in it exactly<br />

the following (using a text editor)<br />

%TCIDATA{LaTeXparent=0,0,main.tex}<br />

That is all, the one line above. Now go back to main.tex, <strong>and</strong> open that in a text editor (not in SW) <strong>and</strong><br />

go to the end of the file just before end of the document, <strong>and</strong> add these lines, including the comments! this is<br />

important.<br />

91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!