축어 및 코드 예제에서 곧은 작은따옴표를 얻는 방법

축어 및 코드 예제에서 곧은 작은따옴표를 얻는 방법

내 문서에는 와 같은 내용이 있지만 (변경된 인용문 참고) 컴파일이 중단되는 것으로 print('abc')바뀌었 습니다.print(’abc’)

환경을 만들고 (보너스) 실제 인용문을 인쇄하려면 어떻게 해야 \begin{codeexample}합니까 \begin{verbatim}? ( '나는 여전히 PDF보다 더 신뢰할 수 있는 소스 파일에서 내용을 복사/붙여넣을 수 있기를 원하기 때문에 소스에 true가 포함되기를 원합니다 .)

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}

관련 정보