mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
81066e2894
utf8-plain (Unicode (utf8 XeTeX)) is a power-user setting for the input encoding with two use cases: a) setup of system fonts or b) setup of input encoding supportuser preamble in the document class or user preamble. The test file is an example for use case b.
141 lines
3.1 KiB
Plaintext
141 lines
3.1 KiB
Plaintext
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||
\lyxformat 566
|
||
\begin_document
|
||
\begin_header
|
||
\save_transient_properties true
|
||
\origin unavailable
|
||
\textclass article
|
||
\begin_preamble
|
||
\@ifpackageloaded{fontspec}{%
|
||
% Unicode fonts, nothing to do
|
||
}{% setup Unicode with 8-bit LaTeX fonts:
|
||
% character-providing packages are not auto-loaded with "utf8-plain"
|
||
\usepackage{textcomp}
|
||
|
||
\ifdefined\XeTeXinputencoding
|
||
% XeTeX in legacy mode
|
||
\XeTeXinputencoding "bytes" % current file
|
||
\XeTeXdefaultencoding "bytes" % included files
|
||
\let\origUmathchar\Umathchar
|
||
\let\Umathchar\@undefined
|
||
\usepackage[utf8]{inputenc}
|
||
\let\Umathchar\origUmathchar
|
||
\fi
|
||
\ifdefined\directlua
|
||
\usepackage[utf8]{luainputenc} % must come after textcomp!
|
||
\else
|
||
\usepackage[utf8]{inputenc} % default since TeXLive 2018
|
||
\fi
|
||
% set up macro for INFINITY Character '∞'
|
||
\DeclareUnicodeCharacter{221E}{\ensuremath{\infty}}
|
||
}
|
||
\end_preamble
|
||
\use_default_options true
|
||
\begin_modules
|
||
logicalmkup
|
||
\end_modules
|
||
\maintain_unincluded_children false
|
||
\language english
|
||
\language_package default
|
||
\inputencoding utf8-plain
|
||
\fontencoding auto
|
||
\font_roman "lmodern" "default"
|
||
\font_sans "default" "default"
|
||
\font_typewriter "default" "default"
|
||
\font_math "auto" "auto"
|
||
\font_default_family default
|
||
\use_non_tex_fonts false
|
||
\font_sc false
|
||
\font_osf false
|
||
\font_sf_scale 100 100
|
||
\font_tt_scale 100 100
|
||
\use_microtype false
|
||
\use_dash_ligatures false
|
||
\graphics default
|
||
\default_output_format default
|
||
\output_sync 0
|
||
\bibtex_command default
|
||
\index_command default
|
||
\float_placement class
|
||
\float_alignment class
|
||
\paperfontsize default
|
||
\spacing single
|
||
\use_hyperref false
|
||
\papersize default
|
||
\use_geometry false
|
||
\use_package amsmath 1
|
||
\use_package amssymb 1
|
||
\use_package cancel 1
|
||
\use_package esint 1
|
||
\use_package mathdots 1
|
||
\use_package mathtools 1
|
||
\use_package mhchem 1
|
||
\use_package stackrel 1
|
||
\use_package stmaryrd 1
|
||
\use_package undertilde 1
|
||
\cite_engine basic
|
||
\cite_engine_type default
|
||
\biblio_style plain
|
||
\use_bibtopic false
|
||
\use_indices false
|
||
\paperorientation portrait
|
||
\suppress_date false
|
||
\justification true
|
||
\use_refstyle 1
|
||
\use_minted 0
|
||
\index Index
|
||
\shortcut idx
|
||
\color #008000
|
||
\end_index
|
||
\secnumdepth 3
|
||
\tocdepth 3
|
||
\paragraph_separation indent
|
||
\paragraph_indentation default
|
||
\is_math_indent 0
|
||
\math_numbering_side default
|
||
\quotes_style english
|
||
\dynamic_quotes 0
|
||
\papercolumns 1
|
||
\papersides 1
|
||
\paperpagestyle default
|
||
\tracking_changes false
|
||
\output_changes false
|
||
\html_math_output 0
|
||
\html_css_as_file 0
|
||
\html_be_strict false
|
||
\end_header
|
||
|
||
\begin_body
|
||
|
||
\begin_layout Standard
|
||
With LaTeX input encoding
|
||
\family typewriter
|
||
utf8-plain
|
||
\family default
|
||
(UTF-8 (XeTeX)), the author must ensure non-standard characters are defined
|
||
in the user preamble (see Document>Settings>LaTeX
|
||
\begin_inset space ~
|
||
\end_inset
|
||
|
||
Preamble).
|
||
\end_layout
|
||
|
||
\begin_layout Itemize
|
||
Hübner und Örtel sind 30 µm groß.
|
||
\end_layout
|
||
|
||
\begin_layout Itemize
|
||
em- and en-dash: — –
|
||
\end_layout
|
||
|
||
\begin_layout Itemize
|
||
Textcomp characters: ¹²³¼½¬¸@ł€¶←→
|
||
\end_layout
|
||
|
||
\begin_layout Itemize
|
||
INFINITY Character defined in the user preamble: ∞
|
||
\end_layout
|
||
|
||
\end_body
|
||
\end_document
|