
Eu crio um novo documento no LyX e uso o menu Document
> Settings
para alterar a classe do documento para Letter (Standard Class)
. Digito algumas palavras e tento renderizá-las em PDF, usando o item de menu Document
> View [PDF (pdflatex)]
. No entanto, isso falha, com o seguinte erro:
LaTeX Error: Environment thebibliography undefined.
\renewenvironment{thebibliography}
[1]{%
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Não tenho intenção de usar citações nesta carta.Como posso renderizar uma carta LyX como PDF?(Tenho muito pouco conhecimento de LaTeX bruto e prefiro correções "dentro do LyX", se possível, ou pelo menos alterações simples de texto bruto.)
Estou usando o LyX 2.2.2 e (do log), pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Arch Linux) (preloaded format=pdflatex 2016.11.14) 17 NOV 2016 22:37
. O texto completo do meu documento com falha está abaixo.
#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass letter
\use_default_options true
\maintain_unincluded_children false
\language british
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "lmtt" "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
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry true
\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 natbib
\cite_engine_type authoryear
\biblio_style plainnat
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 2.5cm
\topmargin 2.5cm
\rightmargin 2.5cm
\bottommargin 2.5cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\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
Foo bar.
\end_layout
\end_body
\end_document
Responder1
Você definiu Natbib como bibliografia. Para corrigir isso, vá para Documento->Configurações->Bibliografia e selecione `Padrão (numérico).
Isso ocorre porque o Lyx gera \usepackage[authoryear]{natbib}
quando a opção Natbib é selecionada. A letter
documentclass não possui um ambiente de bibliografia definido.
Se precisar de bibliografia em sua carta, você pode copiar o ambiente da arcicle
aula conforme foi sugeridoaqui.