Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to find a LaTeX editor witch supports inverse search. I was trying TeXworks and in the begining it was working. The only problem was that I didn't know how to set .dvi as an output format and .pdf displays a bit strange on my computer. I was trying to enter the configuration of the editor and probably I've done something wrong, because the editor's viewer stopped to show what I've added to the input. The file compiles without any problems, log file says about 7 pages of output, but on the screan there is only 3,5 pages of it. The same document with other viewers displays entirely.

I've decided to uninstall TeXworks and install it once again. The problem remains. After uninstallation, there were still some files, which I couldn't remove without using root privileges - I've decided to leave it. The files are:

maria@maria-laptop:~$ locate * texworks *
/usr/share/app-install/desktop/texworks.desktop
/usr/share/app-install/icons/_usr_share_pixmaps_texworks.xpm
/usr/share/texmf/context/data/texworks
/usr/share/texmf/context/data/texworks/TUG
/usr/share/texmf/context/data/texworks/completion
/usr/share/texmf/context/data/texworks/configuration
/usr/share/texmf/context/data/texworks/texworks-context.rme
/usr/share/texmf/context/data/texworks/texworks-setup.ini
/usr/share/texmf/context/data/texworks/TUG/TeXworks.ini
/usr/share/texmf/context/data/texworks/completion/tw-context.txt
/usr/share/texmf/context/data/texworks/configuration/auto-indent-patterns.txt
/usr/share/texmf/context/data/texworks/configuration/delimiter-pairs.txt
/usr/share/texmf/context/data/texworks/configuration/smart-quotes-modes.txt
/usr/share/texmf/context/data/texworks/configuration/syntax-patterns.txt
/usr/share/texmf/context/data/texworks/configuration/tag-patterns.txt
/usr/share/texmf/context/data/texworks/configuration/texworks-config.txt
/usr/share/texmf/scripts/context/lua/mtx-texworks.lua

Is it possible that the problem lies in those files? If not - in what else?

Thanks for any suggestions.

p.s.

This is the preamble with a little part of document:

%& --translate-file=utf-8
\documentclass{report}
\usepackage[active]{srcltx}
\usepackage[polish]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\begin{document} 

\thispagestyle{empty}
\section*{Wstęp}
Istotą monoteizmu jest przekonanie, że Bóg jest jeden i nie ma współtowarzyszy;
\end{document}
share|improve this question
    
Without an example document it's hard to say why you only see part of the output. The files you list inside /usr/share/texmf/context/data/ seem to be placed incorrect, but can be safely removed. –  Joseph Wright Feb 20 '11 at 13:04
    
Why should that directory be incorrect? It is the default for texworks. –  Herbert Feb 20 '11 at 13:45
    
Also, which operating system are we talking about: from the context I assume Linux, but I might be wrong. If it is Linux, what was the source and version of TeXworks? –  Joseph Wright Feb 20 '11 at 13:46
    
@Herbert: Normally the config. files live inside ~ –  Joseph Wright Feb 20 '11 at 13:46
    
@Joseph yes, it's linux, Ubuntu 10.4. Sorry for omission. Version of TeXworks: 0.2.3 (r.466). I've installed by apt-get. And as for default directory: in TeXworks is /usr/bin/ (that's what is stated in preferences, I haven't change it) –  maria Feb 20 '11 at 13:53

2 Answers 2

up vote 3 down vote accepted

I don't think that TeXworks can show a dvi. So if you change your document and compile only to dvi TeXworks will still show the pdf of the previous version. You will have to add dvips + ps2pdf or dvipdfmx to the call to latex.

share|improve this answer
    
Thanks. In effect, compilation with PdfLaTeX results with full output. Just one thing - I don't understand very well the last sentence. What should I do? I really prefere working on dvi. Thanks again. –  maria Feb 20 '11 at 17:46
    
Sorry, I was wrong. I thought you can add more commands to the latex button but this doesn't seem to be the case. You will need a batch file. Apart from this: TeXworks is pdf orientated. It is not the best choice if you prefer dvi. –  Ulrike Fischer Feb 20 '11 at 18:19
    
I prefere .dvi because .pdf displays a bit strange - all dashes are in bold. As I'm using a lot of it - in transcription, some characters has a dash above or below the letter - it makes a tekst looking strange. If I can get rid of it I can use pdf without problems. Thanks again –  maria Feb 20 '11 at 21:49

This is what I get with texworks and TeXLive 2010 with pdflatex:

pdflatex

and the same with running latex for a dvi output

enter image description here

I have texworks 0.2.3 and used the files:

 *File List*
  report.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
  srcltx.sty    2006/11/12 v1.6 Source specials for inverse search in DVI files

  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
   babel.sty    2008/07/06 v3.8l The Babel package
  polish.ldf    2005/03/31 v1.2l Polish support from the babel system
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
   utf8x.def    2004/10/17 UCS: Input encoding UTF-8
     ucs.sty    2004/10/17 UCS: Unicode input support
uni-global.def    2004/10/17 UCS: Unicode global data
 ucsencs.def    2003/11/29 Fixes to fontencodings LGR, T3
   uni-1.def    2004/10/17 UCS: Unicode data U+0100..U+01FF
   uni-0.def    
share|improve this answer
    
But the problem is not in displaying first sentence. First of all, I think the file is all right as it compiles even in TeXworks without errors or warnings. If I use other editor everything is ok (but I need inverse search). Second: Pdf displays only three pages of document. Third, even if I compile with LaTex and not PdfLaTeX, the output is pdf. –  maria Feb 20 '11 at 13:58
    
I never used the dvi output. Do you have to display the dvi or do you create a pdf from the dvi and view this one? –  Herbert Feb 20 '11 at 14:04
    
Usually I was using mostly dvi (generated by LaTeX) and pdf only if I wanted to send it (generated by pdfLaTeX). DVI displays better on the screen (at least in my computer). On windows I was using TeXnic Center and it's icons for building etc, after changing to ubuntu I was using terminal to compile (latex or pdflatex and file.tex), working in gedit. –  maria Feb 20 '11 at 14:16
    
I have a script called LaTeX (upper L) which I run from texworks. It conmpiles with latex and the opens xdvi in the background with the document. –  Herbert Feb 20 '11 at 14:18
    
How should I use it? If I open a document in TeXworks, it opens two windows, one of editor (where LaTeX is set as compiler), other with viewer which seems to be a part of TeXworks, not xdvi. In any case, it's a pdf file. –  maria Feb 20 '11 at 14:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.