- Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 18 anni, 3 mesi fa da .
-
Topic
-
Salve a tutti.Ho un problema con l’opzione twoside. Pur infatti aver messo twoside
e openright, il documento inizia da sinistra e non da destra!!
vi listo qui il preambolo. Avete per caso già avuto questo problema
e sapete risolverlo?Grazie mille in anticipo dell’aiuto.
\documentclass[a4paper,11pt, twoside, openright]{book}
%You can include all sorts of packages to get additional
%functionalities
\usepackage[latin1]{inputenc} % for latin languages
\usepackage[T1]{fontenc} %
\usepackage{indentfirst} % for a better indentation
\usepackage{graphicx, subfig, rotating} % for figures, multiple figures and landscape
\usepackage{multirow,bigstrut, booktabs, longtable} % for multiple rows in a table
\usepackage{amsmath,amsfonts,amssymb,amsthm} %,amsbsy} % for math devices
\usepackage{latexsym} % for mathematical symbols
% PACCHETTO FANCY and margins
\usepackage{fancyhdr} % for margin
%Please comment the following line before compiling the final
%version of your report for the library.
%\usepackage[colorlinks, bookmarks, hyperindex]{hyperref}
\usepackage[hyperindex]{hyperref}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% new commands
%%%%%%% for page style
%You can also mess around with the page set-up, but
%please don’t. The library will take care of this if needed.
%\setlength{\textwidth}{15.7cm}
%\setlength{\textheight}{22.3cm}
%\setlength{\topmargin}{0cm}
%\setlength{\oddsidemargin}{.22cm}
%\setlength{\marginparsep}{2mm}
%\setlength{\marginparwidth}{10mm}
%\setlength{\parindent}{0mm}
%\setlength{\parskip}{1.7mm}%Finally, set fancy headers and footers – you need to make
%minor adjustments to this. But no need to understand all the
%details. Please don’t change the style unless explicitly asked to.
\pagestyle{fancy}
%\addtolength{\headwidth}{\marginparsep}
%\addtolength{\headwidth}{\marginparwidth}
\addtolength{\headwidth}{40pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}{}}
\cfoot{}
\rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries\thepage}}
\lhead[\fancyplain{}{\bfseries\thepage}]{\fancyplain{}{\bfseries\rightmark}}% for twoside to start always on the right page
% put this command before the calling of the next list of index or chapter%\newcommand{\cleardoublepages}{\clearpage{\pagestyle{empty}\cleardoublepage}}
% for the same aim but to do that in automatic way
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\begin{center}\end{center}
\vspace{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother%%%%%%% for equation
\newcommand{\diff}{\mbox{\,d}}
\newcommand{\grad}{\mbox{$\nabla$}}
\newcommand{\divg}{\mbox{$\nabla\cdot\,$}}
\newcommand{\rot}{\mbox{$\nabla\times$}}
\newcommand{\pdiff}{\mbox{$\,\partial$}}
\newcommand{\pa}{\partial}
\newcommand{\avt}{\overline}%%%%%%% for tables
\newcommand{\minitab}[2][1]{\begin{tabular}{#1}#2\end{tabular}}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hyphenation
\hyphenation{}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% begin documento
\begin{document}
- Devi essere connesso per rispondere a questo topic.