### Email Archive: miktex-users (read-only)

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Ulrike Fischer - 2007-05-29 11:22 am Dienstag, 29. Mai 2007 um 12:50 schrieb Jos=E9 Carlos Santos: > On 29-05-2007 11:41, Ulrike Fischer wrote: >>> It turns out that this is a consequence of the fact that I compiled it >>> within Emacs. If I had compiled using a command line, then I would have >>> seen Babel mentioned. I had no idea that compiling from within Emacs had >>> this consequence. >>=20 >> Hm curious. I tried a bit but I can't call pdflatex in such a way that >> it avoids to mention the hyphenations enabled. Are you sure you are >> using the same format in both cases? > Yes. In both cases, the .log file contains "preloaded format=3Dlatex > 2007.5.12". That isn't a proof. If I call pdflatex and latex on a file the logs also contain both such a text but pdflatex and latex certainly use different formats. You should look if you have more than one (pdf)latex.fmt or (pdf)latex.efmt >> Do you have problems with hyphenations? > No. If I put \usepackage[...]{babel} at the preamble of my document, > then that package is loaded and the hyphenation works well. Can you enable through miktex->settings a new language e.g. serbian and than use it \documentclass{article} \usepackage[serbian]{babel} \begin{document}text \end{document} Do you get a babel warning about missing hyphenation tables? If not, I would say everything is fine (even if the missing message is curious). If yes you should find out what's going on. --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:list@... 

