mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Support for the libertine font (#3881)
This commit is contained in:
parent
5464189898
commit
37137f43f4
@ -11,6 +11,10 @@ adjustments are made to tex2lyx and bugs are fixed in lyx2lyx.
|
||||
|
||||
-----------------------
|
||||
|
||||
2012-08-17 Jürgen Spitzmüller <spitz@lyx.org>
|
||||
* Format incremented to 434
|
||||
Support for the libertine LaTeX font.
|
||||
|
||||
2012-06-22 Uwe Stöhr <uwestoehr@web.de>
|
||||
* Format incremented to 433
|
||||
switch the Armenian language support from ArmTeX to XeTeX/polyglossia
|
||||
|
@ -359,6 +359,7 @@
|
||||
\TestPackage{eco}
|
||||
\TestPackage{feyn}
|
||||
\TestPackage{fourier}
|
||||
\TestPackage{libertine}
|
||||
\TestPackage{lmodern}
|
||||
\TestPackage{luximono}
|
||||
\TestPackage{tipa}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#LyX 2.1 created this file. For more info see http://www.lyx.org/
|
||||
\lyxformat 413
|
||||
\lyxformat 433
|
||||
\begin_document
|
||||
\begin_header
|
||||
\textclass article
|
||||
@ -28,15 +28,21 @@
|
||||
\use_hyperref false
|
||||
\papersize default
|
||||
\use_geometry false
|
||||
\use_amsmath 0
|
||||
\use_esint 0
|
||||
\use_mathdots 0
|
||||
\use_mhchem 0
|
||||
\use_package amsmath 0
|
||||
\use_package amssymb 0
|
||||
\use_package esint 0
|
||||
\use_package mathdots 0
|
||||
\use_package mathtools 0
|
||||
\use_package mhchem 0
|
||||
\use_package undertilde 0
|
||||
\cite_engine basic
|
||||
\cite_engine_type numerical
|
||||
\biblio_style plain
|
||||
\use_bibtopic false
|
||||
\use_indices false
|
||||
\paperorientation portrait
|
||||
\suppress_date false
|
||||
\justification true
|
||||
\use_refstyle 0
|
||||
\index Index
|
||||
\shortcut idx
|
||||
@ -582,6 +588,35 @@ luximono
|
||||
package provides support for the monospaced Luxida Mono font.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
Libertine
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Found:
|
||||
\begin_inset Info
|
||||
type "package"
|
||||
arg "libertine"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
CTAN:
|
||||
\family sans
|
||||
fonts/libertine-legacy/
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Notes: The
|
||||
\family sans
|
||||
libertine(-legacy)
|
||||
\family default
|
||||
package provides support for the Libertine roman and the Biolinum sans
|
||||
serif families of fonts.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
psnfss
|
||||
\end_layout
|
||||
|
@ -101,6 +101,13 @@ Font cmr
|
||||
OsfPackage eco
|
||||
EndFont
|
||||
|
||||
Font libertine
|
||||
GuiName "Libertine"
|
||||
Family rm
|
||||
OsfOption osf
|
||||
Package libertine
|
||||
EndFont
|
||||
|
||||
Font lmodern
|
||||
GuiName "Latin Modern Roman"
|
||||
Family rm
|
||||
|
@ -825,6 +825,25 @@ def revert_armenian(document):
|
||||
document.header[i] = "\\use_non_tex_fonts false"
|
||||
|
||||
|
||||
def revert_libertine(document):
|
||||
" Revert native libertine font definition to LaTeX "
|
||||
|
||||
if find_token(document.header, "\\use_non_tex_fonts false", 0) != -1:
|
||||
i = find_token(document.header, "\\font_roman libertine", 0)
|
||||
if i != -1:
|
||||
osf = False
|
||||
j = find_token(document.header, "\\font_osf true", 0)
|
||||
if j != -1:
|
||||
osf = True
|
||||
preamble = "\\usepackage"
|
||||
if osf:
|
||||
preamble += "[osf]"
|
||||
preamble += "{libertine}"
|
||||
add_to_preamble(document, [preamble])
|
||||
document.header[i] = "\\font_roman default"
|
||||
document.header[j] = "\\font_osf false"
|
||||
|
||||
|
||||
##
|
||||
# Conversion hub
|
||||
#
|
||||
@ -850,10 +869,12 @@ convert = [
|
||||
[430, [convert_listoflistings]],
|
||||
[431, [convert_use_amssymb]],
|
||||
[432, []],
|
||||
[433, [convert_armenian]]
|
||||
[433, [convert_armenian]],
|
||||
[434, []]
|
||||
]
|
||||
|
||||
revert = [
|
||||
[433, [revert_libertine]],
|
||||
[432, [revert_armenian]],
|
||||
[431, [revert_languages, revert_ancientgreek]],
|
||||
[430, [revert_use_amssymb]],
|
||||
|
@ -30,8 +30,8 @@ extern char const * const lyx_version_info;
|
||||
|
||||
// Do not remove the comment below, so we get merge conflict in
|
||||
// independent branches. Instead add your own.
|
||||
#define LYX_FORMAT_LYX 433 // uwestoehr: Armenian support via polyglossia/XeTeX
|
||||
#define LYX_FORMAT_TEX2LYX 433 // uwestoehr: Armenian support via polyglossia/XeTeX
|
||||
#define LYX_FORMAT_LYX 434 // spitz: support for the libertine font
|
||||
#define LYX_FORMAT_TEX2LYX 434 // spitz: support for the libertine font
|
||||
|
||||
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
|
||||
#ifndef _MSC_VER
|
||||
|
Loading…
Reference in New Issue
Block a user