Ciao a tutti,
sto scrivendo un paper utilizzando un layout fornitomi dalla rivista su cui dovremmo pubblicarlo.
Ho già scritto alcune pagine, ma mi trovo di fronte al problema di inserire delle figure.
Riporto di seguito un esempio con 2 scripts per inserire 2 figure.
`%%%%%%%%%%%%%%%%%%%%%%
\documentclass{singlecol-new}
%%%%%%%%%%%%%%%%%%%%%%\usepackage{natbib}
\def\newblock{\hskip .11em plus .33em minus .07em}\theoremstyle{TH}{
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}{Corollary}[section]
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{claim}{Claim}
\newtheorem{stheorem}[theorem]{Wrong Theorem}
}\theoremstyle{THhit}{
\newtheorem{aquestion}{Question}[section]
}\theoremstyle{THrm}{
\newtheorem{remark}[theorem]{Remark}
\newtheorem{question}{Question}[section]
\newtheorem{example}[theorem]{Example}
\newtheorem{case}{Case}[section]
}\makeatletter
\def\theequation{\arabic{equation}}
\makeatother\def\bmD{\mbox{\boldmath $D$}} %99.10.1
\def\bmE{\mbox{\boldmath $E$}} %99.6.29
\def\bmg{\mbox{\boldmath $g$}}
\def\bmG{\mbox{\boldmath $G$}}
\def\bmM{\mbox{\boldmath $M$}}
\def\bmY{\mbox{\boldmath $Y$}} %99.12.22
\def\bmW{\mbox{\boldmath $W$}} %99.12.22
\def\bgamma{\mbox{\boldmath $\gamma$}}
\def\tc#1{\textcolor{red}{\bf #1}}\spaceskip=3.5pt plus1.47pt minus0.77pt \makeatother
%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%\setcounter{page}{1}
\LRH{Tizio e Caio}
\RRH{Prova}
\VOL{x}
\ISSUE{x}
\BottomCatch
\PAGES{xxxx}
\CLline
\PUBYEAR{2009}
\subtitle{}
\title{Prova}
\authorA{Tizio}
\affA{Università prova}
\authorB{Caio}
\affB{Università Example}
\begin{abstract}
Example – Prova.
\end{abstract}\KEYWORD{Prova.}
\REF{to this paper should be made as follows: Prova.}
\begin{bio}
Tizio etc.\vs{9}\noindent Caio etc.
\end{bio}\maketitle
\section{Introduction}
Example
\begin{figure}
\centering
\includegraphics[width=0.8\textwidth]{vehicle_pitch}
\caption{Schematic vehicle of hybrid vehicle.}
\label{fig:vehicle_pitch}
\end{figure}\begin{figure}
\centering
\includegraphics[width=0.8\textwidth]{hybrid_vehicle_4w_pitch}
\caption{Schematic driveline of hybrid vehicle.}
\label{fig:hybrid_vehicle_4w_pitch}
\end{figure}\section{Conclusion}\label{Conclusion}
???
\section*{Acknowledgements}
???
\begin{thebibliography}{10}
\bibitem[\protect\citeauthoryear{Prova.}{Prova}]{Prova}
Prova.\end{thebibliography}
\end{document}`
Quando compilo il codice, mi compare l’errore: `! Paragraph ended before \Gin@iii was complete.` Ho cercato su internet qualche soluzione, ma con scarsi risultati, in quanto le soluzioni trovate in rete, non riesco ad applicarle al mio caso o non sono in grado di applicarle!
Vi chiedo pertanto se potreste gentilmente darmi una mano con questo problemi che mi si è presentato.
Grazie molte,
Ciao a tutti
Scrivendo
`\usepackage{graphicx}`
nel preambolo, le immagini vengono inserite. Ho fatto una prova con un’immagine “prova.png”. Vengono segnalati due “warning”:`
LaTeX Warning: You have requested document class `singlecol-new',
but the document class provides `singlecol'.`
e
`LaTeX Warning: inputting `leqno.clo' instead of obsolete `leqno.sty'.`
Ciao
Antonio
Modifica
Aggiungo le prime righe del codice della classe singlecol-new.cls:
`\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{singlecol}
[1998/05/05 v1.3y
Standard LaTeX document class]
%\def\clsdir{C:/Inderscience/IJBRA-sample}
\RequirePackage{epsf,ifthen,dcolumn,graphics,leqno,calc,lastpage,color,endnotes}
\usepackage{amsmath,amsfonts,amssymb,bm,latexsym}`