From 27ac9d18092ec9656bdc48a988e24d6808dcea65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnter=20Milde?= Date: Wed, 16 Jan 2019 22:42:08 +0100 Subject: [PATCH] The acmart package requires pdflatex, XeTeX or LuaTeX. The acmart package requires pdflatex (with 8-bit fonts) or xe/luatex with non-TeX fonts to give the expected output. --- development/autotests/invertedTests | 12 ----------- development/autotests/unreliableTests | 31 ++++++++++----------------- lib/templates/acmart.lyx | 30 ++++++++++++++++++++++---- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests index b478a9faad..4c5b599981 100644 --- a/development/autotests/invertedTests +++ b/development/autotests/invertedTests @@ -171,18 +171,6 @@ export/export/latex/luainputenc-utf8_pdf5_systemF #11455 "Unable to process argument!" with multiple 1.6.x roundtrips export/templates/IEEEtran-Journal_lyx16 -#9744 allow parallel configuration of TeX and non-TeX fonts -# parallel configuration implemented ([2fc430d5aede/lyxgit] 11/09/15), -# use case for new setting value useNonTeXFonts == "automatic" -# The font package "libertine" sets up "non-TeX fonts" if Xe/LuaTeX -# is detected: -# The "acmart" document class calls "libertine" as default font: -# * With pdf5 (LuaTeX), this clashes with LyX setting up 8-bit TeX fonts -# * with pdf4 (XeTeX) this does not clash but - selects CM fonts with different metrics -> unreliableTests wrong output. -export/templates/acmart_pdf5_texF - - # ============================================================== Sublabel: ert # Export failures due to "raw" LaTeX use in ERT or preamble code diff --git a/development/autotests/unreliableTests b/development/autotests/unreliableTests index 3d04fb7983..2e89bb4288 100644 --- a/development/autotests/unreliableTests +++ b/development/autotests/unreliableTests @@ -61,14 +61,11 @@ export/export/latex/cp858_pdf2 # Seminar export with LaTeX fails in latest TeXLive: export/examples/(|fr/)seminar_(dvi|pdf).* -# `acmart` requires PDF-latex in TeXLive < 2018 -# * Missing page number in DVI -> ignoredTests wrong output -# * First page not displayed in Postscript -# ("evince" viewer hangs and displays # "Loading...") -# * "PDF (ps2pdf)": `ps2pdf` fails as result of the problem with Postscript -export/templates/acmart_dvi.* -#export/templates/acmart_ps # not tested by ctest autotests -export/templates/acmart_pdf +# `acmart` calls "libertine" as default font. +# With TeXLive < 18, this clashes with LyX setting up 8-bit TeX fonts +# PDF (luatex) and PDF (xetex) (compilation error or wrong fonts). +# See also #9744 allow parallel configuration of TeX and non-TeX fonts. +export/templates/acmart_pdf[45]_texF Sublabel: wrong_output @@ -109,19 +106,13 @@ export/export/mixing_inTitle_layouts_(pdf|dvi).* export/doc/es/Customization_dvi3_systemF export/examples/(|es/)(europe|modern)CV_dvi3_systemF - # original problem fixed but run-together words in Russian #9637 textgreek and textcyr depend on font-encoding, not input encoding export/export/latex/ru-accent-ascii_pdf2 - -#9744 allow parallel configuration of TeX and non-TeX fonts -# parallel configuration implemented ([2fc430d5aede/lyxgit] 11/09/15), -# use case for new setting value useNonTeXFonts == "automatic" -# The font package "libertine" sets up "non-TeX fonts" if Xe/LuaTeX -# is detected: -# * With pdf5 (LuaTeX), this clashes with LyX setting up 8-bit TeX fonts -# * with pdf4 (XeTeX) this does not clash but - selects fonts with different metrics -> unreliableTests wrong output. -# The "acmart" document class calls "libertine" as default font: -export/templates/acmart_pdf4_texF +# `acmart` requires PDFlatex: +# * Missing page number in DVI, Postscript, and PDF (ps2pdf) +# * "PDF (ps2pdf)" fails (problem with Postscript) in TeXLive < 2018 +export/templates/acmart_dvi.* +#export/templates/acmart_ps # not tested by ctest autotests +export/templates/acmart_pdf diff --git a/lib/templates/acmart.lyx b/lib/templates/acmart.lyx index cf4e3d3ad2..376c9d4965 100644 --- a/lib/templates/acmart.lyx +++ b/lib/templates/acmart.lyx @@ -1,5 +1,5 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 566 \begin_document \begin_header \save_transient_properties true @@ -28,7 +28,7 @@ PackageOptions algorithm2e ruled \language english \language_package auto \inputencoding auto -\fontencoding global +\fontencoding auto \font_roman "default" "default" \font_sans "default" "default" \font_typewriter "default" "default" @@ -42,10 +42,12 @@ PackageOptions algorithm2e ruled \use_microtype false \use_dash_ligatures true \graphics default -\default_output_format default +\default_output_format pdf2 \output_sync 0 \bibtex_command default \index_command default +\float_placement class +\float_alignment class \paperfontsize default \spacing single \use_hyperref false @@ -95,6 +97,21 @@ PackageOptions algorithm2e ruled \begin_body +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +For correct output, compile with pdflatex. + Alternatively set Document>Settings>Fonts>use non-TeX fonts and compile + with XeTeX or LuaTeX. +\end_layout + +\end_inset + + +\end_layout + \begin_layout In Preamble \begin_inset Note Note status open @@ -518,6 +535,7 @@ reference "tab:one" \begin_layout Standard \begin_inset Float algorithm placement t +alignment document wide false sideways false status open @@ -824,6 +842,8 @@ Sieve of Eratosthenes. \begin_layout Standard \begin_inset Float figure +placement document +alignment document wide false sideways false status open @@ -860,6 +880,8 @@ Figure. \begin_layout Standard \begin_inset Float table +placement document +alignment document wide false sideways false status open -- 2.39.5