This file runs fine if I comment out the usepackage brazil line.  \documentclass{amsart} \usepackage[brazil]{babel} \usepackage{xy} \input xy  \begin{document} \[\xy  ,(0,0)="A" \endxy   \] \end{document}   But if I do not comment it out I get an error message and no pdf:  ! Paragraph ended before saveid@COORDi was complete &lt;to be read again&gt;   Can someone tell me why it is happening?    I need to have the babel brazil, and I hope I can use my actual (much longer, of course) xypic with no major changes.
122462
I'm writing an elaborate in Italian, and I'm using  to draw some diagrams. Unfortunately it seems that babel is interacting with XY-pic, making it impossible to group elements.  Here is a MWE:  \documentclass[a4paper,10pt]{article}  \usepackage[italian]{babel}  \usepackage[all]{xy}  \usepackage{amssymb}  \begin{document}  \xymatrix @R=1pt{ a &amp; \mathbb{N} &amp; \Rightarrow &amp; \mathbb{N} &amp; e &amp; f &amp; g \\ 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7  \save "1,2"."2,4"*[F.]\frm{} \restore }  \end{document}   Which outputs:    While this is the expected output:    Which is the output I get removing the \usepackage[italian]{babel} line.  Is there anyway to use both babel and xy-pic and avoiding this interaction between the two?
77508
I have used quite some time searching for a solution to my compile problem. The document worked fine untill yesterday. After adding some new references, compiling stoped working properly. I have however used latex only for a few months, so the error might be an easy fix.   My error code in the blg file is:    [836] Utils.pm:209&gt; ERROR - BibTeX subsystem:  C:\Users\andre\AppData\Local\Temp\yb9w7ETEpQ\thesisbiblo.bib_16800.utf8,  line 1375, syntax error: found ",", expected one of: number, name (entry  type, key, field, or macro name), end of entry ("}" or ")") or quoted string  ({...} or "...").    I have biber 2.11 and miktex 2.9 and thought it could have been the cache file as suggested in a previous thread with 2.11 versions, but it did not do the trick to delete that either.  Thanks  This is how my "main" document looks like:  \documentclass[man,12pt,a4paper,babel,english]{apa6}  \usepackage{babel,duomasterforside} \usepackage[utf8]{inputenc} \usepackage[hidelinks]{hyperref}  % Math syntax  \usepackage{siunitx} \usepackage{upgreek} \usepackage{gensymb} \usepackage{amsmath} \usepackage{mathtools} \DeclarePairedDelimiter{\abs}{\lvert}{\rvert}  % Figures \usepackage{graphicx} \graphicspath{{Figures/}} \usepackage{float} \usepackage{subcaption}  % Biblography and citing \usepackage[style=apa,backend=biber,sortcites=true,sorting=nyt,autocite=inline,uniquename=false]{biblatex} \addbibresource{thesisbiblo.bib}  % Frontpage \usepackage{pdfpages}   \begin{document}  % Frontpage      \includepdf[pages=1-]{titlepage.pdf}  % Abstract \input{Abstract} \newpage  % Table of contents \tableofcontents \newpage  % Document \input{Introduction.theory} \newpage \input{Methods} \newpage \input{Results} \newpage \input{Discussion} \newpage \input{Conclusion} \newpage  % References                         \printbibliography  \end{document}
103148
A couple weeks ago I didn't have any issue when using Bibtex on a document where the different parts were included with \include commands, but today I updated Miktex, and now it seems not to work anymore. Now when I compile the main document I get an error message that says  I couldn't open auxiliary file section.aux ---line 3 of file test.aux : @input{section.aux : } I'm skipping whatever remains of this command  Here's a minimal (non)working example : my main file &quot;test.tex&quot; is just \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \begin{document} \include{section} \bibliography{reference} \bibliographystyle{plain} \end{document}  where the file &quot;section.tex&quot; is just \section{My section} I need to test the citations, so see \cite{A}.  and the file &quot;reference.bib&quot; just contains one reference. It works like a charm if I add the section directly or if I \input it, but with \include it just gives the error message as above. I tried with different editors (Texniccenter, Texmaker, Texstudio and Texworks) and it seemed to have the same issue each time. What is causing this problem ? P.S. I've looked at an old version of my document that used to work, and I've noticed a difference in the .aux files : the old version has, near the beginning, a line \bbl@cs{beforestart}  whereas in the newer versions it seems that this line has become \@nameuse{bbl@beforestart}  I'm not sure it's related or if it makes any sense, but I thought I'd add it in case it made a difference.
17981
This is really a &quot;beware&quot; posting rather than a question, although I provide the work-around that has appeared elsewhere. The new &quot;feature&quot;: Babel Version 3.49, dated 2020/10/03, used with an option main=[mainlanguage] breaks things such as the language used for &quot;Figure&quot; with LaTeX generally, &quot;Proof&quot; with amstheorem, &quot;References&quot; for printbibliography with biblatex/biber or bibtex, and &quot;Index&quot; from \makeindex and \printindex. Example: \RequirePackage{filecontents} \begin{filecontents}{mybib.bib} @article{foo1999,   title={Title},   author={Doe, John},   journal={International Journal of Nonsense},   year={1999} } \end{filecontents}  \documentclass{article}  \usepackage[russian,french,ngerman,polish,main=english]{babel}  \usepackage{amsthm} \newtheorem{thm}{Theorem} \usepackage{biblatex} \addbibresource{mybib.bib} \usepackage{imakeidx} \makeindex  \begin{document}  \begin{thm}\index{arithmetic} $2+2 = 4$. \end{thm}  \begin{proof} $2+2 = 2+(1+1) = (2+1) + 1 = 3 + 1 = 4$. \end{proof}  \begin{figure}[h!] \centering \framebox[2in][c]{\rule{0pt}{2in}} \caption{Look at this!} \end{figure}  See this book: \cite{foo1999}  \printbibliography \nopagebreak \printindex  \end{document}   Cure for the feature:&quot; Just replace main=english from the babel option list with english (or similarly, whatever the main language is, put it last in the list). In the docs for Babel 3.49, see the Note at the bottom of page 6, and the discussion preceding it. Related:
63157
This isn't a real question, so I'm marking it community wiki.  When I was new to LaTeX, I thought that the \usepackage command worked much like the #include command of the C language: just put whatever you need in the preamble, in whatever order you like.  But then bugs began to bite me and I realised, with growing horror, that commutative packages seem to be the exception rather than the rule.    so  that I think it would be useful to have a list here of problematic interactions between pairs of packages, and their correct order.  Also, a question for amusement:   I want to know if there exists three packages A, B and C, such that A has to be included before B and B needs to be included before C, but C needs to be included before A.
65207
Dear friends: there is a problem with appendix and ápendice.  I have a scrbook document and I use appendix package,   \usepackage[title, titletoc]{appendix}    because I like the word "Apéndice" in the toc  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}   However, when I compile with latex there is an error in file.toc (maybe in file.aux before). The reason is that in the file.aux there is a line like this:  \@writefile{toc}{\contentsline {chapter}{Ap\IeC {\'e}ndice \numberline {A}Sobre el \LaTeX  }{27}{ApÈndice.1.Alph1}}   and in the second compilation the character "È" produces and error. If I compile with lualatex I have not any error.  I have tried to modify \indexname, \@chapapp but I can not find any solution.    Yes, that is a solution. I am going to clarify the problem with a MWE. In my opinion the problem is motivated by UTF-8 codify and inputenc package, as it is possible to see with this code:  \documentclass[paper=a4,10pt, twoside]{scrbook}%  \usepackage{etoolbox}  \usepackage{tgheros}    % (Una versión libre de Helvetica) \renewcommand{\sfdefault}{qhv} %qhv  %:Fuente para todo lo demás (Una versión libre de Times) \renewcommand{\rmdefault}{qtm} \usepackage{textcomp} \normalfont  \usepackage[T1]{fontenc}         \usepackage[utf8]{inputenc} %para LaTex   %:Paquetes relacionados con el idioma y codificación \usepackage[english, spanish, es-nosectiondot, es-noindentfirst, es-nolists, activeacute]{babel}  \spanishdecimal{.}  %:Para poner las referencias y los nombres de figuras y tablas en castellano \addto\captionsspanish {% \def\figurename{Figura}% \def\tablename{Tabla}% \def\listfigurename{Índice de Figuras} \def\listtablename{Índice de Tablas} \def\contentsname{Índice}% \def\chaptername{Capítulo} \def\Agradecimientos{Agradecimientos} \def\Prefacename{Prefacio}% \def\refname{Referencias}% \def\abstractname{Resumen}% \def\bibname{{Bibliografía}} \def\appendixname{Apéndice} \def\miapendice{\appendixname} \def\glossaryname{Glosario}% \def\indexname{{Índice Alfabético}} }  %:Para definir APÉNDICES \usepackage[title, titletoc]{appendix}  \usepackage{hyperref}   \begin{document}  \cleardoublepage \phantomsection \tableofcontents  %:Empieza el contenido del libro \mainmatter  \chapter{Primer capítulo} \section{Primera sección, primer capítulo}  \chapter{Segundo capítulo} \section{Primera sección, segundo capítulo}  \begin{appendices}  \chapter{Primer apéndice} \section{Primera sección, primer apéndice}  \chapter{Segundo apéndice} \section{Primera sección, segundo apéndice}  \end{appendices}  \end{document}   If you compile, you obtain this error message:     Package inputenc Error: Unicode char \u8:énd not set up for use with La- TeXSee the inputenc package documentation for explanation.Your command was ignored.Type I   to replace it with another command,or  to continue without it.ice.alph1.Alph11ice.alph1.Alph20P   But the solution proposed it is perfect. Thank you
108431
Here is a MWE:  \documentclass{article}  \usepackage{hyperref}  \begin{document}  a  \end{document}   When I compile my document on , I get the following errors:  ! LaTeX Error: Option clash for package hyperref.  ...   l.6 \begin {document} ?  ! Emergency stop. ...   l.6 \begin {document} No pages of output. Transcript written on arXivSubmission.log.   Seems bizarre that having a single package in the preamble causes an error.
32802
My .tex file:  \documentclass[a4paper,twoside,portrait,12pt,openright,final,pdflatex]{report} \usepackage[bindingoffset=8mm]{geometry} \usepackage[T1]{fontenc} \usepackage{arabtex} \usepackage{utf8} \usepackage{graphicx} \usepackage{float}  \usepackage{caption} \captionsetup{font=small,labelfont=bf} \setcounter{secnumdepth}{3} \usepackage{fixltx2e}  \usepackage{paralist}  \usepackage{hyperref} \hypersetup{pdftex,linktocpage=true,bookmarks=true,colorlinks=true,citecolor=blue,filecolor=black,linkcolor=blue,urlcolor=black,pdfauthor={Ayman Elmasry},pdftitle={Algorithmic Form Generation: A Thermal Building Envelope Design Approach}} \usepackage[all]{hypcap} \usepackage{lipsum}  \begin{document}  \lipsum[1-20]  \end{document}   I compile with pdflatex, and I get this error:  (/usr/local/texlive/2011/texmf-dist/tex/latex/caption/caption.sty (/usr/local/texlive/2011/texmf-dist/tex/latex/caption/caption3.sty Runaway argument? {\caption@CheckCommand \@makecaption {\long \def \@makecaption ##1##2\ETC. ! Paragraph ended before \@gobble was complete. &lt;to be read again&gt;                     \par  l.901         \unskip\kern-2\captionindent\par   When I comment out:  %\usepackage{caption} %\captionsetup{font=small,labelfont=bf}   ... I get an output PDF file with no problems.
15250
I use the babel package in order to write in greek with font "kerkis".  I want to add code in english ("courier new" font) to my latex document but I get some difficulties.  Can anybody help me, please. Thank you in advance.  \documentclass[12pt]{article} \usepackage[english,greek]{babel} \usepackage[utf8x]{inputenc} \usepackage{graphicx} \usepackage{fancybox} \usepackage{verbatim} \usepackage{courier} \usepackage{kerkis} \usepackage{float} \usepackage{geometry} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{tocloft} \usepackage{hyperref} \usepackage{afterpage} \usepackage{color}    \usepackage{listings}  \renewcommand{\lstlistingname}{Κώδικας}  \lstset{  %matlab   backgroundcolor=\color{white},     basicstyle=\normalsize,    % COURIER NEW?        commentstyle=\color{green},    % comment style   escapeinside={\%*}{*)},           extendedchars=true,               frame=single,                              keywordstyle=\color{blue},       % keyword style   numbers=left,                     numbersep=5pt,                     numberstyle=\normalsize\color{black},    rulecolor=\color{black},           stepnumber=1,                      stringstyle=\color{magenta},     % string style }   \begin{document}  \selectlanguage{greek} Ελληνικά: \textlatin{this word means greek}  \selectlanguage{english} Now I write in english  \selectlanguage{greek} Ελληνικά  %\selectlanguage{english}???  \begin{lstlisting}[caption = \textlatin{example1.m}] { % Entropy E = 0; for i = 1:J     if p(i) ~= 0         E = E + p(i)*log2(1/p(i));     end end } \end{lstlisting}  \end{document}
115771
I'm writing my thesis using MiKTeX and WinEdt 9 for Windows. I write the different chapters individually, and then I have a "masterfille" with the documentclass "report" where I use the command "input" to load the individual chapters. In other words there is only a preamble in the "masterfile".  I have a very general problem which is the following: No matter what kind of mistake I do whatsoever, I will first receive the correct error message, say I forgot to end a table or something (it really does not matter). If I correct this mistake and try to recompile without using the option "Erase Output Files" in Winedt, I will always and very quickly receive a new error message, often containing a mysterious "Undefined control sequence". Having to do this every time and to recompile plus run the Biber (L+B+L+L+D) is very time consuming, since the document is very large. Any ideas what the problem could be? Here is the preamble of my "masterfile" (I am probably including irrelevant information, sorry for that):   \documentclass[12]{report} \setcounter{tocdepth}{2} \usepackage{layout} \setlength{\voffset}{-0.75in} \setlength{\headsep}{5pt} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{csquotes} \usepackage{authblk} \usepackage [T1]{fontenc} \usepackage[backend=biber, style=authoryear-comp]{biblatex} \usepackage{xyling} \usepackage[super]{nth} \usepackage{xspace} \usepackage{cgloss4e} \usepackage{abstract} \usepackage{array} \usepackage{multirow} \usepackage{hyperref} \usepackage{xr} \usepackage{gb4e} \noautomath  \let\eachwordone\itshape   \makeatletter \pretocmd{\@footnotetext}{     \@noftnotefalse\setcounter{fnx}{0}%     \renewcommand{\thexnumi}{\roman{xnumi}}     }{}{} \apptocmd{\@footnotetext}{     \@noftnotetrue     \renewcommand{\thexnumi}{\arabic{xnumi}}     }{}{} \@ifpackageloaded{bidi}{% \pretocmd{\@LTRfootnotetext}{     \@noftnotefalse\setcounter{fnx}{0}%     \renewcommand{\thexnumi}{\roman{xnumi}}     }{}{} \apptocmd{\@LTRfootnotetext}{     \@noftnotetrue     \renewcommand{\thexnumi}{\arabic{xnumi}}     }{}{} } \makeatother     \addbibresource{ref.bib}    \title{The origins of Old Romance V2: A comparative study of Late Latin, Old French and Middle High German} \author{XXX} \date{\today}   \begin{document}  \tableofcontents   \chapter{Old French} \input{chapters/OldFrench2}  \printbibliography  \end{document}
84308
I am using elsarticle  Everything was find before I used \usepackage{arabtext}.   When I compiled to PDF, I got the following error message.    And if I type "s", everything became fine again but I don't want to type an "s" every time I compile PDF preview.   Please anyone advise.  Thank you very much in advance for your help.  Here is the code  \documentclass[12pt, authoryear]{elsarticle}    % use "amsart" instead of "article" for AMSLaTeX format \usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref} \usepackage{geometry}                       % See geometry.pdf to learn the layout options. There are lots. \geometry{a4paper}                          % ... or a4paper or a5paper or ...  %\geometry{landscape}                       % Activate for rotated page geometry %\usepackage[parfill]{parskip}          % Activate to begin paragraphs with an empty line rather than an indent \usepackage{graphicx}               % Use pdf, png, jpg, or epsÂ§ with pdflatex; use eps in DVI mode                             % TeX will automatically convert eps --&gt; pdf in pdflatex         \usepackage{amssymb}  \usepackage{amsmath} \usepackage{tipa} \usepackage{arabtex} %SetFonts  %SetFonts   \title{Translating from English to Bahasa Indonesia: Which procedures should be taught to EFL students preparing to be a translator?} \author[mkl]{Mohammad Kholid}  \author[fai]{Faisal Mustafa\corref{cor1}} \ead{faisal.mustafa@unsyiah.ac.id}  \cortext[cor1]{Corresponding author}  \address[mkl]{Syiah Kuala University, Banda Aceh, Indonesia} \address[fai]{Syiah Kuala University, Banda Aceh, Indonesia} \date{}                         % Activate to display a given date or no date  \begin{document} %\section{} %\subsection{}  \begin{frontmatter}  \begin{abstract}   Abstract content is here.  \end{abstract}  \begin{keyword}  translation procedures \sep English to Bahasa Indonesia \sep teaching translation \end{keyword} \end{frontmatter}
18854
\documentclass{beamer}  %\usepackage{pstricks,auto-pst-pdf} % works \usepackage[pdf]{pstricks} \usepackage{pst-tree}  \begin{document} \begin{frame}{Test}     \begin{postscript}         $\pstree{\TR{S}}{}$     \end{postscript} \end{frame} \end{document}   I get the following error:  Error: /typecheck in --div-- Operand stack:    1   0   0.0   -0.00706883   a   65781.8 Execution stack:    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostri ngval--   --nostringval--   false   1   %stopped_push   1926   1   3   %oparray_pop   1925   1   3   %oparray_pop   1909   1   3  %oparray_pop   1803   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   - -nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   4   --nostringval--  %repeat_continue   --nostringval-- Dictionary stack:    --dict:1169/1684(ro)(G)--   --dict:0/20(G)--   --dict:123/200(L)--   --dict:100/300(L)-- Current allocation mode is local Current file position is 120580 MiKTeX GPL Ghostscript 9.05: Unrecoverable error, exit code 1   I use MiKTeX 2.9 and latest packages in Windows 7.
77114
this is my first time here but I will try to do my best. My document stopped compiling and I was able to boil it down to the following MWE. Basically I need chemnum (and therefore auto-pst-pdf) to replace temporary markers in my chemical schemes (all .eps files). Chemmacros seems to break this because if I comment it out, the document compiles just fine. \documentclass{article}  \usepackage{graphicx} \usepackage{chemnum} \usepackage{auto-pst-pdf} %\usepackage{chemmacros}  \begin{document}  Hello World...      \begin{figure}         \includegraphics{picture.eps}     \end{figure}          \begin{figure}         \includegraphics{picture2.png}     \end{figure}   \end{document}  From the log: ------------------------------------------------- auto-pst-pdf: Auxiliary LaTeX compilation ------------------------------------------------- This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=latex) entering extended mode system returned with code 256   Package auto-pst-pdf Warning:      Creation of 00_preamble-autopp.dvi failed. This warning occured on input line 128.   Package auto-pst-pdf Warning:      Could not create 00_preamble-pics.pdf. Auxiliary files not deleted. This warning occured on input line 128.  ------------------------------------------------- auto-pst-pdf: End auxiliary LaTeX compilation -------------------------------------------------  I think it has something to do with ghostscript or related. This was tested on a fresh install on Xubuntu. I can supply log files of a failed and of a working compilation. If anything is needed, please tell me and I will try to provide. Best regards, Phil PS: I was able to reproduce the error with these files:
23889
im currently writing my bachelors thesis and while inserting some cites and adding something to my bib file the above mentioned error occured. i tried to "fix" it by removing all the steps prior to the occuring error but it still remains and i just cant find any solution. since im a total newbie in latex, i would be grateful for any quick help! i found something that should remove this error but it doesnt:  \DeclareUnicodeCharacter{200}{„ “}   which i insert directly after   \usepackage[utf8]{inputenc}   but that still doesnt solve it  thx in advance guys!
107073
I'm writing a document using the , and would like to use the subfiles package to manage the sections.  I'm following the ShareLatex example available , and have modified it to use the aastex61 documentclass.  Here's a minimal working example:  Main file:  %main.tex \documentclass[aip,twocolumn,jmp.asmsmath,asmssymb,reprint]{aastex61} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{subfiles} \usepackage{blindtext}  \title{Subfile Example} \begin{document} \section{Introduction} \subfile{introduction} \end{document}   Subfile:  %introduction.tex \documentclass[main.tex]{subfiles}  \begin{document} \Blindtext \end{document}   The main file compiles correctly, but this fails in ShareLatex with  Missing \begin{document}   In pdflatex I get  ! I can't find file `introduction.aux'. &lt;to be read again&gt;                 \relax  l.13 \end{document}   This is unfortunate because I'd like to use subfiles for this project. Is there anything I can do?
83555
When I tried to use the breqn package suggested by an answer to the question      It managed to break a whole bunch of unrelated equations (equations that did not use its functionality), including a definition for the control sequence \mf which I had previously defined myself.  Is there a way to limit the scope of a \usepackage declaration so that its (positive and negative) effects are limited to a particular segment of a document?  I have tried putting it inside an environment, but get the following error:  ! LaTeX Error: Can be used only in preamble.
2706
I'm generating a PDF document with pdflatex (more precisely, latexmk invoked from TexMaker 3.4. My LaTeX install is TeXLive 20120719). I can read the document fine in Okular and Gmail's attachment preview, but a colleague that runs Acrobat Reader on Windows reports: "There was a problem reading this document (131)".  EDIT: The error disappears when using \usepackage[demo]{graphicx}, which puts black boxes instead of the real images. They are all PDFs, PNGs and JPGs. Instead of using demo, I added the code for a \demoincludegraphics command, which makes the file work in Reader when using it to replace the logo in the headers, as shown below. But enabling it (using \includegraphics instead of \demoincludegraphics) and removing everything else also works in Reader! There is some strange global interaction that makes the file appear broken to Reader when enabling all the graphics...  My code compiles fine, reason why I only attach the preamble and a simple text for a Minimal Working Example:  \documentclass[12pt,lettersize,twoside]{article}  \usepackage[utf8]{inputenc} \usepackage[spanish,es-tabla]{babel}   \usepackage[fixlanguage]{babelbib} \usepackage{amssymb,amsmath} \usepackage{graphicx}    \usepackage{array}    \usepackage{caption} \usepackage{subfig} \usepackage{rotating} \usepackage{booktabs} \usepackage{multirow} \usepackage{calc} \usepackage{stfloats} \usepackage{fixltx2e} \usepackage{url} \usepackage[colorlinks=true,linkcolor=blue,citecolor=red]{hyperref} \usepackage[all]{hypcap}  % Margins \usepackage[top=2cm, bottom=2cm, left=3cm, right=2cm]{geometry}  % Make header show up in the first page \makeatletter \renewcommand\maketitle{\par \begingroup     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%     \long\def\@makefntext##1{\parindent 1em\noindent             \hb@xt@1.8em{%                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%     \if@twocolumn     \ifnum \col@number=\@ne         \@maketitle     \else         \twocolumn[\@maketitle]%     \fi     \else     \newpage     \global\@topnum\z@   % Prevents figures from going at top of page.     \@maketitle     \fi     \thispagestyle{fancy}\@thanks % was {empty} \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@maketitle\relax \global\let\@thanks\@empty \global\let\@author\@empty \global\let\@date\@empty \global\let\@title\@empty \global\let\title\relax \global\let\author\relax \global\let\date\relax \global\let\and\relax } \makeatother  % Remove date field in title; Remove preceding vertical space \makeatletter \renewcommand{\@maketitle}{ \vspace{-3cm} \begin{center}% {\LARGE \@title}\\ \vspace{2mm}% {\@author} \end{center}% \par} \makeatother \makeatletter  % Demo includegraphic boxes \newcommand{\demoincludegraphics}[2][]{%   \setlength{\fboxsep}{-\fboxrule}% Remove frame separator/gap   \framebox{\rule{0pt}{100pt}\rule{150pt}{0pt}}% Framed box of 150pt x 100pt }  % Headers Config  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0.4pt} \setlength{\headheight}{2.2cm}  \addtolength{\textheight}{-1.62cm} \fancyhead[LO,RE]{\demoincludegraphics[height=1.6cm]{logo-slogan}} \fancyhead[LE,RO]{}  % Footers Config \fancyfoot{} \renewcommand{\footrulewidth}{0pt} \fancyfoot[C]{\thepage}  % Notas al pie etiquetadas por simbolos   \renewcommand{\thefootnote}{\fnsymbol{footnote}}  \title{Doc Title} \author{My name}  \begin{document}  \maketitle  This is a test. It includes graphics and other floats.   \end{document}   EDIT: I found a workaround: Processing the generated pdf file through Ghostscript, as follows:   gs -dSAFER -dBATCH -dNOPAUSE  -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf   where input.pdf is the file generated by pdfLaTeX, and output.pdf the one that will be readable by Adobe Reader and the rest of the PDF readers.