[MiKTeX] Why does this LaTeX file produce a cropped .pdf document? Clive Nicholas <clivelists@go...>
 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Ulrike Fischer - 2007-05-29 07:13 am Dienstag, 29. Mai 2007 um 08:15 schrieb Clive Nicholas: > MiKTeX 2.5, Windows XP > I'm having a strange problem outputting my curriculum vitae into a > .pdf file that I can view properly in Adobe Reader 8. The .tex file > below produces a .pdf file which crops off the top of each page of the > document Your pdf is probably in letter format. At first add the option dvips to the geometry package and try again. If this doesn't help tell us *exactly* how you are converting the ps to pdf. (Btw: Why don't you use pdflatex?) --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:list@... 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: - 2007-05-29 07:15 On 29-05-2007 7:15, Clive Nicholas wrote: > MiKTeX 2.5, Windows XP > > I'm having a strange problem outputting my curriculum vitae into a > .pdf file that I can view properly in Adobe Reader 8. The .tex file > below produces a .pdf file which crops off the top of each page of the > document, and I don't understand why it's doing this. This is the > first time I've seen this problem in my 18 months or so of using > MiKTeX to produce LaTeX documents. I compiled your document and it is not cropped. There is something strange concerning your .log file. It says: > This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) > entering extended mode > (test.tex > LaTeX2e <2005/12/01> > Babel and hyphenation patterns for english, dumylang, nohyphenation, ge > rman, ngerman, french, loaded. But your document doesn't use the babel package! Are you sure that you posted the correct .log file? Besides, why using LaTeX + DVIPs + Ps2PDF instead of using PDFLaTeX directly? Best regards, Jose Carlos Santos 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Ulrike Fischer - 2007-05-29 08:28 am Dienstag, 29. Mai 2007 um 09:15 schrieb Jos=E9 Carlos Santos: > I compiled your document and it is not cropped. There is something > strange concerning your .log file. It says: >> This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) >> entering extended mode >> (test.tex >> LaTeX2e <2005/12/01> >> Babel and hyphenation patterns for english, dumylang, nohyphenat= ion, ge >> rman, ngerman, french, loaded. > But your document doesn't use the babel package! Are you sure that you > posted the correct .log file? Yes he did. Why don't you try it yourself? Look at the log of the following document: \documentclass{article} \begin{document} Texte \end{document} --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:list@... 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: - 2007-05-29 09:21 On 29-05-2007 9:28, Ulrike Fischer wrote: >> I compiled your document and it is not cropped. There is something >> strange concerning your .log file. It says: > >>> This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) >>> entering extended mode >>> (test.tex >>> LaTeX2e <2005/12/01> >>> Babel and hyphenation patterns for english, dumylang, nohyphenation, ge >>> rman, ngerman, french, loaded. > >> But your document doesn't use the babel package! Are you sure that you >> posted the correct .log file? > > Yes he did. Why don't you try it yourself? Look at the log of the > following document: I tried myself! What made you think otherwise? I compiled his document and I got a .log file which begins with: ------------------------------------------------------------------------- This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded format=latex 2007.5.12) 29 MAY 2007 10:11 entering extended mode **\input test.tex (test.tex ("C:\Program Files\MiKTeX 2.5\tex\latex\base\article.cls" Document Class: article 2005/09/16 v1.4f Standard LaTeX document class ("C:\Program Files\MiKTeX 2.5\tex\latex\base\size11.clo" File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option) ) \c@... \c@... \c@... \c@... \c@... \c@... \c@... \c@... \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) ("C:\Program Files\MiKTeX 2.5\tex\latex\geometry\geometry.sty" Package: geometry 2002/07/08 v3.2 Page Geometry ----------------------------------------------------------------------- As you see, the Babel package is not mentioned here. It turns out that this is a consequence of the fact that I compiled it within Emacs. If I had compiled using a command line, then I would have seen Babel mentioned. I had no idea that compiling from within Emacs had this consequence. Best regards, Jose Carlos Santos 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Ulrike Fischer - 2007-05-29 10:41 am Dienstag, 29. Mai 2007 um 11:20 schrieb Jos=E9 Carlos Santos: >> >>> But your document doesn't use the babel package! Are you sure that you >>> posted the correct .log file? >>=20 >> Yes he did. Why don't you try it yourself? Look at the log of the >> following document: > I tried myself! What made you think otherwise? Because it is standard that babel is used in the format. > It turns out that this is a consequence of the fact that I compiled it > within Emacs. If I had compiled using a command line, then I would have > seen Babel mentioned. I had no idea that compiling from within Emacs had > this consequence. Hm curious. I tried a bit but I can't call pdflatex in such a way that it avoids to mention the hyphenations enabled. Are you sure you are using the same format in both cases? Do you have problems with hyphenations? --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:list@... 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: - 2007-05-29 10:50 On 29-05-2007 11:41, Ulrike Fischer wrote: >> It turns out that this is a consequence of the fact that I compiled it >> within Emacs. If I had compiled using a command line, then I would have >> seen Babel mentioned. I had no idea that compiling from within Emacs had >> this consequence. > > Hm curious. I tried a bit but I can't call pdflatex in such a way that > it avoids to mention the hyphenations enabled. Are you sure you are > using the same format in both cases? Yes. In both cases, the .log file contains "preloaded format=latex 2007.5.12". > Do you have problems with hyphenations? No. If I put \usepackage[...]{babel} at the preamble of my document, then that package is loaded and the hyphenation works well. Best regards, Jose Carlos Santos 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Ulrike Fischer - 2007-05-29 11:22 am Dienstag, 29. Mai 2007 um 12:50 schrieb Jos=E9 Carlos Santos: > On 29-05-2007 11:41, Ulrike Fischer wrote: >>> It turns out that this is a consequence of the fact that I compiled it >>> within Emacs. If I had compiled using a command line, then I would have >>> seen Babel mentioned. I had no idea that compiling from within Emacs had >>> this consequence. >>=20 >> Hm curious. I tried a bit but I can't call pdflatex in such a way that >> it avoids to mention the hyphenations enabled. Are you sure you are >> using the same format in both cases? > Yes. In both cases, the .log file contains "preloaded format=3Dlatex > 2007.5.12". That isn't a proof. If I call pdflatex and latex on a file the logs also contain both such a text but pdflatex and latex certainly use different formats. You should look if you have more than one (pdf)latex.fmt or (pdf)latex.efmt >> Do you have problems with hyphenations? > No. If I put \usepackage[...]{babel} at the preamble of my document, > then that package is loaded and the hyphenation works well. Can you enable through miktex->settings a new language e.g. serbian and than use it \documentclass{article} \usepackage[serbian]{babel} \begin{document}text \end{document} Do you get a babel warning about missing hyphenation tables? If not, I would say everything is fine (even if the missing message is curious). If yes you should find out what's going on. --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:list@... 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: - 2007-05-29 13:34 On 29-05-2007 12:22, Ulrike Fischer wrote: >>>> It turns out that this is a consequence of the fact that I compiled it >>>> within Emacs. If I had compiled using a command line, then I would have >>>> seen Babel mentioned. I had no idea that compiling from within Emacs had >>>> this consequence. >>> Hm curious. I tried a bit but I can't call pdflatex in such a way that >>> it avoids to mention the hyphenations enabled. Are you sure you are >>> using the same format in both cases? > >> Yes. In both cases, the .log file contains "preloaded format=latex >> 2007.5.12". > > That isn't a proof. If I call pdflatex and latex on a file the logs also > contain both such a text but pdflatex and latex certainly use > different formats. > > You should look if you have more than one (pdf)latex.fmt or (pdf)latex.efmt I only have one latex.fmt file and one pdflatex.fmt file. What happens is this: if I compile a file (test.tex, say) from within Emacs, this corresponds to the command line: latex -interaction=nonstopmode "\input" "test.tex" Apparently this is the cause of the behavior mentioned above. In fact, if I run this from a DOS window, I get again a .log that doesn't mention the Babel package. > >> Do you have problems with hyphenations? > >> No. If I put \usepackage[...]{babel} at the preamble of my document, >> then that package is loaded and the hyphenation works well. > > Can you enable through miktex->settings a new language e.g. serbian > and than use it > > \documentclass{article} > \usepackage[serbian]{babel} > \begin{document}text > \end{document} > > Do you get a babel warning about missing hyphenation tables? If not, > I would say everything is fine (even if the missing message is > curious). If yes you should find out what's going on. Everything is fine. And, yes, I can enable a new language. I am portuguese and the portuguese language is not enabled by default. Best regards, Jose Carlos Santos 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Ulrike Fischer - 2007-05-29 13:41 am Dienstag, 29. Mai 2007 um 15:34 schrieb Jos=E9 Carlos Santos: > What happens is this: if I compile a file (test.tex, say) from within > Emacs, this corresponds to the command line: > latex -interaction=3Dnonstopmode "\input" "test.tex" > Apparently this is the cause of the behavior mentioned above. In fact, > if I run this from a DOS window, I get again a .log that doesn't mention > the Babel package. I get the babel message also in this case. > Everything is fine. And, yes, I can enable a new language. I am > portuguese and the portuguese language is not enabled by default. Then it is ok. --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:list@... 

 Re: [MiKTeX] =?utf-8?q?Why_does_this_LaTeX_file_produce_a_cropped_=2E?= =?utf-8?q?pdf=09document=3F?= From: Alan G Isaac - 2007-05-29 14:27 On Tue, 29 May 2007, J.C. apparently wrote: > why using LaTeX + DVIPs + Ps2PDF instead of using PDFLaTeX It would be nice to see this question less often, at least in such bald form, as there are many possible reasons. These are not equivalent work flows. Cheers, Alan Isaac 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Clive Nicholas - 2007-05-30 08:00 Ulrike Fischer wrote: > Your pdf is probably in letter format. Interestingly, Adobe Reader 8 *does* default to letter format, and nothing I can do within there will make it show A4 size as the default (even if I click and change it there, where it does stay permanently). No matter, as... > At first add the option dvips to the geometry package and try again. ...adding the [dvips] option to the {geometry} package does work: thanks for this. However, I'm finding that it only solves my problem if I don't specify any margins. This is a problem for me, as the text of my CV document now veers over to the right of each page, and I need it to display the text with equal margins either side. I need to find out how I can get my 0.5" margins back! Any ideas? > If this doesn't help tell us *exactly* how you are converting the ps > to pdf. (Btw: Why don't you use pdflatex?) Apologies for not hitherto mentioning which text editor I use: Shu Shen's MeWa (http://www.meshwalk.com/latexeditor). Its .ps to .pdf process calls the latest executable of GhostScript uses the following code: "C:\Program Files\gs\gs8.57\bin\gswin32c.exe" -dCompatibilityLevel=1.3 -dPDFSETTINGS=/prepress -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$(FilePath)$(FileTitle).pdf" -c save pop -f "$(FilePath)$(FileTitle).ps" To answer your other question (also asked by Jose Carlos Santos), it's more a case of not being able to use PDFLaTeX rather than choosing not to under this editor: I don't think MeWa is currently capable. However, I'm comfortable with MeWa as it's always worked for me (up until now!). And yes, Jose, I did post the correct log file: I copied from the output window *exactly* what MeWa produced. :) Thanks to all of you for your sterling help thus far. -- Clive Nicholas 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Corentin Fontaine - 2007-05-30 08:47 On 30/05/07, Clive Nicholas wrote: > > Ulrike Fischer wrote: > > > Your pdf is probably in letter format. > > Interestingly, Adobe Reader 8 *does* default to letter format, and > nothing I can do within there will make it show A4 size > as the default (even if I click and change it there, > where it does stay permanently). No matter, as... > > > At first add the option dvips to the geometry package and try again. > > ...adding the [dvips] option to the {geometry} package does work: > thanks for this. However, I'm finding that it only solves my problem > if I don't specify any margins. This is a problem for me, as the text > of my CV document now veers over to the right of each page, and I need > it to display the text with equal margins either side. I need to find > out how I can get my 0.5" margins back! Any ideas? Well, instead of using \setlength{\textwidth}{18cm} you can use the following commands to keep your text centered (at least in my case, it does) : \addtolength{\evensidemargin}{-2cm} % even page left margin \addtolength{\oddsidemargin}{-2cm} % odd page left margin \addtolength{\textwidth}{4cm} % width of text Equaly, for top and bottom margins: \addtolength{\topmargin}{-2cm} \addtolength{\textheight}{4cm} % height of main text HTH, Corentin PS: I think this is a LaTeX related question, not a MikTeX one... > If this doesn't help tell us *exactly* how you are converting the ps > > to pdf. (Btw: Why don't you use pdflatex?) > > Apologies for not hitherto mentioning which text editor I use: Shu > Shen's MeWa (http://www.meshwalk.com/latexeditor). Its .ps to .pdf > process calls the latest executable of GhostScript uses the following > code: > > "C:\Program Files\gs\gs8.57\bin\gswin32c.exe" -dCompatibilityLevel=1.3 > -dPDFSETTINGS=/prepress -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite > -sOutputFile="$(FilePath)$(FileTitle).pdf" -c save pop -f > "$(FilePath)$(FileTitle).ps" > > To answer your other question (also asked by Jose Carlos Santos), it's > more a case of not being able to use PDFLaTeX rather than choosing not > to under this editor: I don't think MeWa is currently capable. > However, I'm comfortable with MeWa as it's always worked for me (up > until now!). > > And yes, Jose, I did post the correct log file: I copied from the > output window *exactly* what MeWa produced. :) > > Thanks to all of you for your sterling help thus far. > > -- > Clive Nicholas > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > MiKTeX-Users mailing list > MiKTeX-Users@... > https://lists.sourceforge.net/lists/listinfo/miktex-users > 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Ulrike Fischer - 2007-05-30 12:42 am Mittwoch, 30. Mai 2007 um 10:00 schrieb Clive Nicholas: > Ulrike Fischer wrote: >> Your pdf is probably in letter format. > Interestingly, Adobe Reader 8 *does* default to letter format, No, I don't think it is the fault of the reader. Your pdf is in letter format (it pstopdf which has letter as default. >> At first add the option dvips to the geometry package and try again. > ...adding the [dvips] option to the {geometry} package does work: > thanks for this. However, I'm finding that it only solves my problem > if I don't specify any margins. This is a problem for me, as the text > of my CV document now veers over to the right of each page, and I need > it to display the text with equal margins either side. I need to find > out how I can get my 0.5" margins back! Any ideas? Don't confuse geometry by changing the textwidth afterwards. > Apologies for not hitherto mentioning which text editor I use: Shu > Shen's MeWa (http://www.meshwalk.com/latexeditor). > To answer your other question (also asked by Jose Carlos Santos), it's > more a case of not being able to use PDFLaTeX rather than choosing not > to under this editor: I don't think MeWa is currently capable. I can't imagine why it shouldn't be able to do it. It is able to call latex yourfile somehow so why shouldn't it be able to call pdflatex instead of latex? Anyway: if you are using a recent miktex you can also put \pdfoutput=3D1 in the preamble of your document. Then latex should output a pdf. --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:list@... 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: - 2007-05-30 12:57 On 30-05-2007 13:42, Ulrike Fischer wrote: >>> Your pdf is probably in letter format. > >> Interestingly, Adobe Reader 8 *does* default to letter format, > > No, I don't think it is the fault of the reader. Your pdf is in letter > format (it pstopdf which has letter as default. Then it is just a matter of adding the option -sPAPERSIZE=a4 to the command line (if possible). Best regards, Jose Carlos Santos 

 Re: [MiKTeX] Why does this LaTeX file produce a cropped .pdf document? From: Clive Nicholas - 2007-05-31 07:18 OK, I've cracked it with a combination of all the solutions generously provided by Ulrike Fischer, Corentin Fontaine, Francois P=E9tiard and Jose Carlos Santos. As follows, with comments where appropriate: ---------------------------------------------------------------------------= ------------------------------------------------------ \documentclass[a4paper,11pt]{article} \usepackage[dvips]{geometry} \usepackage{multicol,nopageno,textcmds,times,url} \addtolength{\evensidemargin}{-2cm} % even page left margin \addtolength{\oddsidemargin}{-2cm} % odd page left margin \addtolength{\textwidth}{4cm} % width of text \addtolength{\topmargin}{-1cm} \addtolength{\textheight}{4cm} % height of main text %% I changed Corentin's suggestion of a -2cm topmargin to -1cm, as the former was still pushing the text upwards and off the page. The rest worked fine. \pagestyle{empty} %% I amended the PDF viewer command line, as per Jose's suggestion, thus: "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" -sPAPERSIZE=3Da4 "$(FilePath)$(FileTitle).pdf" %% It's difficult to gauge whether this really worked along with all the other suggestions, but it certainly did no harm! \begin{document} \begin{center} {\Huge CLIVE NICHOLAS} \end{center} \rule{\dimexpr210mm-1in\relax}{0.1mm} %% This worked fine. .... \end(document} ---------------------------------------------------------------------------= ------------------------------------------------------ The only thing I'd now like to tweak on my CV document is to prevent any text overflow into the left margin via the use of {multicols}, but I think I've had my quota of questions for this week! A huge thank you to all those who helped me solve this tricky problem! --=20 Clive Nicholas