Am Montag, 9. Oktober 2017 um 15:56:56, schrieb Herbert Voss 
<herbert.v...@alumni.tu-berlin.de>
> Am 09.10.2017 um 15:39 schrieb Kornel Benko:
> > we have problems with pstricks.sty after the last update of TL17.
> >
> > 'Correcting' texmf-dist/tex/generic/pstricks/pstricks.tex:34 to
> >     \expandafter\ifx\csname @latexerr\endcsname\relax %     do we have TeX? 
> > then @latexerr isn't defined
> >       \input pstricks-tex.def
> >     \else
> >       \newif\ifpst@psfonts  \pst@psfontsfalse
> >     \fi
> > cures the compilation for me. Would you like to take a look please?
> >
> >     Kornel
>
> Hi Kornel,
>
> \ifpst@psfonts is already defined in the current pstricks.sty!  Your fix
> doesn't make sense. There must be something different!
>
> I suppose that you are running latex but
> loading PSTricks with \input{pstricks.tex}  which cannot work. It
> should be included by \usepackage. Only for running TeX \input
> is the right macro.
>
> Without a _complete_ example .... ;-)
>
> Herbert

OK, here it comes.

        Kornel

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

%% LyX 2.4.0dev created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[a4paper,english,slidesec]{seminar}
\usepackage{lmodern}
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\pagestyle{empty}
\usepackage{color}
\usepackage{babel}
\usepackage{booktabs}
\usepackage{textcomp}
\usepackage{bbding}
\usepackage[unicode=true,pdfusetitle,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true]
 {hyperref}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth

