Risposte nei forum create
-
AutoreRisposte
-
::
Forse pretendo troppo ma si può far si che solo i numeri tra parentesi vengano fatti rossi?perché ho delle righe così:
VARCHAR2 (2000)
Come potete capire solo il 2000 dovrebbe essere rosso, invece il 2 del varchar2 esce rosso.
Vi ringrazio moltissimo della vostra gentilezza, sentitevi pure liberi di mandarvi al quel paese se chiedo troppo 😛
grazie 😀
::
Un esempio di numero che può capitare è:varchar(250)
cioè una stringa di 250 caratteri.
nelle esempio che hai messo, se ho capito bene, che le keyword devono essere blu ( keywordstyle=\color{blue} ) ma come faccio a definire quali sono queste keyword?
lo vedo fare per ogni listato oppure nel preambolo?Grazie 1000!
::
Potreste gentilmente un esempio 🙂nel preambolo ho messo questo:
`
%%%%%%%%% Listati%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{listings}
\lstset{language= sql,%
basicstyle=\footnotesize\ttfamily,
breaklines=true,
captionpos=b,
commentstyle=
\footnotesize\ttfamily
}
\renewcommand{\lstlistlistingname}{Lista dei Sorgenti}
\renewcommand{\lstlistingname}{Listato}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%`
e ogni listato è circa cosi:
`
\begin{lstlisting}
CREATE TABLE ANNO
(
IDANNO INTEGER NOT NULL,
ANNOI INTEGER NULL,
ANNOF INTEGER NULL
)
/
CREATE UNIQUE INDEX XPKANNO ON ANNO
(
IDANNO ASC
)
/
ALTER TABLE ANNO
ADD CONSTRAINT XPKANNO PRIMARY KEY (IDANNO)
/
ALTER TABLE ANNO
ADD CONSTRAINT CK_ANNO UNIQUE (ANNOI, ANNOF)
/
\end{lstlisting}`
Ora se io volessi che le parole CREATE, UNIQUE, INDEX, etc vengano blu e i numeri rossi cosa dovrei fare?
So che dovrei leggermi semplicemente la documentazione del pacchetto ma non ho tempo perché sono indietro e stretto con i tempi, per questo vi chiedo questa cortesia.
Grazie 1000000000
::
Anche io mi trovo nella stessa situazione…. il codice è il seguente:`
\begin{tabularx}{\columnwidth}{ l *{3}{>\centering X}}
\toprule
\multirow{3}*{\bf Tipo di utente} & \multicolumn{3}{c}{ \bf Insiemi di funzioni} \\
\cmidrule(lr){2-4}
& Caricamento dati & Consultazione dati privati & Consultazione dati pubblici\\
\midrule
Utente ROOT & \checkmark & & \checkmark \\
Utente comune & & \checkmark & \checkmark \\
Utente pubblico & & & \checkmark \\
\bottomrule
\end{tabularx}
`
ma mi da quest’errore:
`
! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@…
l.202 \end{tabularx}
I expect to see \noalign only after the \cr of
an alignment. Proceed, and I'll ignore this case.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@…
l.202 \end{tabularx}
I expect to see \noalign only after the \cr of
an alignment. Proceed, and I'll ignore this case.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@…
l.202 \end{tabularx}
I expect to see \noalign only after the \cr of
an alignment. Proceed, and I'll ignore this case.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.`
come fare?
::
Aveva ragione Enrico: Il documento non era codificato correttamente in utf8.
Infatti quando ho apportato la modifica suggerita da Doc nell’ultimo post è andato tutto liscio come l’olio: hai avuto proprio occhio! 🙂Finalmente posso usare l’alfabeto lituano. 😀
Ancora una volta siete stati imparegiabili ragazzi!
Grazie 1 000 000 !AndreA
-
AutoreRisposte