E dopo il Minion…il DIN!!

  • Creatore
    Topic
  • #69127
    Up
    0
    Down
    ::


    Ciao a tutti, dopo aver risolto il nodoso problema del minion e del myriad mi hanno complicato la vita…ora vogliono il font DIN insieme al minion. Non so che fare… qualcuno sa dove posso trovare le metriche o come generarle? Si accettano anche consigli per l’utilizzo di xeLatex…a patto che mi si dica DOVE COME E QUANDO… insomma… impresa impossibile vero?

    Il problema è che devo usare il font minion per il testo e din per \sffamily.

    Vi prego chiunque sapesse qualcosa, o abbia semplicemente un’indole da salvatore dell’umanità di fare un’opera buona…e aiutarmi

    Grazie

    Silvia disperata

Visualizzazione 0 filoni di risposte
  • Autore
    Risposte
    • #69128
      Up
      0
      Down
      ::


      Io utilizzo sempre XeLaTeX, perché mi piace cambiare spesso i font. La guida di Enrico Gregorio è eccellente per cominciare; io posso soltanto postarti a seguire uno dei miei preamboli in XeLaTeX in maniera da permetterti di fare qualche confronto col tuo.

      Spero di averti aiutato almeno un pochino.

      Andrea

      `
      % !TEX encoding = UTF-8 Unicode
      % !TEX TS-program = XeLaTeX

      \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[dvipsnames,svgnames]{xcolor}
      \usepackage{fontspec}
      %\defaultfontfeatures{Color=Blue}
      \setmainfont[Ligatures=TeX,
      SlantedFont={* Slanted},
      SmallCapsFont={Latin Modern Roman Caps}]
      {Latin Modern Roman}
      \setsansfont[Ligatures=TeX]
      {Latin Modern Sans}
      \setmonofont[Ligatures=TeX,
      SlantedFont={* Slanted}]
      {Latin Modern Mono}
      \newfontfamily{\frakfont}
      {MarsFraktur OT}
      \newfontfamily{\greekfont}
      [StylisticSet=11,Ligatures={TeX}]
      {Theano Didot}
      %\everymath{\color{Blue}}\everydisplay{\color{Blue}}

      \usepackage[babelshorthands]{polyglossia}
      \setmainlanguage{italian}
      \setotherlanguage{german}
      \setotherlanguage[variant=polytonic]{greek}

      %— Pacchetti utili
      \usepackage{tikz}
      \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}

      % Footnote bellino
      \makeatletter
      \renewcommand*\@makefnmark
      {\hbox{\@textsuperscript{%
      \tiny\normalfont\@thefnmark)}}}
      \makeatother

      % Frame
      \usepackage[framemethod=TikZ]{mdframed}

      %— Matematica
      \usepackage{amsmath,amssymb,amsthm}
      \newcommand{\bm}{\boldsymbol}

      % Personalizzazione paragrafi
      \usepackage{titlesec}

      \titleformat{\section}[hang]
      {\filright\bfseries}
      {\thesection.\enskip}{0pt}{}[]
      \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}{8pt}{8pt}
      {\slshape}{}{\bfseries}{\enskip}{2pt}{}
      \newtheoremstyle{defin}{8pt}{8pt}
      {}{}{\bfseries}{\enskip}{2pt}{}
      \newtheoremstyle{osserv}{8pt}{8pt}
      {}{}{\bfseries}{\enskip}{2pt}{}
      \newtheoremstyle{eserc}{8pt}{8pt}
      {}{}{\scshape}{\enskip}{2pt}{}
      \newtheoremstyle{exempla}{8pt}{8pt}
      {}{}{\scshape}{}{0pt}{}

      \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{eserc}
      \newtheorem{esempio}{Esempio}[section]
      \newtheorem{esercizio}{}[section]
      \theoremstyle{exempla}
      \newtheorem{Exempla}[esempio]{Esempi}

      \newenvironment{esempi}
      {\begin{Exempla}\mbox{}\\[-\baselineskip]
      \begin{enumerate}[label=\arabic*),partopsep=0pt,topsep=0pt]}
      {\end{enumerate}\end{Exempla}}

      \newenvironment{prova}[1][Dimostrazione]
      {\begin{proof}[\scshape #1]}
      {\end{proof}}

      %— Definizioni personali

      % Varie
      \renewcommand{\implies}{\Rightarrow}
      \renewcommand{\iff}{\Leftrightarrow}
      \newcommand{\tensor}{\otimes}
      \newcommand{\de}{\partial}
      \renewcommand{\d}{\mathop{}\!\mathrm{d}}

      \DeclareMathOperator{\id}{\textsl{id}}
      \DeclareMathOperator{\void}{Ø}

      % Abbreviazioni
      \renewcommand{\emph}[1]{\textbf{\itshape #1}}

      %%%%%%%%%%%%%%%%%%%%%%%%%
      %%%%%%%%%%%%%%%%%%%%%%%%%
      %%%%%%%%%%%%%%%%%%%%%%%%%

      %— Inizio del documento:

      \begin{document}

      \end{document}
      `

Visualizzazione 0 filoni di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top