Re: [XeTeX] sizefeature in newfontfamily

2017-04-14 Thread Melroch
Doesn't it depend on how those notes are displayed, e.g. inline,
interlinear, margin note, footnote etc.? François didn't  say whether they
are in their own paragraphs or not.

Den 14 apr 2017 12:29 skrev "Ulrike Fischer" :

Am Fri, 14 Apr 2017 11:06:22 +0200 schrieb François Patte:

> The font size is ok for my notes, but the interlineage is too big if
> notes are on two lines. Is there a feature in SizeFeatures description
> to adapt the interlineage to the chosen font size?

Not really. The baselineskip is a property of the paragraph, what
matters is its value at the end of the paragraph, so it doesn't make
much sense to change it along with a font as you don't know if the
font will still be active when the paragraph ends.

You could define a high-level font command that changes
\baselinestretch, but imho it would be better to add this to your
special command:



\documentclass[]{article}

\begin{document}
\newcommand\mynotes{\parbox{5cm}{\renewcommand\baselinestretch{1.5}\
selectfont
abc\\abc\\abc}}

abc\\abc\\abc

\mynotes

\end{document}

--
Ulrike Fischer
http://www.troubleshooting-tex.de/



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] sizefeature in newfontfamily

2017-04-14 Thread Ulrike Fischer
Am Fri, 14 Apr 2017 11:06:22 +0200 schrieb François Patte:

> The font size is ok for my notes, but the interlineage is too big if
> notes are on two lines. Is there a feature in SizeFeatures description
> to adapt the interlineage to the chosen font size?

Not really. The baselineskip is a property of the paragraph, what
matters is its value at the end of the paragraph, so it doesn't make
much sense to change it along with a font as you don't know if the
font will still be active when the paragraph ends. 

You could define a high-level font command that changes
\baselinestretch, but imho it would be better to add this to your
special command:



\documentclass[]{article}

\begin{document}
\newcommand\mynotes{\parbox{5cm}{\renewcommand\baselinestretch{1.5}\selectfont
abc\\abc\\abc}}

abc\\abc\\abc

\mynotes

\end{document}

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] sizefeature in newfontfamily

2017-04-14 Thread Zdenek Wagner
I do not believe so. With SizeFeatures you instruct fontspec which size(s)
should be used but the TeX paragraph builder will still obey \baselineskip
and \lineskiplimit.


Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz

2017-04-14 11:06 GMT+02:00 François Patte <
francois.pa...@mi.parisdescartes.fr>:

> Bonjour,
>
> I want to create a command for special notes in roman in a devanagari text.
>
> So I created this command:
>
> \newfontfamily{\notesanskritrom}[%
> SizeFeatures={
>   Size=7,%
>   }
> ]{FreeSerif}%
>
> The font size is ok for my notes, but the interlineage is too big if
> notes are on two lines. Is there a feature in SizeFeatures description
> to adapt the interlineage to the chosen font size?
>
> Thank you.
> --
> François Patte
> UFR de mathématiques et informatique
> Laboratoire CNRS MAP5, UMR 8145
> Université Paris Descartes
> 45, rue des Saints Pères
> F-75270 Paris Cedex 06
> Tél. +33 (0)1 8394 5849
> http://www.math-info.univ-paris5.fr/~patte
>
>
>
>
> --
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
>
>


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] sizefeature in newfontfamily

2017-04-14 Thread François Patte
Bonjour,

I want to create a command for special notes in roman in a devanagari text.

So I created this command:

\newfontfamily{\notesanskritrom}[%
SizeFeatures={
  Size=7,%
  }
]{FreeSerif}%

The font size is ok for my notes, but the interlineage is too big if
notes are on two lines. Is there a feature in SizeFeatures description
to adapt the interlineage to the chosen font size?

Thank you.
-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte



signature.asc
Description: OpenPGP digital signature


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex