Hi I tried with the above version to import a LaTeX file that is written with the exam class.
The error message reads: Creating file /home/oub/Downloads/Annu/annu-sol-template.lyx Error: Could not read layout file for textclass "exam". support/Systemcall.cpp (276): Systemcall: '/usr/bin/tex2lyx -f "annu-sol-template.tex" "annu-sol-template.lyx"' finished with exit code 1 Error: Cannot convert file ---------------------------------------- An error occurred while running: /usr/bin/tex2lyx -f "annu-sol-template.tex" "annu-sol-template.lyx" I attach the file just in case. Any change to convert that? Thanks and regards Uwe Brauer -- I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine's military. I support the ban of Russia from SWIFT. I support the EU membership of the Ukraine.
\documentclass[12pt]{exam} \usepackage{xcolor} \usepackage{color} \setlength{\parindent}{0pt} \sloppy \parskip=5pt plus 5pt \usepackage[colorlinks,backref]{hyperref} \makeatletter \Hy@AtBeginDocument{%\n \def\@pdfborder{0 0 1}% Overrides border definition set with colorlinks=true \def\@pdfborderstyle{/S/U/W 1}% Overrides border style set with colorlinks=true % Hyperlink border style will be underline of width 1pt } \makeatother \hypersetup{% colorlinks=true,% hyperlinks will be coloured % linkcolor=blue,% hyperlink text will be blue urlcolor=blue,% hyperlink text will be blue % linkbordercolor=red,% hyperlink border will be red urlbordercolor=red,% hyperlink border will be red } \qformat{\textbf{Ejercicio} \thequestion: [\thequestiontitle]\hfill} \totalformat{Total: {\bf\fbox{ \totalpoints \ puntos}}} \boxedpoints \pointsdroppedatright \marginpointname{\ {\bf punto}} \vqword{\textbf{Ejercicio}} \printanswers \shadedsolutions \definecolor{SolutionColor}{rgb}{1.,1.,0.5} %light yello \usepackage{amsmath,stackrel,amssymb} \setcounter{MaxMatrixCols}{20} \allowdisplaybreaks[1] \newtheorem{thm}{Teorema} \newtheorem{defn}{Definición} \renewcommand{\solutiontitle}{\noindent\textbf{Solución:}\par\noindent} \printanswers \shadedsolutions \definecolor{SolutionColor}{rgb}{1.,1.,0.5} %light yello \makeatother \usepackage{paralist} % for compact lists \usepackage[colorinlistoftodos, textwidth=3cm, shadow]{todonotes} \definecolor{GreenYellow}{rgb}{0.678431,1.000000,0.184314} \newcounter{todocounter} \newcommand{\todonum}[2][] {\stepcounter{todocounter}\todo[#1]{\thetodocounter: #2}} \newcounter{ubcomment} \newcommand{\ubcomment}[2][]{% \refstepcounter{ubcomment}% {% \todo[linecolor=black,backgroundcolor={red!40!},size=\footnotesize]{% \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% }} \newcommand{\ubcommentinline}[2][]{% \refstepcounter{ubcomment}% {% \todo[linecolor=black,inline,backgroundcolor={red!40!},size=\footnotesize]{% \textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}% }} \newcommand{\ubcommentmultiline}[2]{% \refstepcounter{ubcomment}% {% \todo[linecolor=black,inline,caption={\textbf{{Fixme: UB} [\theubcomment]: #1}} ,backgroundcolor={green!40!},size=\footnotesize]{% \textbf{Fixme: UB [\theubcomment]:}~#2}% }} \usepackage{marginnote} \makeatletter \renewcommand{\@todonotes@drawMarginNoteWithLine}{% \begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]% \node [coordinate] (inText) {};% \end{tikzpicture}% \marginnote[{% Draw note in left margin \@todonotes@drawMarginNote% \@todonotes@drawLineToLeftMargin% }]{% Draw note in right margin \@todonotes@drawMarginNote% \@todonotes@drawLineToRightMargin% }% } \makeatother \everymath{\displaystyle} \usepackage{dsfont} \totalformat{Total: {\bf\fbox{ \totalpoints \%}}} \hpword{Percentage:} \vpword{Percentage:} \marginpointname{\%} \pointname{\%} \newcommand{\setB}{{\mathord{\mathbb B}}} \newcommand{\setC}{{\mathord{\mathbb C}}} \newcommand{\setF}{{\mathord{\mathbb F}}} \newcommand{\setN}{{\mathord{\mathbb N}}} \newcommand{\setQ}{{\mathord{\mathbb Q}}} \newcommand{\setR}{{\mathord{\mathbb R}}} \newcommand{\setP}{{\mathord{\mathbb P}}} \newcommand{\setZ}{{\mathord{\mathbb Z}}} \usepackage{geometry} \geometry{lmargin=0.7cm,rmargin=4.5cm,top=2cm,bottom=2cm} %\usepackage[lmargin=0.7cm,rmargin=1.5in,footskip=0.2cm,button=1cm,heightrounded]{geometry} \begin{document} \title{Solución de Ejercicio XX de la Hoja XX} \author{Alonso Quijano} \maketitle{} %\listoftodos\relax \begin{questions} \titledquestion{Conjectura de Goldbach}\label{exm:1} Demostrad la conjetura de Goldbach. \begin{solution} Usamos la conjetura de Riemann, entonces $\Box$ \end{solution} \end{questions} \end{document} %%% Local Variables: %%% mode: LaTeX %%% sentence-end-double-space: nil %%% TeX-master: t %%% End:
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel