Re: OFF-TOPIC - lyx, latex, y 2 versiones del mismo documento
Dario Alonso wrote:
>
> Hola a todos, tengo una pregunta un poco off-topic.
>
> Alguien sabe si con el editor lyx (o con algun comando
> latex) se puede tener un texto en el que se le hagan
> una especie de marcas a parrafos aislados, para poder
> sacar despues 2 ficheros postcript:
> - uno con todo el texto
> - otro con espacio en blanco en donde tendrian que
> estar los parrafos marcados anteriormente.
>
> Es que estoy redactando una especie de apuntes, y
> queria tener una "version del profesor" y una "version
> del alumno", y ahora mismo no se ni por donde empezar.
>
Hola,
Existe un paquete que hace eso exactamente. Se llama version. Y de su
documentación:
% Version control macros. These let you define environments whose
contents
% will be optionally added to or deleted from the text when you run
LaTeX.
% Usage: place either of the following near the start of your file:
% \includeversion{NAME}
% \excludeversion{NAME}
% Here, "NAME" is any name you choose. The first one indicates that text
% between \begin{NAME} and \end{NAME} will be processed in the normal
way.
% The second indicates that text between \begin{NAME} and \end{NAME}
will
% be totally deleted.
% You can define environments for as many versions as you want.
% A ``comment'' environment has already been pre-defined for you with
% \excludeversion{comment}; you can override this using \includeversion.
%
% Example:
% \includeversion{abridged}\excludeversion{unabridged}
% Text for the
% \begin{abridged}
% short
% \end{abridged}
% \begin{unabridged}
% long and really longwinded, opaque and boring
% \end{unabridged}
% version of the paper. Punctuation works correctly\begin{unabridged}
% because sphack is used\end{unabridged}.
% \begin{comment} This is deleted by default. \end{comment}
Viene de serie con latex en debian.
Saludos,
--
---------------------------------------------------
Jose Luis Triviño Rodriguez
http://www.lcc.uma.es/~trivino
Usuario registrado de linux nº 53043
---------------------------------------------------
La medida de programar es programar sin medida
Reply to: