Re: [TIKZ] Macchina a stati finiti… gerarchica

#79007
Up
0
Down
::

konda” post=78435niente da fare, identico comportamento.

Il preambolo è il seguente:

`\documentclass[a4paper]{book}
\oddsidemargin=1cm
\evensidemargin=1cm
\linespread{1.8} %interlinea

\usepackage{etex} %inserito ora dopo il tuo commento
\usepackage[utf8x]{inputenc}
\usepackage[italian]{babel}
\usepackage{epsfig}
\usepackage{hyperref}
\usepackage{stmaryrd}
\usepackage{tipa}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{listings}
\usepackage{color}

\usepackage{tikz}
\usetikzlibrary{positioning,matrix,calc,backgrounds}

\tikzset{blocco/.style={draw,rounded corners}}

\linespread{1.8} %interlinea

\lstset{ %
% the language of the code
basicstyle=\small, % the size of the fonts that are used for the code
numbers=left, % where to put the line-numbers
stepnumber=1, % the step between two line-numbers. If it's 1, each line
emph={procedure, if, then, break, fi, foreach, do, od, else, end, print, function, while, return, endwhile, True, False},
emphstyle=\bf,
numbersep=5pt, % how far the line-numbers are from the code
backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
frame=lines, % adds a frame around the code
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespac % show the filename of files included with \lstinputlisting;
% also try caption instead of title
keywordstyle=\color{black}, % keyword style
commentstyle=\color{dkgreen}, % comment style
stringstyle=\color{black}, % string literal style
escapeinside={\%*}{//)}, % if you want to add a comment within your code
morekeywords={*,…}, % if you want to add more keywords to the set
mathescape=true,
escapechar=°
}

\renewcommand{\lstlistingname}{Algoritmo}
\newtheorem{mydef}{Definizione}`

Il preambolo lo hai scritto tu oppure lo hai preso da documenti già esistenti (e quindi magari qualche pacchetto non ti serve)? Potresti provare a commentare la chiamata a tipa e stmaryrd… probabilmente non c’entrano nulla, ma a me non viene in mente altro. Non usi nemmeno una lingua che renda attivo il carattere [tt];[/tt] quindi è davvero difficile capire il perché di questo problema.

Ciao
Claudio

Go to top