Skip to content

Commit

Permalink
Add commented-out attempt at getting nice listings comments in PDF build
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Oct 15, 2020
1 parent a05cc24 commit 7603543
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions preamble.tex
Expand Up @@ -186,6 +186,14 @@
\let\smallifpdf\normalsize
\fi

% It would be nice to have comments set in normal variable-width font without any sort of
% column alignment by the listsings.sty package, just like the comments look in the LaTeXML build.
% Adding the following \commentfullflexible to the 'commentstyle'
% makes words look good, but the words are still aligned in mysterious ways.
%\makeatletter
%\let\commentfullflexible\lst@column@fullflexible
%\makeatother

% See https://github.com/modelica-tools/listings-modelica/blob/master/listings-modelica.cfg
% Note: Changed comment color from green to [rgb]{0,0.4,0} - since the other variant was too distracting
% And added pure,impure,stream as keywords
Expand Down

0 comments on commit 7603543

Please sign in to comment.