mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Add support for the URW Classico (Optima) LaTeX font
Patch by Liviu Andronic
This commit is contained in:
parent
f7680c696d
commit
db1c1389e3
@ -12,6 +12,11 @@ adjustments are made to tex2lyx and bugs are fixed in lyx2lyx.
|
||||
-----------------------
|
||||
|
||||
|
||||
2012-10-20 Liviu Andronic <landronimirc@gmail.com>
|
||||
* Format incremented to 445: support for the URW Classico font,
|
||||
an Optima clone.
|
||||
- \renewcommand{\sffamily}{uop} > \font_sans uop
|
||||
|
||||
2012-09-25 Jürgen Spitzmüller <spitz@lyx.org>
|
||||
* Format incremented to 444: Support for the Biolinum LaTeX font.
|
||||
- \usepackage{biolinum-type1} > \font_sans biolinum
|
||||
|
@ -415,6 +415,7 @@
|
||||
\TestPackage{tgpagella}
|
||||
\TestPackage{tgschola}
|
||||
\TestPackage{tgtermes}
|
||||
\TestFont[uopr8a]{urwclassico}
|
||||
\TestPackage{tipa}
|
||||
\TestPackage{tipx}
|
||||
\TestPackage{tone}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#LyX 2.1 created this file. For more info see http://www.lyx.org/
|
||||
\lyxformat 444
|
||||
\lyxformat 445
|
||||
\begin_document
|
||||
\begin_header
|
||||
\textclass article
|
||||
@ -1807,6 +1807,35 @@ TXTT
|
||||
) is currently natively supported.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
URW Classico (Optima)
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Found:
|
||||
\begin_inset Info
|
||||
type "package"
|
||||
arg "urwclassico"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
CTAN:
|
||||
\family sans
|
||||
/fonts/urw/classico/
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Notes: URW Classico is a clone of the Optima typeface, a very well-known
|
||||
sans serif face designed by Hermann Zapf.
|
||||
The fonts are available for non-commercial use under the Aladdin Free Public
|
||||
License.
|
||||
Under TeX Live the font needs to be installed via the 'getnonfreefonts-sys'
|
||||
utility.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Section
|
||||
Standard LaTeX document classes
|
||||
\end_layout
|
||||
|
@ -440,6 +440,13 @@ Font tgheros
|
||||
Package tgheros
|
||||
EndFont
|
||||
|
||||
Font uop
|
||||
GuiName "URW Classico (Optima)"
|
||||
Family sf
|
||||
SwitchDefault 1
|
||||
Requires urwclassico
|
||||
EndFont
|
||||
|
||||
|
||||
#
|
||||
# MONOSPACED FONTS
|
||||
|
@ -1119,6 +1119,17 @@ def revert_biolinum(document):
|
||||
document.header[i] = "\\font_sans default"
|
||||
|
||||
|
||||
def revert_uop(document):
|
||||
" Revert native URW Classico (Optima) font definition to LaTeX "
|
||||
|
||||
if find_token(document.header, "\\use_non_tex_fonts false", 0) != -1:
|
||||
i = find_token(document.header, "\\font_sans uop", 0)
|
||||
if i != -1:
|
||||
preamble = "\\renewcommand{\\sfdefault}{uop}"
|
||||
add_to_preamble(document, [preamble])
|
||||
document.header[i] = "\\font_sans default"
|
||||
|
||||
|
||||
##
|
||||
# Conversion hub
|
||||
#
|
||||
@ -1155,10 +1166,12 @@ convert = [
|
||||
[441, [convert_mdnomath]],
|
||||
[442, []],
|
||||
[443, []],
|
||||
[444, []]
|
||||
[444, []],
|
||||
[445, []]
|
||||
]
|
||||
|
||||
revert = [
|
||||
[444, [revert_uop]],
|
||||
[443, [revert_biolinum]],
|
||||
[442, []],
|
||||
[441, [revert_newtxmath]],
|
||||
|
@ -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 444 // spitz: support for the Biolinum LaTeX font
|
||||
#define LYX_FORMAT_TEX2LYX 444 // spitz: support for the Biolinum LaTeX font
|
||||
#define LYX_FORMAT_LYX 445 // landroni: support for the URW Classico LaTeX font
|
||||
#define LYX_FORMAT_TEX2LYX 445 // landroni: support for the URW Classico LaTeX font
|
||||
|
||||
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
|
||||
#ifndef _MSC_VER
|
||||
|
Loading…
Reference in New Issue
Block a user