Re: pdflatex thumbnail

#20526
Up
0
Down
::

ehmm forse inserendo il preambolo può essere più facile aiutarmi 😳 (scusate)

La mia forte inesperienza in latex ha prodotto questo documento che è un pò un collage
di post utili e codice raffazzonato qua e là…perdonate gli orrori.

`%=========== riconoscimento compilatore: =================
\ifx\pdfoutput\undefined % We are not running pdftex
…`

Quel preambolo ha alcuni errori concettuali, fin dalla prima riga. Quel test non funziona più da un paio d’anni. Sono sicuro che saprai trovare le differenze fra il tuo e quello “corretto”.
`\documentclass[12pt,a4paper,twoside]{book}
\usepackage{graphicx}
\usepackage{ifpdf}
\ifpdf
\usepackage[colorlinks,hyperindex,pagebackref=true]{hyperref}
\usepackage{thumbpdf}
%============= proprietà del pdf: =====================
\hypersetup{
pdftitle={Appunti di Informatica teorica},
pdfsubject={calcolabilit\`a e linguaggi},
pdfauthor={Alberto Negri http://negri.web.cs.unibo.it},
pdfkeywords={informatica, teorica, calcolabilit\`a, linguaggi,grammatiche},
%pdfpagemode=FullScreen %usato per le slide
}
\else
\usepackage[colorlinks,dvipdfm,hyperindex,pagebackref=true]{hyperref}
\fi
%============== Usepackages: =========================
\usepackage{amsfonts}
\usepackage{amsmath} %normale numerazione formule(a destra)
\usepackage{amsthm}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{fancyhdr}
\usepackage{makeidx}
%LINGUA E CODIFICA CARATTERI:
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage{float}
\usepackage[nottoc]{tocbibind}
%================= Header,Footer Definition: ==================
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} % delete current setting for header and footer
\fancyhead[LE,RO]{\nouppercase{\bfseries\thepage}}
\fancyhead[LO]{\nouppercase{\bfseries\rightmark}}
\fancyhead[RE]{\nouppercase{\bfseries\leftmark}}
%\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\headheight}{15pt}
\fancypagestyle{plain}{%
\fancyhead{}
\fancyfoot[C]{\bfseries\thepage}
\renewcommand{\headrulewidth}{0pt}
}
%============= ambiente algorithm: ==========================
\floatname{algorithm}{Algoritmo}
%============= Definizione deftoclevel: ========================
% vengano messi sotto all'ultima \part
%\makeatletter
\newcommand\deftoclevel[2][chapter]{%
\expandafter\renewcommand\csname toclevel@#1\endcsname{#2}}
%\makeatother
%============= definizione comandi matematici: ====================
\theoremstyle{plain}
\newtheorem{thm}{Teorema}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposizione}
\newtheorem*{cor}{Corollario}
\newtheorem*{KL}{Klein's Lemma}

\newcommand*{\statementlabel}{}
\newtheorem{statement*}[thm]{\statementlabel}
\newenvironment{statement}[1]
{\renewcommand*{\statementlabel}{#1}\begin{statement*}}
{\end{statement*}}%from package: amsmath

\providecommand{\abs}[1]{\lvert#1\rvert} %manuale pg.17
\providecommand{\norm}[1]{\lVert#1\rVert} %manuale pg.17
\providecommand{\coppia}[2]{\langle#1,#2\rangle} %personale
\newcommand{\vect}{\mathbf} %from manuale pg. 22
\newcommand{\set}{\mathbb} %personale
%============== First page Infos: ==========================
\author{Nome Cognome\\email@dominio.it\\\url{http://negri.web.cs.unibo.it}}
\title{titolo}
\date{\today}`
Ho provato a scrivere un documento con il tuo stesso preambolo e thumbpdf funziona senza errori. Ma che te ne fai, adesso che molti visualizzatori pdf lo fanno da sé?

Ah, forse non il tuo preferito. Be’, cerca di produrre un esempio minimo.

Ciao
Enrico

Go to top