Re: problema compilazione TeXnicCenter/MiKTeX

#77474
Up
0
Down
::

illinguista1972″ post=76612

Ciao a tutti
Ecco, il mio codice “lungo” da cui ha preso spunto Davide è questo:

`\documentclass[12pt, a4paper]{article}
\usepackage[italian]{babel}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}

% per il colore
\usepackage{color}

%per la riga in alto
\usepackage{fancyhdr}
\pagestyle{fancy}

% per le note
\newcommand{\nota}[1]{%
\marginpar[{\raggedleft\small\sffamily #1\\}]{%
{\raggedright\small\sffamily #1\\}}}

\begin{document}
\title{Esempi in \\ \LaTeX \\ per l'uso immediato}
\maketitle
\date{}
\clearpage

\selectlanguage{italian}

\newcommand{\dubvet}[2]{\left( \begin{array}{c} #1 \\ #2 \end{array} \right)}
\newcommand{\odubvet}[2]{\left( \begin{array}{cc} #1 ; & #2 \end{array} \right)}
\newcommand{\dubmat}[4]{\left( \begin{array}{cc} #1 & #2 \\ #3 & #4 \end{array} \right)}
\newcommand{\dubsys}[2]{\left \{ \begin{array}{cc} #1 \\ #2 \end{array} \right. }
\newcommand{\tripsys}[6]{\Bigg \{ \begin{array}{cc} #1 = & #2 \\ #3 = & #4 \\ #5 = & #6 \end{array}}
\newcommand{\complex}{\mathbb{C}}
\newcommand{\real}{\mathbb{R}}
\newcommand{\imag}{\mathbb{I}}
\newcommand{\realpart}{\mathbb{R} e}
\newcommand{\imagpart}{\mathbb{I} m}
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\val}[1]{\left. #1 \right|}

\section{Tabelle}
\label{sec:Tabelle}

\begin{center}
\begin{tabular}{|c|c|c|c|c|}
\hline
angolo in gradi & angolo in radianti & seno & coseno & tangente \\
\hline
$0^{°}$ & 0 & 0 & 1 & 0 \\
\hline
$30^{°}$ & 0,52 & 0,5 & 0,87 & 0,58 \\
\hline
$45^{°}$ & 0,79 & 0,71& 0,71 & 1 \\
\hline
$60^{°}$ & 1,05 & 0,87& 0,5 & 1,73 \\
\hline
$90^{°}$ & 1,57 & 1 & 1 & — \\
\hline
$180^{°}$& 3,14 & 0 & -1 & 0 \\
\hline
\end{tabular}
\end{center}

Codice da usare:

\begin{verbatim}
\begin{center}
\begin{tabular}{|c|c|c|c|c|}
\hline
angolo in gradi & angolo in radianti & seno & coseno & tangente \\
\hline
$0^{°}$ & 0 & 0 & 1 & 0 \\
\hline
$30^{°}$ & 0,52 & 0,5 & 0,87 & 0,58 \\
\hline
$45^{°}$ & 0,79 & 0,71& 0,71 & 1 \\
\hline
$60^{°}$ & 1,05 & 0,87& 0,5 & 1,73 \\
\hline
$90^{°}$ & 1,57 & 1 & 1 & — \\
\hline
$180^{°}$& 3,14 & 0 & -1 & 0 \\
\hline
\end{tabular}
\end{center}
\end{verbatim}

\clearpage

\section{Formule – brevi esempi}
\subsection{Formula normale}
\label{sec:FormulaNormale}
\begin{center}
$\frac{dy}{h(y)} = g(x)dx$
\end{center}

Codice da usare:

\begin{verbatim}
\begin{center}
$\frac{dy}{h(y)} = g(x)dx$
\end{center}
\end{verbatim}

\subsection{Formula con indice}
\label{sec:FormulaConIndice}
\begin{center}
\begin{equation}
F(x,y,y', _{\cdots} y^n) = 0
\label{eq: 1}
\end{equation}
\end{center}

Codice da usare:

\begin{verbatim}
\begin{center}
\begin{equation}
F(x,y,y', _{\cdots} y^n) = 0
\label{eq: 1}
\end{equation}
\end{center}
\end{verbatim}

\begin{center}
\begin{equation}
y^{(n)} = f{x,y,_{\cdots}y^{(n-1)}}
\label{eq: 2}
\end{equation}
\end{center}

Codice da usare:

\begin{verbatim}
\begin{center}
\begin{equation}
y^{(n)} = f{x,y,_{\cdots}y^{(n-1)}}
\label{eq: 2}
\end{equation}
\end{center}
\end{verbatim}
Facciamo riferimento alla (\ref{eq: 1}) per il primo caso e alla (\ref{eq: 2}) per il secondo blabla…

\subsection{Sistema lineare}
\label{sec:SistemaLineare}

\subsubsection{Con indice:}

\begin{center}
\begin{equation}
\dubsys{y'(x)= g(x)\cdot h(y(x))}{y(x_0) = y_0}
\label{eq: 6}
\end{equation}
\end{center}

Codice da usare:

\begin{verbatim}
\begin{center}
\begin{equation}
\dubsys{y'(x)= g(x)\cdot h(y(x))}{y(x_0) = y_0}
\label{eq: 6}
\end{equation}
\end{center}
\end{verbatim}

\subsubsection{Senza indice:}

\begin{center}
$\dubsys{y'(x)= g(x)\cdot h(y(x))}{y(x_0) = y_0}$
\end{center}
Codice da usare:
\begin{verbatim}
\begin{center}
$\dubsys{y'(x)= g(x)\cdot h(y(x))}{y(x_0) = y_0}$
\end{center}
\end{verbatim}

\clearpage
\section{Immagine}
\label{sec:Immagine}

\begin{figure}[htbp]
\centering
\includegraphics[scale=0.2]{cagnolino.pdf}
\label{fig:cagnolino}
\caption{Questo è un cagnolino.}
\end{figure}

Codice da usare:
\begin{verbatim}
\begin{figure}[htbp]
\centering
\includegraphics[scale=0.2]{cagnolino.pdf}
\label{fig:cagnolino}
\caption{Questo è un cagnolino.}
\end{figure}
\end{verbatim}

\section{Colore}
\label{sec:Colore}

\textcolor{yellow}{Giallo}

\textcolor{red}{Rosso}

\textcolor{green}{Verde}

\textcolor{blue}{Blu}

Codice da usare:
\begin{verbatim}
\textcolor{yellow}{Giallo}

\textcolor{red}{Rosso}

\textcolor{green}{Verde}

\textcolor{blue}{Blu}
\end{verbatim}

\section{Lettere non allineate}
\label{sec:LettereNonAllineate}

\raisebox{-1mm}{S}\raisebox{1mm}{e}\raisebox{2mm}{r}\raisebox{1mm}{e}\raisebox{1mm}{n}\raisebox{-1mm}{a}

\raisebox{-1mm}{P}\raisebox{1mm}{a}\raisebox{2mm}{n}\raisebox{1mm}{a}\raisebox{1mm}{t}\raisebox{-1mm}{i}

\vspace{1cm}

Codice da usare:
\begin{verbatim}
\raisebox{-1mm}{S}…
\end{verbatim}

\section{Riga capo e fine pagina}
\label{sec:RigaCapoEFinePagina}

Nel frontespizio
\begin{verbatim}
\usepackage{fancyhdr}
\pagestyle{fancy}
\end{verbatim}

\section{Nota}
\label{sec:Nota}
Vedi il codice nel frontespizio. \nota{Questa è una nota a margine}

\section{Indice}
\label{sec:Indice}

\begin{verbatim}
\tableofcontents
\end{verbatim}

\clearpage
\tableofcontents
\end{document}`

A me non spuntano caratteri non riconosciuti e sostituiti con i punti interrogativi… 😕

Ci puoi dire con quale codifica è impostato TeXnicCenter?

Ciao
Tommaso

Come posso cambiare la codifica in TeXnicCenter se la mia è sbagliata?

Go to top