If there are changes from multiple authors in a LyX file, the LyX display shows different colors for each author. But when "Show changes in output" is checked, the PDF only uses one color to show changes. Attached is an example file.
The LaTeX shows that this is expected: \DeclareRobustCommand{\lyxadded}[3]{{\color{lyxadded}{}#3}} In other words, the color does not depend on the author. We do call \lyxadded with the name of the author though. If we want to improve this, I see a few possibilities: 1. Because \lyxadded passes the author name, we could have the color depend on the name. I'm not sure of the best way to do this. 2. \lyxadded could pass a color as an additional argument. The attached file contains a work around in the preamble. To see how it works, uncomment it and recompile. The different authors will have different colors. Any thoughts? Scott
#LyX 2.1 created this file. For more info see http://www.lyx.org/ \lyxformat 474 \begin_document \begin_header \textclass article \begin_preamble %\usepackage{ifthen} %\DeclareRobustCommand{\lyxadded}[3]{\ifthenelse{\equal{#1}{scott}}{{\color{lyxadded}{}#3}}{{\color{magenta}{}#3}}} \end_preamble \use_default_options true \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman default \font_sans default \font_typewriter default \font_math auto \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 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 false \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 basic \cite_engine_type default \biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \justification true \use_refstyle 1 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes true \output_changes true \html_math_output 0 \html_css_as_file 0 \html_be_strict false \author 274215730 "scott" \author 459184548 "scott2" \end_header \begin_body \begin_layout Standard This is a test document. \change_inserted 274215730 1443334310 In LyX the colors from different editors are distinct. \change_inserted 459184548 1443334411 But if you click on \begin_inset Quotes eld \end_inset Show changes in output \begin_inset Quotes erd \end_inset , in the PDF additions have only one color (regardless of the editors) and deletions have only one color. \change_unchanged \end_layout \end_body \end_document