Randausgleich Verweisziffern, Microtype

Fragen und Probleme, die nicht den obigen Kategorien zugeordnet werden können


Nescio_Nomen
Forum-Newbie
Forum-Newbie
Beiträge: 6
Registriert: Fr 1. Mär 2019, 05:15

Randausgleich Verweisziffern, Microtype

Beitrag von Nescio_Nomen »

Aufgrund meines mangelnden Verständnisses von microtype habe ich ein Problem mit dem optischen Randausgleich. In diesem Beispiel funktioniert der Randausgleich wie gewünscht.

Ohne Mediävalziffern:
\documentclass{article}

\usepackage{geometry}
\geometry{a6paper,showframe}
\usepackage{fontspec}
 
\setmainfont{EB Garamond}
 
% Beispiel adaptiert von https://tex.stackexchange.com/questions/25036/microtype-package-v-2-5-beta-06-and-footnote-protrusion

\usepackage[protrusion=true,factor=2000]{microtype}

 
\makeatletter            

\SetProtrusion[context=footnote]%
    {font=*/*/*/*/scriptsize}%  
    {1={,650},%
    2={,400},%
    3={,400},%
    4={,900},%
    5={,400},%
    6={,400},%
    7={,500},%
    8={,400},%
    9={,400},%
    0={,400}}

\newcommand*\new@makefnmark{\hbox{\@textsuperscript{\normalfont
    \microtypecontext{protrusion=footnote}\@thefnmark}}}
\renewcommand*\@footnotemark{%
    \leavevmode \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
    \new@makefnmark \ifhmode\spacefactor\@x@sf\fi \relax}

\makeatother

%
\setcounter{footnote}{17}

\begin{document}

Here's some text to show the behaviour of\footnote{A footnote} footnote\footnote{Another footnote} marker at\footnote{Yet another footnote.}
the end of a line, which disappears\footnote{Be 123  Li Europan lingues es membres del sam familie. Vor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi 456  traductores. At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles. Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari quam ti del coalescent lingues. Li nov lingua franca va esser plu simplic e regulari quam li existent Europan lingues. It va esser 675890 tam simplic quam Occidental in fact, it va esser Occidental. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es.Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores. At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles.} when the code for setting microtypecontext is used in fnmark redefinition.

\end{document}
Ich möchte im Text aber Mediävalziffern verwenden. Tue ich das mit fontspec, achte Zeile im Bsp. unten, funktioniert der Randausgleich für die Verweisziffern nicht mehr. Kann mir jemand weiterhelfen? Aus dem microtype-Manual werde ich leider nicht schlau. Das Log-File sagt mir ebenfalls nichts.

Mit Mediävalziffern:
\documentclass{article}

\usepackage{geometry}
\geometry{a6paper,showframe}
\usepackage{fontspec}
 
 
\setmainfont[Numbers=OldStyle]{EB Garamond}

% Beispiel adaptiert von https://tex.stackexchange.com/questions/25036/microtype-package-v-2-5-beta-06-and-footnote-protrusion

\usepackage[protrusion=true,factor=3000]{microtype}

 
\makeatletter            

\SetProtrusion[context=footnote]%
    {font=*/*/*/*/scriptsize}%  
    {1={,650},%
    2={,400},%
    3={,400},%
    4={,900},%
    5={,400},%
    6={,400},%
    7={,500},%
    8={,400},%
    9={,400},%
    0={,400}}

\newcommand*\new@makefnmark{\hbox{\@textsuperscript{\normalfont
    \microtypecontext{protrusion=footnote}\@thefnmark}}}
\renewcommand*\@footnotemark{%
    \leavevmode \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
    \new@makefnmark \ifhmode\spacefactor\@x@sf\fi \relax}

\makeatother

%
\setcounter{footnote}{17}

\begin{document}

Here's some text to show the behaviour of\footnote{A footnote} footnote\footnote{Another footnote} marker at\footnote{Yet another footnote.}
the end of a line, which disappears\footnote{Be 123  Li Europan lingues es membres del sam familie. Vor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi 456  traductores. At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles. Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari quam ti del coalescent lingues. Li nov lingua franca va esser plu simplic e regulari quam li existent Europan lingues. It va esser 675890 tam simplic quam Occidental in fact, it va esser Occidental. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es.Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores. At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles.} when the code for setting microtypecontext is used in fnmark redefinition.

\end{document}

Nescio_Nomen
Forum-Newbie
Forum-Newbie
Beiträge: 6
Registriert: Fr 1. Mär 2019, 05:15

Re: Randausgleich Verweisziffern, Microtype

Beitrag von Nescio_Nomen »

Nachtrag: Auf meinem Rechner kompiliere ich mit LuaLaTeX.

Antworten