I'm starting to use Emacs (which I don't know very well) to typeset documents with LaTeX. The TeX 'plugin' came out of the box, I have not installed or set up anything in particular.
For the code below, I click on Tex> TeX file, then Tex>Tex view, which brings up a blank dvi file. If I save it as PDF, the latter does show the watermark, but not the included file. If I typeset it with TeXworks, the generated pdf shows the included file and the watermark. So, what could be wrong in the Emacs/TeX set up, and how can I resolve it?
Code: Select all
Code, edit and compile here:
%\documentclass[a4paper]{scrreprt}\documentclass[letterpaper]{minimal}\pagestyle{empty}\RequirePackage[french]{babel}\RequirePackage[T1]{fontenc}\RequirePackage{datetime}\RequirePackage[printwatermark]{xwatermark}\RequirePackage{xcolor}\RequirePackage{pdfpages}\RequirePackage{tikz}\RequirePackage{url}\usepackage{anyfontsize}\usepackage{t1enc}\makeatletter\newcommand\HUGE{\@setfontsize\Huge{25}{30}}\makeatother%\shortdate\ddmmyydate\newsavebox\mybox\savebox\mybox{\tikz[color=red,opacity=0.3]\node{\HUGE \textbf{xyz}};}\newwatermark*[allpages,color=red!50,angle=45,scale=2,xpos=0,ypos=0]{\usebox\mybox}\begin{document}\includepdf[pages={1-}]{us-letter-dummy.pdf}\end{document}
Code: Select all
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex 2018.6.16) 12 JUL 2018 18:07entering extended moderestricted \write18 enabled.%&-line parsing enabled.**\nonstopmode\input fr-watermark.tex(./fr-watermark.tex(/usr/local/texlive/2018/texmf-dist/tex/latex/base/minimal.clsDocument Class: minimal 2001/05/25 Standard LaTeX minimal class) (/usr/local/texlive/2018/texmf-dist/tex/generic/babel/babel.styPackage: babel 2018/06/05 3.22 The Babel package(/usr/local/texlive/2018/texmf-dist/tex/generic/babel/switch.defFile: switch.def 2018/06/05 3.22 Babel switching mechanism)(/usr/local/texlive/2018/texmf-dist/tex/generic/babel-french/french.ldfLanguage: french 2018/04/12 v3.4d French support from the babel system(/usr/local/texlive/2018/texmf-dist/tex/generic/babel/babel.defFile: babel.def 2018/06/05 3.22 Babel common definitions\babel@savecnt=\count80\U@D=\dimen102(/usr/local/texlive/2018/texmf-dist/tex/generic/babel/txtbabel.def)\bbl@dirlevel=\count81)\l@acadian = a dialect from \language\l@french\FB@nonchar=\count82Package babel Info: Making : an active character on input line 415.Package babel Info: Making ; an active character on input line 416.Package babel Info: Making ! an active character on input line 417.Package babel Info: Making ? an active character on input line 418.\FBguill@level=\count83\FB@everypar=\toks14\FB@Mht=\dimen103\mc@charclass=\count84\mc@charfam=\count85\mc@charslot=\count86\std@mcc=\count87\dec@mcc=\count88\c@FBcaption@count=\count89\listindentFB=\skip41