- Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 15 anni, 5 mesi fa da .
-
Topic
-
Ragazzi, è una settimana che cerco di risolvere un problema. Ricorro a voi come ultima spiaggia! 🙁Andiamo con ordine.
L’errore è il seguente:! Undefined control sequence.
\Cfootfmt …1|#2\rbracket }\enskip \notetextfont
#3\penalty -10\hskip 3em p…
l.239 \pendRipetuto più e più volte nel log, sostituendo volta per volta \Cfootfmt con \Afootfmt e \Bfootfmt, a seconda della circostanza.
La cosa strana è che Texmaker, nonostante gli errori, riesce a produrre il pdf, anche se temo che questi errori facciano rallentare di tanto la compilazione.
Al contrario, Geany e Texwork e forse anche Lyx (dico “forse”, perché in verità questo programma non riesco a capirlo), falliscono del tutto.
Ecco il mio preambolo con un abbozzo di testo (scusate la lunghezza):
% !TEX encoding = UTF-8
% !TEX program = xelatex
% !TEX spellcheck = grc
\documentclass[11pt,a4paper,twoside,openany]{book}
\usepackage{geometry} %margini
%\usepackage{setspace} %% PER MODIFICARE L’INTERLINEA
% \onehalfspacing %% interlinea 1,5%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\author{Domenico Cufalo}
\title{SCHOLIA IN PLATONEM}
\date{}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xltxtra} %% CARICA fixltx2e, etex, xunicode, fontspec
%\usepackage{fontspec} %% CARICA I FONTS
%\usepackage{xunicode} %% The package provides access to latin accents and many other characters in the Unicode lower plane.
\setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}
%\setmainfont[Mapping=tex-text,Numbers=OldStyle]{Doc}\let\super=\textsuperscript
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{polyglossia}
\setmainlanguage[variant=polytonic]{greek}
\setotherlanguage{latin}\XeTeXinputnormalization=1
\newXeTeXintercharclass\combiningchar
\XeTeXcharclass”0301=\combiningchar
\XeTeXinterchartoks 0 \combiningchar = {\penalty10000}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{ledmac}\lineation{page}
\linenummargin{inner} %% Definisce il margine per i numeri di linea
\sidenotemargin{outer} %% Definisce il margine per i marginalia%\renewcommand*{\notefontsetup}{\footnotesize} %%specifica il font per tutte le note
\renewcommand*{\notenumfont}{\footnotesize} %%specifica il font per i numeri di linea nelle note
%\newcommand{\notetextfont}{\footnotesize}
\renewcommand*{\numlabfont}{\normalfont\scriptsize} %%specifica il font per i numeri di linea in margine%% DECOMMENTANE UNO PER VISUALIZZARE IL SEPARATORE
%\let\parallelirule=\relax
%\let\testimoniarule=\relax
%\let\lectionesrule=\relax%%% SPAZIO LIBERO SOPRA LE RIGHE SEPARATRICI
\addtolength{\skip\Afootins}{1.5mm}
%\addtolength{\skip\Bfootins}{1.5mm}
%\addtolength{\skip\Cfootins}{1.5mm}% SPAZIO BIANCO FRA TESTO ED APPARATO XXXXX CONTROLLARE DOCUMENTAZIONE SETLENGHT
%\setlength{\skip\Afootins}{5mm}% SPAZIO BIANCO FRA SINGOLE NOTE D’APPARATO
\interparanoteglue{2em plus .4em minus .4em}
%\renewcommand{\interparanoteglue}{2em plus .4em minus .4em}
%\renewcommand{\interparanoteglue}{2em plus.5em minus.1em}\let\paralleli=\Afootnote
\let\testimonia=\Bfootnote
\let\lectiones=\Cfootnote%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Control layout of itemize, enumerate, description
\usepackage{enumitem}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TITLES
\usepackage{titlesec}
\titleformat*{\subsection}{\itshape}
\titleformat{\chapter}[display]{\center\LARGE}{\chaptertitlename\ \thechapter}{20pt}{\Large\MakeUppercase}
\setcounter{secnumdepth}{-2}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% HEADERS AND FOOTERS CUSTOMIZATION
\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\fancyfoot{}
\setlength{\headheight}{14.5pt}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\footnotesize\itshape\nouppercase{\rightmark}}
\fancyhead[RE]{\footnotesize\itshape{Scholia in Platonem}}
%\fancyhead[RE]{\footnotesize\bfseries\nouppercase{\leftmark}}\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{makeidx}
\makeindex%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PER EVITARE CHE DUE NOTE DELLA STESSA LINEA ABBIANO IL NUMERO DI RIGA
\makeatletter
%\newcommand*{\previous@C@number}{-1}
%\newcommand*{\previous@page}{-1}
\renewcommand*{\para@vfootnote}[2]{%
\insert\csname #1footins\endcsname
\bgroup
\notefontsetup
\footsplitskips
\l@dparsefootspec #2\ledplinenumtrue %%%% FIRST ADDED LINE %%%%%%%%%%%%%%
\ifnum\@nameuse{previous@#1@number}=\l@dparsedstartline\relax
\ledplinenumfalse
\fi
\ifnum\previous@page=\l@dparsedstartpage\relax
\else \ledplinenumtrue \fi
\ifnum\l@dparsedstartline=\l@dparsedendline\relax
\else \ledplinenumtrue \fi
\expandafter\xdef\csname previous@#1@number\endcsname{\l@dparsedstartline}
\xdef\previous@page{\l@dparsedstartpage} %%%% LAST ADDDED LINE %%%%%%%%%%
\setbox0=\vbox{\hsize=\maxdimen
\noindent\csname #1footfmt\endcsname#2}%
\setbox0=\hbox{\unvxh0}%
\dp0=0pt
\ht0=\csname #1footfudgefactor\endcsname\wd0
\box0
\penalty0
\egroup}\newcommand*{\previous@A@number}{-1}
\newcommand*{\previous@B@number}{-1}
\newcommand*{\previous@C@number}{-1}
\newcommand*{\previous@page}{-1}\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PER TOGLIERE NUMERO DI RIGA DA SINGOLE NOTE (DEFINIZIONE DI \killnumber)
\makeatletter
\def\printlines#1|#2|#3|#4|#5|#6|#7|{%
\begingroup
\ifnum#2=-1 \ledplinenumfalse \fi %% LINEA AGGIUNTA
\setprintlines{#1}{#2}{#3}{#4}{#5}{#6}%
\ifl@d@pnum #1\fullstop\fi
\ifledplinenum \linenumrep{#2}\else \symplinenum\fi
\ifl@d@ssub \fullstop \sublinenumrep{#3}\fi
\ifl@d@dash \endashchar\fi
\ifl@d@pnum #4\fullstop\fi
\ifl@d@elin \linenumrep{#5}\fi
\ifl@d@esl \ifl@d@elin \fullstop\fi \sublinenumrep{#6}\fi
\endgroup}\newcommand*{\killnumber}{\linenum{|-1|||-1||}}
\makeatother%% DEFINIZIONE DEI COMANDI \A[BC]footfmt
\makeatletter
\renewcommand{\Afootfmt}[3]{%
\ledsetnormalparstuff
{\notenumfont\printlines#1|}\strut\enspace
{\select@lemmafont#1|#2\rbracket}\enskip#3\strut\par}\renewcommand{\Bfootfmt}[3]{%
\ledsetnormalparstuff
{\notenumfont\printlines#1|}\strut\enspace
{\select@lemmafont#1|#2\rbracket}\enskip#3\strut\par}\renewcommand{\Cfootfmt}[3]{%
\ledsetnormalparstuff
{\notenumfont\printlines#1|}\strut\enspace
{\select@lemmafont#1|#2\rbracket}\enskip#3\strut\par}%% DEFINIZIONE DEL COMANDO \abb
\newcommand*{\nobrak}{\textnormal{}}
\newcommand{\abb}[1]{#1\let\rbracket\nobrak\relax}
\newcommand{\morenoexpands}{%
\let\abb=0%
}
\makeatother%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PER RIMUOVERE INUTILE SPAZIO BIANCO DOPO OGNI NUMERO DI LINEA SOPPRESSO
\makeatletter
\newcommand{\Aparafootfmt}[3]{%
\ledsetnormalparstuff
\scriptsize
\notenumfont\printlines#1|%\enspace %% NUOVO DA QUI
\ifledplinenum
% \enspace%
\else
{\hskip 0em plus 0em minus 0em}%
\fi %% FINO A QUI
{\select@lemmafont#1|#2\rbracket}\enskip %% NOTA IL “}”
\notetextfont
#3\penalty-10}%\hskip 2em plus .4em minus .4em\relax}\newcommand{\Bparafootfmt}[3]{%
\ledsetnormalparstuff
\scriptsize
\notenumfont\printlines#1|%\enspace %% NUOVO DA QUI
\ifledplinenum
% \enspace%
\else
{\hskip 0em plus 0em minus 0em}%
\fi % FINO A QUI
{\select@lemmafont#1|#2\rbracket}\enskip
\notetextfont
#3\penalty-10}%\hskip 2em plus .4em minus .4em\relax}\newcommand{\Cparafootfmt}[3]{%
\ledsetnormalparstuff
\scriptsize
\notenumfont\printlines#1|%\enspace %% NUOVO DA QUI
\ifledplinenum
\enspace
\else
{\hskip 0em plus .5em minus .5em}
\fi %% FINO A QUI
{\select@lemmafont#1|#2\rbracket}\enskip
\notetextfont
#3\penalty-10\hskip 3em plus .4em minus .4em\relax}\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\footparagraph{A}
\footparagraph{B}
\footparagraph{C}\let\Afootfmt=\Aparafootfmt
\let\Bfootfmt=\Bparafootfmt
\let\Cfootfmt=\Cparafootfmt%%%% XXX STUDIARE
%\emergencystretch40pt%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\beginnumbering
\pstart
Prova ἄνδρα μοι ἔννεπε Μοῦσα \edtext{πολύτροπον}{\lectiones{πολύτροπον}}
\pend
\endnumbering
\end{document}Grazie anticipate,
Domenico
- Devi essere connesso per rispondere a questo topic.