Changeset 3d67f83


Ignore:
Timestamp:
Feb 2, 2021, 10:31:10 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
4b393ba
Parents:
3b402339
Message:

make pdfstringdefDisableCommands conditional on hyperref

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/LaTeXmacros/common.tex

    r3b402339 r3d67f83  
    1111%% Created On       : Sat Apr  9 10:06:17 2016
    1212%% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Tue Feb  2 21:40:12 2021
    14 %% Update Count     : 498
     13%% Last Modified On : Tue Feb  2 22:29:13 2021
     14%% Update Count     : 500
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    4848\newcommand{\Csharp}{C\raisebox{-0.7ex}{\Large$^\sharp$}\xspace} % C# symbolic name
    4949
    50 \pdfstringdefDisableCommands{
    51   \def\CFA{\CFL}
    52   \def\CC{C++\xspace}
    53   \def\CCeleven{C++11\xspace}
    54   \def\CCfourteen{C++14\xspace}
    55   \def\CCseventeen{C++17\xspace}
    56   \def\CCtwenty{C++20\xspace}
    57   \def\Csharp{C\#\xspace}
    58   \def\lstinline{\xspace}
     50%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     51
     52\makeatletter
     53  \@ifpackageloaded{hyperref}{
     54        \pdfstringdefDisableCommands{
     55    \def\CFA{\CFL}
     56    \def\CC{C++\xspace}
     57    \def\CCeleven{C++11\xspace}
     58    \def\CCfourteen{C++14\xspace}
     59    \def\CCseventeen{C++17\xspace}
     60    \def\CCtwenty{C++20\xspace}
     61    \def\Csharp{C\#\xspace}
     62    \def\lstinline{\xspace}
     63  }{}
    5964}
    6065
    61 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    62 
    63 \makeatletter
    6466% parindent is relative, i.e., toggled on/off in environments like itemize, so store the value for
    6567% use rather than use \parident directly.
Note: See TracChangeset for help on using the changeset viewer.