逐語的およびコード例で一重引用符をそのまま取得する方法

逐語的およびコード例で一重引用符をそのまま取得する方法

私のドキュメントには のような内容が含まれていますprint('abc')が、 に変換されprint(’abc’)(引用符が変更されていることに注意してください)、コンパイルが失敗します。

環境を作成して\begin{codeexample}\begin{verbatim}(ボーナスとして) 真の引用符を印刷するにはどうすればよいでしょうか? ( 'PDF よりも信頼性の高いソース ファイルからコピー/貼り付けを実行できるようにしたいので、ソースにはまだ真の引用符が含まれている必要があることに注意してください)。

MWE:

\documentclass[a4paper,doc2]{ltxdoc} % doc2 is needed to force the old version, or links get colored in a weird red way even with hidelinks. https://github.com/latex3/latex2e/issues/822

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Warning: if you compile and get:
%% ERROR: Argument of \tikz@lib@matrix@with@options has an extra }.
%% make sure to fix catcodes around it as | is given a different meaning in ltxdoc.

\usepackage{amsmath}
\usepackage[margin=3cm]{geometry}
\usepackage{calc}
\usepackage{tikz}
\input{pgfmanual-en-macros.tex}

\usepackage{tikz-cd}

\usepackage[hidelinks]{hyperref}
\usepackage{cleveref}

\begin{document}

\tableofcontents

\begin{verbatim}
Hey, see this is'nt copy/pastable due to the simple 'quotes' (but "double quotes" seem to be fine).
\end{verbatim}

\begin{codeexample}[code only]
Hey, see this is'nt copy/pastable due to the simple 'quotes' (but "double quotes" seem to be fine).
\end{codeexample}

\end{document}

関連情報