- Questo topic ha 18 risposte, 5 partecipanti ed è stato aggiornato l'ultima volta 14 anni, 9 mesi fa da .
-
Topic
-
Ciao a tutti!Come avevo scritto in un post precedente, debbo scrivere un articoletto su matematica e musica e mi serve scrivere alcune figure musicali nel testo. Visto che con Lilypond sembra essere impossibile e visto che per ora lo spartito è piuttosto semplice, avevo pensato di usare MusixTeX. Ho però avuto una bruttissima sorpresa quando ho provato a compilare il file preliminare. Posto qui di seguito il preambolo:
`
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = pdflatex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,fleqn]{article}\usepackage[a4paper]{geometry}
\geometry{top=3.5cm,
bottom=3.5cm,
left=2.75cm,
right=2.75cm,
heightrounded,
bindingoffset=3mm}
\parindent=0pt%— Testo
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}%— Pacchetti utili
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{through}
\usetikzlibrary{matrix}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations,decorations.pathmorphing}
\usetikzlibrary{intersections}
\usepackage{epigraph}
\usepackage{enumitem}
\usepackage{array}
\usepackage{booktabs}
\usepackage{subfig}
\usepackage[hang]{footmisc}
\renewcommand{\footnotemargin}{14pt}
\renewcommand{\hangfootparindent}{\footnotemargin}
\usepackage{caption}
\captionsetup{font=footnotesize,format=hang,
labelfont={bf},labelsep=period}
\usepackage{multicol}% Footnote bellino
\makeatletter
\renewcommand*\@makefnmark
{\hbox{\@textsuperscript{%
\tiny\normalfont\@thefnmark)}}}
\makeatother%— Matematica
\usepackage{amsmath,amssymb,amsthm}
\let\bm\boldsymbol% Personalizzazione paragrafi
\usepackage{titlesec}\titleformat{\section}[hang]
{\filright\small\sffamily}
{\thesection.\enskip}{0pt}{\uppercase\bgroup}[\egroup]
\titlespacing{\section}{0pt}
{2pc plus 2pt minus 2pt}
{1.5pc plus 2pt minus 2pt}\titleformat{\subsection}[hang]
{\filright\small\sffamily\itshape}
{\thesubsection\quad}{0pt}{}
\titlespacing{\subsection}{0pt}
{2pc plus 2pt minus 2pt}
{1.5pc plus 2pt minus 2pt}\numberwithin{equation}{section}
% Teoremi
\newtheoremstyle{theo}{6pt}{6pt}
{\slshape}{}{\bfseries}{\enskip}{2pt}{}
\newtheoremstyle{defin}{6pt}{6pt}
{}{}{\bfseries}{\enskip}{2pt}{}
\newtheoremstyle{osserv}{6pt}{6pt}
{}{}{\bfseries}{\enskip}{2pt}{}
\newtheoremstyle{exer}{6pt}{6pt}
{}{}{\scshape}{\enskip}{2pt}{}\theoremstyle{theo}
\newtheorem{lemma}{Lemma}[section]
\newtheorem{teorema}{Teorema}[section]
\newtheorem{proposizione}{Proposizione}[section]
\newtheorem{corollario}{Corollario}[section]
\theoremstyle{defin}
\newtheorem{definizione}{Definizione}[section]
\theoremstyle{osserv}
\newtheorem{osservazione}{Osservazione}[section]
\theoremstyle{exer}
\newtheorem{esempio}{Esempio}[section]
\newtheorem{esercizio}{}[section]\newenvironment{prova}[1][Dimostrazione]
{\begin{proof}[\sffamily\bfseries #1]}
{\end{proof}}%— Definizioni personali
% Dangerous brand
\newcommand*{\danger}{%
\noindent\raisebox{-0.8\baselineskip}%
[0pt][0pt]{\llap{%
\tikz[x=.1\baselineskip,%
y=.1\baselineskip,line width=3pt]%
\draw[rounded corners]
(12,0) — (0,0) — (12,10) — (0,10);%
\enspace}}}% Varie
\let\implies\rightarrow \let\iff\leftrightarrow
\let\tensor\otimes \let\de\partial
\renewcommand{\d}{\mathop{}\!\mathrm{d}}% Musica
\usepackage{musixtex}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%— Inizio del documento:
`Mi è arrivato infatti il seguente orribile errore:
`
/usr/local/texlive/2011/texmf-dist/tex/generic/musixtex/musixtex.tex:1844: No r
oom for a new \dimen .
\ch@ck …\else \errmessage {No room for a new #3}
\fi
l.1844 \newdimen\altplancher
`e non capisco cosa sia successo e perché la cosa non funzioni! Dapprima volevo compilare con XeLaTeX, ma poi ho preferito intanto usare pdfLaTeX, ma entrambi mi danno questo mostruoso errore e non so che pesci pigliare. Qualcuno mi potrebbe aiutare???
Ciao,
Andrea
- Devi essere connesso per rispondere a questo topic.