![]() This section describes how to generate a screenshot of a LaTeX page or of a specific part of the page using the LaTeX package preview. Most of these tools are installable using your package manager or portage tree (Unix only). For instance, you can check if dvipng is installed and ready to use (Unix only): If you have the choice, it is often easier with Unix systems for command line tools. Some tools are Unix-specific (*BSD, GNU/Linux and Mac OS X), but it may be possible to make them work on Windows. This chapter features a lot of third-party tools most of them are installed independently of your TeX distribution. Nonetheless, they do work, and can be crucial tools for collaboration with colleagues who do not edit documents with LaTeX. However, these documents are produced from software that parses and interprets the LaTeX files, and do not implement all the features available for the primary DVI and PDF outputs. Other formats can be produced, such as RTF (which can be used in Microsoft Word) and HTML. Here you will find sections about different formats with description about how to get it. It doesn't seem logical to create a file with two steps when you can create it straight away, but some users might need it because, as you remember from the first chapters, the format you can generate depends upon the formats of the images you want to include (EPS for DVI, PNG and JPG for PDF). It is also possible to create PDF from DVI and vice versa. Some LaTeX IDE will give you the possibility to generate the PostScript version directly (even if it uses internally a DVI mid-step, e.g. In particular, you can obtain the PostScript version using software which is included in your LaTeX distribution. Using other software freely available on Internet, you can easily convert DVI and PDF to other document formats. DVI using latex, the first one to be supported.Strictly speaking, LaTeX source can be used to directly generate two formats: Collaborative Writing of LaTeX Documents.Scientific Reports (Bachelor Report, Master Thesis, Dissertation).I had to use SumatraPDF because for some reason Adobe Reader 11 was giving the error Unable to find the file. TexLet g:Tex_ViewRule_pdf = 'E:\Share\PortableApps\SumatraPDF-2.4\SumatraPDF.exe' Searched for g:Tex_ViewRule_ps and changed the lines under if has('win32') to look like this. ![]() " TexLet g:Tex_DefaultTargetFormat = 'dvi'Īfter this, vim-latex was able to compile my files. so I commented out most of the lines "if has('macunix') So, I searched for the g:Tex_DefaultTargetFormat variable in the file and found this line if has('macunix') Next thing that needed to be changed is telling vim-latex to use pdflatex to compile by default. So, I just replaced pdflatex with the full path TexLet g:Tex_CompileRule_pdf = 'E:\full\path\of\miktex\pdflatex -interaction=nonstopmode $*' So I searched for g:Tex_CompileRule_pdf in the file and found this line TexLet g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode $*' As I said in my question, I use miktex portable so first I needed to change the compiler. The texrc file has all the variables described in the link. For my case it was C:\Program Files (x86)\Vim\vimfiles\ftplugin\latex-suite\texrc However, I couldn't find any clue to where actually configure this variables. The output *.pdf file will be in the directory which contains your source *.tex file. Just be sure that you have 'dvips' and 'ps2pdf' installed on your system. It looks like MikTex's executable is named 'latex', so you should be OK to use the above settings. Finally it will use ps2pdf to convert from *.ps to *.pdf. Then, when it converts from *.dvi to *.ps, it will use dvips. When you convert from *.tex to *.dvi, vim-latex will use the 'latex' command. Let g:Tex_CompileRule_pdf = 'ps2pdf $*.ps' Let g:Tex_CompileRule_ps = 'dvips -Ppdf -o $*.ps $*.dvi' Each of these rules define the program (and arguments) used to compile each output file: let g:Tex_CompileRule_dvi = 'latex -interaction=nonstopmode $*' The next ones you need to set are the compile rules for vim-latex. Notice that it converts the *.tex to *.dvi, then the *.dvi to *.ps, then *.ps to *.pdf. This one sets the order in which you want to export your tex file: let g:Tex_FormatDependency_pdf = 'dvi,ps,pdf' You need to set a few variables in vim to configure vim-latex.
0 Comments
Leave a Reply. |