- Questo topic ha 5 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 5 anni, 5 mesi fa da .
-
Topic
-
Salve a tutti e BUONA PASQUA!Sto scrivendo un file per un tirocinio e ho dei problemi.
Devo inserire delle parole in arabo ma non ce la faccio … mi hanno fornito un template standard. Il testo italiano e inglese non danno problemi, ma quando inserisco i pacchetti per l’arabo (e i relativi termini), mi si impalla tutto!Uso MikTeX su windows (versione completa). Il problema che mi dà è relativo all’abstract (proprio dopo che inserisco i pacchetti per l’arabo). Forse sbaglio qualcosa … o forse è il file di base che fa “acqua da tutte le parti” (dato che ci capisco poco).
`
%
% last updated: May 07, 2020
%
\documentclass[b5paper,twoside,reqno]{peloritana}
% !TEX TS-program = pdflatex
% !TEX spellcheck = en-EN
%!TEX encoding = UTF-8 Unicode
\textheight19cm \addtolength{\headsep}{2em}
\flushbottom
%
% —– Pacchetti Maria —–
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[italian,english]{babel}
%
% American Mathematical Society style packages …
\usepackage{amsmath,amssymb,amsfonts,amsthm}
%
% Special math symbols …
\usepackage{latexsym}
%
% Other packages …
\usepackage{underscore}
\usepackage{lineno}
\usepackage{graphicx}
\usepackage[usenames,dvipsnames]{color}
\usepackage{colortbl}
\usepackage[dvipsnames]{xcolor}
\usepackage{pdfcolmk}
\usepackage{lscape}
\usepackage{epstopdf}
\usepackage{setspace}
\usepackage{lastpage}
\usepackage{caption}
\usepackage{siunitx}
\usepackage{mathtools}
\usepackage[]{footmisc}
%
% Handling long tables …
\usepackage{longtable}
%
% The package “threeparttable'' facilitates tables with titles (captions) and notes …
\usepackage{threeparttable} % including notes
%
% Times for rm and math | Helvetica for ss | Courier for tt
%
\usepackage{mathptmx} % rm & math
\usepackage[scaled=0.90]{helvet} % ss
\usepackage{courier} % tt
\normalfont
\usepackage{textcomp}
\usepackage{microtype}
\usepackage{indentfirst}
\usepackage{booktabs}
\usepackage{fancyhdr}
\usepackage{wasysym}
%
% Bold Math (provides bold AND italic vector symbols)
% check: https://tug.org/pipermail/yandytex/2003-September/000368.html
% check: https://texfaq.org/FAQ-manymathalph
%
\newcommand\hmmax{0}
\newcommand\bmmax{0}
\usepackage{bm}
%
% Insert here any call to other packages requested by the authors
% …
%
% CAUTION: if the following two commands are active, referenced tags only (as for equations) are shown.
%\usepackage{mathtools}
%\mathtoolsset{showonlyrefs}
%
%
% Bibliography, citations, and hyperlinks …
%
% NOTE: BibLaTeX module requires the file “references.bib''
% NOTE: BibLaTeX is not compatible with the package “cite”
%
%
% !TEX encoding = UTF-8 Unicode
% NOTE: The following instruction must follow the command \usepackage[a-1b]{pdfx} in \input{hyperlinks.tex}
%
\usepackage{float}
%
% The package ''placeins“ defines a \FloatBarrier command, beyond which floats may not pass; useful, for example, to ensure all floats for a section appear before the next \section command.
\usepackage{placeins}
%
% Watermarking
%
\edef\addwatermark{\the\inputlineno} \usepackage{draftwatermark}
\edef\stopwatermark{\the\inputlineno}
%\edef\nowatermark{\the\inputlineno} \usepackage[nostamp]{draftwatermark}
%
% NOTE: if loaded as \usepackage[nostamp]{draftwatermark}, the package does not print any watermark even if it is configured to do so according to the following settings:
\SetWatermarkAngle{90}
\SetWatermarkFontSize{10mm}
\SetWatermarkHorCenter{0.05\paperwidth}
% -> specify the current version:
\edef\proofversion{\the\inputlineno} \SetWatermarkText{AAPP proofs (ver. 01)}
%
% Get floats (figures) to be centered on a floats-only page …
\makeatletter
\setlength{\@fptop}{0pt plus 1fil}
\setlength{\@fpbot}{0pt plus 1fil}
\makeatother
%
% Defining colors, some examples:
%\definecolor{aqua}{rgb}{0.0, 1.0, 1.0}
%\definecolor{lightcyan}{rgb}{0.88, 1.0, 1.0}
%\definecolor{lightgreen}{rgb}{0.56, 0.93, 0.56}
%\definecolor{lightpink}{rgb}{1.0, 0.71, 0.76}
%
% Handling Inputenc errors (in bibtex files) such s:
%
% Package inputenc Error: Unicode char ́ (U+0301)(inputenc) not set up for use with LaTeX.
%
% enable the following command:
% \DeclareUnicodeCharacter{0301}{*************************************}
% and look into the pdf which char produces this and delete/correct it.
%
%
% Build a list of in-text “cited” papers
%
\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}
%
%
% Add here customized definitions and commands, if needed …
% \newtheorem …
% \newcommand …
%
% Provide article's metadata: volume number, issue number, article number, year (do not modify the “firstpage“ value)
\edef\startmetadata{\the\inputlineno} \newcommand{\volume}{XX}
\newcommand{\issuenumber}{YY}
\newcommand{\artno}{ZZ}
\edef\endmetadata{\the\inputlineno} \newcommand{\publishedyear}{2020}
%
% Define DOI suffix:
\newcommand{\doisuffix}{AAPP.\volume\issuenumber\artno}
%
\newcommand{\firstpage}{1}
%
% Headers and footers
%
\pagestyle{fancy}
\fancyhead{}
\fancyhead[LE]{\footnotesize \artno-\thepage}
%
% Author(s): abbreviated list
\edef\authorsshortlist{\the\inputlineno} \fancyhead[RE]{\footnotesize{\sc{G. Ferriello et al.}}}
%
\fancyhead[RO]{\footnotesize \artno-\thepage}
%
% Shortened title (if necessary) …
\edef\runningtitle{\the\inputlineno} \fancyhead[LO]{\footnotesize{\sc{HORIZONS WITHOUT BORDERS FOR THE TEACHING OF PHYSICS \ldots}}}
\fancyfoot{}
\fancyfoot[CE,CO]{\setstretch{0.7}{\scriptsize{{\textsf{Atti Accad. Pelorit. Pericol. Cl. Sci. Fis. Mat. Nat., Vol. \volume, No. \issuenumber, \artno~(\publishedyear) [\pageref{LastPage} pages]}}}}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%
% Set the distance from the bottom of the last line of text in the body to the bottom of the footer
\setlength{\footskip}{18pt}
% a.s.l.;
%\setlength{\footheight}{0.5in}
%
\newcommand{\testata}
{
\vspace*{-5\baselineskip}
\hspace*{-14pt}
{\normalsize{DOI: \href{http://dx.doi.org/10.1478/\doisuffix}{10.1478/\doisuffix}}}\\
\vspace{6 mm}\\
\hspace*{\fill}{\Large{{AAPP $|$ {documento 1}}}\\}
\hspace*{\fill}{\large{{\emph{Classe di Natura}}}\\}
\hspace*{\fill}{\href{http://dx.doi.org/10.1478/18251242}{\normalsize{ISSN}}\\}
\hspace*{\fill}{\\}
\hspace*{\fill}{{\normalsize{Vol. \volume, No. \issuenumber, \artno~(\publishedyear)\\}}}
}\makeatletter
\renewcommand{\section}{\@startsection{section}{0}{0mm}{\baselineskip}
{0.5\baselineskip}{\normalfont\normalsize\bfseries}}
\makeatother
%
% communicated by …
%
\newcommand{\presentazione}{\centerline{\small}}
%\newcommand{\presentazione}{\centerline{\small (communicated by …)}}
%
\setcounter{page}{\firstpage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% … handling underscores in BibTeX entries with Biber …
%
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=url,
match=\regexp{\\_},
replace=\regexp{_}]}}}
%
\begin{document}%
% Full title …
\edef\fulltitle{\the\inputlineno} \title{\large
Titolo Articolo in Italiano
\\
\bigskip
English Title}
%
% Inserting footnotes with symbolic marks (local definition): \usepackage[]{footmisc}
%
\makeatletter
\long\def\symbolfootnote[#1]#2{
\begingroup
\renewcommand\thefootnote{\fnsymbol{footnote}}
\footnote[#1]{#2}
%\footnotetext[#1]{#2}
\endgroup}
\makeatother
%
% Footnotes
%
%\begin{enumerate}
% You can insert a dedication here as a footnote ([0] -> no symbol)
\edef\dedication{\the\inputlineno} \symbolfootnote[0]{}
% Info about a deceased author
%\end{enumerate}
%
% Authors
%
\edef\authorslist{\the\inputlineno} \author{\small\textsc Autore 1\phantom{,}$^{\hyperref[A]{a}}$ $^{\hyperref[star]{\ast}}$ and Autore 2\phantom{,}$^{\hyperref{b}}$}
%
% Abstract
\edef\theabstract{\the\inputlineno} \begin{abstract}
Testo italiano\bigskip
\bigskip
% Abstract inglese
\noindent{\sc abstract} English text
%
\end{abstract}
%
\maketitle
%
% The following command eliminates any headers and footers (including the centered page number) in the first page of the document.
\thispagestyle{empty}
%
% Sorting in-text citations according to the {ynt} scheme (different from that used in the bibliography)
\assignrefcontextentries[]{*}
%
% Numbering lines to facilitate proofreading
%
\edef\linenumbering{\the\inputlineno} \linenumbers
%
\edef\begintext{\the\inputlineno} % Text starts here …
%
\section{Titolo sezione}
Testo di prova.
\\
Bla bla.
\\
Il termine {\bf PAROLA ARABA} {\it Muhandis} (ingegnere)\end{document}
`Il sorgente l’ho caricato qui così da scaricarlo
- Devi essere connesso per rispondere a questo topic.