\newcommand{\noun}[1]{\textsc{#1}}
\DeclareRobustCommand*{\lyxarrow}{%
\@ifstar
{\leavevmode\,$\triangleleft$\,\allowbreak}
{\leavevmode\,$\triangleright$\,\allowbreak}}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\newenvironment{lyxcode}
	{\par\begin{list}{}{
		\setlength{\rightmargin}{\leftmargin}
		\setlength{\listparindent}{0pt}% needed for AMS classes
		\raggedright
		\setlength{\itemsep}{0pt}
		\setlength{\parsep}{0pt}
		\normalfont\ttfamily}%
	 \item[]}
	{\end{list}}
\newenvironment{lyxlist}[1]
	{\begin{list}{}
		{\settowidth{\labelwidth}{#1}
		 \setlength{\leftmargin}{\labelwidth}
		 \addtolength{\leftmargin}{\labelsep}
		 \renewcommand{\makelabel}[1]{##1\hfil}}}
	{\end{list}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\renewcommand{\printlandscape}{\special{landscape}}

% if slides come out in the viewer upside down, try:
%\sliderotation{right}

\makeatother

\begin{document}
\begin{slide}

\title{Slides and Notes with the \textsf{\noun{Seminar}} class}

\author{Günter Milde}

\date{2016/09/29}\maketitle
\end{slide}

\tableofcontents{}

\begin{slide}

\slideheading{Seminar}
\begin{itemize}
\item The \href{http://www.ctan.org/pkg/seminar}{seminar} class is designed
to produce overhead slides (transparencies). For PowerPoint-like presentations,
a document class like\textsf{ beamer} or\textsf{ powerdot} may be
better suited.
\item Insert a slide with a \textbf{LandscapeSlide} or \textbf{PortraitSlide}
inset (Insert\lyxarrow Custom~Insets).
\item Virtually everything that can appear in normal \LaTeX{} (except floats)
can also be on a slide.

Additional styles: \textsf{SlideHeading, SlideSubheading}
\item The seminar handbook \href{https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf}{sem-user.pdf}
is somewhat outdated but still a helpful reading.
\end{itemize}
\end{slide}

\begin{slide}

\slideheading{Warnings}
\begin{itemize}
\item \textsf{Seminar} uses \href{http://ctan.org/pkg/pgf}{PGF} graphic
specials: size and orientation of the slides show problems depending
on the output format and viewing application (see Troubleshooting
and the Appendix below).
\item Assure that the document page margins are set to default.
\end{itemize}
\end{slide}
\textsf{Seminar} puts everything that is not nested inside a \textsf{Slide}
environment on extra pages as \emph{notes.} (See Configuration below
on how to print only slides, only notes, or both.) 

\section{Configuration}

\begin{slide}

\slideheading{Output options\label{sli:output-options}}

The following options can be added to the \textsf{Class Options\lyxarrow Custom}
field in \textsf{Document\lyxarrow Settings\lyxarrow Document~Class}:
\begin{description}
\item [{notes}] Both notes and slides are printed (default).
\item [{slidesonly}] Only the slides are printed.
\item [{notesonly}] Only the notes are printed.
\item [{notesonly{*}}] Produces a slide marker for each slide environment.
\item [{portrait}] Portrait page orientation (default is landscape).
\item [{article}] Print as article (two-up with PDF (dvipdfm) and option
\texttt{portrait}).
\item [{semrot}] Rotate slides if orientation does not match the document
setting.
\end{description}
\end{slide}

\begin{slide}

\slideheading{Preamble commands }

The following options can be added to \textsf{Document\lyxarrow Settings\lyxarrow LaTeX
Preamble:}
\begin{description}
\item [{\textbackslash onlyslides\{8,9,11\}}] print only slides number
8, 9 and 11 (e.\,g.\ color plots),
\item [{\textbackslash notslides\{4,8,9,11\}}] don't print these slides.
\item [{For}] more configuration options and commands see \href{https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf}{sem-user.pdf}.
\end{description}
\end{slide}


\section{Lists/ToC}

Seminar defines additional content-listing commands, as the Table
of Contents only lists ``normal'' headings and subheadings. 

: 
\begin{slide}
The \textsf{SlideContents} inset is an analogue to the table of contents
but lists only \textsf{SlideHeading}s (no \textsf{SlideSubheading}s)

\slidecontents{}
\end{slide}

Analogue to a list of tables, the \textsf{ListOfSlides} style lists
all slides in your document: 

\listofslides{}

\medskip{}
If you want to assure the audience, that the presentation is almost
over, insert a slide with \textsf{ProgressContents}:

\begin{slide}

\Slidecontents{}
\end{slide}


\section{Formatting}

You can set sans-serif as default font family and select suitable
fonts under Document\lyxarrow Settings\lyxarrow Fonts.

The \LaTeX{} preamble is the right place for many options to get fancier
formatting, e.\,g., fancy frames:
\begin{lyxcode}
\textbackslash usepackage\{fancybox\}

\textbackslash setlength\{\textbackslash slideframewidth\}\{1pt\}

\textbackslash slideframe{[}\textbackslash setlength\{\textbackslash shadowsize\}\{1pt\}{]}\{shadow\}\%

~~~~~~~~~~~framecolor~\textquotedbl black\textquotedbl ~backgroundcolor~\textquotedbl none\textquotedbl{}
\end{lyxcode}
See \href{https://www.ctan.org/tex-archive/macros/latex/contrib/seminar/doc/seminar-doc.pdf}{sem-user.pdf}
for details\texttt{.}

\section{Troubleshooting}
\begin{itemize}
\item LyX 2.2.0 reports a ``missing characters in font nullfont'' error.
This error is caused by a bug in PGF and can be ignored.
\item \texttt{seminar.cls} versions before 1.5 (2008-10-15) contained a
bug regarding the a4paper option.
\item Originally, \texttt{seminar.cls} used pstricks for the graphics. This
failed with pdfTeX and LuaTeX. Update to a current version using \href{http://ctan.org/pkg/pgf}{PGF},
if you want to use non-TeX fonts.
\item \textsf{Seminar} defaults to landscape orientation. Therefore, Document\lyxarrow Settings\lyxarrow Page
Layout\lyxarrow Orientation has no effect on the output. Instead,
add the \texttt{portrait} class option for portrait mode.
\item Correct size and orientation of the slides is somewhat tricky. Depending
on the use case, different settings and export routes work best. For
details see the Appendix.
\item Do not mix LandscapeSlide and PortraitSlide, if you want to present
on screen or with a video projector.
\item Compiling with Xe/LuaTeX works with both, TeX-fonts and Unicode fonts.
\end{itemize}

\appendix

\section{Output formats and supported options}
\begin{itemize}
\item The default settings work nice for landscape slides on screen with
PDF (dvipdfm), PDF (pdflatex), and PDF (XeTeX).
\item When printing on transparencies, LandscapeSlides and PortraitSlides
can be mixed if the option \texttt{semrot} is set and the export is
done with PDF (dvipdfm).
\item LuaTeX scales the content by a factor 0.5 when generating PDF.

With the option \textquotedblleft trim margins\textquotedblright{}
in the PDF viewer (e.g. Okular), this can be used as a workaround
for mixed slides on screen.
\item Output formats DVI, DVI (LuaTeX), Postscript, and PDF (ps2pdf) require
the option \texttt{portrait} or \texttt{article}.
\end{itemize}

\subsection{Landscape Slides on screen}
\begin{lyxlist}{00.00.0000}
\item [{Custom~Options:}] {[}{]} (none)
\end{lyxlist}
\begin{tabular}{lccc}
\toprule 
Export & Landscape Slide & Portrait Slide & Notes\tabularnewline
\midrule
\textsf{DVI} & \XSolidBrush \textonesuperior{}  & \XSolidBrush \texttwosuperior{} & \XSolidBrush \textonesuperior{} \tabularnewline
\textsf{DVI (LuaTeX) } & \XSolidBrush \textonesuperior{}  & \XSolidBrush \texttwosuperior{} & \XSolidBrush \textonesuperior{} \tabularnewline
\textsf{Postscript} & \XSolidBrush \textonesuperior{}  & \XSolidBrush \texttwosuperior{} & \XSolidBrush \textonesuperior{} \tabularnewline
\midrule 
\textsf{PDF (ps2pdf)} & \XSolidBrush \textonesuperior{}  & \XSolidBrush \texttwosuperior{} & \XSolidBrush \textonesuperior{} \tabularnewline
\textsf{PDF (dvipdfm)} & \Checkmark{} & \XSolidBrush \textthreesuperior{} & \Checkmark{}\tabularnewline
\textsf{PDF (pdflatex)} & \Checkmark{} & \XSolidBrush \textthreesuperior{} & \Checkmark{} \tabularnewline
\midrule 
\textsf{PDF (XeTeX)} & \Checkmark{} & \XSolidBrush \textthreesuperior{} & \XSolidBrush \textonesuperior /\Checkmark{}\tabularnewline
\textsf{PDF (LuaTeX)} & (\Checkmark ) & (\Checkmark )\textonesuperior{} & (\Checkmark )\tabularnewline
\bottomrule
\end{tabular}

\textonesuperior{} landscape text area on portrait page (with XeTeX
only title page)

\texttwosuperior{} off page

\textsf{\textthreesuperior{} }portrait text area on landscape page

\subsection{Landscape printing/viewing}
\begin{lyxlist}{00.00.0000}
\item [{Custom~Options:}] {[}semrot{]} 
\end{lyxlist}
\begin{tabular}{lccc}
\toprule 
Export & Landscape Slide & Portrait Slide & Notes\tabularnewline
\midrule
\textsf{DVI} & \XSolidBrush \textonesuperior{}  & \XSolidBrush \texttwosuperior{}  & \XSolidBrush \textonesuperior{} \tabularnewline
\textsf{DVI (LuaTeX) } & \XSolidBrush \textonesuperior{}  & \XSolidBrush \texttwosuperior{}  & \XSolidBrush \textonesuperior{} \tabularnewline
\textsf{Postscript} & \XSolidBrush \textonesuperior{}  & \XSolidBrush \textonesuperior{} \textthreesuperior{} & \XSolidBrush \textonesuperior{} \tabularnewline
\midrule 
\textsf{PDF (ps2pdf)} & \XSolidBrush \textonesuperior{}  & \XSolidBrush \textonesuperior{} \textthreesuperior{} & \XSolidBrush \textonesuperior{} \tabularnewline
\textsf{PDF (dvipdfm)} & \Checkmark{} & \Checkmark \textthreesuperior{} & \Checkmark{} \tabularnewline
\textsf{PDF (pdflatex)} & \Checkmark{} & \XSolidBrush \texttwosuperior{}  & \Checkmark{}\tabularnewline
\midrule 
\textsf{PDF (XeTeX)} & \Checkmark{} & \Checkmark \textthreesuperior{} & \XSolidBrush \textonesuperior /\Checkmark{}\tabularnewline
\textsf{PDF (LuaTeX)} & (\Checkmark ) & \XSolidBrush \textonesuperior{} \textthreesuperior{} & (\Checkmark )\tabularnewline
\bottomrule
\end{tabular}

\textonesuperior{} landscape text area on portrait page (with XeTeX
only title page)

\texttwosuperior{} off page

\textthreesuperior{} rotated

\subsection{Portrait Slides on screen/print}
\begin{lyxlist}{00.00.0000}
\item [{Custom~Options:}] {[}portrait{]}
\end{lyxlist}
\begin{tabular}{lccc}
\toprule 
Export & Landscape Slide & Portrait Slide & Notes\tabularnewline
\midrule
\textsf{DVI} & \XSolidBrush \textonesuperior{} &  \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{DVI (LuaTeX) } & \XSolidBrush \textonesuperior{} &  \Checkmark{}  & \Checkmark{}\tabularnewline
\textsf{Postscript } & \XSolidBrush \textonesuperior{} & \Checkmark{} & \Checkmark{}\tabularnewline
\midrule 
\textsf{PDF (ps2pdf) } & \XSolidBrush \textonesuperior{} & \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{PDF (dvipdfm) } & \XSolidBrush \textonesuperior{} & \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{PDF (pdflatex) } & \XSolidBrush \textonesuperior{}  & \Checkmark{} & \Checkmark{}\tabularnewline
\midrule 
\textsf{PDF (XeTeX) } & \XSolidBrush \textonesuperior{} & \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{PDF (LuaTeX) } & (\Checkmark ) & (\Checkmark ) & (\Checkmark )\tabularnewline
\bottomrule
\end{tabular}

\textonesuperior{} landscape text area on portrait page

\subsection{printing}
\begin{lyxlist}{00.00.0000}
\item [{Custom~Options:}] {[}semrot,portrait{]} 
\end{lyxlist}
\begin{tabular}{lccc}
\toprule 
Export & Landscape Slide & Portrait Slide & Notes\tabularnewline
\midrule
\textsf{DVI} & \XSolidBrush \texttwosuperior{} &  \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{DVI (LuaTeX) } & \XSolidBrush \texttwosuperior{} &  \Checkmark{}  & \Checkmark{}\tabularnewline
\textsf{Postscript } & \Checkmark \textthreesuperior{} & \Checkmark{} & \Checkmark{}\tabularnewline
\midrule 
\textsf{PDF (ps2pdf) } & \Checkmark{} & \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{PDF (dvipdfm) } & \Checkmark \textthreesuperior{} & \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{PDF (pdflatex) } & \XSolidBrush{}  & \Checkmark{} & \Checkmark{}\tabularnewline
\midrule 
\textsf{PDF (XeTeX) } & \Checkmark \textthreesuperior{} & \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{PDF (LuaTeX) } & (\Checkmark )  & \XSolidBrush \texttwosuperior{} & (\Checkmark )\tabularnewline
\bottomrule
\end{tabular}

\texttwosuperior{} off page

\textthreesuperior{} rotated

\subsection{handout printing}
\begin{lyxlist}{00.00.0000}
\item [{Custom~Options}] {[}article{]} or {[}article,portrait{]}
\end{lyxlist}
\begin{tabular}{lcc}
\toprule 
Export &  {[}article{]} & two up {[}article,portrait{]}\tabularnewline
\midrule
\textsf{DVI} &  \Checkmark{} & \XSolidBrush \textonesuperior{}\tabularnewline
\textsf{DVI (LuaTeX) } &  \Checkmark{}  & \XSolidBrush \textonesuperior{}\tabularnewline
\textsf{Postscript } & \Checkmark{} & \XSolidBrush \textonesuperior{}\tabularnewline
\midrule 
\textsf{PDF (ps2pdf) } & \Checkmark{} & \XSolidBrush \textonesuperior{}\tabularnewline
\textsf{PDF (dvipdfm) } & \Checkmark{} & \Checkmark{}\tabularnewline
\textsf{PDF (pdflatex) } & \XSolidBrush \texttwosuperior{} & \XSolidBrush \textonesuperior{}\tabularnewline
\midrule 
\textsf{PDF (XeTeX) } & \XSolidBrush \texttwosuperior{} & \XSolidBrush \textonesuperior{}\tabularnewline
\textsf{PDF (LuaTeX) } & \XSolidBrush \texttwosuperior{} & \XSolidBrush \textonesuperior{}\tabularnewline
\bottomrule
\end{tabular}

\textonesuperior{} landscape text area on portrait page

\texttwosuperior{} portrait text area on landscape page
\end{document}

Reply via email to