Dear List,

I am attempting to track down lack of instant preview for math equations. It
seemed to be a random event between different files not working. I chalked it
up to random incompatibilities between all the various classes and preambles,
etc. However, even a new document doesn’t seem to work with a basic equation.
I have looked into the tmp directory, and found that the previews are not
generated because:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fatal fontspec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
! instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................

I have changed my graphics driver under Document settings to XeTeX, but no
dice. I also changed my default engine to pdflatex, but I wouldn’t be able to
compile my document then.
I am using KOMA-Script and fontspec. All the equations render if I preview the
ENTIRE document, but not the instant preview. Is there a setting I’m missing?
Is this not possible unless everything is vanilla pdflatex? I can manually
load the TeX file into Texmaker, compile under LuaLaTeX, and a nice preview
pdf comes up.

--
Respectfully,

Robert Susmilch
==============The "gobbledygook" in this email is due to this email having been 
"signed"
with PGP for security.
\batchmode
%% LyX 2.1.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\makeatletter
\def\input@path{{/home/rasusmilch//}}
\makeatother
\documentclass[letterpaper,american,twoside, twocolumn, headsepline,DIV,BCOR=0in,index=totoc,toc=listofnumbered,toc=graduated,unicode=true]{scrreprt}
\PassOptionsToPackage{draft}{microtype}
\usepackage[libertine]{newtxmath}
\usepackage[T1]{fontenc}
\setcounter{tocdepth}{5}
\usepackage{babel}
\usepackage[unicode=true,pdfusetitle,
 bookmarks=true,bookmarksnumberedúlse,bookmarksopenúlse,
 breaklinks=true,pdfborder={0 0 0},backref=page,colorlinksúlse]
 {hyperref}
\hypersetup{
 linkcolor=blue}
\usepackage{breakurl}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\special{papersize=\the\paperwidth,\the\paperheight}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\KOMAoption{fontsize}{10pt}\recalctypearea
\usepackage{fontspec}

%\usepackage[osf,p,type1]{libertine}
\defaultfontfeatures{Ligatures={Common,TeX},Numbers={Proportional, OldStyle, SlashedZero}, Contextuals = Swash, Fractions=On}% ,Scale=MatchLowercase} bug in current Biolinum
\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\setmonofont[Numbers={Monospaced, Lining, SlashedZero}]{Linux Libertine Mono O}

%\setromanfont [Ligatures={Common,TeX}, Numbers={OldStyle}]{Linux Libertine O}
%\setsansfont [Ligatures={Common}, BoldFont={Fontin Sans Bold}, ItalicFont={Fontin Sans Italic}]{Fontin Sans}
%\setsansfont[Ligatures={Common,TeX}, Numbers={OldStyle}]{Linux Biolinum O}
%\setromanfont [Ligatures={Common,TeX}, Numbers={OldStyle}]{Libertine}
%\setsansfont [Ligatures={Common}, BoldFont={Fontin Sans Bold}, ItalicFont={Fontin Sans Italic}]{Fontin Sans}
%\setsansfont[Ligatures={Common,TeX}, Numbers={OldStyle}]{Linux Biolinum O}

\usepackage{microtype}
%\usepackage{textcomp}
%\usepackage{amsmath}
%\usepackage{amssymb}
\usepackage{lipsum}
\usepackage{lettrine}
\usepackage{minted}
\usepackage{tcolorbox}
\usepackage{etoolbox}
% Wrap minted environment in a pretty box.
\BeforeBeginEnvironment{minted}{\begin{tcolorbox}}%
\AfterEndEnvironment{minted}{\end{tcolorbox}}%

%\usepackage{enumitem}
%\setlist{nosep}
%\setlist{noitemsep} % to leave space around whole list
% More control per list
%\setlist[2]{noitemsep} % sets the itemsep and parsep for all level two lists to 0
%\setenumerate{noitemsep} % sets no itemsep for enumerate lists only
%\begin{enumerate}[noitemsep] % sets no itemsep for just this list
% ITEMS
%\end{enumerate}

\usepackage{mathdots}
\usepackage{url}

\usepackage{varioref}
\usepackage{hyperref}
\usepackage{cleveref}

\everymath{\displaystyle}

% Vertically stretch a table row this amount
%\renewcommand*\arraystretch{1.5}
% Or use this command
% \setlength{\extrarowheight}{2pt}


% Make nicer looking captions
%\usepackage{caption}
%\captionsetup{labelfont¿,format=hang,justification=justified}

% Indent KOMA script captions
%\setcapindent{1em}

% Make KOMA script caption labels (eg Figure 1:) bold.
\addtokomafont{captionlabel}{\bfseries}

% Adjust the KOMA caption fonts smaller
%\setkomafont{caption}{\small\itshape}
\setkomafont{caption}{\small}
\setkomafont{captionlabel}{\usekomafont{caption}}
\usepackage{subfig}
%\captionsetup[subfloat]{font={footnotesize,it}}
\captionsetup[subfloat]{font={footnotesize}}


% Note that tables should have the caption above the table.
% Figures should have the caption below the table.
% Algorithms does not seem to matter above or below, though code above the caption looks nicer in LyX GUI
% Could adjust the caption spacing depending on the environment (document class)
%\captionsetup[table]{skip pt}
%\setlength{\abovecaptionskip}{15pt plus 10pt minus 2pt} % Chosen fairly arbitrarily

% Center figures and tables
\let\originaltable\table
\let\endoriginaltable\endtable
\renewenvironment{table}[1][ht]{%
\originaltable[#1]
\addfontfeatures{Numbers={Lining, Monospaced, SlashedZero}}
 \centering}%
{\endoriginaltable}

\let\originalfigure\figure
\let\endoriginalfigure\endfigure
\renewenvironment{figure}[1][ht]{%
\originalfigure[#1]
\centering}%
{\endoriginalfigure}

%\renewcommand*{\figureformat}{}
%\renewcommand*{\tableformat}{\tablename~\thetable}
%\renewcommand*{\captionformat}{}
\renewcommand*\thetable{%
%  \thechapter.%
  \@arabic\c@table
}

\renewcommand*\thefigure{%
%  \thechapter.%
  \@arabic\c@figure
}


% Force floats to appear in their respective sections, subsections, and subsubsections.
%\usepackage[section,subsection,subsubsection]{extraplaceins}
\usepackage[section,subsection]{extraplaceins}

%\makeatletter
\if@twoside % commands below work only for twoside option of \documentclass
    \newlength{\textblockoffset}
    \setlength{\textblockoffset}{12mm}
    \addtolength{\hoffset}{\textblockoffset}
    \addtolength{\evensidemargin}{-2.0\textblockoffset}
\fi
%\makeatother
\title{Disaster Recovery}
\author{Robert Susmilch}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
%\makeatletter
\let\papertitle\@title
\let\paperauthor\@author
\let\paperdate\@date
%\makeatother
\lehead[\papertitle]{\papertitle}
\rehead[\paperauthor]{\paperauthor}
\lohead[\paperauthor]{\paperauthor}
\rohead[\papertitle]{\papertitle}

\definecolor{green}{RGB}{0, 180, 0}
%\definecolor{cyan}{RGB}{0, 180, 180}
%\definecolor{blue}{RGB}{0,130,255}
%\definecolor{yellow}{RGB}{211,211,0}
\definecolor{Black}{RGB}{0, 0, 0}
\definecolor{Gray}{RGB}{150, 150, 150}

\usepackage{framed}

\usepackage{xcolor}% http://ctan.org/pkg/xcolor
\newcommand{\myquote}[2][black!10]{%
  \medskip
  {\setlength{\fboxsep}{.1\columnwidth}%
  \noindent\colorbox{#1}{\begin{minipage}{\dimexpr\columnwidth-2\fboxsep}
    \raggedright\sffamily\bfseries\Huge#2
  \end{minipage}}} \par
  \medskip
}
%\newcommand{\hltt}[1]{\textcolor{blue}{#1}}
%\usepackage{footnote}
\setminted{breaklines,breakautoindent,autogobble,tabsize=2}
\newminted[bash]{bash}{}

% Use to include text files into a LaTeX file, such as source files
\usepackage{fancyvrb}
% redefine \VerbatimInput
\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}%
{fontsize=\footnotesize,
 %
 frame=lines,  % top and bottom rule only
 framesep.m, % separation between frame and text
 rulecolor=\color{Gray},
%
 label=\fbox{\color{Black}Passwords},
 labelposition=topline,
 %
 %commandchars=\|\(\), % escape character and argument delimiters for
                      % commands within the verbatim
 commentchar=*        % comment character
}
% Then we use
%\VerbatimInput{yourFileInSameDirectory.txt}
\usepackage{enumitem}
\setlist[itemize,1]{label=$\bullet$}
\setlist[itemize,2]{label=$\diamond$}
\setlist[itemize,3]{label=$\triangleright$}
\setlist[itemize,4]{label=$\square$}
\setlist[itemize,5]{label=$\circ$}
\setlist[itemize,6]{label=$\blacktriangleright$}
\setlist[itemize,7]{label=\tiny$\blacksquare$}
\setlist[itemize,8]{label=$\ast$}
\setlist[itemize,9]{label=$\star$}

\renewlist{itemize}{itemize}{9}

% KOMA script won't include the nomenclature within the table of contents
\def\nompreamble{\addcontentsline{toc}{section}{\nomname}\markboth{\nomname}{\nomname}}
%\DeclareUnicodeCharacter{21AA}{\hookarrow}

% Highlight nomenclature terms in some way.
\newcommand{\term}[1]{\textcolor{green}{#1}}
%\newcommand{\term}[1]{\texttt{#1}}

\makeatother


\def\lyxlock{}


\usepackage[active,delayed,showlabels,lyx]{preview}


\begin{document}
\begin{preview}

\[
a^{2}+b^{2}=c^{2}
\]

\end{preview}


\end{document}

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to