AUCTeXTypesetting on Emacs

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
Post Reply
erwann
Posts: 75
Joined: Thu Aug 25, 2016 2:24 am

Typesetting on Emacs

Post by erwann »

Hello,

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?
Screenshot from 2018-07-12 18-11-47.png
Screenshot from 2018-07-12 18-11-47.png (6.32 KiB) Viewed 34320 times

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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Log file:

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:07
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**\nonstopmode\input fr-watermark.tex
(./fr-watermark.tex
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/local/texlive/2018/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2018/06/05 3.22 The Babel package
(/usr/local/texlive/2018/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2018/06/05 3.22 Babel switching mechanism
)
(/usr/local/texlive/2018/texmf-dist/tex/generic/babel-french/french.ldf
Language: french 2018/04/12 v3.4d French support from the babel system
(/usr/local/texlive/2018/texmf-dist/tex/generic/babel/babel.def
File: 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=\count82
Package 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
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Attachments
us-letter-dummy.pdf
(21.14 KiB) Downloaded 1044 times
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Typesetting on Emacs

Post by Johannes_B »

You say it works with TeXworks, but not emacs. Unfortunately, we currently don't have any emacs users that i am aware of.
I myself use vim without any plugins. Just code highlighting. Few years ago i tried out emacs for a few ours. Didn't felt natural. Tried out vim for a few minutes and instantly fell in love with that editor.

Maybe ask at a emacs forum for a faster solution? If so, please leave a link here and there to connect both posts.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Typesetting on Emacs

Post by Stefan Kottwitz »

Hi,

you cannot include a PDF file when you compile to DVI.

You should set up emacs to use pdfLaTeX for directly generating PDF instead of latex in DVI mode.

Stefan
LaTeX.org admin
Post Reply