LyXErrors in ps2pdf view

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
diazdeus
Posts: 32
Joined: Fri Sep 28, 2018 9:34 pm

Errors in ps2pdf view

Post by diazdeus »

I use the last LyX 2.3.4 version in spanish language Preferences option. LyX returns errors when I use the ps2pdf document view option. Whit this code,

Code: Select all

\begin{figure}[!h]
\centering
\fbox{\includegraphics[width=7cm]{Recepción}}
\caption[Recepción a bordo en Kiel.]{La foto, que no es de mucha calidad, está hecha el día de la recepción a bordo.}
\label{fig:026}
\end{figure}
I dont obtain a pdf document because LyX (or MiKTeX 2.9 that I use) don't understand the accent mark in "Recepción". If I change "Recepción" for "Recepcion" (after file Recepción is renamed) I have an pdf issue.

This is the preamble of my document, a book class document. If I write \usepackage[latin1]{inputenc} I obtain the error latin9 is already in use with the fancyhdr package.

Code: Select all

\date{}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{tikz}
\setlength{\headheight}{15pt}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\slshape\nouppercase\rightmark}
\fancyhead[RE,LO]{\bfseries\slshape\nouppercase\leftmark}
\fancyfoot[C]{\bfseries\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.0pt}

\usepackage{ifthen}
\usepackage{graphicx}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{ccaption}
\usepackage[labelsep=endash,font={small,it},labelformat=simple,labelfont=bf,figurewithin=none,justification=centering]{caption}
\usepackage{textcomp}
\usepackage{nccparskip}
\usepackage{titlesec,titletoc}
\usepackage{tocloft}
\setlength\cftparskip{-2pt}
\setlength\cftbeforesecskip{1pt}
\setlength\cftaftertoctitleskip{2pt}

\titleformat{\chapter}[display]
{\Large\bfseries\fillast\vspace{-25pt}}
{\normalfont\bfseries\chaptername\hspace{5pt}\thechapter}
{.5ex minus .1ex}
{\Large}[\vspace{-15pt}]

\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\vspace*{\fill}
\thispagestyle{empty}
\newpage 
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

\clubpenalty=10000
\widowpenalty=10000
\counterwithout{footnote}{chapter}

\usepackage[bookmarks=true,bookmarksopen=true,bookmarksopenlevel=2,bookmarksnumbered=true,breaklinks=true,linktocpage=true]{hyperref}
Thanks for your help.
Last edited by cgnieder on Sun Mar 01, 2020 5:20 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply