ivan” post=66424Buone notizie 😀
Confermo alcune cose che ha già detto Tommaso.
L’editor consente la ricerca diretta inversa (anche se non con semplice ctrl+click); e permette di cercare e sostituire su tutti i file del progetto!
Quest’ultimo punto lo rende un editor moooolto interessante.Ciao
Ivan
Questo è il contenuto del file xelatex dopo le modifiche che hai suggerito:
`#!/bin/sh
#
# This is a xelatex engine for TeXnicle.
#
# It runs xelatex the desired number of times, optionally running bibtex after the first run.
#
#
#
# xelatex.engine
# TeXnicle
if [ $# -lt 2 ]
then
echo “usage:
exit
fi
# Executable values
PATH=$PATH:/usr/texbin/
ENGINE=xelatex
BIBTEX=/usr/texbin/bibtex
# Process inputs.
# TeXnicle passes the file to be processed as the first input to this
# script and the working directory as the second input. Other options follow.
mainfile=$1
outputDir=$2
nCompile=$3
doBibtex=$4
doPS2PDF=$5
echo “****************************”
echo “*** Compiling $mainfile”
echo “*** Output dir $outputDir”
echo “*** Ncompile $nCompile”
echo “*** Do bibtex $doBibtex”
echo “****************************”
# Go to the working directory
cd “$outputDir”
# Do the correct number of typesetting runs
count=1
while [ $count -le $nCompile ]
do
echo ” ”
echo “***————————————————————”
echo “*** Run $count…”
echo “***————————————————————”
$ENGINE -file-line-error -interaction=nonstopmode “$mainfile”
# if this is after the first run, run bibtex if requested
if [ $count -eq 1 ]
then
if [ $doBibtex -eq 1 ]
then
echo “*** Running bibtex…”
$BIBTEX “$mainfile”
fi
fi
count=$(( $count + 1 ))
done
echo “*** xelatex.engine has completed.”
# END`
Ma quando compilo un documento semplice come:
`\documentclass[a4paper]{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Sabon LT Std}
\usepackage{polyglossia}
\setmainlanguage{italian}
\usepackage{microtype}
\usepackage{geometry}
\geometry{top=3cm,bottom=3cm,right=3cm,left=3cm}
\addto\captionsitalian{\renewcommand{\abstractname}{Avvertenza}}
\newcommand{\omissis}{[\dots\unkern]}
\begin{document}
\author{TG}
\title{Esercizi di scrittura}
\maketitle
\begin{abstract}
In questa dispensa si raccolgono alcuni testi particolarmente sconnessi\dots
\end{abstract}
\section{L'attrazione dei personaggi verso ciò che li minaccia}
\begin{enumerate}
\item Un'attrazione inspiegabile verso quello che non si puo' spiegare, anche se ne si ha paura. \omissis{}
\end{enumerate}
\end{document}`
ottengo:
`Compiling main file:/users/tommasogordini/Documents/LaTeX/TeX_files/scrittura
Compiling with /Users/tommasogordini/Library/Application Support/TeXnicle/engines/pdflatex.engine
****************************
*** Compiling scrittura
*** Output dir /users/tommasogordini/Documents/LaTeX/TeX_files
*** Ncompile 3
*** Do bibtex 1
****************************
***————————————————————
*** Run 1…
***————————————————————
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./scrittura.tex
LaTeX2e <2011/06/27>
Babel
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo
)
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3names.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty
)
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/tools/calc.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
)
)
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg))
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3basics.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3expan.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3tl.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3seq.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3int.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3quark.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prg.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3clist.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3token.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prop.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3msg.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3io.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3file.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3skip.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3keys.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3fp.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3box.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3coffins.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3color.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3luatex.sty
))
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty:38: Fatal fo
ntspec error: “cannot-use-pdftex”
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., “xelatex” or “lualatex”
! instead of plain “latex” or “pdflatex”.
!
! See the fontspec documentation for further information.
!
! For immediate help type H
!………………………………………..
l.38 }
) )
(see the transcript file for additional information)
No pages of output.
Transcript written on scrittura.log.
*** Running bibtex…
This is BibTeX, Version 0.99d (TeX Live 2011)
The top-level auxiliary file: scrittura.aux
I found no \citation commands—while reading file scrittura.aux
I found no \bibdata command—while reading file scrittura.aux
I found no \bibstyle command—while reading file scrittura.aux
(There were 3 error messages)
***————————————————————
*** Run 2…
***————————————————————
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./scrittura.tex
LaTeX2e <2011/06/27>
Babel
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo)
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3names.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg))
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3basics.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3expan.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3tl.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3seq.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3int.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3quark.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prg.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3clist.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3token.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prop.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3msg.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3io.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3file.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3skip.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3keys.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3fp.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3box.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3coffins.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3color.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3luatex.sty
))
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty:38: Fatal fo
ntspec error: “cannot-use-pdftex”
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., “xelatex” or “lualatex”
! instead of plain “latex” or “pdflatex”.
!
! See the fontspec documentation for further information.
!
! For immediate help type H
!………………………………………..
l.38 }
) )
(see the transcript file for additional information)
No pages of output.
Transcript written on scrittura.log.
***————————————————————
*** Run 3…
***————————————————————
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./scrittura.tex
LaTeX2e <2011/06/27>
Babel
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo)
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3names.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg))
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3basics.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3expan.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3tl.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3seq.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3int.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3quark.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prg.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3clist.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3token.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3prop.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3msg.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3io.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3file.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3skip.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3keys.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3fp.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3box.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3coffins.sty
)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3color.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3kernel/l3luatex.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty:38: Fatal fo
ntspec error: “cannot-use-pdftex”
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., “xelatex” or “lualatex”
! instead of plain “latex” or “pdflatex”.
!
! See the fontspec documentation for further information.
!
! For immediate help type H
!………………………………………..
l.38 }
) )
(see the transcript file for additional information)
No pages of output.
Transcript written on scrittura.log.
*** pdflatex.engine has completed.
Completed build of /users/tommasogordini/Documents/LaTeX/TeX_files/scrittura`
Che sbaglio? Nella cartella engines compare il file xelatex e nelle preferenze ho impostato xelatex come motore predefinito.
Ciao
Tommaso